source: trip-planner-front/src/app/create-initial-planner/create-initial-planner.component.html@ 59329aa

Last change on this file since 59329aa was 6c1585f, checked in by Ema <ema_spirova@…>, 3 years ago

edit planner form with angular

  • Property mode set to 100644
File size: 746 bytes
Line 
1<form (ngSubmit)="onFormSubmitPlanner(f)" #f="ngForm">
2 <h1 mat-dialog-title>Hi </h1>
3 <div mat-dialog-content>
4 <p>Planner name</p>
5 <mat-form-field appearance="fill">
6 <input matInput required type="text" [(ngModel)]="planner.name" name="name" placeholder="Planner name">
7 </mat-form-field>
8 <p>Planner description</p>
9 <mat-form-field appearance="fill">
10 <textarea matInput required name="description" [(ngModel)]="planner.description" type="text" placeholder="Planner description"></textarea>
11 </mat-form-field>
12 </div>
13 <div mat-dialog-actions>
14
15 <button mat-button type="submit" [disabled]="!f.form.valid" >Save</button>
16 </div>
17</form>
18
19<button mat-button (click)="onCancelClick()">Cancel</button>
Note: See TracBrowser for help on using the repository browser.