Skip to content

Commit

Permalink
Dev: added few indications about survey option level
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Dec 22, 2017
1 parent 0da997d commit 14d23e7
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions application/views/admin/themeoptions/update.php
Expand Up @@ -23,7 +23,28 @@
<?php else: ?>
<div class="col-sm-12 side-body <?=getSideBodyClass(false)?>" id="theme-option-sidebody">
<?php endif; ?>
<div class="row h1 pagetitle"><?php echo sprintf(gT('Survey options for theme %s'),'<em>' . $model->template_name . '</em>'); ?></div>
<div class="row h1 pagetitle">
<?php echo sprintf(gT('Survey options for theme %s'),'<em>' . $model->template_name . '</em>'); ?>
(
<?php

// This is a quick and dirty solution.
// Todo: a clean system to show the level and indicate where the inherited values are taken

$gsid = Yii::app()->request->getQuery('gsid', null);
$sid = Yii::app()->request->getQuery('surveyid', null);

if (!is_null($sid)){
eT(" for survey id: $sid ");
}elseif(!is_null($gsid)){
eT(" for survey group id: $gsid ");
}else{
eT(" global level");
}

?>
)
</div>
<!-- Using bootstrap tabs to differ between just hte options and advanced direct settings -->
<div class="row">
<div class="col-sm-12">
Expand Down Expand Up @@ -223,7 +244,7 @@

<?php
Yii::app()->getClientScript()->registerScript("themeoptions-scripts", '
var bindUpload = function(options){
var $activeForm = $(options.form);
var $activeInput = $(options.input);
Expand Down

0 comments on commit 14d23e7

Please sign in to comment.