Skip to content

Commit

Permalink
Fixed issue: Page Header in Comfort Update
Browse files Browse the repository at this point in the history
- Adjusted 'Manage key' Button.
- Added Green Bar (SurveyManagerBar) to view.
- Added comment to index().
  • Loading branch information
thedirtypanda committed Jun 4, 2021
1 parent abe8e8a commit 9bbdc5e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
6 changes: 5 additions & 1 deletion application/controllers/admin/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class update extends Survey_Common_Action
{

/**
* First function to be called, when comming to admin/update
* First function to be called, when coming to admin/update
*
*/
public function index()
Expand All @@ -83,7 +83,11 @@ public function index()
$updateModel = new UpdateForm();
$serverAnswer = $updateModel->getUpdateInfo($buttons);
$aData['serverAnswer'] = $serverAnswer;

// Green Bar (SurveyManagerBar Heading)
$aData['pageTitle'] = gT('ComfortUpdate');
$aData['fullpagebar']['update'] = true;

App()->getClientScript()->registerScriptFile(App()->getConfig('adminscripts') . 'comfortupdate/comfortupdate.js');
App()->getClientScript()->registerScriptFile(App()->getConfig('adminscripts') . 'comfortupdate/buildComfortButtons.js');
App()->getClientScript()->registerScriptFile(App()->getConfig('adminscripts') . 'comfortupdate/displayComfortStep.js');
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/super/fullpagebar_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<?php endif;?>

<?php if(isset($fullpagebar['update'])):?>
<a href="<?php echo $this->createUrl('admin/update/sa/managekey/');?>" class="btn btn-default">
<a href="<?php echo $this->createUrl('admin/update/sa/managekey/');?>" class="btn btn-default" style="margin-top:10px;">
<span class="fa fa-key text-success"></span>
<?php eT("Manage your key");?>
</a>
Expand Down
1 change: 0 additions & 1 deletion application/views/admin/update/_updateContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<div class="col-lg-12 list-surveys" id="comfortUpdateGeneralWrap">
<h3>
<span id="comfortUpdateIcon" class="icon-shield text-success"></span>
<?php eT('ComfortUpdate'); ?>
<?php if(YII_DEBUG):?>
<small>Server:<em class="text-warning"> <?php echo Yii::app()->getConfig("comfort_update_server_url");?></em></small>
<?php endif;?>
Expand Down
2 changes: 1 addition & 1 deletion application/views/layouts/fullpagebar_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<?php endif;?>

<?php if (isset($fullpagebar['update'])) :?>
<a href="<?php echo $this->createUrl('admin/update/sa/managekey/');?>" class="btn btn-default">
<a href="<?php echo $this->createUrl('admin/update/sa/managekey/');?>" class="btn btn-default" style="margin-top:10px;">
<span class="fa fa-key text-success"></span>
<?php eT("Manage your key");?>
</a>
Expand Down

0 comments on commit 9bbdc5e

Please sign in to comment.