78 lines
2.1 KiB
Handlebars
78 lines
2.1 KiB
Handlebars
{{#if isEvaluable}}
|
|
{{poll-evaluation-summary poll=model dates=dates sortedUsers=sortedUsers}}
|
|
|
|
<h3>Übersicht</h3>
|
|
{{poll-evaluation-chart
|
|
answerType=model.answerType
|
|
dates=dates
|
|
isFindADate=model.isFindADate
|
|
pollOptions=model.options
|
|
users=model.users
|
|
}}
|
|
{{/if}}
|
|
|
|
<h3>Teilnehmende und ihre Antworten</h3>
|
|
<div class="table-scroll">
|
|
<table class="user-selections-table table table-striped table-condensed">
|
|
<thead>
|
|
{{#if model.isDateTime}}
|
|
<tr class="dateGroups">
|
|
<th> </th>
|
|
{{#each dateGroups as |dateGroup|}}
|
|
<th colspan="{{dateGroup.colspan}}">
|
|
{{formattedDate dateGroup.value}}
|
|
</th>
|
|
{{/each}}
|
|
<th> </th>
|
|
</tr>
|
|
{{/if}}
|
|
<tr>
|
|
<th> </th>
|
|
{{#if model.isFindADate}}
|
|
{{#each dates as |date|}}
|
|
<th>
|
|
{{#if dateGroups}}
|
|
{{#if date.hasTime}}
|
|
{{formattedDate date.title format="LT" times=true}}
|
|
{{/if}}
|
|
{{else}}
|
|
{{formattedDate date.title}}
|
|
{{/if}}
|
|
</th>
|
|
{{/each}}
|
|
{{else}}
|
|
{{#each model.options as |option|}}
|
|
<th>
|
|
{{option.title}}
|
|
</th>
|
|
{{/each}}
|
|
{{/if}}
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
{{#each sortedUsers as |user|}}
|
|
<tr class="user">
|
|
<td>{{user.name}}</td>
|
|
{{#each user.selections as |selection|}}
|
|
<td>
|
|
{{#if selection.label}}
|
|
{{#if model.isFreeText}}
|
|
{{selection.label}}
|
|
{{/if}}
|
|
{{/if}}
|
|
{{#if selection.labelTranslation}}
|
|
{{#unless model.isFreeText}}
|
|
<span class="{{selection.type}}">
|
|
<span class="{{selection.icon}}"></span>
|
|
{{t selection.labelTranslation}}
|
|
</span>
|
|
{{/unless}}
|
|
{{/if}}
|
|
</td>
|
|
{{/each}}
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|