Skip to content

Commit

Permalink
Fixed issue: Page Header and Shadow: Edit user group
Browse files Browse the repository at this point in the history
- Added Green Bar
- Added Shadow under Top Bar
- Rename 'Update user group' Button to 'Save' Button
- Adjusted the content below
  • Loading branch information
thedirtypanda committed Jun 10, 2021
1 parent a05b909 commit 74d7d6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 5 additions & 3 deletions application/controllers/UserGroupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ public function actionViewGroup($ugid, bool $header = false)
*
* Load edit user group screen.
*
* @param mixed $ugid
* @param int $ugid
* @return void
*/
public function actionEdit($ugid)
public function actionEdit(int $ugid)
{
$ugid = (int) $ugid;

Expand Down Expand Up @@ -238,8 +238,10 @@ public function actionEdit($ugid)

$aData['usergroupbar']['closebutton']['url'] = Yii::app()->createAbsoluteUrl('userGroup/index');
$aData['usergroupbar']['savebutton']['form'] = 'usergroupform';
$aData['usergroupbar']['savebutton']['text'] = gT("Update user group");
$aData['usergroupbar']['savebutton']['text'] = gT("Save");

// Green Bar (SurveyManagerBar) Page Title
$aData['pageTitle'] = sprintf(gT("Editing user group (Owner: %s)"), Yii::app()->session['user']);
$this->aData = $aData;

$this->render('editUserGroup_view', [
Expand Down
5 changes: 1 addition & 4 deletions application/views/userGroup/editUserGroup_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@

?>

<div class="col-lg-12 list-surveys">
<div class="h3">
<?php echo sprintf(gT("Editing user group (Owner: %s)"), Yii::app()->session['user']); ?>
</div>
<div class="col-lg-12 list-surveys" style="margin-top: 30px;">

<div class="row">
<?php echo CHtml::form(array("userGroup/edit/ugid/{$ugid}"), 'post', array('class'=>'col-md-6 col-md-offset-3', 'id'=>'usergroupform', 'name'=>'usergroupform')); ?>
Expand Down

0 comments on commit 74d7d6b

Please sign in to comment.