Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: Ranking question, Human Readable views
- Loading branch information
LouisGac
committed
Apr 5, 2016
1 parent
575d5d5
commit 8ab272b
Showing
8 changed files
with
182 additions
and
207 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<?php | ||
/** | ||
* Ranking question, item list header Html | ||
* @var $sOptions : the select options, generated with the view answer_row.php | ||
* | ||
* @var $name | ||
* @var $myfname | ||
* @var $labeltext | ||
* @var $rankId | ||
* @var $rankingName | ||
* @var $max_answers | ||
* @var $min_answers | ||
* @var $qid | ||
* @var $choice_title | ||
* @var $rank_title | ||
* @var $rank_help | ||
* @var $showpopups | ||
* @var $samechoiceheight | ||
* @var $samelistheight | ||
*/ | ||
?> | ||
|
||
<!-- Ranking --> | ||
|
||
<!-- answer --> | ||
<div class="ranking-answers"> | ||
<ul class="list-unstyled answers-list select-list"> | ||
<li class="select-item"> | ||
<label for="answer<?php echo $myfname;?>"> | ||
<?php echo $labeltext;?> | ||
</label> | ||
|
||
<select class='form-control' name="<?php echo $myfname;?>" id="answer<?php echo $myfname;?>"> | ||
|
||
<?php | ||
// rows/answer_row.php | ||
echo $sOptions; | ||
?> | ||
</select> | ||
|
||
<!-- Hidden form: maybe can be replaced with ranking.js --> | ||
<input type="hidden" id="java<?php echo $myfname;?>" disabled="disabled" value="<?php echo $thisvalue; ?>"/> | ||
</li> | ||
</ul> | ||
|
||
<div style='display:none' id='ranking-<?php echo $rankId;?>-maxans'> | ||
<?php echo $max_answers;?> | ||
</div> | ||
|
||
<div style='display:none' id='ranking-<?php echo $rankId;?>-minans'> | ||
<?php echo $min_answers;?> | ||
</div> | ||
|
||
<div style='display:none' id='ranking-<?php echo $rankId;?>-name'> | ||
<?php echo $rankingName;?> | ||
</div> | ||
</div> | ||
|
||
<!-- The list with HTML answers --> | ||
<div style="display:none"> | ||
<?php foreach ($answers as $ansrow):?> | ||
<div id="htmlblock-<?php echo $rankId;?>-<?php echo $ansrow['code'];?>"> | ||
<?php echo $ansrow['answer']; ?> | ||
</div> | ||
<?php endforeach;?> | ||
</div> | ||
|
||
|
||
<script type='text/javascript'> | ||
<!-- | ||
var aRankingTranslations = { | ||
choicetitle: '<?php echo $choice_title;?>', | ||
ranktitle: '<?php echo $rank_title;?>', | ||
rankhelp: '<?php echo $rank_help;?>' | ||
}; | ||
|
||
doDragDropRank(<?php echo $rankId; ?>, <?php echo $showpopups;?>,<?php echo $samechoiceheight;?>,<?php echo $samelistheight;?>); | ||
--> | ||
</script> | ||
<!-- end of answer --> |
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
application/views/survey/questions/ranking/item_list_footer.php
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
application/views/survey/questions/ranking/item_list_header.php
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
application/views/survey/questions/ranking/second_list.php
This file was deleted.
Oops, something went wrong.