Skip to content
Snippets Groups Projects
Commit fb533f71 authored by Robert Lange's avatar Robert Lange Committed by Dorian Merz
Browse files

refs #19722 [finc] show menu for new edit list in account

* check if logged in
* check if layout is not lightbox
* add active class in menu when selected
parent 9dc4ffc7
No related merge requests found
......@@ -13,6 +13,12 @@
<?=$this->flashmessages()?>
<?php if ($this->auth()->isLoggedIn() && $this->layout()->getTemplate() !== 'layout/lightbox') :?>
<div class="<?=$this->layoutClass('mainbody')?>">
<a class="search-filter-toggle visible-xs" href="#myresearch-sidebar" data-toggle="offcanvas" aria-label="<?=$this->transEsc('sidebar_expand')?>">
<?=$this->transEsc('Your Account') ?>
</a>
<?php endif; ?>
<h1><?=$this->transEsc($pageTitle); ?></h1>
<form class="form-edit-list" method="post" name="<?=empty($this->list->id) ? 'newList' : 'editListForm'?>">
......@@ -50,4 +56,10 @@
<input class="btn btn-primary" type="submit" name="submit" value="<?=$this->transEsc('Save') ?>" aria-label="<?=$this->transEsc('Save') ?>"/>
</div>
</form>
<?php if ($this->auth()->isLoggedIn() && $this->layout()->getTemplate() !== 'layout/lightbox') :?>
</div>
<div class="<?=$this->layoutClass('sidebar')?>" id="myresearch-sidebar">
<?=$this->context($this)->renderInContext("myresearch/menu.phtml", ['active' => 'editlist/NEW'])?>
</div>
<?php endif; ?>
<!-- finc - templates - myresearch - editlist - END -->
......@@ -111,7 +111,7 @@ $capabilityParams = $patron ? ['patron' => $patron] : [];
</a>
<?php endforeach; ?>
<a href="<?=$this->url('editList', ['id' => 'NEW'])?>">
<a href="<?=$this->url('editList', ['id' => 'NEW'])?>"<?=$this->active == 'editlist/NEW' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-plus" aria-hidden="true"></i> <?=$this->transEsc('Create a List')?>
</a>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment