40 lines
1.4 KiB
HTML
40 lines
1.4 KiB
HTML
<div class="day-list-container">
|
|
<div class="days-list" [ngClass]="{ 'colored-weekend-days': environment.enable_colored_weekend_days }">
|
|
<div class="date-choice-container" *ngFor="let choice of dateChoices; index as id">
|
|
<div class="date-choice" [ngClass]="{ 'day-weekend': isWeekendDay(choice.date_input) }">
|
|
<div class="top">
|
|
<label class="pull-left" for="dateChoices_{{ id }}">
|
|
{{ 'dates.element' | translate }} {{ id + 1 }}
|
|
</label>
|
|
<span class="format-helper pull-right">{{ 'dates.format_helper' | translate }}</span>
|
|
<input
|
|
[ngModel]="choice.date_object | date: 'yyyy-MM-dd'"
|
|
(ngModelChange)="convertDateInput($event, id)"
|
|
class="date-choice-item"
|
|
name="dateChoices_{{ id }}"
|
|
id="dateChoices_{{ id }}"
|
|
type="date"
|
|
/>
|
|
</div>
|
|
|
|
<div class="bottom">
|
|
<div *ngIf="hasSeveralHours" class="several-times">
|
|
<app-time-list [timeSlices]="choice.timeSlices" [prefix_choice_id]="id"></app-time-list>
|
|
</div>
|
|
</div>
|
|
<hr />
|
|
<div class="button delete-date is-block" (click)="dateChoices.splice(id, 1)">
|
|
<img class="icon" aria-hidden="true" src="assets/icons/trash.svg" />
|
|
{{ 'dates.remove' | translate }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="add_date">
|
|
<!-- ajouter une date-->
|
|
<button class="button is-primary is-fullwidth" (click)="addChoice()">
|
|
{{ 'dates.add' | translate }}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|