Ignore:
Timestamp:
10/19/21 16:40:43 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
6a80231
Parents:
eed0bf8
Message:

location-form

File:
1 edited

Legend:

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

    reed0bf8 r188ee53  
    33<div class="example-form">
    44
    5   <div class="d-block">
     5  <div class="form-group">
    66    <button class="btn" (click)="chooseCityOption()" >
    77      City
     
    3535    <mat-form-field appearance="fill" class="example-full-width">
    3636      <mat-label>Please select a city</mat-label>
    37       <mat-select [(ngModel)]="locationId" placeholder="Select city">
     37      <mat-select [(ngModel)]="cityId" placeholder="Select city">
    3838        <mat-option [value]="city.id" *ngFor="let city of cities" [value]="city.id"> {{city.name}}</mat-option>
    3939      </mat-select>
    4040    </mat-form-field>
    4141  </div>
     42
    4243
    4344  <div *ngIf="regionOption">
     
    6263  <mat-form-field class="example-full-width" appearance="fill">
    6364    <mat-label>Please select a number of days</mat-label>
    64     <input matInput placeholder="No. Days"  type="number" [(ngModel)]="lengthOfStay">
     65    <input matInput placeholder="No. Days"  type="number" min="1" value="0" max="30" [constraintMaxNumberDays()] [(ngModel)]="lengthOfStay">
    6566  </mat-form-field>
    6667
     
    6869  <mat-chip-list  selectable multiple>
    6970    <mat-chip #c="matChip" selected *ngFor="let category of categories"
    70     (click)="toggleSelection(c, category)" >
     71    (click)="toggleSelection(c, category)">
    7172  <mat-icon *ngIf="!c.selected" >check</mat-icon>
    7273  {{category.name}}
    7374  </mat-chip>
    7475  </mat-chip-list>
     76  <br>
    7577  <button mat-raised-button color="primary" (click)="createMyPlanner()">Create my planner</button>
    76 
    7778
    7879</div>
Note: See TracChangeset for help on using the changeset viewer.