-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: responsive orientation pages (#339)
- Loading branch information
1 parent
9425e8c
commit 1759c36
Showing
15 changed files
with
153 additions
and
108 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/features/adresse/components/address-field/address-field.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/features/orientation/components/nav-link/nav-link.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
142 changes: 74 additions & 68 deletions
142
src/features/orientation/components/opening-hours-form/opening-hours-form.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,82 @@ | ||
<ng-container *ngFor="let openingHourGroup of openingHoursForm.controls ?? []; index as i; first as isFirst"> | ||
<app-text-separator *ngIf="!isFirst" class="my-4" background="light">OU</app-text-separator> | ||
<fieldset class="d-flex"> | ||
<app-text-separator *ngIf="!isFirst" class="mt-4" background="light">OU</app-text-separator> | ||
<fieldset> | ||
<legend class="visually-hidden"> | ||
Filtre horaire num茅ro {{ i + 1 }} | ||
<span *ngIf="openingHourGroup.valid">(valide)</span> | ||
</legend> | ||
<i class="text-primary py-1 me-2 ri-check-line" [class.invisible]="openingHourGroup.invalid" aria-hidden="true"></i> | ||
<div class="col-md col-sm-12"> | ||
<label [for]="'jour-ouverture-' + i" class="visually-hidden">Choix du jour d'ouverture</label> | ||
<select | ||
[id]="'jour-ouverture-' + i" | ||
class="form-select" | ||
[formControl]="openingHourGroup.controls.day" | ||
aria-label="Jour d'ouverture" | ||
(change)="onDaySelect(openingHourGroup); onAddOpeningHourGroup(i)"> | ||
<option value="" disabled selected>Choisir un jour</option> | ||
<option value="now">Ouvert Maintenant</option> | ||
<option value="all">Tous les jours</option> | ||
<option value="mo">Lundi</option> | ||
<option value="tu">Mardi</option> | ||
<option value="we">Mercredi</option> | ||
<option value="th">Jeudi</option> | ||
<option value="fr">Vendredi</option> | ||
<option value="sa">Samedi</option> | ||
<option value="su">Dimanche</option> | ||
</select> | ||
<div class="d-flex"> | ||
<i class="text-primary my-auto ri-check-line" [class.invisible]="openingHourGroup.invalid" aria-hidden="true"></i> | ||
<div class="row g-2 px-2 flex-grow-1"> | ||
<div class="col-sm col-12"> | ||
<label [for]="'jour-ouverture-' + i" class="visually-hidden">Choix du jour d'ouverture</label> | ||
<select | ||
[id]="'jour-ouverture-' + i" | ||
class="form-select" | ||
[formControl]="openingHourGroup.controls.day" | ||
aria-label="Jour d'ouverture" | ||
(change)="onDaySelect(openingHourGroup); onAddOpeningHourGroup(i)" | ||
(focusout)="updateFilterIfValid(i)"> | ||
<option value="" disabled selected>Choisir un jour</option> | ||
<option value="now">Ouvert Maintenant</option> | ||
<option value="all">Tous les jours</option> | ||
<option value="mo">Lundi</option> | ||
<option value="tu">Mardi</option> | ||
<option value="we">Mercredi</option> | ||
<option value="th">Jeudi</option> | ||
<option value="fr">Vendredi</option> | ||
<option value="sa">Samedi</option> | ||
<option value="su">Dimanche</option> | ||
</select> | ||
</div> | ||
<div class="col" *ngIf="openingHourGroup.controls.day.value && openingHourGroup.controls.day.value !== 'now'"> | ||
<ng-container *ngIf="openingHourGroup.controls.period.value !== 'hours'"> | ||
<label [for]="'plage-horaire-' + i" class="visually-hidden">Plage horaire</label> | ||
<select | ||
[id]="'plage-horaire-' + i" | ||
class="form-select" | ||
[formControl]="openingHourGroup.controls.period" | ||
(change)="onAddOpeningHourGroup(i)" | ||
(focusout)="updateFilterIfValid(i)" | ||
aria-label="Heures d'ouvertures"> | ||
<option value="" disabled selected>Heure de d茅but</option> | ||
<option value="all">Toute la journ茅e</option> | ||
<option value="hours">Choisir une heure...</option> | ||
</select> | ||
</ng-container> | ||
<ng-container *ngIf="openingHourGroup.controls.period.value === 'hours'"> | ||
<label [for]="'debut-' + i" class="visually-hidden">Heure de d茅but</label> | ||
<input | ||
[id]="'debut-' + i" | ||
[formControl]="openingHourGroup.controls.start" | ||
(change)="onAddOpeningHourGroup(i)" | ||
(focusout)="updateFilterIfValid(i)" | ||
class="form-control" | ||
type="time" | ||
name="start" /> | ||
</ng-container> | ||
</div> | ||
<div class="col" *ngIf="openingHourGroup.controls.period.value === 'hours'"> | ||
<label [for]="'fin-' + i" class="visually-hidden">Heure de fin</label> | ||
<input | ||
[id]="'fin-' + i" | ||
[formControl]="openingHourGroup.controls.end" | ||
(change)="onAddOpeningHourGroup(i)" | ||
(focusout)="updateFilterIfValid(i)" | ||
class="form-control" | ||
type="time" | ||
name="end" /> | ||
</div> | ||
</div> | ||
<button | ||
type="button" | ||
class="btn btn-link link-dark opacity-75 text-decoration-none p-0" | ||
[class.invisible]="openingHourGroup.controls.day.value === ''" | ||
title="Supprimer cette ligne" | ||
(click)="removeOpeningHours(i)"> | ||
<i class="ri-close-line" aria-hidden="true"></i> | ||
<span class="visually-hidden">Supprimer le filtre horaire num茅ro {{ i }}</span> | ||
</button> | ||
</div> | ||
<div | ||
class="col-md-4 col-sm-12 ms-1" | ||
*ngIf="openingHourGroup.controls.day.value && openingHourGroup.controls.day.value !== 'now'"> | ||
<ng-container *ngIf="openingHourGroup.controls.period.value !== 'hours'"> | ||
<label [for]="'plage-horaire-' + i" class="visually-hidden">Plage horaire</label> | ||
<select | ||
[id]="'plage-horaire-' + i" | ||
class="form-select" | ||
[formControl]="openingHourGroup.controls.period" | ||
(change)="onAddOpeningHourGroup(i)" | ||
aria-label="Heures d'ouvertures"> | ||
<option value="" disabled selected>Heure de d茅but</option> | ||
<option value="all">Toute la journ茅e</option> | ||
<option value="hours">Choisir une heure...</option> | ||
</select> | ||
</ng-container> | ||
<ng-container *ngIf="openingHourGroup.controls.period.value === 'hours'"> | ||
<label [for]="'debut-' + i" class="visually-hidden">Heure de d茅but</label> | ||
<input | ||
[id]="'debut-' + i" | ||
[formControl]="openingHourGroup.controls.start" | ||
(change)="onAddOpeningHourGroup(i)" | ||
class="form-control" | ||
type="time" | ||
name="start" /> | ||
</ng-container> | ||
</div> | ||
<div class="col-4 ms-2" *ngIf="openingHourGroup.controls.period.value === 'hours'"> | ||
<label [for]="'fin-' + i" class="visually-hidden">Heure de fin</label> | ||
<input | ||
[id]="'fin-' + i" | ||
[formControl]="openingHourGroup.controls.end" | ||
(change)="onAddOpeningHourGroup(i)" | ||
class="form-control" | ||
type="time" | ||
name="end" /> | ||
</div> | ||
<button | ||
*ngIf="openingHoursForm.controls.length > 1" | ||
type="button" | ||
class="btn btn-link link-dark opacity-75 text-decoration-none" | ||
title="Supprimer cette ligne" | ||
(click)="removeOpeningHours(i)"> | ||
<i class="ri-close-line" aria-hidden="true"></i> | ||
<span class="visually-hidden">Supprimer le filtre horaire num茅ro {{ i }}</span> | ||
</button> | ||
</fieldset> | ||
</ng-container> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
src/features/orientation/components/text-separator/text-separator.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.