Commit 7212c44e authored by Chenu Denis's avatar Chenu Denis

[fix] No warning message about survey without JS

parent cada7c8c
...@@ -43,14 +43,24 @@ ...@@ -43,14 +43,24 @@
</div> </div>
{% endif %} {% endif %}
{# Error Html warnings #}
{% if aSurveyInfo.errorHtml.show %} {% if(count(aSurveyInfo.errorHtml.messages) == 1) %}
<p class=' {# Uncomment to hide when popup is on { aSurveyInfo.errorHtml.hiddenClass } #} fade in alert-dismissible alert alert-danger {{ aSurveyInfo.class.errorHtml }} ' role='alert'> <p class='{{ aSurveyInfo.errorHtml.hiddenClass }} fade in alert-dismissible alert alert-danger {{ aSurveyInfo.class.errorHtml }} ' role='alert'>
<button {{ aSurveyInfo.attr.errorHtmlbutton }} class="{{ aSurveyInfo.class.errorHtmlbutton }} close" ><span aria-hidden="true">×</span><span class="sr-only">{{ gT("Close") }}</span></button> <button {{ aSurveyInfo.attr.errorHtmlbutton }} class="{{ aSurveyInfo.class.errorHtmlbutton }} close ls-no-js-hidden" ><span aria-hidden="true">×</span><span class="sr-only">{{ gT("Close") }}</span></button>
{% for aMessage in aSurveyInfo.errorHtml.messages %} {% for aMessage in aSurveyInfo.errorHtml.messages %}
<!-- Error Html warnings --> <!-- Error Html warnings -->
{{ aMessage }} {{ aMessage }}
<br/> {% endfor %}
{% endfor %}
</p> </p>
{% endif %} {% endif %}
{% if(count(aSurveyInfo.errorHtml.messages) > 1) %}
<div class='{{ aSurveyInfo.errorHtml.hiddenClass }} fade in alert-dismissible alert alert-danger {{ aSurveyInfo.class.errorHtml }} ' role='alert'>
<button {{ aSurveyInfo.attr.errorHtmlbutton }} class="{{ aSurveyInfo.class.errorHtmlbutton }} close ls-no-js-hidden" ><span aria-hidden="true">×</span><span class="sr-only">{{ gT("Close") }}</span></button>
<ul>
{% for aMessage in aSurveyInfo.errorHtml.messages %}
<!-- Error Html warnings -->
<li>{{ aMessage }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment