-
Notifications
You must be signed in to change notification settings - Fork 988
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: quanda cleaning, and views for array 5point question type
- Loading branch information
LouisGac
committed
Mar 22, 2016
1 parent
9f9ceac
commit 178fb70
Showing
20 changed files
with
245 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
</tr> |
3 changes: 3 additions & 0 deletions
3
application/views/survey/questions/arrays/5point/close_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
</tbody> | ||
</table> | ||
</div> |
3 changes: 3 additions & 0 deletions
3
application/views/survey/questions/arrays/5point/close_table_head.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
</tr> | ||
</thead> | ||
<tbody> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
/** | ||
* Array 5pointchoice, column | ||
* | ||
* @var $odd_even | ||
* @var $cellwidth | ||
*/ | ||
?> | ||
<col class="<?php echo $odd_even; ?>" style='width: <?php echo $cellwidth; ?>%;' /> |
12 changes: 12 additions & 0 deletions
12
application/views/survey/questions/arrays/5point/header.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
/** | ||
* array 5 point choice Html : Header | ||
* @var $extraclass | ||
* | ||
*/ | ||
?> | ||
<div class="no-more-tables no-more-tables-5-point"> | ||
<!-- Array 5 point choice --> | ||
<table class="table question subquestion-list questions-list <?php echo $extraclass; ?>"> | ||
<colgroup class="col-responses"> | ||
<col class="col-answers" /> |
9 changes: 9 additions & 0 deletions
9
application/views/survey/questions/arrays/5point/open_table_head.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
/** | ||
* | ||
*/ | ||
?> | ||
</colgroup> | ||
<thead> | ||
<tr class="array1 dontread"> | ||
<th> </th> |
4 changes: 4 additions & 0 deletions
4
application/views/survey/questions/arrays/5point/table_headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
<th class='<?php echo $class'> | ||
<?php echo $th_content;?> | ||
</th> |
11 changes: 11 additions & 0 deletions
11
application/views/survey/questions/arrays/5point/table_headers.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
/** | ||
* | ||
* @var $class | ||
* @var $style | ||
* @var $th_content | ||
*/ | ||
?> | ||
<th class='<?php echo $class; ?>' style=<?php echo $style; ?>> | ||
<?php echo $th_content;?> | ||
</th> |
9 changes: 9 additions & 0 deletions
9
application/views/survey/questions/arrays/5point/td_answertext.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
/** | ||
* @var $answerwidth | ||
* @var $answertext2 | ||
*/ | ||
?> | ||
<td class="answertextright" style='text-align:left; width: <?php echo $answerwidth; ?>%;'> | ||
<?php echo $answertext2;?> | ||
</td> |
22 changes: 22 additions & 0 deletions
22
application/views/survey/questions/arrays/5point/td_input.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* @var $i | ||
* @var $myfname | ||
* @var $CHECKED | ||
* @var $checkconditionFunction | ||
* @var $value | ||
*/ | ||
?> | ||
<td data-title='<?php echo $i;?>' class="answer-cell-1 answer_cell_00<?php echo $i;?> answer-item radio-item"> | ||
<label for="answer<?php echo $myfname;?>-<?php echo $i; ?>"> | ||
<input | ||
class="radio" | ||
type="radio" | ||
name="<?php echo $myfname; ?>" | ||
id="answer<?php echo $myfname; ?>-<?php echo $i;?>" | ||
value="<?php echo $value; ?>" | ||
<?php echo $CHECKED;?> | ||
onclick="<?php echo $checkconditionFunction; ?>(this.value, this.name, this.type)" | ||
/> | ||
</label> | ||
</td> |
19 changes: 19 additions & 0 deletions
19
application/views/survey/questions/arrays/5point/tr_open.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
/** | ||
* @var $myfname | ||
* @var $answerwidth | ||
* @var $answertext | ||
* @var $value | ||
*/ | ||
?> | ||
<tr id="javatbd<?php echo $myfname;?>" class="well answers-list radio-list" <?php echo $sDisplayStyle; ?>> | ||
<th class="answertext" style="width: <?php echo $answerwidth;?>%;"> | ||
<?php if($error): ?> | ||
<div class="alert alert-danger" role="alert"> | ||
<?php echo $answertext;?> | ||
</div> | ||
<?php else: ?> | ||
<?php echo $answertext;?> | ||
<?php endif;?> | ||
<input name="java<?php echo $myfname;?>" id="java<?php echo $myfname;?>" value="<?php echo $value;?>" type="hidden"> | ||
</th> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
/** | ||
* JavaScript snippet for ranking question | ||
* TODO: create a js file, and move variable to data- HTML5 element in the HTML view. | ||
* | ||
* @var $qid $ia[0] | ||
* @var $choice_title | ||
* @var $rank_title | ||
* @var $rank_help | ||
* @var $showpopups $aQuestionAttributes["showpopups"] | ||
* @var $samechoiceheight $aQuestionAttributes["samechoiceheight"] | ||
* @var $samelistheight $aQuestionAttributes["samelistheight"] | ||
*/ | ||
?> | ||
<script type='text/javascript'> | ||
<!-- | ||
var aRankingTranslations = { | ||
choicetitle: '<?php echo $choice_title;?>', | ||
ranktitle: '<?php echo $rank_title;?>', | ||
rankhelp: '<?php echo $rank_help;?>' | ||
}; | ||
|
||
doDragDropRank(<?php echo $qid; ?>, <?php echo $showpopups;?>,<?php echo $samechoiceheight;?>,<?php echo $samelistheight;?>); | ||
--> | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters