Skip to content

Commit

Permalink
Fixed issue: Page Header and TopBar: Settings - Homepage Settings - E…
Browse files Browse the repository at this point in the history
…dit Box

- Added Green Bar
- Added Shadow under Top Bar
- Adjusted content
  • Loading branch information
thedirtypanda committed Jun 10, 2021
1 parent 5f2eedd commit 106c4ca
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
19 changes: 16 additions & 3 deletions application/controllers/HomepageSettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,23 @@ public function actionUpdateBox($id)
Yii::app()->user->setFlash('error', gT('Could not update box'));
}
}
$this->aData = [
'pageTitle' => 'Update box ' . $model->title,
'fullpagebar' => [
'savebutton' => [
'form' => 'boxes-form',
],
'saveandclosebutton' => [
'form' => 'boxes-form'
],
'closebutton' => [
'url' => Yii::app()->createUrl('homepageSettings/index'),
],
],
'model' => $model,
];

$this->render('update', [
'model' => $model
]);
$this->render('update', $this->aData);
}

/**
Expand Down
12 changes: 1 addition & 11 deletions application/views/homepageSettings/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,7 @@
/* @var $this HomepageSettingsController*/
/* @var $model Boxes */
?>
<div class="col-lg-12 list-surveys">

<?php $this->renderPartial('//admin/super/fullpagebar_view', array(
'fullpagebar' => array(
'savebutton' => array('form' => 'boxes-form'),
'saveandclosebutton' => array('form' => 'boxes-form'),
'closebutton' => array('url' => Yii::app()->createUrl('homepageSettings/index'))
)
)); ?>

<h3><?php printf('Update box %s',"<em>".htmlspecialchars($model->title)."</em>");?> </h3>
<div class="col-lg-12 list-surveys" style="margin-top: 10px;">

<div class="row">
<div class="col-lg-12 content-right">
Expand Down

0 comments on commit 106c4ca

Please sign in to comment.