Skip to content

Commit

Permalink
Fixed issue: Page Header and TopBar: Central participant management
Browse files Browse the repository at this point in the history
- Added Green Bar
- Removed previous green bar (title was wrong)
- Added Shadow under Top Bar
- Renamed 'Return to admin home' to 'Back'
- Adjusted the content below
  • Loading branch information
thedirtypanda committed Jun 10, 2021
1 parent 608ab8e commit 351f109
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 30 deletions.
3 changes: 3 additions & 0 deletions application/controllers/admin/participantsaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,9 @@ public function displayParticipants()
Yii::app()->user->setState('pageSizeParticipantView', $request->getPost('pageSizeParticipantView'));
}

// Green Bar (SurveyManagerBar) Page Title
$aData['pageTitle'] = 'Central participant management';

// Loads the participant panel view and display participant view
$this->_renderWrappedTemplate('participants', array('participantsPanel', 'displayParticipants'), $aData);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,7 @@

?>
<div id="pjax-content">
<div class="col-xs-12">
<div class="pagetitle h3 row">
<div class="col-xs-8 ">
<?php eT("Central participant management"); ?>
</div>
<div class="col-xs-4 text-right">
<?php if (
Permission::model()->hasGlobalPermission('superadmin', 'read')
|| Permission::model()->hasGlobalPermission('participantpanel', 'create')
): ?>
<button class="btn btn-default" id="addParticipantToCPP">
<i class="fa fa-plus-circle text-success"></i>&nbsp;
<?php eT("Add new participant"); ?>
</button>
<?php endif; ?>
</div>
</div>
<div class="row" style="margin-bottom: 100px">
<div class="row" style="margin-top: 30px;margin-bottom: 100px;">
<div class="container-fluid">
<?php
$hiddenFilterValues = "";
Expand Down
28 changes: 16 additions & 12 deletions application/views/admin/participants/participantsPanel_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,9 @@
)
));?>;
</script>
<div class="menubar surveymanagerbar">
<div class="row container-fluid">
<div class="col-xs-12 col-md-12">
<div class="h2"><?php eT("Central participant database")?></div>
</div>
</div>
</div>
<div class='menubar surveybar' id="participantbar">

<!-- Participant Bar -->
<div class='menubar surveybar' id="participantbar" style="box-shadow: 3px 3px 3px #35363f;">
<div class='row'>

<div class="col-md-9">
Expand Down Expand Up @@ -117,14 +112,23 @@
<?php endif;?>
</div>




<div class="col-md-3 text-right">
<!-- Add Participants -->
<?php if (
Permission::model()->hasGlobalPermission('superadmin', 'read')
|| Permission::model()->hasGlobalPermission('participantpanel', 'create')
): ?>
<button class="btn btn-default" id="addParticipantToCPP">
<i class="fa fa-plus-circle text-success"></i>&nbsp;
<?php eT("Add new participant"); ?>
</button>
<?php endif; ?>

<!-- Back -->
<a class="btn btn-default" href="<?php echo $this->createUrl('admin/index'); ?>" role="button">
<span class="fa fa-backward"></span>
&nbsp;
<?php eT('Return to admin home'); ?>
<?php eT('Back'); ?>
</a>
</div>
</div>
Expand Down

0 comments on commit 351f109

Please sign in to comment.