18 lines
625 B
HTML
18 lines
625 B
HTML
<div class="time-list-container" cdkDropList [cdkDropListData]="timeSlices" (cdkDropListDropped)="dropTimeItem($event)">
|
|
<div *ngFor="let time of timeSlices; index as id" class="time-choice" cdkDrag>
|
|
<label class="icon button is-default" for="timeChoices_{{ id }}">
|
|
<i class="fa fa-arrows-v" aria-hidden="true"></i>
|
|
</label>
|
|
<input
|
|
class="time-list-item"
|
|
[(ngModel)]="time.literal"
|
|
name="timeChoices_{{ id }}"
|
|
type="text"
|
|
id="timeChoices_{{ id }}"
|
|
/>
|
|
<button (click)="timeSlices.splice(id, 1)" class="btn btn-warning">
|
|
<i class="fa fa-times" aria-hidden="true"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|