@for (frequency of selection.children; track frequency) {
@for (date of frequency.children; track date) {
@if (date.item.dates.length > 1) {
{{ date.item.dates[0] | amDateFormat: 'dddd, LT' }} -
{{ date.item.dates[0] | amAdd: date.item.duration | amDateFormat: 'LT' }}
{{ date.item.dates[0] | amDateFormat: 'LL' }} -
{{ date.item.dates[date.item.dates.length - 1] | amDateFormat: 'LL' }}
} @else {
@if (date.item.dates[0]; as time) {
{{ time | amDateFormat: 'LL, LT' }} -
{{ time | amAdd: date.item.duration | amDateFormat: 'LT' }}
} @else {
{{ 'data.chips.add_events.popover.DATA_ERROR' | translate }}
@for (id of date.item.identifiers | keyvalue; track id) {
{{ id.key }}: {{ id.value }}
}
}
}
@if (date.item.inPlace) {
{{ 'inPlace.name' | thingTranslate: date.item }}
}
}
}