|
|
|
@ -77,129 +77,139 @@
|
|
|
|
|
</button >
|
|
|
|
|
<hr >
|
|
|
|
|
</section >
|
|
|
|
|
<div class="dates-list " >
|
|
|
|
|
<div class='title' >
|
|
|
|
|
<div class='columns' >
|
|
|
|
|
<div class='column' >
|
|
|
|
|
<div class="dates-list " >
|
|
|
|
|
<div class='title' >
|
|
|
|
|
<span class="count-dates" >
|
|
|
|
|
{{config.timeList.length}}
|
|
|
|
|
</span >
|
|
|
|
|
<span class="count-dates-txt " >
|
|
|
|
|
<span class="count-dates-txt " >
|
|
|
|
|
{{"dates.count_time"|translate}}
|
|
|
|
|
(pour chaque jour)
|
|
|
|
|
(pour chaque jour)
|
|
|
|
|
</span >
|
|
|
|
|
|
|
|
|
|
</div >
|
|
|
|
|
<div class='actions' >
|
|
|
|
|
<button
|
|
|
|
|
(click)="addTime()"
|
|
|
|
|
*ngIf=" 'false' === config.allowSeveralHours "
|
|
|
|
|
class="btn btn--primary"
|
|
|
|
|
id="add_time_button"
|
|
|
|
|
>
|
|
|
|
|
<i class='fa fa-plus' ></i >
|
|
|
|
|
{{"dates.add_time"|translate}}
|
|
|
|
|
</button >
|
|
|
|
|
<button
|
|
|
|
|
(click)="removeAllTimes()"
|
|
|
|
|
*ngIf=" 'false' === config.allowSeveralHours "
|
|
|
|
|
class="btn btn--warning"
|
|
|
|
|
id="remove_time_button"
|
|
|
|
|
>
|
|
|
|
|
<i class='fa fa-trash' ></i >
|
|
|
|
|
Aucune plage horaire
|
|
|
|
|
</button >
|
|
|
|
|
<button
|
|
|
|
|
(click)="resetTimes()"
|
|
|
|
|
*ngIf=" 'false' === config.allowSeveralHours"
|
|
|
|
|
class="btn btn--warning"
|
|
|
|
|
id="reset_time_button"
|
|
|
|
|
>
|
|
|
|
|
<i class='fa fa-refresh' ></i >
|
|
|
|
|
réinitialiser
|
|
|
|
|
</button >
|
|
|
|
|
</div >
|
|
|
|
|
</div >
|
|
|
|
|
<div class='actions' >
|
|
|
|
|
<button
|
|
|
|
|
(click)="addTime()"
|
|
|
|
|
*ngIf=" 'false' === config.allowSeveralHours "
|
|
|
|
|
class="btn btn--primary"
|
|
|
|
|
id="add_time_button"
|
|
|
|
|
>
|
|
|
|
|
<i class='fa fa-plus' ></i >
|
|
|
|
|
{{"dates.add_time"|translate}}
|
|
|
|
|
</button >
|
|
|
|
|
<button
|
|
|
|
|
(click)="removeAllTimes()"
|
|
|
|
|
*ngIf=" 'false' === config.allowSeveralHours "
|
|
|
|
|
class="btn btn--warning"
|
|
|
|
|
id="remove_time_button"
|
|
|
|
|
>
|
|
|
|
|
<i class='fa fa-trash' ></i >
|
|
|
|
|
Aucune plage horaire
|
|
|
|
|
</button >
|
|
|
|
|
<button
|
|
|
|
|
(click)="resetTimes()"
|
|
|
|
|
*ngIf=" 'false' === config.allowSeveralHours"
|
|
|
|
|
class="btn btn--warning"
|
|
|
|
|
id="reset_time_button"
|
|
|
|
|
>
|
|
|
|
|
<i class='fa fa-refresh' ></i >
|
|
|
|
|
réinitialiser
|
|
|
|
|
</button >
|
|
|
|
|
</div >
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
*ngIf=" 'false' === config.allowSeveralHours"
|
|
|
|
|
class="identical-dates"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
*ngFor="let time of config.timeList; index as id"
|
|
|
|
|
class="time-choice"
|
|
|
|
|
>
|
|
|
|
|
<label for='timeChoices_{{id}}' >
|
|
|
|
|
<i class='fa fa-clock-o' ></i >
|
|
|
|
|
</label >
|
|
|
|
|
<input
|
|
|
|
|
[(ngModel)]="time.literal"
|
|
|
|
|
name="timeChoices_{{id}}"
|
|
|
|
|
type="text"
|
|
|
|
|
id='timeChoices_{{id}}'
|
|
|
|
|
<div
|
|
|
|
|
*ngIf=" 'false' === config.allowSeveralHours"
|
|
|
|
|
class="identical-dates"
|
|
|
|
|
>
|
|
|
|
|
<button
|
|
|
|
|
(click)="time.timeList.splice(id, 1)"
|
|
|
|
|
class="btn btn-warning" ><i class="fa fa-times" ></i >
|
|
|
|
|
</button >
|
|
|
|
|
</div >
|
|
|
|
|
</div >
|
|
|
|
|
<hr >
|
|
|
|
|
<span class="count-dates title" >
|
|
|
|
|
<div
|
|
|
|
|
*ngFor="let time of config.timeList; index as id"
|
|
|
|
|
class="time-choice"
|
|
|
|
|
>
|
|
|
|
|
<label for='timeChoices_{{id}}' >
|
|
|
|
|
<i class='fa fa-clock-o' ></i >
|
|
|
|
|
</label >
|
|
|
|
|
<input
|
|
|
|
|
[(ngModel)]="time.literal"
|
|
|
|
|
name="timeChoices_{{id}}"
|
|
|
|
|
type="text"
|
|
|
|
|
id='timeChoices_{{id}}'
|
|
|
|
|
>
|
|
|
|
|
<button
|
|
|
|
|
(click)="time.timeList.splice(id, 1)"
|
|
|
|
|
class="btn btn-warning" ><i class="fa fa-times" ></i >
|
|
|
|
|
</button >
|
|
|
|
|
</div >
|
|
|
|
|
</div >
|
|
|
|
|
<hr >
|
|
|
|
|
<span class="count-dates title" >
|
|
|
|
|
{{config.dateList.length}}
|
|
|
|
|
</span >
|
|
|
|
|
<span >
|
|
|
|
|
<span >
|
|
|
|
|
{{"dates.count_dates"|translate}}
|
|
|
|
|
</span >
|
|
|
|
|
<button
|
|
|
|
|
class='btn btn--primary'
|
|
|
|
|
(click)='addDate()' >
|
|
|
|
|
{{"dates.add"|translate}}
|
|
|
|
|
</button >
|
|
|
|
|
<div
|
|
|
|
|
*ngFor="let choice of config.dateList; index as id"
|
|
|
|
|
class="date-choice"
|
|
|
|
|
>
|
|
|
|
|
<input
|
|
|
|
|
[(ngModel)]="choice.date_object"
|
|
|
|
|
name="dateChoices_{{id}}"
|
|
|
|
|
id="dateChoices_{{id}}"
|
|
|
|
|
useValueAsDate
|
|
|
|
|
type="date"
|
|
|
|
|
>
|
|
|
|
|
<button
|
|
|
|
|
(click)="config.dateList.splice(id, 1)"
|
|
|
|
|
class="btn btn-warning"
|
|
|
|
|
><i class="fa fa-times" ></i >
|
|
|
|
|
</button >
|
|
|
|
|
<button
|
|
|
|
|
(click)="addTimeToDate(choice, id)"
|
|
|
|
|
*ngIf=" 'true' === config.allowSeveralHours"
|
|
|
|
|
class="btn btn--primary"
|
|
|
|
|
>
|
|
|
|
|
{{"dates.add_time"|translate}}
|
|
|
|
|
</button >
|
|
|
|
|
<div
|
|
|
|
|
*ngIf=" 'true' === config.allowSeveralHours"
|
|
|
|
|
class="several-times"
|
|
|
|
|
>
|
|
|
|
|
<button
|
|
|
|
|
class='btn btn--primary'
|
|
|
|
|
(click)='addDate()' >
|
|
|
|
|
{{"dates.add"|translate}}
|
|
|
|
|
</button >
|
|
|
|
|
<div
|
|
|
|
|
*ngFor="let time of choice.timeList; index as idTime"
|
|
|
|
|
class="time-choice"
|
|
|
|
|
*ngFor="let choice of config.dateList; index as id"
|
|
|
|
|
class="date-choice"
|
|
|
|
|
>
|
|
|
|
|
{{id}})
|
|
|
|
|
<input
|
|
|
|
|
[(ngModel)]="time.date_object"
|
|
|
|
|
name="dateTime_{{id}}_Choices_{{idTime}}"
|
|
|
|
|
id="dateTime_{{id}}_Choices_{{idTime}}"
|
|
|
|
|
[(ngModel)]="choice.date_object"
|
|
|
|
|
name="dateChoices_{{id}}"
|
|
|
|
|
id="dateChoices_{{id}}"
|
|
|
|
|
useValueAsDate
|
|
|
|
|
type="text"
|
|
|
|
|
type="date"
|
|
|
|
|
>
|
|
|
|
|
<button
|
|
|
|
|
(click)="choice.timeList.splice(idTime, 1)"
|
|
|
|
|
(click)="config.dateList.splice(id, 1)"
|
|
|
|
|
class="btn btn-warning"
|
|
|
|
|
><i class="fa fa-times" ></i >
|
|
|
|
|
</button >
|
|
|
|
|
<button
|
|
|
|
|
(click)="addTimeToDate(choice, id)"
|
|
|
|
|
*ngIf=" 'true' === config.allowSeveralHours"
|
|
|
|
|
class="btn btn--primary"
|
|
|
|
|
>
|
|
|
|
|
{{"dates.add_time"|translate}}
|
|
|
|
|
</button >
|
|
|
|
|
<div
|
|
|
|
|
*ngIf=" 'true' === config.allowSeveralHours"
|
|
|
|
|
class="several-times"
|
|
|
|
|
>
|
|
|
|
|
<h2 >Several hours</h2 >
|
|
|
|
|
<div
|
|
|
|
|
*ngFor="let timeItem of choice.timeList; index as idTime"
|
|
|
|
|
class="time-choice"
|
|
|
|
|
>
|
|
|
|
|
<input
|
|
|
|
|
[(ngModel)]="timeItem.literal"
|
|
|
|
|
name="dateTime_{{id}}_Choices_{{idTime}}"
|
|
|
|
|
id="dateTime_{{id}}_Choices_{{idTime}}"
|
|
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
>
|
|
|
|
|
<button
|
|
|
|
|
(click)="choice.timeList.splice(idTime, 1)"
|
|
|
|
|
class="btn btn-warning"
|
|
|
|
|
><i class="fa fa-times" ></i >
|
|
|
|
|
</button >
|
|
|
|
|
</div >
|
|
|
|
|
</div >
|
|
|
|
|
</div >
|
|
|
|
|
</div >
|
|
|
|
|
</div >
|
|
|
|
|
<div class='column' >
|
|
|
|
|
<framadate-resume ></framadate-resume >
|
|
|
|
|
</div >
|
|
|
|
|
</div >
|
|
|
|
|
|
|
|
|
|
<a
|
|
|
|
|
[routerLink]="'/step/resume'"
|
|
|
|
|
class="btn btn--full btn--primary"
|
|
|
|
|