Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
match/app/templates/element/menuMain.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#13, CO-2133) * Remove spin.js and convert spinner to css animation; make spinner active on all links and buttons except those marked with the .nospin class; create page for matchgrid configuration; update breadcrumbs for configuration page; fix user profile dropdown (CO-2133) * Remove the deprecated spin.js library (CO-2133) * Color table heading links appropriately; remove extra print statement from filter buttons (NOJIRA / CO-2133) * Link ID column of Matchgrid Records to edit/view for the record. Update the "link" column type to include the matchgrid_id when present. (CO-2133) * Display matchgrid description (if present) on Manage matchgrid view. (CO-2133) * Revert change to index.ctp for "link" column type. (CO-2133) Co-authored-by: benno <benno@sphericalcowgroup.com>
81 lines (79 sloc)
3.18 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* COmanage Match Main Menu Bar | |
* | |
* Portions licensed to the University Corporation for Advanced Internet | |
* Development, Inc. ("UCAID") under one or more contributor license agreements. | |
* See the NOTICE file distributed with this work for additional information | |
* regarding copyright ownership. | |
* | |
* UCAID licenses this file to you under the Apache License, Version 2.0 | |
* (the "License"); you may not use this file except in compliance with the | |
* License. You may obtain a copy of the License at: | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, | |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
* See the License for the specific language governing permissions and | |
* limitations under the License. | |
* | |
* @link http://www.internet2.edu/comanage COmanage Project | |
* @package match | |
* @since COmanage Match v1.0.0 | |
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) | |
*/ | |
// XXX we're using the same cookie as registry to determine collapsing of the menu, | |
// we should probably have our own cookie (note other cookies already use "match" prefix) | |
// The following menu will only render if we have a user and matchgrid (see default.ctp) | |
?> | |
<ul id="main-menu"> | |
<?php // Always render the Manage link - limit what users can see from the page view ?> | |
<li class="configMenu"> | |
<?= $this->Html->link( | |
'<em class="material-icons" aria-hidden="true">home</em> | |
<span class="menu-title">' . __('match.op.manage') . '</span>', | |
['controller' => 'Matchgrids', | |
'action' => 'manage', | |
$vv_cur_mg->id], | |
['escape' => false]); | |
?> | |
</li> | |
<?php if($vv_menu_permissions['display']): ?> | |
<li class="configMenu"> | |
<?= $this->Html->link( | |
'<em class="material-icons" aria-hidden="true">list</em> | |
<span class="menu-title">' . __('match.op.display') . '</span>', | |
['controller' => 'MatchgridRecords', | |
'action' => 'index', | |
'?' => [ 'matchgrid_id' => $vv_cur_mg->id] ], | |
['escape' => false]); | |
?> | |
</li> | |
<?php endif; // $vv_menu_permissions['gridroles'] ?> | |
<?php if($vv_menu_permissions['reconcile']): ?> | |
<li class="configMenu"> | |
<?= $this->Html->link( | |
'<em class="material-icons" aria-hidden="true">check_circle</em> | |
<span class="menu-title">' . __('match.op.reconcile') . '</span>', | |
['controller' => 'Matchgrids', | |
'action' => 'pending', | |
$vv_cur_mg->id], | |
['escape' => false]); | |
?> | |
</li> | |
<?php endif; // $vv_menu_permissions['reconcile'] ?> | |
<?php if($vv_menu_permissions['matchgrid_settings']): ?> | |
<li class="configMenu"> | |
<?= $this->Html->link( | |
'<em class="material-icons" aria-hidden="true">settings</em> | |
<span class="menu-title">' . __('match.op.configure') . '</span>', | |
['controller' => 'Matchgrids', | |
'action' => 'configure', | |
$vv_cur_mg->id], | |
['escape' => false]); | |
?> | |
</li> | |
<?php endif; // $vv_menu_permissions['matchgrid_settings'] ?> | |
</ul> |