Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: list dropdown, Human readable views
- Loading branch information
LouisGac
committed
Apr 4, 2016
1 parent
bfea401
commit 295eca8
Showing
10 changed files
with
127 additions
and
103 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
51 changes: 51 additions & 0 deletions
51
application/views/survey/questions/list_dropdown/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,51 @@ | ||
<?php | ||
/** | ||
* List DropDown select Html | ||
* | ||
* @var $sOptions : the select options, generated with the view item_options.php | ||
* @var $sOther : the other input field, generated with the view item_noanswer.php | ||
* | ||
* @var $name | ||
* @var $dropdownSize | ||
* @var $checkconditionFunction | ||
* @var $select_show_hide | ||
* | ||
*/ | ||
?> | ||
|
||
<!-- List Dropdown --> | ||
|
||
<!-- answer--> | ||
|
||
<p class="question answer-item dropdown-item"> | ||
<label for="answer<?php echo $name; ?>" class="hide label"> | ||
<?php eT('Please choose'); ?> | ||
</label> | ||
|
||
<select | ||
class="form-control list-question-select" | ||
name="<?php echo $name; ?>" | ||
id="answer<?php echo $name; ?>" | ||
<?php echo $dropdownSize; ?> | ||
onchange="<?php echo $checkconditionFunction; ?>(this.value, this.name, this.type);<?php echo $select_show_hide; ?>" | ||
> | ||
<?php | ||
// rows/item_options.php | ||
echo $sOptions; | ||
?> | ||
|
||
</select> | ||
|
||
<input | ||
type="hidden" | ||
name="java<?php echo $name; ?>" | ||
id="java<?php echo $name; ?>" | ||
value="<?php echo $value; ?>" | ||
/> | ||
|
||
<?php | ||
// rows/item_options.php | ||
echo $sOther; | ||
?> | ||
</p> | ||
<!-- end of answer --> |
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
application/views/survey/questions/list_dropdown/optgroup_footer.php
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
application/views/survey/questions/list_dropdown/optgroup_header.php
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
application/views/survey/questions/list_dropdown/rows/optgroup.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,17 @@ | ||
<?php | ||
/** | ||
* List DropDown Option group header Html | ||
* @var $sOptGroupOptions the current options for this group, generated with the view rows/options.php | ||
* | ||
* @var $categoryname | ||
*/ | ||
?> | ||
|
||
<!-- optgroup --> | ||
<optgroup class="dropdowncategory" label="<?php echo $categoryname;?>"> | ||
<?php | ||
// rows/option.php | ||
echo $sOptGroupOptions; | ||
?> | ||
</optgroup> | ||
<!-- end of optgroup --> |
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
20 changes: 0 additions & 20 deletions
20
application/views/survey/questions/list_dropdown/select.php
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
application/views/survey/questions/list_dropdown/select_footer.php
This file was deleted.
Oops, something went wrong.