2014-12-15 13:33:39 +01:00
|
|
|
{extends file='page.tpl'}
|
2014-12-12 13:43:43 +01:00
|
|
|
|
2014-12-15 13:33:39 +01:00
|
|
|
{block name=main}
|
2014-12-12 13:51:13 +01:00
|
|
|
|
2014-12-17 23:12:05 +01:00
|
|
|
{if !empty($message)}
|
2014-12-23 00:59:56 +01:00
|
|
|
<div class="alert alert-dismissible alert-{$message->type}" role="alert">{$message->message}<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button></div>
|
2014-12-17 23:12:05 +01:00
|
|
|
{/if}
|
2014-12-17 13:17:08 +01:00
|
|
|
|
2014-12-17 23:12:05 +01:00
|
|
|
{* Global informations about the current poll *}
|
2014-12-12 13:43:43 +01:00
|
|
|
|
2014-12-18 12:47:51 +01:00
|
|
|
{include 'part/poll_info.tpl' admin=$admin}
|
2014-12-17 13:22:09 +01:00
|
|
|
|
|
|
|
{* Information about voting *}
|
|
|
|
|
2014-12-18 23:57:38 +01:00
|
|
|
{if $admin}
|
|
|
|
{include 'part/poll_hint_admin.tpl'}
|
2014-12-17 13:22:09 +01:00
|
|
|
{else}
|
2014-12-18 23:57:38 +01:00
|
|
|
{include 'part/poll_hint.tpl' active=$poll->active}
|
2014-12-17 13:22:09 +01:00
|
|
|
{/if}
|
|
|
|
|
|
|
|
{* Scroll left and right *}
|
|
|
|
|
|
|
|
<div class="hidden row scroll-buttons" aria-hidden="true">
|
|
|
|
<div class="btn-group pull-right">
|
|
|
|
<button class="btn btn-sm btn-link scroll-left" title="{_('Scroll to the left')}">
|
|
|
|
<span class="glyphicon glyphicon-chevron-left"></span>
|
|
|
|
</button>
|
|
|
|
<button class="btn btn-sm btn-link scroll-right" title="{_('Scroll to the right')}">
|
|
|
|
<span class="glyphicon glyphicon-chevron-right"></span>
|
|
|
|
</button>
|
2014-12-15 13:36:26 +01:00
|
|
|
</div>
|
2014-12-17 13:22:09 +01:00
|
|
|
</div>
|
2014-12-15 13:29:27 +01:00
|
|
|
|
2014-12-17 13:22:09 +01:00
|
|
|
{* Vote table *}
|
2014-12-15 13:29:27 +01:00
|
|
|
|
2014-12-17 23:12:05 +01:00
|
|
|
{include 'part/vote_table.tpl' active=$poll->active}
|
2014-12-15 13:36:26 +01:00
|
|
|
|
2014-12-17 13:22:09 +01:00
|
|
|
{* Comments *}
|
2014-12-15 13:49:25 +01:00
|
|
|
|
2014-12-17 23:12:05 +01:00
|
|
|
{include 'part/comments.tpl' active=$poll->active comments=$comments}
|
2014-12-17 13:22:09 +01:00
|
|
|
|
2014-12-15 13:33:39 +01:00
|
|
|
{/block}
|