Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: subQuestion js variables subview
- Loading branch information
LouisGac
committed
Jan 11, 2016
1 parent
4580f76
commit cd26705
Showing
3 changed files
with
42 additions
and
34 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
39 changes: 39 additions & 0 deletions
39
application/views/admin/survey/Question/_subQuestionsAndAnwsersJsVariables.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,39 @@ | ||
<script type='text/javascript'> | ||
// Common variables between subquestions / answers options | ||
var cancel = '<?php eT('Cancel'); ?>'; | ||
var check = true; | ||
var lafail = '<?php eT('Sorry, the request failed!'); ?>'; | ||
var lanameurl = '<?php echo Yii::app()->createUrl('/admin/labels/sa/getAllSets'); ?>'; | ||
var langs = '<?php echo implode(';',$anslangs); ?>'; | ||
var languagecount = <?php echo count($anslangs); ?>; | ||
var lasaveurl = '<?php echo Yii::app()->createUrl('/admin/labels/sa/ajaxSets'); ?>'; | ||
var lasuccess = '<?php eT('The records have been saved successfully!'); ?>'; | ||
var lsbrowsertitle = '<?php eT('Label set browser','js'); ?>'; | ||
var lsdetailurl = '<?php echo Yii::app()->createUrl('/admin/questions/sa/ajaxlabelsetdetails'); ?>'; | ||
var lspickurl = '<?php echo Yii::app()->createUrl('/admin/questions/sa/ajaxlabelsetpicker'); ?>'; | ||
var ok = '<?php eT('Ok'); ?>'; | ||
var saveaslabletitle = '<?php eT('Save as label set','js'); ?>'; | ||
var sCheckLabelURL = '<?php echo Yii::app()->createUrl('/admin/questions/sa/ajaxchecklabel'); ?>'; | ||
var sImageURL = '<?php echo Yii::app()->getConfig('adminimageurl'); ?>'; | ||
var sLabelSetName = '<?php eT('Label set name','js'); ?>'; | ||
var strcode = '<?php eT('Code','js'); ?>'; | ||
var strlabel = '<?php eT('Label','js'); ?>'; | ||
var strNoLabelSet = '<?php eT('There are no label sets which match the survey default language','js'); ?>'; | ||
</script> | ||
|
||
<?php if ($jsVariableType=='subQuestions'): ?> | ||
<script> | ||
// variables with different values in subqestions / answer options | ||
var newansweroption_text = '<?php eT('New answer option','js'); ?>'; | ||
var quickaddtitle = '<?php eT('Quick-add answers','js'); ?>'; | ||
var strCantDeleteLastAnswer = '<?php eT('You cannot delete the last answer option.','js'); ?>'; | ||
|
||
// answer options variables | ||
var assessmentvisible = <?php echo $assessmentvisible?'true':'false'; ?>; | ||
var duplicateanswercode = '<?php eT('Error: You are trying to use duplicate answer codes.','js'); ?>'; | ||
var sAssessmentValue = '<?php eT('Assessment value','js'); ?>'; | ||
var scalecount = <?php echo $scalecount; ?>; | ||
</script> | ||
<?php endif; ?> | ||
|
||
<?php echo PrepareEditorScript(true, $this); ?> |
35 changes: 1 addition & 34 deletions
35
application/views/admin/survey/Question/answerOptions_view.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