Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: created views for 5pointchoice question
- Loading branch information
LouisGac
committed
Jan 8, 2016
1 parent
215525d
commit 9e0622f
Showing
5 changed files
with
120 additions
and
19 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
29 changes: 29 additions & 0 deletions
29
application/views/survey/questions/5pointchoice/5pointchoice_footer.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,29 @@ | ||
<?php | ||
/** | ||
* 5 point choice : Footer | ||
* | ||
* @var $ia | ||
* @var $sJavaValue | ||
* @var slider_rating | ||
*/ | ||
?> | ||
</div> | ||
<input | ||
type="hidden" | ||
name="java<?php echo $ia[1];?>" | ||
id="java<?php echo $ia[1];?>" | ||
value="<?php echo $sJavaValue;?>" | ||
/> | ||
<?php if($slider_rating==1):?> | ||
<script type='text/javascript'> | ||
<!-- | ||
doRatingStar( <?php echo $ia[0];?> ); | ||
--> | ||
</script> | ||
<?php elseif($slider_rating==2):?> | ||
<script type='text/javascript'> | ||
<!-- | ||
doRatingSlider( <?php echo $ia[0]; ?> ); | ||
--> | ||
</script> | ||
<?php endif;?> |
8 changes: 8 additions & 0 deletions
8
application/views/survey/questions/5pointchoice/5pointchoice_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,8 @@ | ||
<?php | ||
/** | ||
* 5 point choice Html : Header | ||
* @var $id | ||
*/ | ||
?> | ||
|
||
<div id="<?php echo $id; ?>" class="answers-list five-point-choice radio-list"> |
24 changes: 24 additions & 0 deletions
24
application/views/survey/questions/5pointchoice/item_noanswer_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,24 @@ | ||
<?php | ||
/** | ||
* 5 point choice Html : item 'no answer' row | ||
* | ||
* @var $ia | ||
* @var $checkedState | ||
* @var $checkconditionFunction | ||
*/ | ||
?> | ||
|
||
<div class="col-xs-2 answer-item radio-item noanswer-item"> | ||
<input | ||
class="radio" | ||
type="radio" | ||
name="<?php echo $ia[1]; ?>" | ||
id="answer<?php echo $ia[1]; ?>NANS" | ||
value="" | ||
<?php echo $checkedState; ?> | ||
onclick="<?php echo $checkconditionFunction; ?>(this.value, this.name, this.type);" | ||
/> | ||
<label for="answer<?php echo $ia[1];?>NANS" class="answertext"> | ||
<?php echo gT('No answer'); ?> | ||
</label> | ||
</div> |
25 changes: 25 additions & 0 deletions
25
application/views/survey/questions/5pointchoice/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,25 @@ | ||
<?php | ||
/** | ||
* 5 point choice Html : item row | ||
* | ||
* @var $ia | ||
* @var $fp | ||
* @var $checkedState | ||
* @var $checkconditionFunction | ||
*/ | ||
?> | ||
|
||
<div class="col-xs-2 answer-item radio-item"> | ||
<input | ||
class="radio" | ||
type="radio" | ||
name="<?php echo $ia[1]; ?>" | ||
id="answer<?php echo $ia[1].$fp; ?>" | ||
value="<?php echo $fp;?>" | ||
<?php echo $checkedState; ?> | ||
onclick="<?php echo $checkconditionFunction; ?>(this.value, this.name, this.type)" | ||
/> | ||
<label for="answer<?php echo $ia[1].$fp; ?>" class="answertext"> | ||
<?php echo $fp; ?> | ||
</label> | ||
</div> |