Commit 6957d884 authored by Chenu Denis's avatar Chenu Denis
Browse files

[fix] 4.X compat : mandatory send 'N' when not mandatory

parent a732b2a8
......@@ -16,11 +16,11 @@
<supportUrl>https://extensions.sondages.pro/themes-and-templates/skelvanilla-a11y-and-usuability/</supportUrl>
<copyright>Copyright (C) 2018-2019 Denis Chenu / Sondages Pro</copyright>
<license>GNU General Public License version 3 or later</license>
<version>7.1.1</version>
<version>7.1.2</version>
<apiVersion>3</apiVersion>
<description><![CDATA[<strong>LimeSurvey Bootstrap Vanilla Survey Theme with Accessibility and Options</strong><br>Base on vanilla theme, usage of more aria, fix some role and aria from core.<br>Allow usage of a lot of variations, list of variation can be updated. Some decoration option using boostrap class.]]></description>
<last_update>2019-10-25 14:31:50</last_update>
<extends>vanilla</extends>
<lastUpdate>2020-04-03 10:41:53</lastUpdate>
</metadata>
<files>
......
{#
LimeSurvey accessible vanilla
Copyright (C) 2007-2019 Denis Chenu
Copyright (C) 2007-2020 Denis Chenu
Copyright (C) 2007-2018 The LimeSurvey Project Team
All rights reserved.
License: GNU/GPL License v4 or later, see LICENSE.php
......
......@@ -34,7 +34,7 @@
{% endif %}
{% if panel %} <div class="panel-body"> {% endif %}
{% set ariadescribe = '' %}
{% if aQuestion.mandatory != '' %}
{% if aQuestion.mandatory != '' and aQuestion.mandatory != 'N' %}
{% if(aQuestion.man_message) %}
{% set ariadescribe = ariadescribe ~ " question-mandatory-" ~ aQuestion.qid %}
{% else %}
......
{# If the question is mandatory, the asterisk will be shown #}
{% if aQuestion.mandatory != '' %}
{% if aQuestion.mandatory != '' and aQuestion.mandatory != 'N' %}
<!-- Add a visual information + just Mandatory string for aria : can be improved -->
<div id="question-asterisk-{{ aQuestion.qid }}" class="{{ aSurveyInfo.class.questionasterix }} pull-left" {{ aSurveyInfo.attr.questionasterix }} >
<small class="{{ aSurveyInfo.class.questionasterixsmall }} text-danger fa fa-asterisk small" {{ aSurveyInfo.attr.questionasterixsmall }}></small>
......
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