2020-04-11 16:06:56 +02:00
|
|
|
<h1 class="title is-1" >
|
|
|
|
<i class="fa fa-calendar"></i> {{"dates.title"|translate}}
|
|
|
|
</h1 >
|
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-02-10 13:06:47 +01:00
|
|
|
<option value=true >{{"dates.multiple.different"|translate}}</option >
|
|
|
|
<option value=false >{{"dates.multiple.identical"|translate}}</option >
|
2020-01-20 15:15:06 +01:00
|
|
|
</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()"
|
2020-01-23 17:36:56 +01:00
|
|
|
class="btn btn--primary"
|
2019-11-15 15:19:42 +01:00
|
|
|
id="add_date_button"
|
|
|
|
>
|
2020-01-23 17:36:56 +01:00
|
|
|
<i class='fa fa-plus' ></i >
|
2019-11-15 15:19:42 +01:00
|
|
|
{{"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}"
|
2020-01-23 17:36:56 +01:00
|
|
|
class="btn btn--primary"
|
2019-11-19 14:23:51 +01:00
|
|
|
id="toggle_interval_button"
|
|
|
|
>
|
2020-01-23 17:36:56 +01:00
|
|
|
<i class='fa fa-clock-o' ></i >
|
2019-11-19 14:23:51 +01:00
|
|
|
{{"dates.add_interval"|translate}}
|
2020-01-20 15:15:06 +01:00
|
|
|
</button >
|
2019-11-15 15:19:42 +01:00
|
|
|
|
|
|
|
<button
|
|
|
|
(click)="emptyAll()"
|
2020-01-23 17:36:56 +01:00
|
|
|
class="btn btn--warning"
|
2019-11-15 15:19:42 +01:00
|
|
|
id="empty_button"
|
2020-01-23 17:36:56 +01:00
|
|
|
>
|
|
|
|
<i class='fa fa-trash' ></i >
|
|
|
|
{{"dates.empty"|translate}}
|
2020-01-20 15:15:06 +01:00
|
|
|
</button >
|
|
|
|
<section
|
|
|
|
*ngIf="showDateInterval"
|
2020-01-23 17:36:56 +01:00
|
|
|
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" >
|
2020-01-23 17:36:56 +01:00
|
|
|
<br >
|
|
|
|
|
2020-01-20 15:15:06 +01:00
|
|
|
</p >
|
|
|
|
<button
|
|
|
|
(click)="addIntervalOfDates()"
|
2020-01-23 17:36:56 +01:00
|
|
|
class="btn btn-block btn--primary" >
|
|
|
|
<i class='fa fa-plus' ></i >
|
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 >
|
2020-02-13 17:41:36 +01:00
|
|
|
<div class='columns' >
|
|
|
|
<div class='column' >
|
|
|
|
<div class="dates-list " >
|
|
|
|
<div class='title' >
|
2020-01-20 15:15:06 +01:00
|
|
|
<span class="count-dates" >
|
2019-11-19 14:42:59 +01:00
|
|
|
{{config.timeList.length}}
|
2020-01-20 15:15:06 +01:00
|
|
|
</span >
|
2020-02-13 17:41:36 +01:00
|
|
|
<span class="count-dates-txt " >
|
2019-11-19 14:42:59 +01:00
|
|
|
{{"dates.count_time"|translate}}
|
2020-02-13 17:41:36 +01:00
|
|
|
(pour chaque jour)
|
2020-01-20 15:15:06 +01:00
|
|
|
</span >
|
2020-01-24 10:57:54 +01:00
|
|
|
|
2020-02-13 17:41:36 +01:00
|
|
|
</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 >
|
2019-11-19 11:18:58 +01:00
|
|
|
|
2020-02-13 17:41:36 +01:00
|
|
|
<div
|
|
|
|
*ngIf=" 'false' === config.allowSeveralHours"
|
|
|
|
class="identical-dates"
|
2019-11-15 15:19:42 +01:00
|
|
|
>
|
2020-02-13 17:41:36 +01:00
|
|
|
<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" >
|
2019-11-19 14:42:59 +01:00
|
|
|
{{config.dateList.length}}
|
2020-01-20 15:15:06 +01:00
|
|
|
</span >
|
2020-02-13 17:41:36 +01:00
|
|
|
<span >
|
2019-11-15 15:19:42 +01:00
|
|
|
{{"dates.count_dates"|translate}}
|
2020-01-20 15:15:06 +01:00
|
|
|
</span >
|
2020-02-13 17:41:36 +01:00
|
|
|
<button
|
|
|
|
class='btn btn--primary'
|
|
|
|
(click)='addDate()' >
|
|
|
|
{{"dates.add"|translate}}
|
|
|
|
</button >
|
2019-11-15 15:19:42 +01:00
|
|
|
<div
|
2020-02-13 17:41:36 +01:00
|
|
|
*ngFor="let choice of config.dateList; index as id"
|
|
|
|
class="date-choice"
|
2019-11-15 15:19:42 +01:00
|
|
|
>
|
2020-02-13 17:41:36 +01:00
|
|
|
{{id}})
|
2019-11-15 15:19:42 +01:00
|
|
|
<input
|
2020-02-13 17:41:36 +01:00
|
|
|
[(ngModel)]="choice.date_object"
|
|
|
|
name="dateChoices_{{id}}"
|
|
|
|
id="dateChoices_{{id}}"
|
2020-01-24 10:57:54 +01:00
|
|
|
useValueAsDate
|
2020-02-13 17:41:36 +01:00
|
|
|
type="date"
|
2019-11-15 15:19:42 +01:00
|
|
|
>
|
|
|
|
<button
|
2020-02-13 17:41:36 +01:00
|
|
|
(click)="config.dateList.splice(id, 1)"
|
2019-11-19 14:42:59 +01:00
|
|
|
class="btn btn-warning"
|
2020-01-23 17:36:56 +01:00
|
|
|
><i class="fa fa-times" ></i >
|
2020-01-20 15:15:06 +01:00
|
|
|
</button >
|
2020-02-13 17:41:36 +01:00
|
|
|
<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"
|
|
|
|
>
|
|
|
|
<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 >
|
2020-01-20 15:15:06 +01:00
|
|
|
</div >
|
|
|
|
</div >
|
|
|
|
</div >
|
2020-02-13 17:41:36 +01:00
|
|
|
<div class='column' >
|
|
|
|
<framadate-resume ></framadate-resume >
|
|
|
|
</div >
|
2020-01-20 15:15:06 +01:00
|
|
|
</div >
|
2020-02-13 17:41:36 +01:00
|
|
|
|
2019-08-11 17:10:09 +02:00
|
|
|
<a
|
2020-01-24 10:57:54 +01:00
|
|
|
[routerLink]="'/step/resume'"
|
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 >
|