@for (event of pollEvents(); track event._id) { | } |
--- | --- | ---
@if (canParticipate()) {
@for (event of pollEvents(); track event._id) { | } |
} @for (participant of participants(); track participant._id) {
@if (participant !== editParticipant) { @for (pollEvent of pollEvents(); track pollEvent._id; let n = $index) { | @switch (participant.selection[pollEvent._id]) { @case ('yes') { ##### } @case ('no') { ##### } @case ('maybe') { ##### } @default { ##### } } @if (isAdmin()) { @let isBooked = bookedEvents[pollEvent._id] | some:participant._id; } } | @if (poll()!.settings.allowEdit && token() === participant.token) { } @if (isAdmin() || token() === participant.token) { } } @else { @if (editDto) { @for (event of pollEvents(); track event._id) { | } } | }
}
Votes @for (pollEvent of pollEvents(); track pollEvent._id) { | ##### {{ pollEvent.participants }} } |
@if (poll() && isAdmin()) {
Select Events @for (pollEvent of pollEvents(); track pollEvent._id) { | } |
}