adding mitgliederbereich link to menus

This commit is contained in:
Dario Rekowski on RockPI 2020-03-08 11:56:48 +00:00
parent 8189fd7d86
commit 8fae6c3f84
4 changed files with 21 additions and 8 deletions

View File

@ -14,11 +14,11 @@ use Cake\Routing\Router;
class NaviEntryAbsoluteLink extends NaviEntryBase { class NaviEntryAbsoluteLink extends NaviEntryBase {
private $link = ''; protected $link = '';
private $active = ''; protected $active = '';
private $iconClass = ''; protected $iconClass = '';
private $iconColor = ''; protected $iconColor = '';
private $bgColorClass = ''; protected $bgColorClass = '';
public function __construct($title, $iconClass, $link, $active = null) { public function __construct($title, $iconClass, $link, $active = null) {
@ -45,7 +45,7 @@ class NaviEntryAbsoluteLink extends NaviEntryBase {
return $this->active; return $this->active;
} }
private function link() { protected function link() {
//global $self; //global $self;
//echo "<i>self: </i>"; var_dump($GLOBALS("self")); //echo "<i>self: </i>"; var_dump($GLOBALS("self"));
$self = $GLOBALS["self"]; $self = $GLOBALS["self"];

View File

@ -2,6 +2,7 @@
use Model\Navigation\NaviEntry; use Model\Navigation\NaviEntry;
use Model\Navigation\NaviEntrySub; use Model\Navigation\NaviEntrySub;
use Model\Navigation\NaviEntryAbsoluteLink; use Model\Navigation\NaviEntryAbsoluteLink;
use Model\Navigation\NaviEntryExternLink;
$session = $this->getRequest()->getSession(); $session = $this->getRequest()->getSession();
$transactionPendings = $session->read('Transactions.pending'); $transactionPendings = $session->read('Transactions.pending');
@ -34,6 +35,7 @@ if($balance < 0 ) {
array_push($navi, $balanceNaviEntry); array_push($navi, $balanceNaviEntry);
array_push($navi, new NaviEntry(__('Startseite'), 'mdi-gauge', 'Dashboard', 'index')); array_push($navi, new NaviEntry(__('Startseite'), 'mdi-gauge', 'Dashboard', 'index'));
array_push($navi, new NaviEntry(__('Überweisung'), 'mdi-bank-transfer-out', 'TransactionSendCoins', 'create')); array_push($navi, new NaviEntry(__('Überweisung'), 'mdi-bank-transfer-out', 'TransactionSendCoins', 'create'));
array_push($navi, new NaviEntryExternLink(__('Mitgliederbereich'), 'mdi-account-switch', 'https://elopage.com/s/gradido/sign_in'));
if(intval($transactionPendings) > 0) { if(intval($transactionPendings) > 0) {
/* array_push($navi, new NaviEntryAbsoluteLink( /* array_push($navi, new NaviEntryAbsoluteLink(

View File

@ -62,12 +62,17 @@ if(!isset($balance)) {
<?php endif; ?> <?php endif; ?>
<?php if(isset($balance)) : ?> <?php if(isset($balance)) : ?>
<li><?= $this->Html->link($this->element('printGradido', ['number' => $balance]), <li><?= $this->Html->link($this->element('printGradido', ['number' => $balance]),
['controller' => 'StateBalances', 'action' => 'overview'], ['class' => 'grd-nav-bn grd-nav-without-border', 'escape' => false]) ['controller' => 'StateBalances', 'action' => 'overview'], ['class' => 'grd-nav-bn', 'escape' => false])
?> ?>
</li> </li>
<?php endif; ?> <?php endif; ?>
<li><?= $this->Html->link(__('Startseite'), ['controller' => 'Dashboard', 'action' => 'index'], ['class' => 'grd-nav-bn'])?></li> <li><?= $this->Html->link(__('Startseite'), ['controller' => 'Dashboard', 'action' => 'index'], ['class' => 'grd-nav-bn'])?></li>
<!--<li><?= $this->Html->link(__('Kontostand'), ['controller' => 'StateBalances', 'action' => 'overview'], ['class' => 'grd-nav-bn']) ?>--> <!--<li><?= $this->Html->link(__('Kontostand'), ['controller' => 'StateBalances', 'action' => 'overview'], ['class' => 'grd-nav-bn']) ?>-->
<li>
<a href="https://elopage.com/s/gradido/sign_in" target="_blank" class="grd-nav-bn">
<?= __("Mitgliederbereich") ?>
</a>
</li>
<?php if(intval($transactionPendings) > 0) : ?> <?php if(intval($transactionPendings) > 0) : ?>
<li> <li>
<a href="<?= Router::url('./', true) ?>account/checkTransactions" class="grd-nav-bn"> <a href="<?= Router::url('./', true) ?>account/checkTransactions" class="grd-nav-bn">

View File

@ -231,7 +231,7 @@ nav.grd-left-bar {
top: 80.5px; top: 80.5px;
} }
nav .grd-nav-bn { nav .grd-nav-bn {
width: 100px; width: 120px;
} }
nav ul { nav ul {
margin-top: 0; margin-top: 0;
@ -251,6 +251,9 @@ nav ul {
vertical-align: middle; vertical-align: middle;
color: grey; color: grey;
} }
.grd-nav-without-border {
border: none;
}
.grd-nav-bn-large { .grd-nav-bn-large {
width: 40vw; width: 40vw;
height: 18vh; height: 18vh;
@ -261,6 +264,9 @@ a.grd-nav-bn:visited {
color: black; color: black;
text-decoration: none; text-decoration: none;
} }
.grd-nav-bn-discard {
color: darkred !important;
}
/* /*
To change this license header, choose License Headers in Project Properties. To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates To change this template file, choose Tools | Templates