fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12690]


From: Nelson Guerra
Subject: [Fmsystem-commits] [12690]
Date: Mon, 02 Feb 2015 23:54:59 +0000

Revision: 12690
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12690
Author:   nelson224
Date:     2015-02-02 23:54:58 +0000 (Mon, 02 Feb 2015)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind/property/templates/base/event.xsl

Modified: branches/dev-syncromind/property/templates/base/event.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/event.xsl   2015-02-02 
23:10:10 UTC (rev 12689)
+++ branches/dev-syncromind/property/templates/base/event.xsl   2015-02-02 
23:54:58 UTC (rev 12690)
@@ -114,31 +114,33 @@
                                        <xsl:variable name="edit_url">
                                                <xsl:value-of 
select="edit_url"/>
                                        </xsl:variable>
-                                       <div id="plan">
-                                               <fieldset>
-                                               <input type="hidden" 
name="values[location_id]" value="{value_location_id}"/>
-                                               <input type="hidden" 
name="values[location_item_id]" value="{value_location_item_id}"/>
-                                               <table cellpadding="2" 
cellspacing="2" width="79%" align="center" border="0">
-                                                       <tr>
-                                                               <td width="79%" 
class="center" align="left">
-                                                                       
<xsl:value-of select="php:function('lang', 'alarm')"/>
-                                                               </td>
-                                                       </tr>
-                                                       <!-- DataTable 0 EDIT 
-->
-                                                       <tr>
-                                                               <td 
class="center" align="left" colspan="10">
-                                                                       <div 
id="datatable-container_0"/>
-                                                               </td>
-                                                       </tr>
-                                                       <tr>
-                                                               <td 
class="center" align="center" colspan="10">
-                                                                       <div 
id="datatable-buttons_0"/>
-                                                               </td>
-                                                       </tr>
-                                                       <!-- <xsl:call-template 
name="alarm_form"/>  -->
-                                               </table>
-                                               </fieldset>
-                                       </div>
+                                       <xsl:if test="datatable_def">
+                                               <div id="plan">
+                                                       <fieldset>
+                                                               <input 
type="hidden" name="values[location_id]" value="{value_location_id}"/>
+                                                               <input 
type="hidden" name="values[location_item_id]" value="{value_location_item_id}"/>
+                                                               <div 
class="pure-control-group">                
+                                                                       <label 
for="name">
+                                                                               
<xsl:value-of select="php:function('lang', 'alarm')"/>
+                                                                       </label>
+                                                                       <div 
class="pure-custom">
+                                                                               
<xsl:for-each select="datatable_def">
+                                                                               
                <xsl:if test="container = 'datatable-container_0'">
+                                                                               
                        <xsl:call-template name="table_setup">
+                                                                               
                                <xsl:with-param name="container" select 
='container'/>
+                                                                               
                                <xsl:with-param name="requestUrl" select 
='requestUrl' />
+                                                                               
                                <xsl:with-param name="ColumnDefs" select 
='ColumnDefs' />
+                                                                               
                                <xsl:with-param name="tabletools" select 
='tabletools' />
+                                                                               
                                <xsl:with-param name="data" select ='data' />
+                                                                               
                                <xsl:with-param name="config" select ='config' 
/>
+                                                                               
                        </xsl:call-template>
+                                                                               
                </xsl:if>
+                                                                               
</xsl:for-each>
+                                                                       </div>
+                                                               </div>
+                                                       </fieldset>
+                                               </div>
+                                       </xsl:if>
                                        <table cellpadding="2" cellspacing="2" 
width="80%" align="center">
                                                <tr height="50">
                                                        <td valign="bottom">
@@ -178,32 +180,6 @@
                                </div>
                        </form>
                </div>
-               <script type="text/javascript">
-                       var property_js = <xsl:value-of select="property_js"/>;
-                       var base_java_url = <xsl:value-of 
select="base_java_url"/>;
-                       var datatable = new Array();
-                       var myColumnDefs = new Array();
-                       var myButtons = new Array();
-                       var td_count = <xsl:value-of select="td_count"/>;
-
-                       <xsl:for-each select="datatable">
-                               datatable[<xsl:value-of select="name"/>] = [
-                                       {
-                                               values:<xsl:value-of 
select="values"/>,
-                                               total_records: <xsl:value-of 
select="total_records"/>,
-                                               is_paginator:  <xsl:value-of 
select="is_paginator"/>,
-                                                       
permission:<xsl:value-of select="permission"/>,
-                                               footer:<xsl:value-of 
select="footer"/>
-                                       }
-                               ]
-                       </xsl:for-each>
-                       <xsl:for-each select="myColumnDefs">
-                               myColumnDefs[<xsl:value-of select="name"/>] = 
<xsl:value-of select="values"/>
-                       </xsl:for-each>
-                       <xsl:for-each select="myButtons">
-                               myButtons[<xsl:value-of select="name"/>] = 
<xsl:value-of select="values"/>
-                       </xsl:for-each>
-               </script>
        </xsl:template>
 
        <!-- New template-->




reply via email to

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