Ignore:
Timestamp:
11/04/21 23:10:39 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
ceaed42
Parents:
6a80231
Message:

edit planner form with angular

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/src/app/planner/edit-planner/edit-planner.component.html

    r6a80231 r6c1585f  
    33<h3>Here you can edit your planner</h3>
    44
    5 <form>
     5<form [formGroup] = "form" (ngSubmit)="onSubmit()">
    66    <div class="form-gorup">
    77        <p>Planner name</p>
    88        <mat-form-field appearance="fill">
    9           <input matInput required   type="text" name="name"  placeholder="Planner name">
     9          <input matInput required type="text" formControlName="name"  placeholder="Planner name">
    1010        </mat-form-field>
    1111        <p>Planner description</p>
    1212        <mat-form-field appearance="fill">
    13           <textarea matInput required name="description"  type="text" placeholder="Planner description"></textarea>
     13          <textarea matInput required formControlName="description"  type="text" placeholder="Planner description"></textarea>
    1414        </mat-form-field>
    1515    </div>
     
    2525                        </thead>
    2626                        <tbody>
    27                         <tr>
    28                            
     27                        <tr>                           
    2928                            <td> <button mat-raised-button color="primary" (click)="onClickAddLocation()">
    3029                                 Add locations
     
    3837        </div>
    3938    </div>
    40     <button mat-raised-button color="primary" (click)="onClickSavePlanner()">
     39    <button mat-raised-button color="primary" >
    4140        <mat-icon>edit</mat-icon> Save
    4241      </button>
Note: See TracChangeset for help on using the changeset viewer.