[fa375fe] | 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">
|
---|
| 2 |
|
---|
[eed0bf8] | 3 | <div class="example-form">
|
---|
| 4 |
|
---|
[188ee53] | 5 | <div class="form-group">
|
---|
[eed0bf8] | 6 | <button class="btn" (click)="chooseCityOption()" >
|
---|
| 7 | City
|
---|
| 8 | </button>
|
---|
| 9 | <button class="btn" (click)="chooseRegionOption()">
|
---|
| 10 | Region
|
---|
| 11 | </button>
|
---|
| 12 | </div>
|
---|
| 13 | <br>
|
---|
| 14 | <br>
|
---|
| 15 |
|
---|
| 16 | <div *ngIf="cityOption">
|
---|
| 17 | <label><h5>Please select a city</h5></label>
|
---|
| 18 | <mat-form-field appearance="fill" class="example-full-width">
|
---|
| 19 | <mat-label>Please select a city</mat-label>
|
---|
[188ee53] | 20 | <mat-select [(ngModel)]="cityId" placeholder="Select city">
|
---|
[eed0bf8] | 21 | <mat-option [value]="city.id" *ngFor="let city of cities" [value]="city.id"> {{city.name}}</mat-option>
|
---|
| 22 | </mat-select>
|
---|
| 23 | </mat-form-field>
|
---|
| 24 | </div>
|
---|
| 25 |
|
---|
| 26 | <div *ngIf="regionOption">
|
---|
| 27 | <label><h5>Please select a region</h5></label>
|
---|
| 28 | <mat-form-field appearance="fill" class="example-full-width">
|
---|
| 29 | <mat-label>Please select a region</mat-label>
|
---|
| 30 | <mat-select [(ngModel)]="regionId" placeholder="Select region">
|
---|
| 31 | <mat-option [value]="region.id" *ngFor="let region of regions" [value]="region.id"> {{region.name}}</mat-option>
|
---|
| 32 | </mat-select>
|
---|
| 33 | </mat-form-field>
|
---|
| 34 | </div>
|
---|
[fa375fe] | 35 |
|
---|
| 36 | <h5>Who are you travelling with? </h5>
|
---|
| 37 | <mat-form-field appearance="fill" class="example-full-width">
|
---|
| 38 | <mat-label>Please select a companion</mat-label>
|
---|
[eed0bf8] | 39 | <mat-select [(ngModel)]="companionId" placeholder="Please select a companion">
|
---|
| 40 | <mat-option [value]="companion.id" *ngFor="let companion of companions">{{companion.type}}</mat-option>
|
---|
[fa375fe] | 41 | </mat-select>
|
---|
| 42 | </mat-form-field>
|
---|
| 43 |
|
---|
| 44 | <h5>How many days are you willing to stay ?</h5>
|
---|
| 45 | <mat-form-field class="example-full-width" appearance="fill">
|
---|
| 46 | <mat-label>Please select a number of days</mat-label>
|
---|
[188ee53] | 47 | <input matInput placeholder="No. Days" type="number" min="1" value="0" max="30" [constraintMaxNumberDays()] [(ngModel)]="lengthOfStay">
|
---|
[fa375fe] | 48 | </mat-form-field>
|
---|
| 49 |
|
---|
| 50 | <h5>What are your priorities to visit?</h5>
|
---|
[6a80231] | 51 | <mat-chip-list selectable multiple >
|
---|
[eed0bf8] | 52 | <mat-chip #c="matChip" selected *ngFor="let category of categories"
|
---|
[6a80231] | 53 | (click)="toggleSelection(c, category)" [ngClass]="{'yellow' : toggle}">
|
---|
[eed0bf8] | 54 | <mat-icon *ngIf="!c.selected" >check</mat-icon>
|
---|
[fa375fe] | 55 | {{category.name}}
|
---|
| 56 | </mat-chip>
|
---|
| 57 | </mat-chip-list>
|
---|
[188ee53] | 58 | <br>
|
---|
[eed0bf8] | 59 | <button mat-raised-button color="primary" (click)="createMyPlanner()">Create my planner</button>
|
---|
| 60 |
|
---|
| 61 | </div>
|
---|
| 62 | |
---|