fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12506]


From: Nelson Guerra
Subject: [Fmsystem-commits] [12506]
Date: Fri, 26 Dec 2014 23:11:03 +0000

Revision: 12506
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12506
Author:   nelson224
Date:     2014-12-26 23:11:02 +0000 (Fri, 26 Dec 2014)
Log Message:
-----------


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

Modified: branches/dev-syncromind/property/templates/base/attrib_history.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/attrib_history.xsl  
2014-12-26 23:10:40 UTC (rev 12505)
+++ branches/dev-syncromind/property/templates/base/attrib_history.xsl  
2014-12-26 23:11:02 UTC (rev 12506)
@@ -1,122 +1,22 @@
   <!-- $Id$ -->
-       <!-- attrib_history -->
-       <func:function name="phpgw:conditional">
-          <xsl:param name="test"/>
-          <xsl:param name="true"/>
-          <xsl:param name="false"/>
-
-          <func:result>
-                  <xsl:choose>
-                          <xsl:when test="$test">
-                                  <xsl:value-of select="$true"/>
-                          </xsl:when>
-                          <xsl:otherwise>
-                                  <xsl:value-of select="$false"/>
-                          </xsl:otherwise>
-                  </xsl:choose>
-          </func:result>
-   </func:function>
+<!-- attrib_history -->
    
-       <xsl:template match="attrib_history">
-               <div id="tab-content">
-                       <div>
-                               <fieldset>
-                                       <div class="pure-control-group">
-                                               <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:call-template>
-                                                               </xsl:if>
-                                               </xsl:for-each>
-                                       </div>
-                               </fieldset>
-                       </div>
-               </div>
-       </xsl:template>
-
-       <xsl:template name="table_setup">
-               <xsl:param name="container" />
-               <xsl:param name="requestUrl" />
-               <xsl:param name="ColumnDefs" />
-               <table id="{$container}" class="display cell-border compact 
responsive no-wrap" width="100%">
-                       <thead>
-                               <tr>
-                                       <xsl:for-each select="$ColumnDefs">
-                                               <xsl:choose>
-                                                       <xsl:when test="hidden">
-                                                               <xsl:if 
test="hidden =0">
-                                                                       <th>
-                                                                               
<xsl:value-of select="label"/>
-                                                                       </th>
-                                                                       
</xsl:if>
-                                                       </xsl:when>
-                                                       <xsl:otherwise>
-                                                               <th>
-                                                                       
<xsl:value-of select="label"/>
-                                                               </th>
-                                                       </xsl:otherwise>
-                                               </xsl:choose>
-                                       </xsl:for-each>
-                               </tr>
-                       </thead>
-               </table>
-               <script>
-                       JqueryPortico.inlineTablesDefined += 1;
-                       var PreColumns = [
-                                       <xsl:for-each select="$ColumnDefs">
-                                       {
-                                               data:                   
"<xsl:value-of select="key"/>",
-                                               class:                  
"<xsl:value-of select="className"/>",
-                                               orderable:              
<xsl:value-of select="phpgw:conditional(not(sortable = 0), 'true', 'false')"/>,
-                                               <xsl:choose>
-                                                       <xsl:when test="hidden">
-                                                               <xsl:if 
test="hidden =0">
-                                                                       visible 
                :true,
-                                                               </xsl:if>
-                                                               <xsl:if 
test="hidden =1">
-                                                                       class:  
                'none',
-                                                                       visible 
                :false,
-                                                               </xsl:if>
-                                                       </xsl:when>
-                                                       <xsl:otherwise>
-                                                                       visible 
                :true,
-                                                       </xsl:otherwise>
-                                               </xsl:choose>
-                                               <xsl:if test="formatter">
-                                                render: function (dummy1, 
dummy2, oData) {
-                                                               try {
-                                                                       var ret 
= <xsl:value-of select="formatter"/>("<xsl:value-of select="key"/>", oData);
-                                                               }
-                                                               catch(err) {
-                                                                       return 
err.message;
-                                                               }
-                                                               return ret;
-                                                        },
-
+<xsl:template match="attrib_history">
+       <div id="tab-content">
+               <fieldset>
+                       <div class="pure-control-group">
+                               <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="config" select ='config' />
+                                                       </xsl:call-template>
                                                </xsl:if>
-                                               defaultContent: "<xsl:value-of 
select="defaultContent"/>"
-                                       }<xsl:value-of 
select="phpgw:conditional(not(position() = last()), ',', '')"/>
                                </xsl:for-each>
-                       ];
-       <![CDATA[
-                       columns = [];
-
-                       for(i=0;i < PreColumns.length;i++)
-                       {
-                               if ( PreColumns[i]['visible'] == true )
-                               {
-                                       columns.push(PreColumns[i]);
-                               }
-                       }
-       ]]>
-                       <xsl:variable name="num">
-                               <xsl:number count="*"/>
-                       </xsl:variable>
-                       var options = {disableFilter:true};
-                       var oTable<xsl:number value="($num - 1)"/> = 
JqueryPortico.inlineTableHelper("<xsl:value-of select="$container"/>", 
<xsl:value-of select="$requestUrl"/>, columns, options);
-
-               </script>
-       </xsl:template>
\ No newline at end of file
+                       </div>
+               </fieldset>
+       </div>
+</xsl:template>
\ No newline at end of file




reply via email to

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