127 lines
3.2 KiB
Handlebars
127 lines
3.2 KiB
Handlebars
{{title model.title}}
|
|
|
|
<div id="poll">
|
|
<div class="row">
|
|
<div class="col-sm-6 col-lg-5">
|
|
<div class="box meta-data">
|
|
<h2 class="title">{{model.title}}</h2>
|
|
<p class="description">{{model.description}}</p>
|
|
<p class="dates">
|
|
<span class="creationDate">
|
|
{{t
|
|
"poll.created-date"
|
|
date=(moment-format model.creationDate "LLLL" locale=currentLocale)
|
|
}}
|
|
</span>
|
|
{{#if model.expirationDate}}
|
|
<br>
|
|
<span class="expirationDate">
|
|
{{t
|
|
"poll.expiration-date"
|
|
date=(moment-format model.expirationDate "LLLL" locale=currentLocale)
|
|
}}
|
|
</span>
|
|
{{/if}}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div class="col-sm-6 col-lg-5 col-lg-offset-2">
|
|
<div class="box poll-link">
|
|
<p>{{t "poll.share"}}</p>
|
|
<p class="link">
|
|
<a href={{pollUrl}}>
|
|
{{pollUrl}}
|
|
</a>
|
|
{{#copy-button
|
|
clipboardText=pollUrl
|
|
classNames="btn btn-default"
|
|
success=(action "linkAction" "copied")
|
|
error=(action "linkAction" "selected")
|
|
}}
|
|
<span class="glyphicon glyphicon-copy"></span>
|
|
{{/copy-button}}
|
|
</p>
|
|
<p class="notice">
|
|
{{t "poll.share.notice"}}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{{#if showExpirationWarning}}
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
{{#bs-alert type="warning" classNames="expiration-warning"}}
|
|
{{t
|
|
"poll.expiration-date-warning"
|
|
timeToNow=(moment-from-now model.expirationDate locale=currentLocale)
|
|
}}
|
|
{{/bs-alert}}
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
|
|
<div class="box container-fluid">
|
|
<ul class="nav nav-tabs" role="tablist">
|
|
{{#link-to
|
|
"poll.participation"
|
|
model
|
|
tagName="li"
|
|
activeClass="active"
|
|
class="participation"
|
|
}}
|
|
{{#link-to "poll.participation" model}}
|
|
{{t "poll.tab-title.participation"}}
|
|
{{/link-to}}
|
|
{{/link-to}}
|
|
{{#link-to
|
|
"poll.evaluation"
|
|
model
|
|
tagName="li"
|
|
activeClass="active"
|
|
class="evaluation"
|
|
}}
|
|
{{#link-to "poll.evaluation" model}}
|
|
{{t "poll.tab-title.evaluation"}}
|
|
{{/link-to}}
|
|
{{/link-to}}
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
<div role="tabpanel" class="tab-pane active">
|
|
{{outlet}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{{#bs-modal
|
|
title=(t "poll.modal.timezoneDiffers.title")
|
|
open=mustChooseTimezone
|
|
footer=false
|
|
closeButton=false
|
|
keyboard=false
|
|
autoClose=false
|
|
id="modal-choose-timezone"
|
|
as |modal|
|
|
}}
|
|
{{#modal.body}}
|
|
<p>
|
|
{{t "poll.modal.timezoneDiffers.body"}}
|
|
</p>
|
|
{{/modal.body}}
|
|
{{#modal.footer}}
|
|
{{#bs-button
|
|
onClick=(action "useLocalTimezone")
|
|
class="use-local-timezone"
|
|
}}
|
|
{{t "poll.modal.timezoneDiffers.button.useLocalTimezone"}}
|
|
{{/bs-button}}
|
|
{{#bs-button
|
|
onClick=(action (mut timezoneChoosen) true)
|
|
classNames="use-poll-timezone"
|
|
}}
|
|
{{t "poll.modal.timezoneDiffers.button.usePollTimezone"}}
|
|
{{/bs-button}}
|
|
{{/modal.footer}}
|
|
{{/bs-modal}}
|