source: trip-planner-front/src/app/planner/edit-planner/edit-planner.component.html@ 6fe77af

Last change on this file since 6fe77af 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
Line 
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">
3
4<h3>Here you can edit your planner</h3>
5
6<form [formGroup]="form" (ngSubmit)="onSubmit()">
7 <div class="form-gorup">
8 <p>Planner name</p>
9 <mat-form-field appearance="fill">
10 <input matInput required type="text" formControlName="name" placeholder="Planner name">
11 </mat-form-field>
12 <p>Planner description</p>
13 <mat-form-field appearance="fill">
14 <textarea matInput required formControlName="description" type="text"
15 placeholder="Planner description"></textarea>
16 </mat-form-field>
17 </div>
18 <div class="container mb-4">
19 <div class="row">
20 <div class="col-12">
21 <div class="table-responsive">
22 <table class="table table-striped">
23 <thead>
24 <tr>
25 <th scope="col">Location name</th>
26 </tr>
27 </thead>
28 <tbody>
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>
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>
41 </td>
42 </tr>
43 </tbody>
44 </table>
45 </div>
46 </div>
47 </div>
48 </div>
49 <button pButton pRipplelabel label="Save" class="p-button-help"></button>
50</form>
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.