Merge branch 'feature/hide_hint_panel' into 'develop'

Cacher le message d'aide

J'ai caché le message d'aide dans un modal qu'on ouvre via le bouton (?).

See merge request !68
This commit is contained in:
Olivier Perez 2015-10-13 01:08:32 +02:00
commit c3183d564f
9 changed files with 81 additions and 19 deletions

View File

@ -37,6 +37,7 @@
"Link": "Link", "Link": "Link",
"Search": "Suche", "Search": "Suche",
"Creation date:": "Erstellungsdatum:", "Creation date:": "Erstellungsdatum:",
"Caption": "Bildunterschrift",
"ASTERISK": "*" "ASTERISK": "*"
}, },
"Date": { "Date": {

View File

@ -37,6 +37,7 @@
"Link": "Link", "Link": "Link",
"Search": "Search", "Search": "Search",
"Creation date:": "Creation date:", "Creation date:": "Creation date:",
"Caption": "Caption",
"ASTERISK": "*" "ASTERISK": "*"
}, },
"Date" : { "Date" : {

View File

@ -37,6 +37,7 @@
"Link": "ES_Lien", "Link": "ES_Lien",
"Search": "Búsqueda", "Search": "Búsqueda",
"Creation date:": "ES_Date de création :", "Creation date:": "ES_Date de création :",
"Caption": "Leyenda",
"ASTERISK": "*" "ASTERISK": "*"
}, },
"Date": { "Date": {

View File

@ -37,6 +37,7 @@
"Link": "Lien", "Link": "Lien",
"Search": "Chercher", "Search": "Chercher",
"Creation date:": "Date de création :", "Creation date:": "Date de création :",
"Caption": "Légende",
"ASTERISK": "*" "ASTERISK": "*"
}, },
"Date": { "Date": {

View File

@ -37,6 +37,7 @@
"Link": "Link", "Link": "Link",
"Search": "IT_Chercher", "Search": "IT_Chercher",
"Creation date:": "IT_Date de création :", "Creation date:": "IT_Date de création :",
"Caption": "Titolo",
"ASTERISK": "*" "ASTERISK": "*"
}, },
"Date": { "Date": {

View File

@ -1,11 +1,35 @@
<div id="hint_modal" class="modal fade">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title">{__('Generic', 'Caption')}</h4>
</div>
<div class="modal-body">
{if $active} {if $active}
<div class="alert alert-info"> <div class="alert alert-info">
<p>{__('studs', '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>{__('studs', '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>{__('Generic', 'Legend:')}</b> <span class="glyphicon glyphicon-ok"></span> = {__('Generic', 'Yes')}, <b>(<span class="glyphicon glyphicon-ok"></span>)</b> = {__('Generic', 'Ifneedbe')}, <span class="glyphicon glyphicon-ban-circle"></span> = {__('Generic', 'No')}</p>
<p aria-hidden="true"><b>{__('Generic', 'Legend:')}</b> <span
class="glyphicon glyphicon-ok"></span>
= {__('Generic', 'Yes')}, <b>(<span class="glyphicon glyphicon-ok"></span>)</b>
= {__('Generic', 'Ifneedbe')}, <span class="glyphicon glyphicon-ban-circle"></span>
= {__('Generic', 'No')}</p>
</div> </div>
{else} {else}
<div class="alert alert-danger"> <div class="alert alert-danger">
<p>{__('studs', 'POLL_LOCKED_WARNING')}</p> <p>{__('studs', 'POLL_LOCKED_WARNING')}</p>
<p aria-hidden="true"><b>{__('Generic', 'Legend:')}</b> <span class="glyphicon glyphicon-ok"></span> = {__('Generic', 'Yes')}, <b>(<span class="glyphicon glyphicon-ok"></span>)</b> = {__('Generic', 'Ifneedbe')}, <span class="glyphicon glyphicon-ban-circle"></span> = {__('Generic', 'No')}</p>
<p aria-hidden="true"><b>{__('Generic', 'Legend:')}</b> <span
class="glyphicon glyphicon-ok"></span>
= {__('Generic', 'Yes')}, <b>(<span class="glyphicon glyphicon-ok"></span>)</b>
= {__('Generic', 'Ifneedbe')}, <span class="glyphicon glyphicon-ban-circle"></span>
= {__('Generic', 'No')}</p>
</div> </div>
{/if} {/if}
</div>
</div>
</div>
</div>

View File

@ -1,7 +1,34 @@
<div class="alert alert-info"> <div id="hint_modal" class="modal fade">
<p>{__('adminstuds', '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">{__('Generic', 'Edit')}</span>, <div class="modal-dialog modal-lg">
{__('adminstuds', 'remove a column or a line with')} <span class="glyphicon glyphicon-remove text-danger"></span><span class="sr-only">{__('Generic', 'Remove')}</span> <div class="modal-content">
{__('adminstuds', 'and add a new column with')} <span class="glyphicon glyphicon-plus text-success"></span><span class="sr-only">{__('adminstuds', 'Add a column')}</span>.</p> <div class="modal-header">
<p>{__('adminstuds', 'Finally, you can change the informations of this poll like the title, the comments or your email address.')}</p> <button type="button" class="close" data-dismiss="modal" aria-label="Close">
<p aria-hidden="true"><strong>{__('Generic', 'Legend:')}</strong> <span class="glyphicon glyphicon-ok"></span> = {__('Generic', 'Yes')}, <b>(<span class="glyphicon glyphicon-ok"></span>)</b> = {__('Generic', 'Ifneedbe')}, <span class="glyphicon glyphicon-ban-circle"></span> = {__('Generic', 'No')}</p> <span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title">{__('Generic', 'Caption')}</h4>
</div> </div>
<div class="modal-body">
<div class="alert alert-info">
<p>{__('adminstuds', '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">{__('Generic', 'Edit')}</span>,
{__('adminstuds', 'remove a column or a line with')} <span
class="glyphicon glyphicon-remove text-danger"></span><span
class="sr-only">{__('Generic', 'Remove')}</span>
{__('adminstuds', 'and add a new column with')} <span
class="glyphicon glyphicon-plus text-success"></span><span
class="sr-only">{__('adminstuds', 'Add a column')}</span>.</p>
<p>{__('adminstuds', 'Finally, you can change the informations of this poll like the title, the comments or your email address.')}</p>
<p aria-hidden="true"><strong>{__('Generic', 'Legend:')}</strong> <span
class="glyphicon glyphicon-ok"></span> = {__('Generic', 'Yes')}, <b>(<span
class="glyphicon glyphicon-ok"></span>)</b> = {__('Generic', 'Ifneedbe')}, <span
class="glyphicon glyphicon-ban-circle"></span> = {__('Generic', 'No')}</p>
</div>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div><!-- /.modal -->

View File

@ -2,7 +2,10 @@
{$best_choices = [0]} {$best_choices = [0]}
{/if} {/if}
<h3>{__('Poll results', 'Votes of the poll')} {if $hidden}<i>({__('PollInfo', 'Results are hidden.')})</i>{/if}</h3> <h3>
{__('Poll results', 'Votes of the poll')} {if $hidden}<i>({__('PollInfo', 'Results are hidden.')})</i>{/if}
<a href="" data-toggle="modal" data-target="#hint_modal"><i class="glyphicon glyphicon-info-sign"></i></a>
</h3>
<div id="tableContainer" class="tableContainer"> <div id="tableContainer" class="tableContainer">
<form action="{if $admin}{poll_url id=$admin_poll_id admin=true}{else}{poll_url id=$poll_id}{/if}" method="POST" id="poll_form"> <form action="{if $admin}{poll_url id=$admin_poll_id admin=true}{else}{poll_url id=$poll_id}{/if}" method="POST" id="poll_form">

View File

@ -2,7 +2,10 @@
{$best_choices = [0]} {$best_choices = [0]}
{/if} {/if}
<h3>{__('Poll results', 'Votes of the poll')} {if $hidden}<i>({__('PollInfo', 'Results are hidden.')})</i>{/if}</h3> <h3>
{__('Poll results', 'Votes of the poll')} {if $hidden}<i>({__('PollInfo', 'Results are hidden.')})</i>{/if}
<a href="" data-toggle="modal" data-target="#hint_modal"><i class="glyphicon glyphicon-info-sign"></i></a>
</h3>
<div id="tableContainer" class="tableContainer"> <div id="tableContainer" class="tableContainer">