Skip to content

Commit

Permalink
Dev: select survey group when creating a survey
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Jul 24, 2017
1 parent 91c7822 commit 413dec1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions application/controllers/admin/surveyadmin.php
Expand Up @@ -2017,6 +2017,7 @@ function insert($iSurveyID=null)
'assessments' => App()->request->getPost('assessments')=='1'?'Y':'N',
'emailresponseto' => App()->request->getPost('emailresponseto'),
'tokenlength' => $iTokenLength,
'gsid' => App()->request->getPost('gsid', '1'),
);
//var_dump($aInsertData);

Expand Down
20 changes: 20 additions & 0 deletions application/views/admin/survey/subview/_create_survey_text.php
Expand Up @@ -76,6 +76,26 @@
</div>
</div>
<div class="col-sm-12 col-md-6">
<!-- Survey Group -->
<div class="form-group">
<label class="control-label col-sm-2">
<?php eT("Survey Group:"); ?>
</label>
<div class="col-sm-9">
<?php
$aSurveyGroups = SurveysGroups::getSurveyGroupsList();
$this->widget('yiiwheels.widgets.select2.WhSelect2', array(
'asDropDownList' => true,
'htmlOptions'=>array('style'=>"width: 80%"),
'data' => $aSurveyGroups,
'value' => key($aSurveyGroups),
'name' => 'gsid',
'pluginOptions' => array()
));?>
</div>
</div>


<!-- End URL -->
<div class="form-group">
<label class="control-label col-sm-2">
Expand Down

0 comments on commit 413dec1

Please sign in to comment.