funky-framadate-front/src/app/features/administration/form/date/list/day/day-list.component.html

65 lines
2.2 KiB
HTML
Raw Normal View History

2021-05-17 16:15:54 +02:00
<div class="day-list-container">
<div
2021-12-21 16:45:19 +01:00
class="days-list"
cdkDropList
2021-12-21 16:02:25 +01:00
[ngClass]="{ 'colored-weekend-days': environment.enable_colored_weekend_days }"
[cdkDropListData]="dateChoices"
(cdkDropListDropped)="dropDayItem($event)"
>
2021-12-21 16:45:19 +01:00
<div class="date-choice-container" *ngFor="let choice of dateChoices; index as id">
<p>
{{ choice.date_object | date: 'short' }}
</p>
<div class="date-choice" cdkDrag [ngClass]="{ 'day-weekend': isWeekendDay(choice.date_input) }">
2021-11-18 11:22:44 +01:00
<!-- <span class="button is-default">-->
<!-- <i class="icon fa fa-arrows-v"></i>-->
<!-- <span *ngIf="timeSlice.date_object">-->
<!-- {{ timeSlice.date_object | date: 'E':'Europe/Paris':'fr_FR' }}-->
2021-11-18 11:22:44 +01:00
<!-- </span>-->
<!-- </span>-->
2021-12-21 16:02:25 +01:00
<div class="top">
<label class="pull-left" for="dateChoices_{{ id }}">
2022-02-02 17:59:55 +01:00
{{ 'dates.element' | translate }} {{ id + 1 }}
<!-- ( weekend : {{ isWeekendDay(choice.date_input) }} )-->
2021-12-21 16:02:25 +01:00
<!-- - {{ choice.date_object | date: 'E':'Europe/Paris':'fr_FR' }}-->
</label>
2022-02-02 17:59:55 +01:00
<span class="format-helper pull-right">{{ 'dates.format_helper' | translate }}</span>
2021-11-18 11:22:44 +01:00
2021-12-21 16:02:25 +01:00
<input
[(ngModel)]="choice.date_input"
class="date-choice-item"
name="dateChoices_{{ id }}"
id="dateChoices_{{ id }}"
type="date"
/>
2021-11-18 11:22:44 +01:00
</div>
2021-12-21 16:02:25 +01:00
<hr />
<div class="bottom">
<div class="button delete-date is-block" (click)="dateChoices.splice(id, 1)">
<img class="icon" aria-hidden="true" src="assets/icons/trash.svg" />
2022-02-02 17:59:55 +01:00
{{ 'dates.remove' | translate }}
2021-12-21 16:02:25 +01:00
</div>
<div *ngIf="hasSeveralHours" class="several-times">
<br />
<app-time-list [timeSlices]="choice.timeSlices" [prefix_choice_id]="id"></app-time-list>
<div class="text-right">
<button (click)="addTimeToDate(choice, id)" class="button is-primary">
<i class="fa fa-plus"></i>
{{ 'dates.add_time' | translate }}
<i class="fa fa-clock-o"></i>
</button>
</div>
2021-05-20 10:54:28 +02:00
</div>
2021-05-17 15:25:22 +02:00
</div>
</div>
2021-12-21 16:02:25 +01:00
<div class="add_date">
<!-- ajouter une date-->
<button class="button is-primary" (click)="addChoice()">
<i class="fa fa-plus"></i>
{{ 'dates.add' | translate }}
</button>
</div>
2021-12-07 13:31:59 +01:00
</div>
</div>
2021-05-17 15:25:22 +02:00
</div>