[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [14280]
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [14280] |
Date: |
Wed, 04 Nov 2015 23:22:36 +0000 |
Revision: 14280
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14280
Author: nelson224
Date: 2015-11-04 23:22:34 +0000 (Wed, 04 Nov 2015)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind/frontend/templates/base/drawings.xsl
Modified: branches/dev-syncromind/frontend/templates/base/drawings.xsl
===================================================================
--- branches/dev-syncromind/frontend/templates/base/drawings.xsl
2015-11-04 23:22:19 UTC (rev 14279)
+++ branches/dev-syncromind/frontend/templates/base/drawings.xsl
2015-11-04 23:22:34 UTC (rev 14280)
@@ -1,64 +1,49 @@
<!-- $Id$ -->
<xsl:template match="drawings" xmlns:php="http://php.net/xsl">
+
<xsl:variable name="form_action"><xsl:value-of
select="form_action"/></xsl:variable>
- <div class="yui-navset" id="drawing_tabview">
- <xsl:value-of disable-output-escaping="yes" select="tabs" />
- <div class="yui-content">
- <xsl:choose>
- <xsl:when
test="normalize-space(//header/selected_location) != ''">
- <div class="toolbar-container">
- <div class="toolbar">
- <xsl:apply-templates
select="datatable/actions" />
- </div>
- </div>
- <div class="tickets">
- <table cellpadding="2" cellspacing="2"
width="95%" align="center">
- <xsl:choose>
- <xsl:when test="msgbox_data
!= ''">
- <tr>
- <td align="left"
colspan="3">
-
<xsl:call-template name="msgbox"/>
- </td>
- </tr>
- </xsl:when>
- </xsl:choose>
- </table>
- <xsl:apply-templates select="datatable" />
- </div>
- </xsl:when>
- <xsl:otherwise>
- <div class="tickets">
- <xsl:value-of select="php:function('lang',
'no_buildings')"/>
- </div>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- </div>
-</xsl:template>
-
-<xsl:template name="datatable" match="datatable">
- <div id="paging_0"> </div>
- <div id="datatable-container_0"></div>
- <!-- DATATABLE DEFINITIONS-->
- <script type="text/javascript">
- var property_js = <xsl:value-of select="property_js" />;
- 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"/>,
- edit_action : <xsl:value-of
select="edit_action"/>,
- 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>
+ <xsl:variable name="location_id"><xsl:value-of
select="location_id"/></xsl:variable>
+
+ <form id="form" name="form" method="post" action="{$form_action}"
class="pure-form pure-form-aligned">
+ <div id="tab-content">
+ <xsl:value-of disable-output-escaping="yes"
select="tabs" />
+ <div id="{$location_id}">
+ <xsl:choose>
+ <xsl:when
test="normalize-space(//header/selected_location) != ''">
+ <div>
+ <table cellpadding="2"
cellspacing="2" width="95%" align="center">
+ <xsl:choose>
+
<xsl:when test="msgbox_data != ''">
+
<tr>
+
<td align="left" colspan="3">
+
<xsl:call-template name="msgbox"/>
+
</td>
+
</tr>
+
</xsl:when>
+ </xsl:choose>
+ </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>
+ </div>
+ </xsl:when>
+ <xsl:otherwise>
+ <div class="entity">
+ <xsl:value-of
select="php:function('lang', 'no_buildings')"/>
+ </div>
+ </xsl:otherwise>
+ </xsl:choose>
+ </div>
+ </div>
+ </form>
+</xsl:template>
\ No newline at end of file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [14280],
Nelson Guerra <=