2014-07-06 17:37:54 +02:00
|
|
|
<div id="poll">
|
2014-07-07 01:51:58 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-6 col-lg-5">
|
|
|
|
<div class="box meta-data">
|
|
|
|
<h2 class="title">{{title}}</h2>
|
|
|
|
<p class="description">{{description}}</p>
|
2014-09-29 00:48:26 +02:00
|
|
|
<p class="creationDate">{{t "poll.created-time" creationDateBinding="creationDate"}}</p>
|
2014-07-07 01:51:58 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6 col-lg-5 col-lg-offset-2">
|
|
|
|
<div class="box share-link">
|
2014-09-29 00:48:26 +02:00
|
|
|
<p>{{t "poll.share"}}</p>
|
2014-07-07 01:51:58 +02:00
|
|
|
<p class="link"><a {{bind-attr href=pollUrl}}>{{pollUrl}}</a></p>
|
|
|
|
<p class="notice">
|
2014-09-29 00:48:26 +02:00
|
|
|
{{t "poll.share.notice"}}
|
2014-07-07 01:51:58 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
2014-07-06 17:37:54 +02:00
|
|
|
</div>
|
2014-07-07 01:51:58 +02:00
|
|
|
</div>
|
2014-07-06 17:37:54 +02:00
|
|
|
|
2014-07-07 01:51:58 +02:00
|
|
|
<div class="box">
|
|
|
|
<div class="table-scroll">
|
|
|
|
<table class="user-selections-table table table-striped table-condensed">
|
|
|
|
<thead>
|
2014-10-25 19:40:14 +02:00
|
|
|
{{#if isDateTime}}
|
2014-10-25 21:53:10 +02:00
|
|
|
<tr class="dateGroups">
|
2014-10-25 19:40:14 +02:00
|
|
|
<th> </th>
|
|
|
|
{{#each dateGroup in dateGroups}}
|
|
|
|
<th {{bind-attr colspan="dateGroup.colspan"}}>
|
|
|
|
{{formattedDate dateGroup.value}}
|
|
|
|
</th>
|
|
|
|
{{/each}}
|
|
|
|
<th> </th>
|
|
|
|
</tr>
|
|
|
|
{{/if}}
|
2014-07-07 01:51:58 +02:00
|
|
|
<tr>
|
|
|
|
<th> </th>
|
|
|
|
{{#each option in options}}
|
|
|
|
<th>
|
|
|
|
{{#if isFindADate}}
|
2014-10-25 19:40:14 +02:00
|
|
|
{{#if isDateTime}}
|
|
|
|
{{formattedDate option.title format="LT"}}
|
|
|
|
{{/if}}
|
|
|
|
{{#unless isDateTime}}
|
|
|
|
{{formattedDate option.title}}
|
|
|
|
{{/unless}}
|
2014-07-07 01:51:58 +02:00
|
|
|
{{/if}}
|
2014-07-06 17:37:54 +02:00
|
|
|
|
2014-07-07 01:51:58 +02:00
|
|
|
{{#if isMakeAPoll}}
|
|
|
|
{{option.title}}
|
|
|
|
{{/if}}
|
|
|
|
</th>
|
|
|
|
{{/each}}
|
|
|
|
<th> </th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2014-07-06 17:37:54 +02:00
|
|
|
|
2014-07-07 01:51:58 +02:00
|
|
|
<tbody>
|
|
|
|
<tr class='newUser'>
|
|
|
|
<td>
|
2014-10-18 21:07:21 +02:00
|
|
|
{{#form-for controller}}
|
2014-10-23 17:55:04 +02:00
|
|
|
{{#input newUserName}}
|
|
|
|
{{input-field newUserName
|
|
|
|
placeholderTranslation="poll.input.newUserName.placeholder"
|
|
|
|
}}
|
|
|
|
{{#if view.showError}}
|
|
|
|
{{error-field newUserName}}
|
|
|
|
{{/if}}
|
|
|
|
{{/input}}
|
2014-10-18 21:07:21 +02:00
|
|
|
{{/form-for}}
|
2014-07-07 01:51:58 +02:00
|
|
|
</td>
|
|
|
|
{{#each newUserSelection in controller.newUserSelections}}
|
|
|
|
<td>
|
2014-10-18 21:07:21 +02:00
|
|
|
{{#form-for newUserSelection}}
|
2014-07-07 01:51:58 +02:00
|
|
|
{{#if isFreeText}}
|
2014-10-26 16:47:15 +01:00
|
|
|
{{#input value}}
|
|
|
|
{{input-field value}}
|
|
|
|
{{/input}}
|
2014-07-07 01:51:58 +02:00
|
|
|
{{else}}
|
2014-08-02 16:58:26 +02:00
|
|
|
{{#each answer in answers}}
|
|
|
|
<div class="radio">
|
|
|
|
<label>
|
2014-09-29 00:48:26 +02:00
|
|
|
{{radio-button checked=newUserSelection.value value=answer}}
|
2014-10-24 00:39:07 +02:00
|
|
|
<span {{bind-attr class="answer.id"}}>
|
2014-10-25 23:47:20 +02:00
|
|
|
<span {{bind-attr class="answer.icon"}}></span>
|
2014-09-29 00:48:26 +02:00
|
|
|
{{answer.label}}
|
|
|
|
</span>
|
2014-08-02 16:58:26 +02:00
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
2014-07-07 01:51:58 +02:00
|
|
|
{{/if}}
|
2014-10-18 21:07:21 +02:00
|
|
|
{{/form-for}}
|
2014-07-07 01:51:58 +02:00
|
|
|
</td>
|
|
|
|
{{/each}}
|
|
|
|
<td>
|
2014-10-26 16:47:15 +01:00
|
|
|
<button {{action "submitNewUser"}} class="btn btn-default btn-primary">
|
2014-10-24 01:24:21 +02:00
|
|
|
{{t "poll.save"}}
|
|
|
|
</button>
|
2014-10-26 16:47:15 +01:00
|
|
|
<span style="white-space: normal;">
|
|
|
|
{{#input everyOptionIsAnswered}}
|
|
|
|
{{#if view.showError}}
|
|
|
|
{{error-field everyOptionIsAnswered}}
|
|
|
|
{{/if}}
|
|
|
|
{{/input}}
|
|
|
|
</span>
|
2014-07-07 01:51:58 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
2014-07-06 17:37:54 +02:00
|
|
|
|
2014-07-07 01:51:58 +02:00
|
|
|
{{#each user in users}}
|
|
|
|
<tr>
|
|
|
|
<td>{{user.name}}</td>
|
|
|
|
{{#each selection in user.selections}}
|
|
|
|
<td>
|
2014-09-29 00:48:26 +02:00
|
|
|
{{#if isFreeText}}
|
|
|
|
{{selection.value}}
|
|
|
|
{{else}}
|
2014-10-25 01:01:05 +02:00
|
|
|
<span {{bind-attr class="selection.value.id"}}>
|
2014-09-29 00:48:26 +02:00
|
|
|
<span {{bind-attr class="selection.value.icon"}}></span>
|
|
|
|
{{selection.value.label}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
2014-07-07 01:51:58 +02:00
|
|
|
</td>
|
|
|
|
{{/each}}
|
|
|
|
<td> </td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
2014-07-06 17:37:54 +02:00
|
|
|
|
2014-07-07 01:51:58 +02:00
|
|
|
{{#unless isFreeText}}
|
|
|
|
<tr class='evaluation evaluation-header'>
|
2014-09-29 00:48:26 +02:00
|
|
|
<td {{bind-attr colspan=fullRowColspan}}>
|
2014-10-24 01:24:21 +02:00
|
|
|
{{t "poll.evaluation.label"}}
|
|
|
|
<button {{action "switchEvaluationVisibility" target="view"}} class="btn btn-default">
|
|
|
|
{{view.showEvaluationLabel}}
|
|
|
|
</button>
|
2014-09-29 00:48:26 +02:00
|
|
|
</td>
|
2014-07-07 01:51:58 +02:00
|
|
|
</tr>
|
2014-07-06 17:37:54 +02:00
|
|
|
|
2014-10-23 17:55:04 +02:00
|
|
|
{{#if view.showEvaluation}}
|
|
|
|
{{#each answer in evaluation}}
|
|
|
|
<tr class='evaluation'>
|
2014-07-07 01:51:58 +02:00
|
|
|
<td>
|
2014-10-23 17:55:04 +02:00
|
|
|
{{answer.label}}
|
2014-07-07 01:51:58 +02:00
|
|
|
</td>
|
2014-07-06 17:37:54 +02:00
|
|
|
|
2014-10-23 17:55:04 +02:00
|
|
|
{{#each option in answer.options}}
|
|
|
|
<td>
|
|
|
|
{{option}}
|
|
|
|
</td>
|
|
|
|
{{/each}}
|
|
|
|
|
|
|
|
<td> </td>
|
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
{{/if}}
|
2014-07-07 01:51:58 +02:00
|
|
|
{{/unless}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2014-07-06 17:37:54 +02:00
|
|
|
</div>
|