Commit 0b293edf authored by Chenu Denis's avatar Chenu Denis

[fix] Comments on list with comments are set on required

parent 77026a5e
......@@ -15,10 +15,10 @@
<supportUrl>https://extensions.sondages.pro/themes-and-templates/skelvanilla-a11y-and-usuability/?var_mode=calcul</supportUrl>
<copyright>Copyright (C) 2018 Denis Chenu / Sondages Pro</copyright>
<license>GNU General Public License version 3 or later</license>
<version>4.7.6</version>
<version>4.7.7</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-05-12 12:54:30</last_update>
<last_update>2019-05-12 13:06:19</last_update>
<extends>vanilla</extends>
</metadata>
......
{#
/**
* List with comment, dropdown layout, Html
*
* @var $sOptions : the select options, generated with the view rows/option.php
*
* @var $name
* @var $id
* @var $checkconditionFunction
* @var $show_noanswer
* @var $label_text
* @var $kpclass
* @var $tarows
* @var $maxoptionsize
* @var $has_comment_saved
* @var $comment_saved htmlspecialchars( $_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$fname2])
* @var $value $_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$ia[1]] /// SHOULD BE CALL VALUE
* @var sgq : basename for input
* @todo : control if dropdown need labelledby or if labelledby in group is OK. Think automatic system return needed ...
*/
#}
<div class="ls-answers row" role="group" aria-labelledby="ls-question-text-{{ basename }}">
<div class="answer-item dropdown-item col-sm-6 col-xs-12">
<!-- This need a label :/ -->
<select
class="select form-control"
name="{{ name }}"
id="{{ id }}"
>
{% if show_noanswer %}
<option class="noanswer-item" value="">
{{ gT('Please choose...') }}
</option>
{% endif %}
{# rows/option.php #}
{{ sOptions }}
</select>
<!-- Input copy for EM : default is radio and EM use id -->
<input type="hidden" name="java{{ name }}" id="java{{ name }}" value="{{ value }}" disabled />
</div>
<div class="answer-item text-item comment-item col-sm-6 col-xs-12">
<label for="answer{{ name }}comment">
{{ processString(label_text) }}:
</label>
<textarea
class="form-control textarea {{ kpclass }}"
name="{{ name }}comment"
id="answer{{ name }}comment"
rows="{{ tarows }}"
cols="{{ maxoptionsize }}"
>{{ comment_saved }}</textarea>
</div>
</div>
{#
/**
* List with comment, list style, Html
*
* @var $sRows : the list of radio, generated with the view answer_row.php
*
* @var $id
* @var $hint_comment
* @var $kpclass
* @var $name
* @var $tarows
* @var $has_comment_saved
* @var $comment_saved
* @var $java_name
* @var $java_id
* @var $java_value
*/
#}
<!-- List with comment, list style, -->
<!-- answer -->
<div class="{{ coreClass }} row" role="group" aria-labelledby="ls-question-text-{{ basename }}">
<div class="answers-list radio-list col-sm-6 col-xs-12">
<ul class="list-unstyled" role="radiogroup">
{# rows/row.php #}
{{ sRows }}
</ul>
{# Value for expression manager javascript (use id) ; no need to submit #}
{{ C.Html.hiddenField(java_name,java_value,({
'id' : java_id,
'disabled' : true,
}))
}}
</div>
<div class="form-group answer-item text-item comment-item col-sm-6 col-xs-12">
<label class="control-label" for="{{ id }}">
{{ processString(hint_comment) }}:
</label>
{{ C.Html.textArea(name,comment_saved,({
'id' : id,
'class' : "form-control"~kpclass,
'rows' : tarows
}))
}}
</div>
</div>
<!-- end of answer -->
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