Skip to content

Commit

Permalink
Fixed issue: Page Header and TopBar: Settings - Global Survey
Browse files Browse the repository at this point in the history
- Added green bar
- Added shadow under top bar
- Renamed 'close' to 'back' button
  • Loading branch information
thedirtypanda committed Jun 10, 2021
1 parent 1a97145 commit 32f7fbb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
18 changes: 18 additions & 0 deletions application/controllers/admin/globalsettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,24 @@ public function surveySettings()
]
];
$aData['partial'] = $sPartial;

// Green Bar (SurveyManagerBar) Page Title
$aData['pageTitle'] = 'Global survey settings';

// White Top Bar
$aData['fullpagebar'] = [
'returnbutton' => [
'url' => 'admin/index',
'text' => gT('Back'),
],
'savebutton' => [
'form' => 'survey-settings-form',
],
'saveandclosebutton' => [
'form' => 'survey-settings-form',
],
];

$this->_renderWrappedTemplate('globalsettings', 'surveySettings', $aData);
}

Expand Down
17 changes: 0 additions & 17 deletions application/views/admin/globalsettings/surveySettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,6 @@
?>

<div class="col-lg-12 list-surveys">

<?php $this->renderPartial('super/fullpagebar_view', array(
'fullpagebar' => array(
'returnbutton'=>array(
'url'=>'admin/index',
'text'=>gT('Close'),
),
'savebutton' => array(
'form' => 'survey-settings-form'
),
'saveandclosebutton' => array(
'form' => 'survey-settings-form'
)
)
)); ?>

<h3><?php eT('Global survey settings'); ?></h3>

<div class="row">
<?php echo CHtml::form(array("admin/globalsettings/sa/surveysettings"), 'post', array('id'=>'survey-settings-form')); ?>
Expand Down

0 comments on commit 32f7fbb

Please sign in to comment.