2019-08-10 16:20:59 +02:00
|
|
|
<div i18n>
|
2019-11-15 15:19:42 +01:00
|
|
|
{{"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>
|
2019-11-15 15:19:42 +01:00
|
|
|
<label for="multi_hours">
|
2019-08-10 16:57:36 +02:00
|
|
|
<span i18n>
|
|
|
|
Je souhaite mettre des créneaux horaires
|
|
|
|
</span>
|
2019-11-15 15:19:42 +01:00
|
|
|
<select
|
|
|
|
name="multi_hours"
|
|
|
|
id="multi_hours"
|
|
|
|
[(ngModel)]="config.allowSeveralHours"
|
|
|
|
>
|
|
|
|
<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>
|
2019-11-15 15:19:42 +01:00
|
|
|
</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
|
2019-11-15 15:19:42 +01:00
|
|
|
class="btn btn-primary"
|
|
|
|
(click)="addDate()"
|
|
|
|
id="add_date_button"
|
|
|
|
>
|
|
|
|
{{"dates.add"|translate}}
|
|
|
|
</button>
|
2019-11-19 11:18:58 +01:00
|
|
|
|
2019-11-15 15:19:42 +01:00
|
|
|
|
|
|
|
<button
|
|
|
|
class="btn btn-warning"
|
|
|
|
(click)="emptyAll()"
|
|
|
|
id="empty_button"
|
|
|
|
>{{"dates.empty"|translate}}
|
2019-08-10 16:20:59 +02:00
|
|
|
</button>
|
|
|
|
<div class="dates-list">
|
2019-11-19 11:18:58 +01:00
|
|
|
<span class="count-dates">
|
2019-11-15 15:19:42 +01:00
|
|
|
{{config.dateList.length}}
|
2019-11-19 11:18:58 +01:00
|
|
|
</span>
|
|
|
|
<span class="count-dates-txt">
|
2019-10-24 16:08:56 +02:00
|
|
|
{{"dates.count_dates"|translate}}
|
|
|
|
</span>
|
2019-11-19 11:18:58 +01:00
|
|
|
<button
|
|
|
|
class="btn btn-primary pull-right"
|
|
|
|
(click)="addtime()"
|
|
|
|
id="add_time_button"
|
|
|
|
*ngIf="config.allowSeveralHours=='false'"
|
|
|
|
>
|
|
|
|
{{"dates.addTime"|translate}}
|
|
|
|
</button>
|
|
|
|
|
2019-11-15 15:19:42 +01:00
|
|
|
<div
|
|
|
|
class="identical-dates"
|
|
|
|
*ngIf="'false'==config.allowSeveralHours"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="time-choice"
|
|
|
|
*ngFor="let choice of config.timeList; index as id"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
name="timeChoices_{{id}}"
|
|
|
|
[(ngModel)]="choice.literal"
|
|
|
|
>
|
2019-11-19 11:18:58 +01:00
|
|
|
<button class="btn btn-warning" (click)="config.timeList.splice(id, 1)">X</button>
|
2019-11-15 15:19:42 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<span>
|
|
|
|
{{"dates.count_dates"|translate}}
|
|
|
|
</span>
|
|
|
|
<div
|
|
|
|
*ngFor="let choice of config.dateList; index as id"
|
|
|
|
class="date-choice"
|
|
|
|
>
|
|
|
|
<input
|
2019-11-19 11:18:58 +01:00
|
|
|
type="date"
|
2019-11-15 15:19:42 +01:00
|
|
|
name="dateChoices_{{id}}"
|
|
|
|
[(ngModel)]="choice.literal"
|
|
|
|
>
|
|
|
|
<button
|
|
|
|
class="btn btn-warning"
|
|
|
|
(click)="config.dateList.splice(id, 1)"
|
|
|
|
>X
|
|
|
|
</button>
|
|
|
|
<button
|
2019-11-19 11:18:58 +01:00
|
|
|
*ngIf="config.allowSeveralHours=='true'"
|
2019-11-15 15:19:42 +01:00
|
|
|
class="btn btn-primary"
|
|
|
|
(click)="addTimetoDate(choice, id)"
|
2019-11-19 11:21:58 +01:00
|
|
|
>
|
2019-11-19 11:23:42 +01:00
|
|
|
{{"dates.add_time"|translate}}
|
2019-11-15 15:19:42 +01:00
|
|
|
</button>
|
|
|
|
<div
|
|
|
|
class="several-times"
|
|
|
|
*ngIf="'true'==config.allowSeveralHours"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="time-choice"
|
|
|
|
*ngFor="let time of choice.timeList; index as idTime"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
type="text"
|
|
|
|
name="dateTime_{{id}}_Choices_{{idTime}}"
|
|
|
|
[(ngModel)]="time.literal"
|
|
|
|
>
|
|
|
|
<button
|
|
|
|
class="btn btn-warning"
|
2019-11-19 11:18:58 +01:00
|
|
|
(click)="choice.timeList.splice(idTime, 1)"
|
2019-11-15 15:19:42 +01:00
|
|
|
>X
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-08-10 16:20:59 +02:00
|
|
|
</div>
|
2019-08-12 14:40:33 +02:00
|
|
|
|
2019-08-11 17:10:09 +02:00
|
|
|
<a
|
2019-11-15 15:19:42 +01:00
|
|
|
[routerLink]="'/step/end'"
|
|
|
|
class="btn btn-block"
|
2019-08-12 14:40:33 +02:00
|
|
|
>
|
2019-11-15 15:19:42 +01:00
|
|
|
C'est parfait!
|
2019-08-11 17:10:09 +02:00
|
|
|
</a>
|