[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [13185]
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [13185] |
Date: |
Tue, 12 May 2015 21:43:21 +0000 |
Revision: 13185
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13185
Author: nelson224
Date: 2015-05-12 21:43:21 +0000 (Tue, 12 May 2015)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind/property/templates/base/wo_hour.index.xsl
Modified: branches/dev-syncromind/property/templates/base/wo_hour.index.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/wo_hour.index.xsl
2015-05-12 21:42:50 UTC (rev 13184)
+++ branches/dev-syncromind/property/templates/base/wo_hour.index.xsl
2015-05-12 21:43:21 UTC (rev 13185)
@@ -1,20 +1,4 @@
-<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>
-
<xsl:template match="data">
<xsl:choose>
<xsl:when test="datatable_name">
@@ -23,35 +7,18 @@
</h3>
</xsl:when>
</xsl:choose>
- <xsl:call-template name="datatable" />
+ <xsl:apply-templates select="datatable"/>
</xsl:template>
-
-<xsl:template name="datatable">
+<xsl:template match="datatable">
<xsl:call-template name="jquery_phpgw_i18n"/>
<div id="list_flash">
<xsl:call-template name="msgbox"/>
</div>
<div id="message" class='message'/>
- <xsl:apply-templates select="datatable"/>
-</xsl:template>
-
-
-<xsl:template match="datatable">
<xsl:call-template name="top-toolbar" />
- <xsl:for-each select="datatable_def">
- <xsl:if test="container = 'datatable-container_1'">
- <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>
- <xsl:call-template name="datasource-definition" />
+ <xsl:call-template name="prizebook_table" />
+ <xsl:call-template name="wo_hour_table" />
<xsl:call-template name="down-toolbar" />
</xsl:template>
@@ -67,7 +34,7 @@
<xsl:for-each
select="//top-toolbar/fields/field">
<xsl:choose>
<xsl:when
test="type='button'">
- <button
id="{id}" type="{type}" class="pure-button pure-button-primary"><xsl:value-of
select="value"/></button>
+ <a
id="{id}" class="pure-button pure-button-primary" href="{href}"
onclick="{onclick}"><xsl:value-of select="value"/></a>
</xsl:when>
</xsl:choose>
</xsl:for-each>
@@ -85,6 +52,21 @@
<div><xsl:value-of select="lang_vendor_name"/>:<span
id="vendor_name"></span></div>
</xsl:template>
+<xsl:template name="prizebook_table">
+ <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>
+</xsl:template>
+
<xsl:template name="down-toolbar">
<div class="toolbar-container">
<div class="toolbar">
@@ -115,7 +97,7 @@
</div>
</xsl:template>
-<xsl:template name="datasource-definition">
+<xsl:template name="wo_hour_table">
<table id="datatable-container" class="display cell-border compact
responsive no-wrap" width="100%">
<thead>
<xsl:for-each select="//datatable/field">
@@ -177,6 +159,11 @@
</table>
<script>
+ if (JqueryPortico.inlineTablesRendered == 0)
+ {
+ JqueryPortico.inlineTablesRendered = 1;
+ }
+
var columns = [
<xsl:for-each select="//datatable/field">
{
@@ -241,6 +228,7 @@
<script type="text/javascript" class="init">
+ var oTable = null;
$(document).ready(function() {
var ajax_url = '<xsl:value-of select="source"/>';
@@ -249,6 +237,7 @@
var editor_cols = [];
var editor_action = '<xsl:value-of
select="editor_action"/>';
+
<xsl:choose>
<xsl:when test="//datatable/actions">
JqueryPortico.TableTools =
{
@@ -453,7 +442,7 @@
var source = "<xsl:value-of select="source"/>";
- var oTable =
JqueryPortico.inlineTableHelper('datatable-container', source,
JqueryPortico.columns, options );
+ oTable =
JqueryPortico.inlineTableHelper('datatable-container', source,
JqueryPortico.columns, options );
<![CDATA[
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [13185],
Nelson Guerra <=