fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [13473] allocation.xsl


From: Saul
Subject: [Fmsystem-commits] [13473] allocation.xsl
Date: Mon, 22 Jun 2015 23:07:19 +0000

Revision: 13473
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13473
Author:   psaul
Date:     2015-06-22 23:07:18 +0000 (Mon, 22 Jun 2015)
Log Message:
-----------
allocation.xsl

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

Modified: branches/dev-syncromind/booking/templates/base/allocation.xsl
===================================================================
--- branches/dev-syncromind/booking/templates/base/allocation.xsl       
2015-06-22 23:06:53 UTC (rev 13472)
+++ branches/dev-syncromind/booking/templates/base/allocation.xsl       
2015-06-22 23:07:18 UTC (rev 13473)
@@ -1,6 +1,6 @@
 <xsl:template match="data" xmlns:php="http://php.net/xsl";>
-    <div id="content">
-        <ul class="pathway">
+    <!--div id="content"-->
+        <!--ul class="pathway">
             <li>
                 <a>
                     <xsl:attribute name="href"><xsl:value-of 
select="allocation/allocations_link"/></xsl:attribute>
@@ -8,43 +8,68 @@
                 </a>
             </li>
             <li><xsl:value-of select="allocation/organization_name"/></li>
-        </ul>
+        </ul-->
 
         <xsl:call-template name="msgbox"/>
-               <xsl:call-template name="yui_booking_i18n"/>
+               <!--xsl:call-template name="yui_booking_i18n"/-->
+        <form action="" method="POST" id='form'  class="pure-form 
pure-form-aligned" name="form">
+            <input type="hidden" name="tab" value=""/>
+            <div id="tab-content">
+                <xsl:value-of disable-output-escaping="yes" 
select="allocation/tabs"/>
+                <div id="allocations">
+                    <div class="pure-control-group">
+                        <div class="pure-control-group">
+                            <label>
+                                <xsl:value-of select="php:function('lang', 
'From')" />
+                            </label>
+                                <xsl:value-of 
select="php:function('pretty_timestamp', allocation/from_)"/>
+                        </div>
+                        <div class="pure-control-group">
+                            <label>
+                                <xsl:value-of select="php:function('lang', 
'To')" />
+                            </label>
+                                <xsl:value-of 
select="php:function('pretty_timestamp', allocation/to_)"/>
+                        </div>
+                    </div>
+                    <div class="pure-control-group">
+                        <div class="pure-control-group">
+                            <label>
+                                <xsl:value-of select="php:function('lang', 
'Season')" />
+                            </label>
+                                <xsl:value-of select="allocation/season_name"/>
+                        </div>
+                        <div class="pure-control-group">
+                            <label>
+                                <xsl:value-of select="php:function('lang', 
'Organization')" />
+                            </label>
+                                <xsl:value-of 
select="allocation/organization_name"/>
+                        </div>
+                    </div>
+                    <div class="pure-control-group">
+                        <label>
+                            <xsl:value-of select="php:function('lang', 
'Resources')" />
+                        </label>
+                            <div id="resources_container"/>
+                    </div>
+                </div>
+            </div>
+        </form>
+        <div class="proplist-col">
+            <xsl:if test="allocation/permission/write">
+            <button>
+                <xsl:attribute 
name="onclick">window.location.href="<xsl:value-of 
select="allocation/edit_link"/>"</xsl:attribute>
+                <!--xsl:attribute name="onclick">square();</xsl:attribute-->
+                <xsl:value-of select="php:function('lang', 'Edit')" />
+            </button>
+            <button>
+                <xsl:attribute 
name="onclick">window.location.href="<xsl:value-of 
select="allocation/delete_link"/>"</xsl:attribute>
+                <xsl:value-of select="php:function('lang', 'Delete')" />
+            </button>
+            </xsl:if>
+        </div>
+    <!--/div-->
 
-        <dl class="proplist-col">
-            <dt><xsl:value-of select="php:function('lang', 'From')" /></dt>
-            <dd><xsl:value-of select="php:function('pretty_timestamp', 
allocation/from_)"/></dd>
-            <dt><xsl:value-of select="php:function('lang', 'To')" /></dt>
-            <dd><xsl:value-of select="php:function('pretty_timestamp', 
allocation/to_)"/></dd>
-        </dl>
-        <dl class="proplist-col">
-            <dt><xsl:value-of select="php:function('lang', 'Season')" /></dt>
-            <dd><xsl:value-of select="allocation/season_name"/></dd>
-            <dt><xsl:value-of select="php:function('lang', 'Organization')" 
/></dt>
-            <dd><xsl:value-of select="allocation/organization_name"/></dd>
-        </dl>
-        <dl class="proplist-col">
-            <dt><xsl:value-of select="php:function('lang', 'Resources')" 
/></dt>
-            <dd><div id="resources_container"/></dd>
-        </dl>
-
-        <div class="form-buttons">
-                       <xsl:if test="allocation/permission/write">
-                       <button>
-                           <xsl:attribute 
name="onclick">window.location.href="<xsl:value-of 
select="allocation/edit_link"/>"</xsl:attribute>
-                           <xsl:value-of select="php:function('lang', 'Edit')" 
/>
-                       </button>
-                       <button>
-                           <xsl:attribute 
name="onclick">window.location.href="<xsl:value-of 
select="allocation/delete_link"/>"</xsl:attribute>
-                           <xsl:value-of select="php:function('lang', 
'Delete')" />
-                       </button>
-                       </xsl:if>
-               </div>
-    </div>
-
-<script type="text/javascript">
+<!--script type="text/javascript">
     var resourceIds = '<xsl:value-of select="allocation/resource_ids"/>';
        var lang = <xsl:value-of select="php:function('js_lang', 'Name', 
'Resource Type')"/>;
     <![CDATA[
@@ -54,6 +79,15 @@
     YAHOO.booking.inlineTableHelper('resources_container', url, colDefs);
 });
 ]]>
+</script-->
+<script type="text/javascript">
+    
+    function square()
+    {
+        location.href = "<xsl:value-of select="allocation/edit_link"/>"; 
+    }
+    
+    
 </script>
 
 </xsl:template>




reply via email to

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