Skip to content

Commit

Permalink
Fixed issue: Page Header and TopBar: Central participants database - …
Browse files Browse the repository at this point in the history
…attribute management

- Added Green Bar
- Added Shadow under Top Bar
- Adjusted content
  • Loading branch information
thedirtypanda committed Jun 10, 2021
1 parent f414cca commit 3e3e539
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
4 changes: 3 additions & 1 deletion application/controllers/admin/participantsaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,9 @@ public function attributeControl()
'attributeValues' => ParticipantAttributeName::model()->getAllAttributesValues(),
'aAttributes' => ParticipantAttributeName::model()->getAllAttributes(),
'model' => $model,
'debug' => Yii::app()->request->getParam('Attribute')
'debug' => Yii::app()->request->getParam('Attribute'),
'pageTitle' => "Attribute management",
'ownsAddAttributeButton' => true,
);
// Page size
if (Yii::app()->request->getParam('pageSizeAttributes')) {
Expand Down
15 changes: 1 addition & 14 deletions application/views/admin/participants/attributeControl_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,7 @@
echo viewHelper::getViewTestTag('participantsAttributeControl');

?>
<div id="pjax-content">
<div class="col-xs-12 ">
<div class="pagetitle row h3">
<div class="col-xs-8 ">
<?php eT("Attribute management"); ?>
</div>
<div class="col-xs-4 text-right">
<button class="btn btn-default" id="addParticipantAttributeName">
<i class="fa fa-plus-circle text-success"></i>
&nbsp;
<?php eT("Add new attribute"); ?>
</button>
</div>
</div>
<div id="pjax-content" style="margin-top: 20px;">

<div class="row">
<div class="container-fluid">
Expand Down
13 changes: 11 additions & 2 deletions application/views/admin/participants/participantsPanel_view.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php
/*
* @var bool $ownsAddParticipantsButton
**/
* @var bool $ownsAddParticipantsButton
* @var bool $ownsAddAttributeButton
*/
?>

<script src="<?php echo Yii::app()->getConfig('adminscripts') . "participantpanel.js" ?>" type="text/javascript"></script>
Expand Down Expand Up @@ -127,6 +128,14 @@
</button>
<?php endif; ?>

<!-- Add Attribute -->
<?php if(isset($ownsAddAttributeButton) && ($ownsAddAttributeButton)): ?>
<button class="btn btn-default" id="addParticipantAttributeName">
<i class="fa fa-plus-circle text-success"></i>
&nbsp;
<?php eT("Add new attribute"); ?>
</button>
<?php endif; ?>
<!-- Back -->
<a class="btn btn-default" href="<?php echo $this->createUrl('admin/index'); ?>" role="button">
<span class="fa fa-backward"></span>
Expand Down

0 comments on commit 3e3e539

Please sign in to comment.