@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) { } } @else { @if (editDto) { @for (event of pollEvents(); track event._id) { } } } } @for (pollEvent of pollEvents(); track pollEvent._id) { } @if (poll() && isAdmin()) { @for (pollEvent of pollEvents(); track pollEvent._id) { } }
@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) { }
Votes
{{ pollEvent.participants }}
Select Events