2020-01-18 12:17:06 +01:00
|
|
|
{{#let @model as |poll|}}
|
2020-10-27 22:20:35 +01:00
|
|
|
{{page-title poll.title}}
|
2016-08-20 23:28:39 +02:00
|
|
|
|
2023-10-15 21:50:28 +02:00
|
|
|
<div id="poll">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-6 col-lg-5">
|
|
|
|
<div class="box meta-data">
|
|
|
|
<h2 class="title">{{poll.title}}</h2>
|
|
|
|
<p class="description">{{poll.description}}</p>
|
|
|
|
<p class="dates">
|
|
|
|
<span class="creationDate">
|
2018-12-29 20:35:04 +01:00
|
|
|
{{t
|
2023-10-15 21:50:28 +02:00
|
|
|
"poll.created-date"
|
2023-09-21 12:30:14 +02:00
|
|
|
date=(format-date
|
2024-02-17 23:44:26 +01:00
|
|
|
poll.creationDate dateStyle="full" timeStyle="short"
|
2023-09-21 12:30:14 +02:00
|
|
|
)
|
2018-12-29 20:35:04 +01:00
|
|
|
}}
|
|
|
|
</span>
|
2020-01-18 12:17:06 +01:00
|
|
|
{{#if poll.expirationDate}}
|
2023-09-21 12:30:14 +02:00
|
|
|
<br />
|
2023-10-15 21:50:28 +02:00
|
|
|
<span class="expirationDate">
|
2020-01-18 12:17:06 +01:00
|
|
|
{{t
|
2023-10-15 21:50:28 +02:00
|
|
|
"poll.expiration-date"
|
2023-09-21 12:30:14 +02:00
|
|
|
date=(format-date
|
2024-02-17 23:44:26 +01:00
|
|
|
poll.expirationDate dateStyle="full" timeStyle="short"
|
2023-09-21 12:30:14 +02:00
|
|
|
)
|
2020-01-18 12:17:06 +01:00
|
|
|
}}
|
|
|
|
</span>
|
|
|
|
{{/if}}
|
|
|
|
</p>
|
|
|
|
</div>
|
2014-07-07 01:51:58 +02:00
|
|
|
</div>
|
2023-10-15 21:50:28 +02:00
|
|
|
<div class="col-sm-6 col-lg-6 offset-lg-1">
|
2023-11-05 17:06:27 +01:00
|
|
|
<SharePollUrl />
|
2014-07-07 01:51:58 +02:00
|
|
|
</div>
|
2014-07-06 17:37:54 +02:00
|
|
|
</div>
|
|
|
|
|
2020-01-18 12:17:06 +01:00
|
|
|
{{#if this.showExpirationWarning}}
|
2023-10-15 21:50:28 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<BsAlert @type="warning" class="expiration-warning">
|
2020-01-18 12:17:06 +01:00
|
|
|
{{t
|
2023-10-15 21:50:28 +02:00
|
|
|
"poll.expiration-date-warning"
|
2023-09-21 12:30:14 +02:00
|
|
|
timeToNow=(format-date-relative poll.expirationDate)
|
2020-01-18 12:17:06 +01:00
|
|
|
}}
|
|
|
|
</BsAlert>
|
|
|
|
</div>
|
2017-08-26 02:14:09 +02:00
|
|
|
</div>
|
2020-01-18 12:17:06 +01:00
|
|
|
{{/if}}
|
2017-08-26 02:14:09 +02:00
|
|
|
|
2023-10-15 21:50:28 +02:00
|
|
|
<div class="box">
|
|
|
|
<ul class="nav nav-tabs" role="tablist">
|
2023-10-28 19:21:45 +02:00
|
|
|
<li class="nav-item">
|
|
|
|
<LinkTo
|
|
|
|
@route="poll.participation"
|
|
|
|
@model={{poll.id}}
|
|
|
|
class="nav-link"
|
|
|
|
data-test-link="participation"
|
|
|
|
>
|
2023-10-15 21:50:28 +02:00
|
|
|
{{t "poll.tab-title.participation"}}
|
2020-01-18 12:17:06 +01:00
|
|
|
</LinkTo>
|
2023-10-28 19:21:45 +02:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
|
|
|
<LinkTo
|
|
|
|
@route="poll.evaluation"
|
|
|
|
@model={{poll.id}}
|
|
|
|
class="nav-link"
|
|
|
|
data-test-link="evaluation"
|
|
|
|
>
|
2023-10-15 21:50:28 +02:00
|
|
|
{{t "poll.tab-title.evaluation"}}
|
2020-01-18 12:17:06 +01:00
|
|
|
</LinkTo>
|
2023-10-28 19:21:45 +02:00
|
|
|
</li>
|
2020-01-18 12:17:06 +01:00
|
|
|
</ul>
|
2014-07-06 17:37:54 +02:00
|
|
|
|
2023-10-15 21:50:28 +02:00
|
|
|
<div class="tab-content">
|
|
|
|
<div role="tabpanel" class="tab-pane active">
|
2020-01-18 12:17:06 +01:00
|
|
|
{{outlet}}
|
|
|
|
</div>
|
2015-11-02 23:02:59 +01:00
|
|
|
</div>
|
2015-04-02 21:23:06 +02:00
|
|
|
</div>
|
2014-07-07 01:51:58 +02:00
|
|
|
</div>
|
2020-01-18 12:17:06 +01:00
|
|
|
{{/let}}
|
2014-10-28 03:27:54 +01:00
|
|
|
|
2019-11-14 21:18:52 +01:00
|
|
|
<BsModal
|
2023-10-15 21:50:28 +02:00
|
|
|
@title={{t "poll.modal.timezoneDiffers.title"}}
|
2020-01-18 12:17:06 +01:00
|
|
|
@open={{this.mustChooseTimezone}}
|
2019-11-14 21:18:52 +01:00
|
|
|
@footer={{false}}
|
|
|
|
@closeButton={{false}}
|
|
|
|
@keyboard={{false}}
|
|
|
|
@autoClose={{false}}
|
2023-10-15 21:50:28 +02:00
|
|
|
data-test-modal="choose-timezone"
|
2019-11-14 21:18:52 +01:00
|
|
|
as |modal|
|
|
|
|
>
|
|
|
|
<modal.body>
|
2016-05-24 01:07:14 +02:00
|
|
|
<p>
|
2023-10-15 21:50:28 +02:00
|
|
|
{{t "poll.modal.timezoneDiffers.body"}}
|
2016-05-24 01:07:14 +02:00
|
|
|
</p>
|
2019-11-14 21:18:52 +01:00
|
|
|
</modal.body>
|
|
|
|
<modal.footer>
|
|
|
|
<BsButton
|
2023-10-15 17:32:11 +02:00
|
|
|
@onClick={{this.useLocalTimezone}}
|
2023-10-15 21:50:28 +02:00
|
|
|
data-test-button="use-local-timezone"
|
2019-11-14 21:18:52 +01:00
|
|
|
>
|
2023-10-15 21:50:28 +02:00
|
|
|
{{t "poll.modal.timezoneDiffers.button.useLocalTimezone"}}
|
2019-11-14 21:18:52 +01:00
|
|
|
</BsButton>
|
|
|
|
<BsButton
|
2023-11-04 14:54:30 +01:00
|
|
|
@onClick={{this.usePollTimezone}}
|
2023-10-15 21:50:28 +02:00
|
|
|
data-test-button="use-poll-timezone"
|
2019-11-14 21:18:52 +01:00
|
|
|
>
|
2023-10-15 21:50:28 +02:00
|
|
|
{{t "poll.modal.timezoneDiffers.button.usePollTimezone"}}
|
2023-10-15 20:37:03 +02:00
|
|
|
</BsButton>
|
2019-11-14 21:18:52 +01:00
|
|
|
</modal.footer>
|
|
|
|
</BsModal>
|