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

24 lines
859 B
HTML
Raw Normal View History

<div class="time-list-container">
<div *ngFor="let time of timeSlices; index as id" class="time-choice">
<label class="label is-default" for="choice_{{ prefix_choice_id }}_timeChoices_{{ id }}">
2022-02-02 17:59:55 +01:00
{{ 'hours.element' | translate }} {{ id }}
2021-05-18 12:12:08 +02:00
</label>
<input
class="time-list-item input is-fullwidth"
[(ngModel)]="time.literal"
name="timeChoices_{{ id }}"
2021-05-20 10:54:28 +02:00
(keyup.arrowDown)="focusOnNextField(id)"
(keyup.arrowUp)="focusOnFieldNumber(id - 1)"
(keyup.arrowLeft)="removeTimeIfEmpty(time.literal, id)"
(keyup.alt.d)="removeTime(id)"
(blur)="removeTimeIfEmpty(time.literal, id)"
type="text"
2021-05-20 10:54:28 +02:00
id="choice_{{ prefix_choice_id }}_timeChoices_{{ id }}"
/>
<button (click)="removeTime(id)" class="button remove-item">
<img class="icon" src="assets/icons/x.svg" alt="{{ 'nav.remove' | translate }}" />
2021-05-18 12:12:08 +02:00
</button>
</div>
2021-05-17 15:25:22 +02:00
</div>