Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: multiple short texts question, views
- Loading branch information
LouisGac
committed
Jan 26, 2016
1 parent
edb5207
commit a4d338a
Showing
5 changed files
with
143 additions
and
49 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
7 changes: 7 additions & 0 deletions
7
application/views/survey/questions/multipleshorttext/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,7 @@ | ||
<?php | ||
/** | ||
* Multiple short texts question, footer Html | ||
*/ | ||
?> | ||
|
||
</ul> |
6 changes: 6 additions & 0 deletions
6
application/views/survey/questions/multipleshorttext/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,6 @@ | ||
<?php | ||
/** | ||
* Multiple short texts question, header Html | ||
*/ | ||
?> | ||
<ul class="list-unstyled subquestions-list questions-list text-list"> |
47 changes: 47 additions & 0 deletions
47
application/views/survey/questions/multipleshorttext/item_inputtext.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 | ||
/** | ||
* Multiple short texts question, item input text Html | ||
* @var $alert; | ||
* @var $maxlength; | ||
* @var $tiwidth | ||
* @var $extraclass | ||
* @var $sDisplayStyle | ||
* @var $prefix | ||
* @var $myfname | ||
* @var $labelText $ansrow['question'] | ||
* @var $prefix | ||
* @var $kpclass | ||
* @var $rows $drows.' '.$maxlength | ||
* @var $checkconditionFunction $checkconditionFunction.'(this.value, this.name, this.type)' | ||
* @var $dispVal | ||
* @var $suffix | ||
*/ | ||
?> | ||
<!-- question attribute "display_rows" is set -> we need a textarea to be able to show several rows --> | ||
<li class="question-item answer-item text-item <?php echo $extraclass;?>" <?php echo $sDisplayStyle;?>> | ||
<?php if($alert):?> | ||
<div class="alert alert-danger errormandatory" role="alert">'. | ||
<?php echo $labelText;?> | ||
</div> | ||
|
||
<?php endif;?> | ||
<div class="form-group-row row"> | ||
<label class='control-label col-xs-12' for="answer<?php echo $myfname; ?>"> | ||
<?php echo $labelText;?> | ||
</label> | ||
<div class="col-xs-12"> | ||
<?php echo $prefix;?> | ||
<input | ||
class="text form-control <?php echo $kpclass;?>" | ||
type="text" | ||
size="<?php echo $tiwidth;?>" | ||
name="<?php echo $myfname;?>" | ||
id="answer<?php echo $myfname; ?>" | ||
value="<?php echo $dispVal;?>" | ||
onkeyup="<?php echo $checkconditionFunction; ?>" | ||
<?php echo $maxlength; ?> | ||
/> | ||
<?php echo $suffix;?> | ||
</div> | ||
</div> | ||
</li> |
37 changes: 37 additions & 0 deletions
37
application/views/survey/questions/multipleshorttext/item_textarea.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,37 @@ | ||
<?php | ||
/** | ||
* Multiple short texts question, item text area Html | ||
* @var $extraclass | ||
* @var $sDisplayStyle | ||
* @var $prefix | ||
* @var $myfname | ||
* @var $labelText $ansrow['question'] | ||
* @var $prefix | ||
* @var $kpclass | ||
* @var $rows $drows.' '.$maxlength | ||
* @var $checkconditionFunction $checkconditionFunction.'(this.value, this.name, this.type)' | ||
* @var $dispVal | ||
* @var $suffix | ||
*/ | ||
?> | ||
<!-- question attribute "display_rows" is set -> we need a textarea to be able to show several rows --> | ||
<li class="question-item answer-item text-item <?php echo $extraclass;?>" <?php echo $sDisplayStyle;?>> | ||
<div class="form-group-row row"> | ||
<label class='control-label col-xs-12' for="answer<?php echo $myfname; ?>"> | ||
<?php echo $labelText;?> | ||
</label> | ||
<div class="col-xs-12"> | ||
<?php echo $prefix;?> | ||
|
||
<textarea | ||
class="form-control textarea <?php echo $kpclass;?>" | ||
name="<?php echo $myfname;?>" | ||
id="answer<?php echo $myfname;?>" | ||
rows="<?php echo $rows;?>" | ||
onkeyup="<?php echo $checkconditionFunction; ?>" | ||
> | ||
<?php echo $dispVal;?> | ||
</textarea> | ||
<?php echo $suffix;?> | ||
</div> | ||
</li> |