All files / app/pages/accomodation-page accomodation-page.component.html

100% Statements 218/218
100% Branches 2/2
100% Functions 1/1
100% Lines 218/218

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 2191x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
<grt-header-element
	[showReqCall]="false"
	[showTrips]="true"
	[indexPage]="false"
	[showCustReview]="true"
	[showContactUs]="true"
></grt-header-element>
<div class="accom">
	<div class="inner is-smaller margin100">
		<a (click)="back()" class="link-back pointer">Back</a>
		<h1 class="left h-main">Accommodation - Almost done!</h1>
		<div class="flex4">
			<h6 class="left">How many rooms do you need in each city?</h6>
			<div class="quantity">
				<button (click)="roomsDec()" class="btn btn-minus" type="button" name="button">
					<img loading="lazy" src="/assets/images/minus.png" width="12px" height="2px" alt="minus" />
				</button>
				{{ rooms.length }}
				<button (click)="roomsInc()" class="btn btn-plus" type="button" name="button">
					<img loading="lazy" src="/assets/images/plus.png" width="12px" height="12px" alt="plusIcon" />
				</button>
			</div>
		</div>
		<grt-line-element></grt-line-element>
		@for (room of rooms; track room; let i = $index) {
			<div>
				<h6 class="left">Room {{ i + 1 }}</h6>
				<div class="cols">
					<div class="cols-col">
						<p class="left">Adults</p>
						<div class="quantity">
							<button (click)="adultDecApi(i)" class="btn btn-minus" type="button" name="button">
								<img loading="lazy" src="/assets/images/minus.png" width="12px" height="2px" alt="minusIcon" />
							</button>
							{{ room.adults }}
							<button (click)="adultIncApi(i)" class="btn btn-plus" type="button" name="button">
								<img loading="lazy" src="/assets/images/plus.png" width="12px" height="12px" alt="plusIcon" />
							</button>
							plusIcon
						</div>
						<p class="left">Children</p>
						<div class="quantity">
							<button (click)="kidsDecApi(i)" class="btn btn-minus" type="button" name="button">
								<img loading="lazy" src="/assets/images/minus.png" width="12px" height="2px" alt="minusIcon" />
							</button>
							{{ room.children }}
							<button (click)="kidsIncApi(i)" class="btn btn-plus" type="button" name="button">
								<img loading="lazy" src="/assets/images/plus.png" width="12px" height="12px" alt="plusIcon" />
							</button>
							plusIcon
						</div>
					</div>
					<div class="cols-col cols-col-age">
						@for (age of room.children_ages; track age; let k = $index) {
							<div>
								<p class="left">Age of child</p>
								<div class="quantity">
									<button (click)="ageDecApi(i, k)" class="btn btn-minus" type="button" name="button">
										<img loading="lazy" src="/assets/images/minus.png" width="12px" height="2px" alt="minusIcon" />
									</button>
									{{ age }}
									<button (click)="ageIncApi(i, k)" class="btn btn-plus" type="button" name="button">
										<img loading="lazy" src="/assets/images/plus.png" width="12px" height="12px" alt="plusIcon" />
									</button>
									plusIcon
								</div>
							</div>
						}
					</div>
				</div>
			</div>
		}
 
		<grt-line-element></grt-line-element>
		<h6 class="left">What is your bed preference?</h6>
		<div>
			<label class="label" (click)="setBedSize('indifferent')">
				Indifferent
				<input type="radio" name="bedsize" value="indifferent" [ngModel]="bedsize" />
				<span class="checkmark"></span>
			</label>
			<label class="label" (click)="setBedSize('double_bed')">
				Double bed
				<input type="radio" name="bedsize" value="double_bed" [ngModel]="bedsize" />
				<span class="checkmark"></span>
			</label>
 
			<label class="label" (click)="setBedSize('twin_bed')">
				Twin bed
				<input type="radio" name="bedsize" value="twin_bed" [ngModel]="bedsize" />
				<span class="checkmark"></span>
			</label>
		</div>
		<grt-line-element></grt-line-element>
		<h6 class="left">Preferred hotel star rating?</h6>
		<div class="box-stars">
			<span (click)="setRating(1)" class="box-stars-star pointer">
				@if (rating < 1) {
					<img loading="lazy" src="/assets/images/star-empty.png" width="30px" height="30px" alt="star-empty" />
				}
				@if (rating >= 1) {
					<img loading="lazy" src="/assets/images/star-full.png" width="30px" height="30px" alt="star-full" />
				}
			</span>
			<span (click)="setRating(2)" class="box-stars-star pointer">
				@if (rating < 2) {
					<img loading="lazy" src="/assets/images/star-empty.png" width="30px" height="30px" alt="star-empty" />
				}
				@if (rating >= 2) {
					<img loading="lazy" src="/assets/images/star-full.png" width="30px" height="30px" alt="star-full" />
				}
			</span>
			<span (click)="setRating(3)" class="box-stars-star pointer">
				@if (rating < 3) {
					<img loading="lazy" src="/assets/images/star-empty.png" width="30px" height="30px" alt="star-empty" />
				}
				@if (rating >= 3) {
					<img loading="lazy" src="/assets/images/star-full.png" width="30px" height="30px" alt="star-full" />
				}
			</span>
			<span (click)="setRating(4)" class="box-stars-star pointer">
				@if (rating < 4) {
					<img loading="lazy" src="/assets/images/star-empty.png" width="30px" height="30px" alt="star-empty" />
				}
				@if (rating >= 4) {
					<img loading="lazy" src="/assets/images/star-full.png" width="30px" height="30px" alt="star-full" />
				}
			</span>
			<span (click)="setRating(5)" class="box-stars-star pointer">
				@if (rating < 5) {
					<img loading="lazy" src="/assets/images/star-empty.png" width="30px" height="30px" alt="star-empty" />
				}
				@if (rating >= 5) {
					<img loading="lazy" src="/assets/images/star-full.png" width="30px" height="30px" alt="star-full" />
				}
			</span>
		</div>
		<grt-line-element></grt-line-element>
		<h6 class="left">Do you want to have breakfast included?</h6>
		<div>
			<label class="label" (click)="setBreakfast(true)">
				Yes
				<input type="radio" name="breakfast" [value]="true" [ngModel]="breakfast" />
				<span class="checkmark"></span>
			</label>
			<label class="label" (click)="setBreakfast(false)"
				>No
				<input type="radio" name="breakfast" [value]="false" [ngModel]="breakfast" />
				<span class="checkmark"></span>
			</label>
		</div>
 
		<grt-line-element></grt-line-element>
		<h6 class="left">What features would you like in your hotel?</h6>
		<div class="row">
			<div class="col-sm-3 col-xs-6 feature-box" [class.box-active]="hotelFeatures.indexOf('elevator') > -1">
				<div class="box" (click)="toogleFeature('elevator')"></div>
				<div class="title">ELEVATOR</div>
			</div>
			<div class="col-sm-3 col-xs-6 feature-box" [class.box-active]="hotelFeatures.indexOf('air_conditioned') > -1">
				<div class="box" (click)="toogleFeature('air_conditioned')"></div>
				<div class="title">AIR CONDITIONING</div>
			</div>
			<div class="col-sm-3 col-xs-6 feature-box" [class.box-active]="hotelFeatures.indexOf('old_world_charm') > -1">
				<div class="box" (click)="toogleFeature('old_world_charm')"></div>
				<div class="title">OLD-WORLD CHARM</div>
			</div>
			<div
				class="col-sm-3 col-xs-6 feature-box"
				[class.box-active]="hotelFeatures.indexOf('services_and_amenities') > -1"
			>
				<div class="box" (click)="toogleFeature('services_and_amenities')"></div>
				<div class="title">24/7 Reception</div>
			</div>
		</div>
		<div class="included m-b-150">
			<h6 class="left">Included in your itinerary</h6>
			<div class="cols">
				<div class="col">
					<img loading="lazy" src="/assets/images/city.png" height="20px" width="20px" alt="city" />
					<p class="left">Central Location</p>
				</div>
				<div class="col">
					<img loading="lazy" src="/assets/images/star.png" height="20px" width="20px" alt="star" />
					<p class="left">Highly rated hotels</p>
				</div>
				<div class="col">
					<img loading="lazy" src="/assets/images/stars.png" height="20px" width="20px" alt="stars" />
					<p class="left">100% clean & comfortable rooms</p>
				</div>
			</div>
		</div>
 
		<div class="sum-fixed is-smaller">
			<grt-line-element></grt-line-element>
			<div class="summary inner is-smaller top-bordered">
				<div class="summary-cols">
					<div class="summary-cols-left">
						<p class="summary-cols-left-text left">Your itinerary includes:</p>
						<p class="summary-cols-left-text left bold max-100-px-overflow">
							{{ addedCitiesNamesBottom }}
						</p>
					</div>
				</div>
				<div class="summary-cols-right">
					@if (userJourneyService.showDayCountInSummaryFooter()) {
						<p class="summary-cols-right-text">
							{{ daysOfTrip }}
						</p>
					}
					<a (click)="nextStep()">
						<button class="btn btn-green form__submit uppercase">continue</button>
					</a>
				</div>
			</div>
		</div>
	</div>
</div>