Skip to content

Commit

Permalink
Dev: update $sgq ro $basename : mpore clear, send always and use it
Browse files Browse the repository at this point in the history
Dev: move descrivedby by arialabelledby : it's the case
  • Loading branch information
Shnoulle committed Nov 21, 2016
1 parent 1183e49 commit de062d9
Show file tree
Hide file tree
Showing 23 changed files with 85 additions and 68 deletions.
108 changes: 62 additions & 46 deletions application/helpers/qanda_helper.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion application/views/survey/questions/5pointchoice/answer.php
Expand Up @@ -15,7 +15,7 @@
<!-- 5 point choice -->

<!-- answer -->
<ul class="<?php echo $coreClass;?> list-unstyled form-inline" role="radio-group" aria-describedby="ls-question-text-<?php echo $name; ?>">
<ul class="<?php echo $coreClass;?> list-unstyled form-inline" role="radio-group" aria-labelledby="ls-question-text-<?php echo $name; ?>">
<?php
// item_row.php
echo $sRows;
Expand Down
Expand Up @@ -15,7 +15,7 @@
<!-- Date, dropdown layout -->

<!-- answer -->
<div class="<?php echo $coreClass;?> form-group form-inline" role="group" aria-describedby="ls-question-text-<?php echo $name; ?>">
<div class="<?php echo $coreClass;?> form-group form-inline" role="group" aria-labelledby="ls-question-text-<?php echo $name; ?>">
<?php
// rows/*.php
echo $sRows;
Expand Down
Expand Up @@ -13,7 +13,7 @@

<!--Gender question, buttons display -->
<!-- answer -->
<ul class="<?php echo $coreClass;?> list-unstyled form-inline btn-group btn-group-justified" data-toggle="buttons" role="radio-group" aria-describedby="ls-question-text-<?php echo $name; ?>">
<ul class="<?php echo $coreClass;?> list-unstyled form-inline btn-group btn-group-justified" data-toggle="buttons" role="radio-group" aria-labelledby="ls-question-text-<?php echo $basename; ?>">
<!-- Female -->
<li id="javatbd<?php echo $name;?>F" class="button-item btn btn-primary <?php if($fChecked!=''){echo 'active';}?>">
<input
Expand Down
2 changes: 1 addition & 1 deletion application/views/survey/questions/gender/radio/answer.php
Expand Up @@ -14,7 +14,7 @@
<!--Gender question, radio display -->

<!-- answer -->
<ul class="<?php echo $coreClass;?> list-unstyled form-inline" role="radio-group" aria-describedby="ls-question-text-<?php echo $name; ?>" >
<ul class="<?php echo $coreClass;?> list-unstyled form-inline" role="radio-group" aria-labelledby="ls-question-text-<?php echo $basename; ?>" >
<!-- Female -->
<li id='javatbd<?php echo $name; ?>F' class="form-group answer-item radio-item">
<input
Expand Down
Expand Up @@ -23,7 +23,7 @@ class="form-control list-question-select"
name="<?php echo $name; ?>"
id="answer<?php echo $name; ?>"
<?php echo ($dropdownSize) ? "size=$dropdownSize" : "" ; ?>
aria-labelledby="ls-question-text-<?php echo $name; ?>"
aria-labelledby="ls-question-text-<?php echo $basename; ?>"
>
<?php
// rows/option.php
Expand Down
Expand Up @@ -20,7 +20,7 @@
*/
?>

<div class="ls-answers row" role="group" aria-labelledby="ls-question-text-<?php echo $sgq; ?>">
<div class="ls-answers row" role="group" aria-labelledby="ls-question-text-<?php echo $basename; ?>">

<div class="answer-item dropdown-item col-sm-6 col-xs-12">
<select
Expand Down
Expand Up @@ -19,7 +19,7 @@
<!-- List with comment, list style, -->

<!-- answer -->
<div class="<?php echo $coreClass; ?> row" role="group" aria-labelledby="ls-question-text-<?php echo $sgq; ?>">
<div class="<?php echo $coreClass; ?> row" role="group" aria-labelledby="ls-question-text-<?php echo $basename; ?>">
<div class="answers-list radio-list col-sm-6 col-xs-12">
<ul class="list-unstyled" role="radio-group">
<?php
Expand Down
3 changes: 2 additions & 1 deletion application/views/survey/questions/listradio/answer.php
Expand Up @@ -12,7 +12,7 @@
<!-- answer -->
<?php echo $sTimer; ?>

