Skip to content

Commit

Permalink
Fixed issue: Page Header and TopBar: Create/edit user roles
Browse files Browse the repository at this point in the history
- Added Green Bar
- Added Shadow under Top Bar
- Adjusted the content below
  • Loading branch information
thedirtypanda committed Jun 10, 2021
1 parent 74d7d6b commit 608ab8e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?php

/**
* Class PermissiontemplatesController
*/
class PermissiontemplatesController extends Survey_Common_Action
{

Expand Down Expand Up @@ -34,15 +37,18 @@ public function index()
if ($aPermissiontemplatesParam) {
$model->setAttributes($aPermissiontemplatesParam, false);
}

$this->_renderWrappedTemplate(
null,
'permissiontemplates/index',
array(
'model' => $model,
'massiveAction' => $massiveAction
'massiveAction' => $massiveAction,
'pageTitle' => 'Permission roles',
)
);
}

/**
* Displays a particular model.
* @param integer $ptid the ID of the model to be displayed
Expand Down
18 changes: 2 additions & 16 deletions application/views/admin/permissiontemplates/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,14 @@
/* @var $this AdminController */
/* @var $dataProvider CActiveDataProvider */

// $this->breadcrumbs=array(
// 'Surveymenus',
// );

// $this->menu=array(
// array('label'=>'Create Surveymenu', 'url'=>array('create')),
// array('label'=>'Manage Surveymenu', 'url'=>array('admin')),
// );
//
$pageSize = Yii::app()->user->getState('pageSize', Yii::app()->params['defaultPageSize']);
// DO NOT REMOVE This is for automated testing to validate we see that page
echo viewHelper::getViewTestTag('roles');

?>
<?php $this->renderPartial('permissiontemplates/partials/_menubar', []); ?>
<div class="container-fluid">
<div class="row">
<div class="col-12 h1 pagetitle">
<?php eT('Permission roles') ?>
</div>
</div>
<div class="row" style="margin-bottom: 100px">
<div class="row" style="margin-top: 10px; margin-bottom: 100px">
<div class="container-fluid">
<?php
$this->widget('bootstrap.widgets.TbGridView', array(
Expand Down Expand Up @@ -64,4 +50,4 @@
</div>
</div>
</div>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class='menubar surveybar' id="rolemanagementbar">
<div class='menubar surveybar' id="rolemanagementbar" style="box-shadow: 3px 3px 3px #35363f;">
<div class='row'>
<div class="col-md-9">
<?php if(Permission::model()->hasGlobalPermission('superadmin', 'read')) { ?>
Expand Down

0 comments on commit 608ab8e

Please sign in to comment.