Skip to content

Commit

Permalink
Dev: Small topbar fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thedirtypanda committed Jul 14, 2021
1 parent d3865e3 commit e01383b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions application/controllers/SurveyAdministrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,10 @@ public function actionListsurveys()

// Create Survey Button Url
$aData['fullpagebar']['listSurveys']['buttons']['createSurvey']['url'] = $this->createUrl("surveyAdministration/newSurvey");

// Create Survey Groups Button
$aData['fullpagebar']['listSurveys']['buttons']['createSurveyGroups'] = true;

// Return Button
$aData['fullpagebar']['returnbutton']['url'] = 'admin/index';
$aData['fullpagebar']['returnbutton']['text'] = gT('Back');
Expand Down
3 changes: 2 additions & 1 deletion application/views/layouts/fullpagebar_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
<?php endif;?>

<!-- List Surveys - Create a new Survey Group -->
<?php if(Permission::model()->hasGlobalPermission('surveysgroups','create')):?>
<?php if(isset($fullpagebar['listSurveys']['buttons']['createSurveyGroups']) &&
Permission::model()->hasGlobalPermission('surveysgroups','create')):?>
<a class="btn btn-default" href="<?php echo $this->createUrl("admin/surveysgroups/sa/create"); ?>" role="button">
<span class="icon-add text-success"></span>
<?php eT("Create a new survey group");?>
Expand Down

0 comments on commit e01383b

Please sign in to comment.