- Timestamp:
- 12/28/21 08:56:55 (3 years ago)
- Branches:
- master
- Children:
- b738035
- Parents:
- 84d0fbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/src/app/planner/edit-planner/edit-planner.component.html
r84d0fbb rbdd6491 1 <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x" crossorigin="anonymous"> 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"> 2 3 3 4 <h3>Here you can edit your planner</h3> 4 5 5 <form [formGroup] ="form" (ngSubmit)="onSubmit()">6 <form [formGroup]="form" (ngSubmit)="onSubmit()"> 6 7 <div class="form-gorup"> 7 8 <p>Planner name</p> 8 9 <mat-form-field appearance="fill"> 9 <input matInput required type="text" formControlName="name"placeholder="Planner name">10 <input matInput required type="text" formControlName="name" placeholder="Planner name"> 10 11 </mat-form-field> 11 12 <p>Planner description</p> 12 13 <mat-form-field appearance="fill"> 13 <textarea matInput required formControlName="description" type="text" placeholder="Planner description"></textarea> 14 <textarea matInput required formControlName="description" type="text" 15 placeholder="Planner description"></textarea> 14 16 </mat-form-field> 15 17 </div> 16 <div class="container mb-4" 18 <div class="container mb-4"> 17 19 <div class="row"> 18 20 <div class="col-12"> … … 20 22 <table class="table table-striped"> 21 23 <thead> 22 <tr>23 <th scope="col">Location name</th>24 </tr>24 <tr> 25 <th scope="col">Location name</th> 26 </tr> 25 27 </thead> 26 28 <tbody> 27 <tr> 28 <td> <button mat-raised-button color="primary" (click)="onClickAddLocation()"> 29 Add locations 30 </button> 31 </td> 32 </tr> 33 <tr *ngFor ="let location of locations"> 34 <td> 35 {{location.name}} 36 </td> 37 </tr> 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"></button> 41 </td> 42 </tr> 38 43 </tbody> 39 44 </table> … … 44 49 <button pButton pRipplelabel label="Save" class="p-button-help"></button> 45 50 </form> 46 <button pButton pRipple label="Back" class="p-button-info" (click)="onClickBack()" [style]="{'margin-left': '.11em'}"></button> 51 <button pButton pRipple label="Back" class="p-button-info" (click)="onClickBack()" 52 [style]="{'margin-left': '.11em'}"></button>
Note:
See TracChangeset
for help on using the changeset viewer.