Last change
on this file since 76712b2 was b738035, checked in by Ema <ema_spirova@…>, 3 years ago |
signup/login server errors on front and remove location from planner
|
-
Property mode
set to
100644
|
File size:
2.3 KB
|
Rev | Line | |
---|
[bdd6491] | 1 | <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet"
|
---|
| 2 | integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous">
|
---|
[6a80231] | 3 |
|
---|
| 4 | <h3>Here you can edit your planner</h3>
|
---|
| 5 |
|
---|
[bdd6491] | 6 | <form [formGroup]="form" (ngSubmit)="onSubmit()">
|
---|
[6a80231] | 7 | <div class="form-gorup">
|
---|
| 8 | <p>Planner name</p>
|
---|
| 9 | <mat-form-field appearance="fill">
|
---|
[bdd6491] | 10 | <input matInput required type="text" formControlName="name" placeholder="Planner name">
|
---|
[6a80231] | 11 | </mat-form-field>
|
---|
| 12 | <p>Planner description</p>
|
---|
| 13 | <mat-form-field appearance="fill">
|
---|
[bdd6491] | 14 | <textarea matInput required formControlName="description" type="text"
|
---|
| 15 | placeholder="Planner description"></textarea>
|
---|
[6a80231] | 16 | </mat-form-field>
|
---|
| 17 | </div>
|
---|
[bdd6491] | 18 | <div class="container mb-4">
|
---|
[6a80231] | 19 | <div class="row">
|
---|
| 20 | <div class="col-12">
|
---|
| 21 | <div class="table-responsive">
|
---|
| 22 | <table class="table table-striped">
|
---|
| 23 | <thead>
|
---|
[bdd6491] | 24 | <tr>
|
---|
| 25 | <th scope="col">Location name</th>
|
---|
| 26 | </tr>
|
---|
[6a80231] | 27 | </thead>
|
---|
| 28 | <tbody>
|
---|
[bdd6491] | 29 | <tr>
|
---|
| 30 | <td> <button mat-raised-button color="primary" (click)="onClickAddLocation()">
|
---|
| 31 | Add locations
|
---|
| 32 | </button>
|
---|
| 33 | </td>
|
---|
| 34 | </tr>
|
---|
| 35 | <tr *ngFor="let location of locations">
|
---|
| 36 | <td>
|
---|
| 37 | {{location.name}}
|
---|
| 38 | </td>
|
---|
| 39 | <td>
|
---|
[b738035] | 40 | <button pButton pRipple type="button" icon="pi pi-times" class="p-button-rounded p-button-danger p-button-text" (click)="onClickRemoveLocation(planner, location)"></button>
|
---|
[bdd6491] | 41 | </td>
|
---|
| 42 | </tr>
|
---|
[6a80231] | 43 | </tbody>
|
---|
| 44 | </table>
|
---|
| 45 | </div>
|
---|
| 46 | </div>
|
---|
| 47 | </div>
|
---|
| 48 | </div>
|
---|
[e29cc2e] | 49 | <button pButton pRipplelabel label="Save" class="p-button-help"></button>
|
---|
[6a80231] | 50 | </form>
|
---|
[bdd6491] | 51 | <button pButton pRipple label="Back" class="p-button-info" (click)="onClickBack()"
|
---|
| 52 | [style]="{'margin-left': '.11em'}"></button> |
---|
Note:
See
TracBrowser
for help on using the repository browser.