From 69a5bc2e1c2fde073b14669b28f4230fbc278c86 Mon Sep 17 00:00:00 2001 From: Olivier PEREZ Date: Tue, 13 Oct 2015 00:42:33 +0200 Subject: [PATCH] Hide poll hint into a modal --- locale/de.json | 1 + locale/en.json | 1 + locale/es.json | 1 + locale/fr.json | 1 + locale/it.json | 1 + tpl/part/poll_hint.tpl | 44 +++++++++++++++++++++++++-------- tpl/part/poll_hint_admin.tpl | 41 ++++++++++++++++++++++++------ tpl/part/vote_table_classic.tpl | 5 +++- tpl/part/vote_table_date.tpl | 5 +++- 9 files changed, 81 insertions(+), 19 deletions(-) diff --git a/locale/de.json b/locale/de.json index a8191e2..16110a0 100644 --- a/locale/de.json +++ b/locale/de.json @@ -37,6 +37,7 @@ "Link": "Link", "Search": "Suche", "Creation date:": "Erstellungsdatum:", + "Caption": "Bildunterschrift", "ASTERISK": "*" }, "Date": { diff --git a/locale/en.json b/locale/en.json index 9f9d699..7cf3d2c 100644 --- a/locale/en.json +++ b/locale/en.json @@ -37,6 +37,7 @@ "Link": "Link", "Search": "Search", "Creation date:": "Creation date:", + "Caption": "Caption", "ASTERISK": "*" }, "Date" : { diff --git a/locale/es.json b/locale/es.json index cf8e31f..37391f5 100644 --- a/locale/es.json +++ b/locale/es.json @@ -37,6 +37,7 @@ "Link": "ES_Lien", "Search": "Búsqueda", "Creation date:": "ES_Date de création :", + "Caption": "Leyenda", "ASTERISK": "*" }, "Date": { diff --git a/locale/fr.json b/locale/fr.json index 01e0250..af50990 100644 --- a/locale/fr.json +++ b/locale/fr.json @@ -37,6 +37,7 @@ "Link": "Lien", "Search": "Chercher", "Creation date:": "Date de création :", + "Caption": "Légende", "ASTERISK": "*" }, "Date": { diff --git a/locale/it.json b/locale/it.json index 3dd15f3..0ca5008 100644 --- a/locale/it.json +++ b/locale/it.json @@ -37,6 +37,7 @@ "Link": "Link", "Search": "IT_Chercher", "Creation date:": "IT_Date de création :", + "Caption": "Titolo", "ASTERISK": "*" }, "Date": { diff --git a/tpl/part/poll_hint.tpl b/tpl/part/poll_hint.tpl index e4c0fc5..29f5c2d 100644 --- a/tpl/part/poll_hint.tpl +++ b/tpl/part/poll_hint.tpl @@ -1,11 +1,35 @@ -{if $active} -
-

{__('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.')}

- + \ No newline at end of file diff --git a/tpl/part/poll_hint_admin.tpl b/tpl/part/poll_hint_admin.tpl index 8a16d08..a750c0c 100644 --- a/tpl/part/poll_hint_admin.tpl +++ b/tpl/part/poll_hint_admin.tpl @@ -1,7 +1,34 @@ -
-

{__('adminstuds', 'As poll administrator, you can change all the lines of this poll with this button')} {__('Generic', 'Edit')}, - {__('adminstuds', 'remove a column or a line with')} {__('Generic', 'Remove')} - {__('adminstuds', 'and add a new column with')} {__('adminstuds', 'Add a column')}.

-

{__('adminstuds', 'Finally, you can change the informations of this poll like the title, the comments or your email address.')}

- -
\ No newline at end of file + diff --git a/tpl/part/vote_table_classic.tpl b/tpl/part/vote_table_classic.tpl index 20fe885..bd092ef 100644 --- a/tpl/part/vote_table_classic.tpl +++ b/tpl/part/vote_table_classic.tpl @@ -2,7 +2,10 @@ {$best_choices = [0]} {/if} -

{__('Poll results', 'Votes of the poll')} {if $hidden}({__('PollInfo', 'Results are hidden.')}){/if}

+

+ {__('Poll results', 'Votes of the poll')} {if $hidden}({__('PollInfo', 'Results are hidden.')}){/if} + +

diff --git a/tpl/part/vote_table_date.tpl b/tpl/part/vote_table_date.tpl index 029e11f..a072a63 100644 --- a/tpl/part/vote_table_date.tpl +++ b/tpl/part/vote_table_date.tpl @@ -2,7 +2,10 @@ {$best_choices = [0]} {/if} -

{__('Poll results', 'Votes of the poll')} {if $hidden}({__('PollInfo', 'Results are hidden.')}){/if}

+

+ {__('Poll results', 'Votes of the poll')} {if $hidden}({__('PollInfo', 'Results are hidden.')}){/if} + +