fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [13171]


From: Nelson Guerra
Subject: [Fmsystem-commits] [13171]
Date: Fri, 08 May 2015 22:19:49 +0000

Revision: 13171
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13171
Author:   nelson224
Date:     2015-05-08 22:19:49 +0000 (Fri, 08 May 2015)
Log Message:
-----------


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

Modified: branches/dev-syncromind/property/templates/base/wo_hour.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/wo_hour.xsl 2015-05-08 
22:19:32 UTC (rev 13170)
+++ branches/dev-syncromind/property/templates/base/wo_hour.xsl 2015-05-08 
22:19:49 UTC (rev 13171)
@@ -39,72 +39,55 @@
 
        <!-- New template-->
        <xsl:template match="list_deviation">
-               <!-- DataTable 0 DESVIATION-->
-               <div id="datatable-container_0"/>
-               <div id="contextmenu_0"/>
+               
+               <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>
+
                <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
-                       <!--  <xsl:apply-templates 
select="table_header_deviation"/><xsl:apply-templates 
select="values_deviation"/> -->
-                       <!--  <tr><td></td><td class="small_text" 
align="right"><xsl:value-of select="sum_deviation"/></td></tr>  -->
                        <tr>
                                <td height="50" width="4%">
+                                       
                                        <xsl:variable name="add_action">
                                                <xsl:value-of 
select="add_action"/>
                                        </xsl:variable>
-                                       <xsl:variable name="lang_add">
+                                       <a class="pure-button 
pure-button-primary" href="{$add_action}">
                                                <xsl:value-of 
select="lang_add"/>
-                                       </xsl:variable>
-                                       <form method="post" 
action="{$add_action}">
-                                               <input type="submit" name="add" 
value="{$lang_add}" onMouseout="window.status='';return true;">
-                                                       <xsl:attribute 
name="onMouseover">
-                                                               
<xsl:text>window.status='</xsl:text>
-                                                               <xsl:value-of 
select="lang_add_statustext"/>
-                                                               <xsl:text>'; 
return true;</xsl:text>
-                                                       </xsl:attribute>
-                                               </input>
-                                       </form>
+                                               <!--
+                                               <xsl:attribute 
name="onMouseover">
+                                                       
<xsl:text>window.status='</xsl:text>
+                                                       <xsl:value-of 
select="lang_add_statustext"/>
+                                                       <xsl:text>'; return 
true;</xsl:text>
+                                               </xsl:attribute>
+                                               -->
+                                       </a>
                                </td>
                                <td height="50" width="96%">
                                        <xsl:variable name="done_action">
                                                <xsl:value-of 
select="done_action"/>
                                        </xsl:variable>
-                                       <xsl:variable name="lang_done">
+                                       <a class="pure-button 
pure-button-primary" href="{$done_action}">
                                                <xsl:value-of 
select="lang_done"/>
-                                       </xsl:variable>
-                                       <form method="post" 
action="{$done_action}">
-                                               <input type="submit" 
name="done" value="{$lang_done}" onMouseout="window.status='';return true;">
-                                                       <xsl:attribute 
name="onMouseover">
-                                                               
<xsl:text>window.status='</xsl:text>
-                                                               <xsl:value-of 
select="lang_done_statustext"/>
-                                                               <xsl:text>'; 
return true;</xsl:text>
-                                                       </xsl:attribute>
-                                               </input>
-                                       </form>
+                                               <!--
+                                               <xsl:attribute 
name="onMouseover">
+                                                       
<xsl:text>window.status='</xsl:text>
+                                                       <xsl:value-of 
select="lang_done_statustext"/>
+                                                       <xsl:text>'; return 
true;</xsl:text>
+                                               </xsl:attribute>
+                                               -->
+                                       </a>
                                </td>
                        </tr>
                </table>
-               <!--  DATATABLE DEFINITIONS-->
-               <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();
-
-                       <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"/>,
-                                               permission:<xsl:value-of 
select="permission"/>,
-                                               is_paginator:  <xsl:value-of 
select="is_paginator"/>,
-                                               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>
-               </script>
        </xsl:template>
 
        <!-- New template-->




reply via email to

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