funky-framadate-front/src/app/pages/dates/dates.component.html

59 lines
968 B
HTML
Raw Normal View History

2019-08-10 16:20:59 +02:00
<div i18n>
Config spécialement pour les dates
</div>
2019-08-12 14:40:33 +02:00
2019-08-10 16:20:59 +02:00
<div>
<select
name="multi_hours"
id="multi_hours"
[(ngModel)]="config.allowSeveralHours"
>
<option value="true">possiblement différents</option>
<option value="false">identiques</option>
2019-08-10 16:20:59 +02:00
</select>
2019-08-12 14:40:33 +02:00
2019-08-10 16:57:36 +02:00
<label for="multi_hours">
<span i18n>
Je souhaite mettre des créneaux horaires
</span>
2019-08-12 14:40:33 +02:00
2019-08-10 16:57:36 +02:00
<span i18n>
pour chaque journée
</span>
2019-08-10 16:20:59 +02:00
</label>
</div>
2019-08-12 14:40:33 +02:00
2019-08-10 16:20:59 +02:00
<button
class="btn btn-primary"
(click)="addDate()"
i18n
>
2019-08-10 16:20:59 +02:00
Ajouter une plage de dates
</button>
<div class="dates-list">
{{config.dateList.length}}
<span i18n>
choix de Dates
</span>
2019-08-12 14:40:33 +02:00
2019-08-10 16:20:59 +02:00
<div
2019-08-12 14:40:33 +02:00
*ngFor="let choice of config.dateList; index as id"
class="date-choice"
>
2019-08-12 14:40:33 +02:00
<input
type="text"
name="dateChoices[]"
[(ngModel)]="choice.literal"
>
<button (click)="config.dateList.splice(id, 1)">X</button>
2019-08-10 16:20:59 +02:00
</div>
</div>
2019-08-12 14:40:33 +02:00
<a
[routerLink]="'/step/end'"
class="btn btn-block"
2019-08-12 14:40:33 +02:00
>
C'est parfait!
</a>