Display a different hint pane on admin page.
This commit is contained in:
parent
446bbece58
commit
187c84074e
11
tpl/part/poll_hint.tpl
Normal file
11
tpl/part/poll_hint.tpl
Normal file
@ -0,0 +1,11 @@
|
||||
{if $active}
|
||||
<div class="alert alert-info">
|
||||
<p>{_("If you want to vote in this poll, you have to give your name, choose the values that fit best for you and validate with the plus button at the end of the line.")}</p>
|
||||
<p aria-hidden="true"><b>{_('Legend:')}</b> <span class="glyphicon glyphicon-ok"></span> = {_('Yes')}, <b>(<span class="glyphicon glyphicon-ok"></span>)</b> = {_('Ifneedbe')}, <span class="glyphicon glyphicon-ban-circle"></span> = {_('No')}</p>
|
||||
</div>
|
||||
{else}
|
||||
<div class="alert alert-danger">
|
||||
<p>{_("The administrator locked this poll, votes and comments are frozen, it's not possible to participate anymore.")}</p>
|
||||
<p aria-hidden="true"><b>{_('Legend:')}</b> <span class="glyphicon glyphicon-ok"></span> = {_('Yes')}, <b>(<span class="glyphicon glyphicon-ok"></span>)</b> = {_('Ifneedbe')}, <span class="glyphicon glyphicon-ban-circle"></span> = {_('No')}</p>
|
||||
</div>
|
||||
{/if}
|
7
tpl/part/poll_hint_admin.tpl
Normal file
7
tpl/part/poll_hint_admin.tpl
Normal file
@ -0,0 +1,7 @@
|
||||
<div class="alert alert-info">
|
||||
<p>{_('As poll administrator, you can change all the lines of this poll with this button')} <span class="glyphicon glyphicon-pencil"></span><span class="sr-only">{_('Edit')}</span>,
|
||||
{_(' remove a column or a line with')} <span class="glyphicon glyphicon-remove text-danger"></span><span class="sr-only">{_('Remove')}</span>
|
||||
{_('and add a new column with')} <span class="glyphicon glyphicon-plus text-success"></span><span class="sr-only">{_('Add a column')}</span>.</p>
|
||||
<p>{_('Finally, you can change the informations of this poll like the title, the comments or your email address.')}</p>
|
||||
<p aria-hidden="true"><strong>{_('Legend:')}</strong> <span class="glyphicon glyphicon-ok"></span> = {_('Yes')}, <b>(<span class="glyphicon glyphicon-ok"></span>)</b> = {_('Ifneedbe')}, <span class="glyphicon glyphicon-ban-circle"></span> = {_('No')}</p>
|
||||
</div>
|
@ -12,16 +12,10 @@
|
||||
|
||||
{* Information about voting *}
|
||||
|
||||
{if $poll->active}
|
||||
<div class="alert alert-info">
|
||||
<p>{_("If you want to vote in this poll, you have to give your name, choose the values that fit best for you and validate with the plus button at the end of the line.")}</p>
|
||||
<p aria-hidden="true"><b>{_('Legend:')}</b> <span class="glyphicon glyphicon-ok"></span> = {_('Yes')}, <b>(<span class="glyphicon glyphicon-ok"></span>)</b> = {_('Ifneedbe')}, <span class="glyphicon glyphicon-ban-circle"></span> = {_('No')}</p>
|
||||
</div>
|
||||
{if $admin}
|
||||
{include 'part/poll_hint_admin.tpl'}
|
||||
{else}
|
||||
<div class="alert alert-danger">
|
||||
<p>{_("The administrator locked this poll, votes and comments are frozen, it's not possible to participate anymore.")}</p>
|
||||
<p aria-hidden="true"><b>{_('Legend:')}</b> <span class="glyphicon glyphicon-ok"></span> = {_('Yes')}, <b>(<span class="glyphicon glyphicon-ok"></span>)</b> = {_('Ifneedbe')}, <span class="glyphicon glyphicon-ban-circle"></span> = {_('No')}</p>
|
||||
</div>
|
||||
{include 'part/poll_hint.tpl' active=$poll->active}
|
||||
{/if}
|
||||
|
||||
{* Scroll left and right *}
|
||||
|
Loading…
Reference in New Issue
Block a user