2016-08-20 23:28:39 +02:00
|
|
|
{{title model.title}}
|
|
|
|
|
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">
|
2015-07-01 16:21:18 +02:00
|
|
|
<h2 class="title">{{model.title}}</h2>
|
|
|
|
<p class="description">{{model.description}}</p>
|
2017-08-26 02:14:09 +02:00
|
|
|
<p class="dates">
|
2018-12-29 20:35:04 +01:00
|
|
|
<span class="creationDate">
|
|
|
|
{{t
|
|
|
|
"poll.created-date"
|
|
|
|
date=(moment-format model.creationDate "LLLL" locale=currentLocale)
|
|
|
|
}}
|
|
|
|
</span>
|
2017-08-26 02:14:09 +02:00
|
|
|
{{#if model.expirationDate}}
|
|
|
|
<br>
|
2018-12-29 20:35:04 +01:00
|
|
|
<span class="expirationDate">
|
|
|
|
{{t
|
|
|
|
"poll.expiration-date"
|
|
|
|
date=(moment-format model.expirationDate "LLLL" locale=currentLocale)
|
|
|
|
}}
|
|
|
|
</span>
|
2017-08-26 02:14:09 +02:00
|
|
|
{{/if}}
|
|
|
|
</p>
|
2014-07-07 01:51:58 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-06-07 11:22:13 +02:00
|
|
|
<div class="col-sm-6 col-lg-6 offset-lg-1">
|
|
|
|
<div class="box poll-link cr-poll-link">
|
2014-09-29 00:48:26 +02:00
|
|
|
<p>{{t "poll.share"}}</p>
|
2019-06-07 11:22:13 +02:00
|
|
|
<p class="link cr-poll-link__link">
|
|
|
|
<small>
|
|
|
|
<code class="cr-poll-link__url">{{pollUrl}}</code>
|
|
|
|
</small>
|
2016-08-20 22:02:53 +02:00
|
|
|
{{#copy-button
|
|
|
|
clipboardText=pollUrl
|
2019-06-07 11:22:13 +02:00
|
|
|
classNames="btn btn-secondary cr-poll-link__copy-btn btn-sm"
|
2018-12-29 20:35:04 +01:00
|
|
|
success=(action "linkAction" "copied")
|
|
|
|
error=(action "linkAction" "selected")
|
2016-08-20 22:02:53 +02:00
|
|
|
}}
|
2019-06-07 11:22:13 +02:00
|
|
|
{{t "poll.link.copy-label"}}
|
|
|
|
<span class="oi oi-clipboard" title={{t "poll.link.copy-label"}} aria-hidden="true"></span>
|
2016-08-20 22:02:53 +02:00
|
|
|
{{/copy-button}}
|
|
|
|
</p>
|
2019-06-07 11:22:13 +02:00
|
|
|
<small class="text-muted">
|
2018-12-29 20:35:04 +01:00
|
|
|
{{t "poll.share.notice"}}
|
2019-06-07 11:22:13 +02:00
|
|
|
</small>
|
2014-07-07 01:51:58 +02:00
|
|
|
</div>
|
2014-07-06 17:37:54 +02:00
|
|
|
</div>
|
2015-03-25 18:57:27 +01:00
|
|
|
</div>
|
2014-07-06 17:37:54 +02:00
|
|
|
|
2017-08-26 02:14:09 +02:00
|
|
|
{{#if showExpirationWarning}}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
2018-12-29 20:35:04 +01:00
|
|
|
{{#bs-alert type="warning" classNames="expiration-warning"}}
|
|
|
|
{{t
|
|
|
|
"poll.expiration-date-warning"
|
|
|
|
timeToNow=(moment-from-now model.expirationDate locale=currentLocale)
|
|
|
|
}}
|
2017-08-26 02:14:09 +02:00
|
|
|
{{/bs-alert}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2019-06-07 11:22:13 +02:00
|
|
|
<div class="box">
|
2015-11-02 23:02:59 +01:00
|
|
|
<ul class="nav nav-tabs" role="tablist">
|
2018-12-29 20:35:04 +01:00
|
|
|
{{#link-to
|
|
|
|
"poll.participation"
|
|
|
|
model
|
|
|
|
tagName="li"
|
|
|
|
activeClass="active"
|
2019-06-07 11:22:13 +02:00
|
|
|
class="participation nav-item"
|
2018-12-29 20:35:04 +01:00
|
|
|
}}
|
2019-06-07 11:22:13 +02:00
|
|
|
{{#link-to "poll.participation" model class="nav-link"}}
|
2018-12-29 20:35:04 +01:00
|
|
|
{{t "poll.tab-title.participation"}}
|
2015-11-02 23:02:59 +01:00
|
|
|
{{/link-to}}
|
|
|
|
{{/link-to}}
|
2018-12-29 20:35:04 +01:00
|
|
|
{{#link-to
|
|
|
|
"poll.evaluation"
|
|
|
|
model
|
|
|
|
tagName="li"
|
|
|
|
activeClass="active"
|
2019-06-07 11:22:13 +02:00
|
|
|
class="evaluation nav-item"
|
2018-12-29 20:35:04 +01:00
|
|
|
}}
|
2019-06-07 11:22:13 +02:00
|
|
|
{{#link-to "poll.evaluation" model class="nav-link"}}
|
2018-12-29 20:35:04 +01:00
|
|
|
{{t "poll.tab-title.evaluation"}}
|
2015-11-02 23:02:59 +01:00
|
|
|
{{/link-to}}
|
|
|
|
{{/link-to}}
|
|
|
|
</ul>
|
2014-07-06 17:37:54 +02:00
|
|
|
|
2015-11-02 23:02:59 +01:00
|
|
|
<div class="tab-content">
|
|
|
|
<div role="tabpanel" class="tab-pane active">
|
|
|
|
{{outlet}}
|
|
|
|
</div>
|
2015-04-02 21:23:06 +02:00
|
|
|
</div>
|
2014-07-07 01:51:58 +02:00
|
|
|
</div>
|
2014-10-28 03:27:54 +01:00
|
|
|
</div>
|
|
|
|
|
2016-05-24 01:07:14 +02:00
|
|
|
{{#bs-modal
|
|
|
|
title=(t "poll.modal.timezoneDiffers.title")
|
2016-05-26 13:17:47 +02:00
|
|
|
open=mustChooseTimezone
|
|
|
|
footer=false
|
|
|
|
closeButton=false
|
|
|
|
keyboard=false
|
|
|
|
autoClose=false
|
2018-12-29 20:35:04 +01:00
|
|
|
id="modal-choose-timezone"
|
|
|
|
as |modal|
|
2016-05-24 01:07:14 +02:00
|
|
|
}}
|
2018-10-28 22:54:14 +01:00
|
|
|
{{#modal.body}}
|
2016-05-24 01:07:14 +02:00
|
|
|
<p>
|
|
|
|
{{t "poll.modal.timezoneDiffers.body"}}
|
|
|
|
</p>
|
2018-10-28 22:54:14 +01:00
|
|
|
{{/modal.body}}
|
2018-12-29 20:35:04 +01:00
|
|
|
{{#modal.footer}}
|
|
|
|
{{#bs-button
|
|
|
|
onClick=(action "useLocalTimezone")
|
|
|
|
class="use-local-timezone"
|
|
|
|
}}
|
2016-05-24 01:07:14 +02:00
|
|
|
{{t "poll.modal.timezoneDiffers.button.useLocalTimezone"}}
|
|
|
|
{{/bs-button}}
|
2018-12-29 20:35:04 +01:00
|
|
|
{{#bs-button
|
|
|
|
onClick=(action (mut timezoneChoosen) true)
|
|
|
|
classNames="use-poll-timezone"
|
|
|
|
}}
|
2016-05-24 01:07:14 +02:00
|
|
|
{{t "poll.modal.timezoneDiffers.button.usePollTimezone"}}
|
|
|
|
{{/bs-button}}
|
2018-10-28 22:54:14 +01:00
|
|
|
{{/modal.footer}}
|
2016-05-24 01:07:14 +02:00
|
|
|
{{/bs-modal}}
|