fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [14077] modify template to overlay


From: Saul
Subject: [Fmsystem-commits] [14077] modify template to overlay
Date: Thu, 01 Oct 2015 00:03:31 +0000

Revision: 14077
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14077
Author:   psaul
Date:     2015-10-01 00:03:30 +0000 (Thu, 01 Oct 2015)
Log Message:
-----------
modify template to overlay

Modified Paths:
--------------
    branches/dev-syncromind/booking/templates/base/allocation_info.xsl
    branches/dev-syncromind/booking/templates/base/application.xsl

Modified: branches/dev-syncromind/booking/templates/base/allocation_info.xsl
===================================================================
--- branches/dev-syncromind/booking/templates/base/allocation_info.xsl  
2015-09-30 23:43:42 UTC (rev 14076)
+++ branches/dev-syncromind/booking/templates/base/allocation_info.xsl  
2015-10-01 00:03:30 UTC (rev 14077)
@@ -1,26 +1,27 @@
 <xsl:template match="data" xmlns:php="http://php.net/xsl";>
-       <div class="close"><a onclick="YAHOO.booking.closeOverlay(); return 
false" href=""><xsl:value-of select="php:function('lang', 'Close')"/></a></div>
-       <h3><xsl:value-of select="php:function('lang', 'Allocation')"/> 
#<xsl:value-of select="allocation/id"/></h3>
-       <dl>
-               <dt><xsl:value-of select="php:function('lang', 'Where')"/></dt>
-               <dd>
-                       <a href="{allocation/building_link}"><xsl:value-of 
select="allocation/resources[position()=1]/building_name"/></a>
-                       (<xsl:value-of select="allocation/resource_info"/>)
-               </dd>
-               <dt><xsl:value-of select="php:function('lang', 'When')"/></dt>
-               <dd><xsl:value-of select="allocation/when"/></dd>
-               <dt><xsl:value-of select="php:function('lang', 'Who')"/></dt>
-               <dd>
-                       <a href="{allocation/org_link}"><xsl:value-of 
select="allocation/organization_name"/></a>
-               </dd>
-       </dl>
-       <xsl:if test="allocation/add_link">
-               <div class="actions">
-                       <button 
onclick="location.href='{allocation/add_link}'"><xsl:value-of 
select="php:function('lang', 'Create new booking')"/></button> 
-               <xsl:if test="allocation/delete_link">
-                       <button 
onclick="location.href='{allocation/delete_link}'"><xsl:value-of 
select="php:function('lang', 'Delete allocation')"/></button>
-               </xsl:if>
-               </div>
-       </xsl:if>
-
+    <div class="close" style="float: right"><a 
onclick="schedule.closeOverlay(); return false" 
style="cursor:pointer;"><xsl:value-of select="php:function('lang', 
'Close')"/></a></div>
+    <h3><xsl:value-of select="php:function('lang', 'Allocation')"/> 
#<xsl:value-of select="allocation/id"/></h3>
+    <div class="pure-form pure-form-aligned">
+        <div class="pure-control-group">
+            <label><h4><xsl:value-of select="php:function('lang', 
'Where')"/></h4></label>
+            <a href="{allocation/building_link}"><xsl:value-of 
select="allocation/resources[position()=1]/building_name"/></a>
+                    (<xsl:value-of select="allocation/resource_info"/>)
+        </div>
+        <div class="pure-control-group">
+            <label><h4><xsl:value-of select="php:function('lang', 
'When')"/></h4></label>
+            <xsl:value-of select="allocation/when"/>
+        </div>
+        <div class="pure-control-group">
+            <label><h4><xsl:value-of select="php:function('lang', 
'Who')"/></h4></label>
+            <a href="{allocation/org_link}"><xsl:value-of 
select="allocation/organization_name"/></a>
+        </div>
+    </div>
+    <xsl:if test="allocation/add_link">
+        <div class="actions">
+            <button 
onclick="location.href='{allocation/add_link}'"><xsl:value-of 
select="php:function('lang', 'Create new booking')"/></button>
+            <xsl:if test="allocation/delete_link">
+                <button 
onclick="location.href='{allocation/delete_link}'"><xsl:value-of 
select="php:function('lang', 'Delete allocation')"/></button>
+            </xsl:if>
+        </div>
+    </xsl:if>
 </xsl:template>

Modified: branches/dev-syncromind/booking/templates/base/application.xsl
===================================================================
--- branches/dev-syncromind/booking/templates/base/application.xsl      
2015-09-30 23:43:42 UTC (rev 14076)
+++ branches/dev-syncromind/booking/templates/base/application.xsl      
2015-10-01 00:03:30 UTC (rev 14077)
@@ -255,7 +255,7 @@
                                             </script>
                                             <div class="pure-control-group">
                                                 <label>&nbsp;</label>
-                                                    <select name="create" 
onchange="if(this.selectedIndex==1) 
YAHOO.booking.postToUrl('index.php?menuaction=booking.uiallocation.add', 
allocationParams[{id}]); if(this.selectedIndex==2) 
YAHOO.booking.postToUrl('index.php?menuaction=booking.uibooking.add', 
eventParams[{id}]); if(this.selectedIndex==3) 
YAHOO.booking.postToUrl('index.php?menuaction=booking.uievent.add', 
eventParams[{id}]);">
+                                                    <select name="create" 
onchange="if(this.selectedIndex==1) 
JqueryPortico.booking.postToUrl('index.php?menuaction=booking.uiallocation.add',
 allocationParams[{id}]); if(this.selectedIndex==2) 
JqueryPortico.booking.postToUrl('index.php?menuaction=booking.uibooking.add', 
eventParams[{id}]); if(this.selectedIndex==3) 
JqueryPortico.booking.postToUrl('index.php?menuaction=booking.uievent.add', 
eventParams[{id}]);">
                                                         <xsl:if 
test="not(../case_officer/is_current_user)">
                                                             <xsl:attribute 
name="disabled">disabled</xsl:attribute>
                                                         </xsl:if>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]