Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: 5 point choice question, human readable views
- Loading branch information
LouisGac
committed
Apr 4, 2016
1 parent
a6fd42d
commit 62628e8
Showing
7 changed files
with
104 additions
and
106 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
31 changes: 0 additions & 31 deletions
31
application/views/survey/questions/5pointchoice/5pointchoice_footer.php
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
application/views/survey/questions/5pointchoice/5pointchoice_header.php
This file was deleted.
Oops, something went wrong.
47 changes: 47 additions & 0 deletions
47
application/views/survey/questions/5pointchoice/answer.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,47 @@ | ||
<?php | ||
/** | ||
* 5 point choice Html | ||
* | ||
* @var $sRows : the rows, generated with the view item_row.php | ||
* @var $slider_rating : slider rating display in question attribute | ||
* | ||
* @var $id | ||
* @var $sliderId $ia[0]; | ||
* @var $name' => $ia[1], | ||
* @var $sessionValue | ||
*/ | ||
?> | ||
|
||
<!-- 5 point choice --> | ||
|
||
<!-- answer --> | ||
<div id="<?php echo $id; ?>" class="answers-list five-point-choice radio-list"> | ||
|
||
<?php | ||
// item_row.php | ||
echo $sRows; | ||
?> | ||
|
||
<!-- 5 point choice footer --> | ||
<input | ||
type="hidden" | ||
name="java<?php echo $name;?>" | ||
id="java<?php echo $name;?>" | ||
value="<?php echo $sessionValue;?>" | ||
/> | ||
|
||
<?php if($slider_rating==1):?> | ||
<script type='text/javascript'> | ||
<!-- | ||
doRatingStar( <?php echo $sliderId;?> ); | ||
--> | ||
</script> | ||
<?php elseif($slider_rating==2):?> | ||
<script type='text/javascript'> | ||
<!-- | ||
doRatingSlider( <?php echo $sliderId; ?> ); | ||
--> | ||
</script> | ||
<?php endif;?> | ||
</div> | ||
<!-- end of answer --> |
24 changes: 0 additions & 24 deletions
24
application/views/survey/questions/5pointchoice/item_noanswer_row.php
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
application/views/survey/questions/5pointchoice/item_row.php
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
application/views/survey/questions/5pointchoice/rows/item_row.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,30 @@ | ||
<?php | ||
/** | ||
* 5 point choice Html : item row | ||
* | ||
* @var $name | ||
* @var $value | ||
* @var $id | ||
* @var $labelText | ||
* @var $itemExtraClass | ||
* @var $checkedState | ||
* @var $checkconditionFunction | ||
*/ | ||
?> | ||
|
||
<!-- item_row --> | ||
<div class="col-xs-12 col-sm-2 answer-item radio-item <?php echo $itemExtraClass; ?>"> | ||
<input | ||
class="radio" | ||
type="radio" | ||
name="<?php echo $name; ?>" | ||
id="answer<?php echo $id; ?>" | ||
value="<?php echo $value;?>" | ||
<?php echo $checkedState; ?> | ||
onclick="<?php echo $checkconditionFunction; ?>(this.value, this.name, this.type)" | ||
/> | ||
<label for="answer<?php echo $id; ?>" class="answertext radio-label"> | ||
<?php echo $labelText; ?> | ||
</label> | ||
</div> | ||
<!-- end of item_row --> |