<div class="<?php echo $coreClass;?> row" role="radio-group" aria-describedby="ls-question-text-<?php echo $name; ?>">
<div class="<?php echo $coreClass;?> row" role="radio-group" aria-labelledby="ls-question-text-<?php echo $name; ?>">
<?php
// rows/answer_row.php
echo $sRows;
Expand All @@ -23,5 +23,6 @@
name="java<?php echo $name; ?>"
id="java<?php echo $name; ?>"
value="<?php echo $value;?>"
disabled
/>
<!-- end of answer -->
2 changes: 1 addition & 1 deletion application/views/survey/questions/longfreetext/answer.php
Expand Up @@ -27,7 +27,7 @@ class="form-control <?php echo $kpclass; ?>"
rows="<?php echo $drows; ?>"
<?php echo ($inputsize ? 'cols="'.$inputsize.'"': '') ; ?>
<?php echo ($maxlength ? 'maxlength='.$maxlength: ''); ?>
aria-labelledby="ls-question-text-<?php echo $name; ?>"
aria-labelledby="ls-question-text-<?php echo $basename; ?>"
><?php echo $dispVal;?></textarea>
<?php if($withColumn): ?>
</div>
Expand Down
Expand Up @@ -13,7 +13,7 @@
<!-- answer -->
<?php /* What is the usage of this input ? */ ?>
<input type="hidden" name="MULTI<?php echo $name; ?>" value="<?php echo $anscount; ?>" />
<div class="<?php echo $coreClass;?> row" role="group" aria-describedby="ls-question-text-<?php echo $name; ?>">
<div class="<?php echo $coreClass;?> row" role="group" aria-labelledby="ls-question-text-<?php echo $basename; ?>">
<?php
// rows/answer_row*.php
echo $sRows;
Expand Down
Expand Up @@ -12,7 +12,7 @@

<!-- answer -->
<input type='hidden' name='<?php echo $name; ?>' value='<?php echo $value;?>' />
<ul class="<?php echo $coreClass; ?> list-unstyled" role="group" aria-describedby="ls-question-text-<?php echo $sgq; ?>">
<ul class="<?php echo $coreClass; ?> list-unstyled" role="group" aria-labelledby="ls-question-text-<?php echo $basename; ?>">
<?php
// rows/answer_row.php
echo $sRows;
Expand Down
Expand Up @@ -16,7 +16,7 @@
?>
<!-- Multiple Numerical with slider -->
<!-- answer -->
<ul class='<?php echo $coreClass?> list-unstyled form-horizontal' role="group" aria-describedby="ls-question-text-<?php echo $sgq; ?>">
<ul class='<?php echo $coreClass?> list-unstyled form-horizontal' role="group" aria-labelledby="ls-question-text-<?php echo $basename; ?>">
<?php
// rows/answer_row.php
echo $sRows;
Expand Down
Expand Up @@ -17,7 +17,7 @@
<!-- Multiple Numerical -->

<!-- answer -->
<ul class='<?php echo $coreClass?> list-unstyled form-horizontal' role="group" aria-describedby="ls-question-text-<?php echo $sgq; ?>">
<ul class='<?php echo $coreClass?> list-unstyled form-horizontal' role="group" aria-describedby="ls-question-text-<?php echo $basename; ?>">
<?php
// rows/answer_row.php
echo $sRows;
Expand Down
Expand Up @@ -9,7 +9,7 @@
<!-- Multiple Shor Text -->

<!-- answer -->
<ul class="<?php echo $coreClass?> list-unstyled form-horizontal" role="group" aria-describedby="ls-question-text-<?php echo $sgq; ?>">
<ul class="<?php echo $coreClass?> list-unstyled form-horizontal" role="group" aria-labelledby="ls-question-text-<?php echo $basename; ?>">
<?php
echo $sRows;
?>
Expand Down
2 changes: 1 addition & 1 deletion application/views/survey/questions/numerical/answer.php
Expand Up @@ -42,7 +42,7 @@ class='form-control <?php echo $answertypeclass; ?>'
<?php echo ($maxlength ? 'maxlength='.$maxlength: ''); ?>
data-number='1'
data-integer='<?php echo $integeronly; ?>'
aria-labelledby="ls-question-text-<?php echo $name; ?>"
aria-labelledby="ls-question-text-<?php echo $basename; ?>"
/>
<!-- Suffix -->
<?php if ($suffix !== ''): ?>
Expand Down
2 changes: 1 addition & 1 deletion application/views/survey/questions/ranking/answer.php
Expand Up @@ -24,7 +24,7 @@

