Skip to content

Commit

Permalink
Dev: Fix some row class
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Oct 18, 2016
1 parent 924837e commit 8d4f367
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions application/helpers/qanda_helper.php
Expand Up @@ -4997,6 +4997,7 @@ function do_array_texts($ia)
$minrepeatheadings = Yii::app()->getConfig("minrepeatheadings");
$coreClass = "ls-answers subquestion-list questions-list";
$coreClass .= " text-array";
$coreRowClass = "subquestion-list questions-list";
$caption = gT("A table of subquestions on each cell. The subquestion texts are in the column header and relate the particular row header.");

if ($thissurvey['nokeyboard']=='Y')
Expand Down Expand Up @@ -5060,6 +5061,7 @@ function do_array_texts($ia)
}

$coreClass .= " number-array";
$coreRowClass .= " number-list";
$caption .= gT("Each answer may only be a number.");
$col_head = '';
switch ($aQuestionAttributes['show_totals'])
Expand Down Expand Up @@ -5279,6 +5281,7 @@ function do_array_texts($ia)
$formatedRowTotal = str_replace(array('[[ROW_NAME]]','[[INPUT_WIDTH]]') , array(strip_tags($answertext),$inputsize) , $row_total);
$sRows .= doRender('/survey/questions/arrays/texts/rows/answer_row', array(
'myfname' => $myfname,
'coreRowClass' => $coreRowClass,
'answertext' => $answertext,
'error' => $error,
'value' => $value,
Expand Down Expand Up @@ -5363,6 +5366,7 @@ function do_array_multiflexi($ia)
$repeatheadings = Yii::app()->getConfig("repeatheadings");
$minrepeatheadings = Yii::app()->getConfig("minrepeatheadings");
$coreClass = "ls-answers subquestion-list questions-list";
$coreRowClass = "subquestion-list questions-list";
$extraclass ="";
$answertypeclass = "";
$caption = gT("A table of subquestions on each cell. The subquestion texts are in the colum header and concern the row header.");
Expand Down Expand Up @@ -5433,6 +5437,7 @@ function do_array_multiflexi($ia)
$checkboxlayout = true;
$answertypeclass = " checkbox-item";
$coreClass .= " checkbox-array";
$coreRowClass .= " checkbox-list";
$caption .= gT("Please check the matching combinations.");
$textAlignment = 'center';
App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('generalscripts')."array-number-checkbox.js",CClientScript::POS_HEAD);
Expand All @@ -5443,6 +5448,7 @@ function do_array_multiflexi($ia)
$inputboxlayout = true;
$answertypeclass .= " numeric-item text-item";
$coreClass .= " text-array number-array";
$coreRowClass .= " text-list number-list";
$extraclass .= " numberonly";
$caption .= gT("Please enter only numbers.");
$textAlignment = 'right';
Expand All @@ -5451,6 +5457,7 @@ function do_array_multiflexi($ia)
{
$answertypeclass = " dropdown-item";
$coreClass .= " dropdown-array";
$coreRowClass .= " dropdown-list";
$caption .= gT("Please select an answer for each combination.");
}

Expand Down Expand Up @@ -5721,6 +5728,7 @@ function do_array_multiflexi($ia)

$sAnswerRows .= doRender('/survey/questions/arrays/multiflexi/rows/answer_row', array(
'sDisplayStyle' => $sDisplayStyle,
'coreRowClass' => $coreRowClass,
'answerwidth' => $answerwidth,
'myfname' => $myfname,
'error' => $error,
Expand Down
Expand Up @@ -16,7 +16,7 @@
?>

<!-- answer_row -->
<tr id="javatbd<?php echo $myfname;?>" class="subquestion-list questions-list <?php echo ($odd) ? "ls-odd" : "ls-even"; ?><?php if($error){ echo " has-error";} ?>" <?php echo $sDisplayStyle;?> role="group" aria-describedby="answertext<?php echo $myfname;?>">
<tr id="javatbd<?php echo $myfname;?>" class="<?php echo $coreRowClass;?> <?php echo ($odd) ? "ls-odd" : "ls-even"; ?><?php if($error){ echo " has-error";} ?>" <?php echo $sDisplayStyle;?> role="group" aria-describedby="answertext<?php echo $myfname;?>">
<th class="answertext control-label" id="answertext<?php echo $myfname;?>">
<?php echo $answertext; ?>
<input
Expand Down
Expand Up @@ -15,7 +15,7 @@
?>

<!-- answer_row -->
<tr id="javatbd<?php echo $myfname;?>" class="subquestion-list questions-list <?php echo ($odd) ? "ls-odd" : "ls-even"; ?><?php echo ($error) ? " has-error" : ""; ?>" role="radiogroup" aria-labelledby="answertext<?php echo $myfname;?>">
<tr id="javatbd<?php echo $myfname;?>" class="<?php echo $coreRowClass;?> <?php echo ($odd) ? "ls-odd" : "ls-even"; ?><?php echo ($error) ? " has-error" : ""; ?>" role="group" aria-labelledby="answertext<?php echo $myfname;?>">
<th id="answertext<?php echo $myfname;?>" class="answertext control-label">
<?php echo $answertext; ?>
<input
Expand Down

0 comments on commit 8d4f367

Please sign in to comment.