{{#if @poll.hasTimes}} {{#each-in this.optionsPerDay as |jsDate count|}} {{/each-in}} {{/if}} {{#each @poll.options as |option|}} {{/each}} {{#each this.usersSorted as |user|}} {{#each @poll.options as |option index|}} {{#let (object-at index user.selections) as |selection|}} {{/let}} {{/each}} {{/each}}
{{! column for name }} {{! TODO: Simplify to dateStyle="full" after upgrading to Ember Intl v6 Cannot use optionGroup.value because that's a ISO8601 day string (e.g. "2023-10-01"), which is parsed by browsers in UTC and not locale time zone. Therefore we need parse a JS Date representation of that string, which has been parsed by Luxon in correct timezone. }} {{format-date jsDate weekday="long" day="numeric" month="long" year="numeric" }}
{{! column for name }} {{#if (and @poll.isFindADate @poll.hasTimes)}} {{#if option.hasTime}} {{! TODO: Simplify to timeStyle="short" after upgrading to Ember Intl v6 }} {{format-date option.jsDate hour="numeric" minute="numeric"}} {{/if}} {{else if @poll.isFindADate}} {{! TODO: Simplify to dateStyle="full" after upgrading to Ember Intl v6 }} {{format-date option.jsDate weekday="long" day="numeric" month="long" year="numeric" }} {{else}} {{option.title}} {{/if}}
{{user.name}} {{#if selection.labelTranslation}} {{t selection.labelTranslation}} {{else}} {{selection.label}} {{/if}}