2016-08-11 23:37:14 +02:00
|
|
|
<div class="table-scroll">
|
|
|
|
<table class="user-selections-table table table-striped table-condensed">
|
|
|
|
<thead>
|
|
|
|
{{#if hasTimes}}
|
|
|
|
<tr class="dateGroups">
|
|
|
|
<th> </th>
|
2017-08-11 16:39:36 +02:00
|
|
|
{{#each optionsGroupedByDates as |optionGroup|}}
|
|
|
|
<th colspan="{{optionGroup.items.length}}">
|
|
|
|
{{moment-format
|
|
|
|
optionGroup.value
|
|
|
|
momentLongDayFormat
|
|
|
|
locale=currentLocale
|
|
|
|
timeZone=timezone
|
|
|
|
}}
|
2016-08-11 23:37:14 +02:00
|
|
|
</th>
|
|
|
|
{{/each}}
|
|
|
|
<th> </th>
|
|
|
|
</tr>
|
|
|
|
{{/if}}
|
|
|
|
<tr>
|
|
|
|
<th> </th>
|
2017-07-31 16:52:27 +02:00
|
|
|
{{#each options as |option|}}
|
|
|
|
<th>
|
|
|
|
{{#if isFindADate}}
|
2016-08-11 23:37:14 +02:00
|
|
|
{{#if hasTimes}}
|
2017-08-11 16:39:36 +02:00
|
|
|
{{#if option.hasTime}}
|
|
|
|
{{moment-format
|
|
|
|
option.title
|
|
|
|
'LT'
|
|
|
|
locale=currentLocale
|
|
|
|
timeZone=timezone
|
|
|
|
}}
|
2016-08-11 23:37:14 +02:00
|
|
|
{{/if}}
|
|
|
|
{{else}}
|
2017-08-11 16:39:36 +02:00
|
|
|
{{moment-format
|
|
|
|
option.title
|
|
|
|
momentLongDayFormat
|
|
|
|
locale=currentLocale
|
|
|
|
timeZone=timezone
|
|
|
|
}}
|
2016-08-11 23:37:14 +02:00
|
|
|
{{/if}}
|
2017-07-31 16:52:27 +02:00
|
|
|
{{else}}
|
2016-08-11 23:37:14 +02:00
|
|
|
{{option.title}}
|
2017-07-31 16:52:27 +02:00
|
|
|
{{/if}}
|
|
|
|
</th>
|
|
|
|
{{/each}}
|
2016-08-11 23:37:14 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
{{#each sortedUsers as |user|}}
|
|
|
|
<tr class="user">
|
|
|
|
<td>{{user.name}}</td>
|
|
|
|
{{#each user.selections as |selection|}}
|
|
|
|
<td>
|
|
|
|
{{#if selection.label}}
|
|
|
|
{{#if isFreeText}}
|
|
|
|
{{selection.label}}
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
{{#if selection.labelTranslation}}
|
|
|
|
{{#unless isFreeText}}
|
|
|
|
<span class="{{selection.type}}">
|
|
|
|
<span class="{{selection.icon}}"></span>
|
|
|
|
{{t selection.labelTranslation}}
|
|
|
|
</span>
|
|
|
|
{{/unless}}
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
{{/each}}
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|