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

57 lines
1.1 KiB
HTML
Raw Normal View History

2019-08-10 16:20:59 +02:00
<div i18n>
{{"dates.title"|translate}}
2019-08-10 16:20:59 +02:00
</div>
2019-08-12 14:40:33 +02:00
2019-08-10 16:20:59 +02:00
<div>
<label for="multi_hours">
2019-08-10 16:57:36 +02:00
<span i18n>
Je souhaite mettre des créneaux horaires
</span>
<select
name="multi_hours"
id="multi_hours"
[(ngModel)]="config.allowSeveralHours"
>
2019-10-14 22:36:58 +02:00
<option value="true">{{"dates.multiple.different"|translate}}</option>
<option value="false">{{"dates.multiple.identical"|translate}}</option>
</select>
<span i18n>
2019-08-10 16:57:36 +02:00
pour chaque journée
</span>
</label>
2019-08-10 16:20:59 +02:00
</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
>
{{"dates.add"|translate}}
2019-08-10 16:20:59 +02:00
</button>
<div class="dates-list">
{{config.dateList.length}}
<span i18n>
{{"dates.count_dates"|translate}}
</span>
2019-08-12 14:40:33 +02:00
<div
*ngFor="let choice of config.dateList; index as id"
class="date-choice"
>
<input
type="text"
name="dateChoices[]"
[(ngModel)]="choice.literal"
>
2019-08-12 14:40:33 +02:00
<button (click)="config.dateList.splice(id, 1)">X</button>
</div>
2019-08-10 16:20:59 +02:00
</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>