When Javascript is disabled then show message instead a the form to create poll
This commit is contained in:
parent
c1d4bed4d5
commit
60f340f65f
@ -215,7 +215,7 @@ if ($_SESSION['form']->receiveNewComments) {
|
||||
|
||||
// Display form
|
||||
echo '
|
||||
<div class="row">
|
||||
<div class="row" style="display:none" id="form-block">
|
||||
<div class="col-md-8 col-md-offset-2" >
|
||||
<form name="formulaire" id="formulaire" action="' . Utils::get_server_name() . 'infos_sondage.php" method="POST" class="form-horizontal" role="form">
|
||||
|
||||
@ -296,4 +296,16 @@ echo '
|
||||
</div>
|
||||
</div>';
|
||||
|
||||
echo '
|
||||
<script>
|
||||
document.getElementById("form-block").setAttribute("style", "");
|
||||
</script>
|
||||
<noscript>
|
||||
<div class="alert alert-danger">'.
|
||||
_('Javascript is disabled on your browser. Its activation is required to create a poll.')
|
||||
.'</div>
|
||||
</noscript>
|
||||
';
|
||||
|
||||
|
||||
bandeau_pied();
|
||||
|
Binary file not shown.
@ -427,6 +427,9 @@ msgstr "Bei jeder neuen Abstimmung eine E-Mail erhalten."
|
||||
msgid "Go to step 2"
|
||||
msgstr "Weiter zum 2. Schritt"
|
||||
|
||||
msgid "Javascript is disabled on your browser. Its activation is required to create a poll."
|
||||
msgstr "Javascript ist in Ihrem Browser deaktiviert. Seine Aktivierung ist erforderlich, um eine Umfrage zu erstellen."
|
||||
|
||||
# Errors info_sondage.php
|
||||
msgid "Enter a title"
|
||||
msgstr "Titel eingeben"
|
||||
|
Binary file not shown.
@ -454,6 +454,9 @@ msgstr "To receive an email for each new vote."
|
||||
msgid "Go to step 2"
|
||||
msgstr "Go to step 2"
|
||||
|
||||
msgid "Javascript is disabled on your browser. Its activation is required to create a poll."
|
||||
msgstr "Javascript is disabled on your browser. Its activation is required to create a poll."
|
||||
|
||||
# Errors info_sondage.php
|
||||
msgid "Enter a title"
|
||||
msgstr "Enter a title"
|
||||
|
Binary file not shown.
Binary file not shown.
@ -454,6 +454,9 @@ msgstr "Vous souhaitez recevoir un courriel à chaque participation d'un sondé.
|
||||
msgid "Go to step 2"
|
||||
msgstr "Aller à l'étape 2"
|
||||
|
||||
msgid "Javascript is disabled on your browser. Its activation is required to create a poll."
|
||||
msgstr "Javascript semble désactivé sur votre navigateur. Son activation est requise pour la création d'un sondage."
|
||||
|
||||
# Errors info_sondage.php
|
||||
msgid "Enter a title"
|
||||
msgstr "Il faut saisir un titre !"
|
||||
|
Loading…
Reference in New Issue
Block a user