[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [17608] booking, allocation: add button to go to pare
From: |
sigurdne |
Subject: |
[Fmsystem-commits] [17608] booking, allocation: add button to go to parent application |
Date: |
Wed, 17 Jan 2018 08:15:41 -0500 (EST) |
Revision: 17608
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17608
Author: sigurdne
Date: 2018-01-17 08:15:41 -0500 (Wed, 17 Jan 2018)
Log Message:
-----------
booking, allocation: add button to go to parent application
Modified Paths:
--------------
trunk/booking/inc/class.uiallocation.inc.php
trunk/booking/templates/base/allocation.xsl
Modified: trunk/booking/inc/class.uiallocation.inc.php
===================================================================
--- trunk/booking/inc/class.uiallocation.inc.php 2018-01-17 13:04:21 UTC
(rev 17607)
+++ trunk/booking/inc/class.uiallocation.inc.php 2018-01-17 13:15:41 UTC
(rev 17608)
@@ -783,6 +783,8 @@
'resource' => $allocation['resource']));
$allocation['edit_link'] =
self::link(array('menuaction' => 'booking.uiallocation.edit',
'id' => $allocation['id']));
+ $allocation['application_link'] =
self::link(array('menuaction' => 'booking.uiapplication.show',
+ 'id' => $allocation['application_id']));
$tabs = array();
$tabs['generic'] = array('label' =>
lang('Allocations'), 'link' => '#allocations');
Modified: trunk/booking/templates/base/allocation.xsl
===================================================================
--- trunk/booking/templates/base/allocation.xsl 2018-01-17 13:04:21 UTC (rev
17607)
+++ trunk/booking/templates/base/allocation.xsl 2018-01-17 13:15:41 UTC (rev
17608)
@@ -49,6 +49,10 @@
</div>
</form>
<div class="pure-control-group">
+ <button class="pure-button pure-button-primary">
+ <xsl:attribute
name="onclick">window.location.href="<xsl:value-of
select="allocation/application_link"/>"</xsl:attribute>
+ <xsl:value-of select="php:function('lang',
'application')" />
+ </button>
<xsl:if test="allocation/permission/write">
<button class="pure-button pure-button-primary">
<xsl:attribute
name="onclick">window.location.href="<xsl:value-of
select="allocation/edit_link"/>"</xsl:attribute>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [17608] booking, allocation: add button to go to parent application,
sigurdne <=