2020-01-20 15:15:06 +01:00
|
|
|
<div i18n >
|
2019-11-15 15:19:42 +01:00
|
|
|
{{"dates.title"|translate}}
|
2020-01-20 15:15:06 +01:00
|
|
|
</div >
|
2019-08-12 14:40:33 +02:00
|
|
|
|
2020-01-20 15:15:06 +01:00
|
|
|
<div >
|
|
|
|
<label for="multi_hours" >
|
|
|
|
<span >
|
2019-11-19 14:23:51 +01:00
|
|
|
{{"dates.hours_different"|translate}}
|
2020-01-20 15:15:06 +01:00
|
|
|
</span >
|
2019-11-15 15:19:42 +01:00
|
|
|
<select
|
|
|
|
[(ngModel)]="config.allowSeveralHours"
|
2019-11-19 14:42:59 +01:00
|
|
|
id="multi_hours"
|
|
|
|
name="multi_hours"
|
2019-11-15 15:19:42 +01:00
|
|
|
>
|
2020-01-20 15:15:06 +01:00
|
|
|
<option value="true" >{{"dates.multiple.different"|translate}}</option >
|
|
|
|
<option value="false" >{{"dates.multiple.identical"|translate}}</option >
|
|
|
|
</select >
|
|
|
|
<span i18n >
|
2019-11-19 14:23:51 +01:00
|
|
|
{{"dates.hours_each_day"|translate}}
|
2020-01-20 15:15:06 +01:00
|
|
|
</span >
|
|
|
|
</label >
|
|
|
|
</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
|
|
|
(click)="addDate()"
|
2019-11-19 14:42:59 +01:00
|
|
|
class="btn btn-primary"
|
2019-11-15 15:19:42 +01:00
|
|
|
id="add_date_button"
|
|
|
|
>
|
|
|
|
{{"dates.add"|translate}}
|
2020-01-20 15:15:06 +01:00
|
|
|
</button >
|
2019-11-19 14:23:51 +01:00
|
|
|
<button
|
|
|
|
(click)="showDateInterval = !showDateInterval "
|
2019-11-19 14:42:59 +01:00
|
|
|
[ngClass]="{active: showDateInterval}"
|
|
|
|
class="btn btn-primary"
|
2019-11-19 14:23:51 +01:00
|
|
|
id="toggle_interval_button"
|
|
|
|
>
|
|
|
|
{{"dates.add_interval"|translate}}
|
2020-01-20 15:15:06 +01:00
|
|
|
</button >
|
2019-11-15 15:19:42 +01:00
|
|
|
|
|
|
|
<button
|
|
|
|
(click)="emptyAll()"
|
2019-11-19 14:42:59 +01:00
|
|
|
class="btn btn-warning"
|
2019-11-15 15:19:42 +01:00
|
|
|
id="empty_button"
|
|
|
|
>{{"dates.empty"|translate}}
|
2020-01-20 15:15:06 +01:00
|
|
|
</button >
|
|
|
|
<section
|
|
|
|
*ngIf="showDateInterval"
|
|
|
|
class="date-interval" >
|
2019-11-19 14:23:51 +01:00
|
|
|
<!-- TODO à mettre en popup-->
|
2020-01-20 15:15:06 +01:00
|
|
|
<hr >
|
|
|
|
<h2 > {{"dates.add_interval"|translate}}</h2 >
|
|
|
|
<p >
|
2019-11-19 14:42:59 +01:00
|
|
|
{{"dates.interval_propose"|translate}}
|
2020-01-20 15:15:06 +01:00
|
|
|
<input
|
|
|
|
(change)="countDays()"
|
|
|
|
[(ngModel)]="startDateInterval"
|
|
|
|
type="date" >
|
2019-11-19 14:42:59 +01:00
|
|
|
{{"dates.interval_span"|translate}}
|
2020-01-20 15:15:06 +01:00
|
|
|
<input
|
|
|
|
(change)="countDays()"
|
|
|
|
[(ngModel)]="endDateInterval"
|
|
|
|
type="date" >
|
|
|
|
</p >
|
|
|
|
<button
|
|
|
|
(click)="addIntervalOfDates()"
|
|
|
|
class="btn btn-block" >
|
2019-11-19 14:42:59 +01:00
|
|
|
{{"dates.interval_button"|translate}}
|
|
|
|
{{intervalDays}}
|
|
|
|
{{"dates.interval_button_dates"|translate}}
|
2020-01-20 15:15:06 +01:00
|
|
|
</button >
|
|
|
|
<hr >
|
|
|
|
</section >
|
|
|
|
<div class="dates-list" >
|
|
|
|
<span class="count-dates" >
|
2019-11-19 14:42:59 +01:00
|
|
|
{{config.timeList.length}}
|
2020-01-20 15:15:06 +01:00
|
|
|
</span >
|
|
|
|
<span class="count-dates-txt" >
|
2019-11-19 14:42:59 +01:00
|
|
|
{{"dates.count_time"|translate}}
|
2020-01-20 15:15:06 +01:00
|
|
|
</span >
|
2019-11-19 11:18:58 +01:00
|
|
|
<button
|
2019-11-19 14:48:27 +01:00
|
|
|
(click)="addTime()"
|
2019-11-19 14:42:59 +01:00
|
|
|
*ngIf="config.allowSeveralHours=='false'"
|
2019-11-19 11:18:58 +01:00
|
|
|
class="btn btn-primary pull-right"
|
|
|
|
id="add_time_button"
|
|
|
|
>
|
2019-11-19 14:42:59 +01:00
|
|
|
{{"dates.add_time"|translate}}
|
2020-01-20 15:15:06 +01:00
|
|
|
</button >
|
2019-11-19 11:18:58 +01:00
|
|
|
|
2019-11-15 15:19:42 +01:00
|
|
|
<div
|
|
|
|
*ngIf="'false'==config.allowSeveralHours"
|
2019-11-19 14:42:59 +01:00
|
|
|
class="identical-dates"
|
2019-11-15 15:19:42 +01:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
*ngFor="let choice of config.timeList; index as id"
|
2019-11-19 14:42:59 +01:00
|
|
|
class="time-choice"
|
2019-11-15 15:19:42 +01:00
|
|
|
>
|
|
|
|
<input
|
|
|
|
[(ngModel)]="choice.literal"
|
2019-11-19 14:42:59 +01:00
|
|
|
name="timeChoices_{{id}}"
|
2020-01-15 17:55:22 +01:00
|
|
|
type="name"
|
2019-11-15 15:19:42 +01:00
|
|
|
>
|
2020-01-20 15:15:06 +01:00
|
|
|
<button
|
|
|
|
(click)="config.timeList.splice(id, 1)"
|
|
|
|
class="btn btn-warning" >X
|
|
|
|
</button >
|
|
|
|
</div >
|
|
|
|
</div >
|
|
|
|
<hr >
|
|
|
|
<span class="count-dates" >
|
2019-11-19 14:42:59 +01:00
|
|
|
{{config.dateList.length}}
|
2020-01-20 15:15:06 +01:00
|
|
|
</span >
|
|
|
|
<span >
|
2019-11-15 15:19:42 +01:00
|
|
|
{{"dates.count_dates"|translate}}
|
2020-01-20 15:15:06 +01:00
|
|
|
</span >
|
2019-11-15 15:19:42 +01:00
|
|
|
<div
|
|
|
|
*ngFor="let choice of config.dateList; index as id"
|
|
|
|
class="date-choice"
|
|
|
|
>
|
|
|
|
<input
|
|
|
|
[(ngModel)]="choice.literal"
|
2019-11-19 14:42:59 +01:00
|
|
|
name="dateChoices_{{id}}"
|
|
|
|
type="date"
|
2019-11-15 15:19:42 +01:00
|
|
|
>
|
|
|
|
<button
|
|
|
|
(click)="config.dateList.splice(id, 1)"
|
2019-11-19 14:42:59 +01:00
|
|
|
class="btn btn-warning"
|
2019-11-15 15:19:42 +01:00
|
|
|
>X
|
2020-01-20 15:15:06 +01:00
|
|
|
</button >
|
2019-11-15 15:19:42 +01:00
|
|
|
<button
|
2019-11-19 14:48:27 +01:00
|
|
|
(click)="addTimeToDate(choice, id)"
|
2019-11-19 11:18:58 +01:00
|
|
|
*ngIf="config.allowSeveralHours=='true'"
|
2019-11-15 15:19:42 +01:00
|
|
|
class="btn btn-primary"
|
2019-11-19 11:21:58 +01:00
|
|
|
>
|
2019-11-19 11:23:42 +01:00
|
|
|
{{"dates.add_time"|translate}}
|
2020-01-20 15:15:06 +01:00
|
|
|
</button >
|
2019-11-15 15:19:42 +01:00
|
|
|
<div
|
|
|
|
*ngIf="'true'==config.allowSeveralHours"
|
2019-11-19 14:42:59 +01:00
|
|
|
class="several-times"
|
2019-11-15 15:19:42 +01:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
*ngFor="let time of choice.timeList; index as idTime"
|
2019-11-19 14:42:59 +01:00
|
|
|
class="time-choice"
|
2019-11-15 15:19:42 +01:00
|
|
|
>
|
|
|
|
<input
|
|
|
|
[(ngModel)]="time.literal"
|
2019-11-19 14:42:59 +01:00
|
|
|
name="dateTime_{{id}}_Choices_{{idTime}}"
|
2020-01-15 17:55:22 +01:00
|
|
|
type="name"
|
2019-11-15 15:19:42 +01:00
|
|
|
>
|
|
|
|
<button
|
2019-11-19 11:18:58 +01:00
|
|
|
(click)="choice.timeList.splice(idTime, 1)"
|
2019-11-19 14:42:59 +01:00
|
|
|
class="btn btn-warning"
|
2019-11-15 15:19:42 +01:00
|
|
|
>X
|
2020-01-20 15:15:06 +01:00
|
|
|
</button >
|
|
|
|
</div >
|
|
|
|
</div >
|
|
|
|
</div >
|
|
|
|
</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'"
|
2020-01-20 15:15:06 +01:00
|
|
|
class="btn btn--full btn--primary"
|
2019-08-12 14:40:33 +02:00
|
|
|
>
|
2019-11-15 15:19:42 +01:00
|
|
|
C'est parfait!
|
2020-01-20 15:15:06 +01:00
|
|
|
</a >
|
|
|
|
<a
|
|
|
|
[routerLink]="'/step/home'"
|
|
|
|
class="prev"
|
|
|
|
>
|
|
|
|
Retour
|
|
|
|
</a >
|