<!-- answer -->
<div class="<?php echo $coreClass; ?>">
<ul class="list-unstyled ls-js-hidden-sr answers-list select-list form-horizontal">
<ul class="list-unstyled ls-js-hidden-sr answers-list select-list form-horizontal" role="group" aria-labelledby="ls-question-text-<?php echo $basename; ?>">
<?php
// rows/answer_row.php
echo $sSelects;
Expand Down
Expand Up @@ -22,7 +22,7 @@
zoom['<?php echo $name;?>'] = <?php echo $location_mapzoom;?>;
</script>

<div class="<?php echo $coreClass; ?> <?php echo $extraclass;?>" row" role="group" aria-describedby="ls-question-text-<?php echo $name; ?>">
<div class="<?php echo $coreClass; ?> <?php echo $extraclass;?>" row" role="group" aria-labelledby="ls-question-text-<?php echo $basename; ?>">
<!-- Input Text Location -->
<div class="col-sm-12" >
<input
Expand Down
Expand Up @@ -17,7 +17,7 @@
*/
?>

<div class="<?php echo $coreClass; ?> <?php echo $extraclass; ?> row" role="group" aria-describedby="ls-question-text-<?php echo $name; ?>">
<div class="<?php echo $coreClass; ?> <?php echo $extraclass; ?> row" role="group" aria-labelledby="ls-question-text-<?php echo $basename; ?>">

<div class="geoname_search col-sm-12 " >
<div class="input-group">
Expand Down
Expand Up @@ -37,7 +37,7 @@ class="form-control <?php echo $kpclass;?>"
value="<?php echo $dispVal; ?>"
<?php echo ($inputsize ? 'size="'.$inputsize.'"': '') ; ?>
<?php echo ($maxlength ? 'maxlength='.$maxlength: ''); ?>
aria-labelledby="ls-question-text-<?php echo $name; ?>"
aria-labelledby="ls-question-text-<?php echo $basename; ?>"
/>

<!-- Suffix -->
Expand Down
Expand Up @@ -35,7 +35,7 @@ class="form-control textarea <?php echo $kpclass; ?>"
rows="<?php echo $drows; ?>"
<?php echo ($inputsize ? 'cols="'.$inputsize.'"': '') ; ?>
<?php echo ($maxlength ? 'maxlength='.$maxlength: ''); ?>
aria-labelledby="ls-question-text-<?php echo $name; ?>"
aria-labelledby="ls-question-text-<?php echo $basename; ?>"
><?php echo $dispVal; ?></textarea>

<!-- Suffix -->
Expand Down
2 changes: 1 addition & 1 deletion application/views/survey/questions/yesno/buttons/item.php
Expand Up @@ -10,7 +10,7 @@
* @var $value $_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$name]
*/
?>
<ul class="<?php echo $coreClass;?> list-unstyled form-inline btn-group btn-group-justified" data-toggle="buttons" role="radio-group" aria-describedby="ls-question-text-<?php echo $name; ?>">
<ul class="<?php echo $coreClass;?> list-unstyled form-inline btn-group btn-group-justified" data-toggle="buttons" role="radio-group" aria-labelledby="ls-question-text-<?php echo $basename; ?>">
<!-- Yes -->
<li id="javatbd<?php echo $name;?>Y" class="button-item form-group btn btn-primary <?php if($yChecked){ echo "active";}?>">
<input
Expand Down
2 changes: 1 addition & 1 deletion application/views/survey/questions/yesno/radio/item.php
Expand Up @@ -12,7 +12,7 @@
*/
?>

<ul class="<?php echo $coreClass;?> list-unstyled form-inline" role="radio-group" aria-describedby="ls-question-text-<?php echo $name; ?>">
<ul class="<?php echo $coreClass;?> list-unstyled form-inline" role="radio-group" aria-labelledby="ls-question-text-<?php echo $basename; ?>">
<!-- Yes -->
<li id="javatbd<?php echo $name;?>Y" class="form-group answer-item radio-item">
<input
Expand Down

0 comments on commit de062d9

Please sign in to comment.