[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [14411]
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [14411] |
Date: |
Thu, 19 Nov 2015 00:26:21 +0000 |
Revision: 14411
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14411
Author: nelson224
Date: 2015-11-19 00:26:20 +0000 (Thu, 19 Nov 2015)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind/frontend/templates/base/document.xsl
Modified: branches/dev-syncromind/frontend/templates/base/document.xsl
===================================================================
--- branches/dev-syncromind/frontend/templates/base/document.xsl
2015-11-19 00:26:05 UTC (rev 14410)
+++ branches/dev-syncromind/frontend/templates/base/document.xsl
2015-11-19 00:26:20 UTC (rev 14411)
@@ -1,93 +1,95 @@
<xsl:template match="contract_data" xmlns:php="http://php.net/xsl">
- <!-- <xsl:copy-of select="."/> -->
+
+ <xsl:choose>
+ <xsl:when test="msgbox_data != ''">
+ <xsl:call-template name="msgbox"/>
+ </xsl:when>
+ </xsl:choose>
+
<xsl:variable name="tab_selected"><xsl:value-of
select="tab_selected"/></xsl:variable>
- <div class="pure-form pure-form-aligned">
- <div id="tab-content">
- <xsl:value-of disable-output-escaping="yes"
select="tabs" />
- <div id="{$tab_selected}">
- <div class="toolbar-container">
- <div class="toolbar" style="display: block;
padding-bottom: 1em;">
- <div id="contract_selector">
- <img
src="frontend/templates/base/images/16x16/page_white_stack.png"
class="list_image"/>
- <form action="{form_url}" method="post"
style="float:left;">
- <select name="contract_filter"
onchange="this.form.submit()">
- <xsl:choose>
- <xsl:when
test="//contract_filter = 'active'">
- <option
value="active" selected="selected"><xsl:value-of select="php:function('lang',
'active')"/></option>
- </xsl:when>
- <xsl:otherwise>
- <option
value="active"><xsl:value-of select="php:function('lang', 'active')"/></option>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:choose>
- <xsl:when
test="//contract_filter = 'not_active'">
- <option
value="not_active" selected="selected"><xsl:value-of
select="php:function('lang', 'not_active')"/></option>
- </xsl:when>
- <xsl:otherwise>
- <option
value="not_active"><xsl:value-of select="php:function('lang',
'not_active')"/></option>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:choose>
- <xsl:when
test="//contract_filter = 'all'">
- <option
value="all" selected="selected"><xsl:value-of select="php:function('lang',
'all')"/></option>
- </xsl:when>
- <xsl:otherwise>
- <option
value="all"><xsl:value-of select="php:function('lang', 'all')"/></option>
- </xsl:otherwise>
- </xsl:choose>
- </select>
- </form>
- <xsl:choose>
- <xsl:when
test="not(normalize-space(select)) and (count(select) <= 1)">
- <em
style="margin-left: 1em; float: left;"><xsl:value-of
select="php:function('lang', 'no_contracts')"/></em>
- </xsl:when>
- <xsl:otherwise>
- <form action="{form_url}"
method="post" style="float: left;">
- <xsl:for-each
select="select">
-
<xsl:choose>
-
<xsl:when test="id = //selected_contract">
-
<input name="contract_id" type="radio" value="{id}" checked=""
onclick="this.form.submit();" style="margin-left: 1em;"></input>
-
</xsl:when>
-
<xsl:otherwise>
-
<input name="contract_id" type="radio" value="{id}" onclick
="this.form.submit();" style="margin-left: 1em;"></input>
-
</xsl:otherwise>
-
</xsl:choose>
- <label
style="margin-right: 1em; padding-left: 5px;"> <xsl:value-of
select="old_contract_id"/> (<xsl:value-of select="contract_status"/>)</label>
- </xsl:for-each>
- </form>
- </xsl:otherwise>
- </xsl:choose>
- </div>
- </div>
- </div>
- <div style="clear: both;"></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: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 class="frontend_body">
+ <div class="pure-form pure-form-aligned">
+ <div id="tab-content">
+ <xsl:value-of disable-output-escaping="yes"
select="tabs" />
+ <div id="{$tab_selected}">
+ <div>
+ <div class="pure-g">
+ <div class="pure-u-1">
+ <img
src="frontend/templates/base/images/16x16/page_white_stack.png"
class="list_image"/>
+ <form
action="{form_url}" method="post">
+ <select
name="contract_filter" onchange="this.form.submit()">
+
<xsl:choose>
+
<xsl:when test="//contract_filter = 'active'">
+
<option value="active" selected="selected"><xsl:value-of
select="php:function('lang', 'active')"/></option>
+
</xsl:when>
+
<xsl:otherwise>
+
<option value="active"><xsl:value-of
select="php:function('lang', 'active')"/></option>
+
</xsl:otherwise>
+
</xsl:choose>
+
<xsl:choose>
+
<xsl:when test="//contract_filter = 'not_active'">
+
<option value="not_active" selected="selected"><xsl:value-of
select="php:function('lang', 'not_active')"/></option>
+
</xsl:when>
+
<xsl:otherwise>
+
<option value="not_active"><xsl:value-of
select="php:function('lang', 'not_active')"/></option>
+
</xsl:otherwise>
+
</xsl:choose>
+
<xsl:choose>
+
<xsl:when test="//contract_filter = 'all'">
+
<option value="all" selected="selected"><xsl:value-of
select="php:function('lang', 'all')"/></option>
+
</xsl:when>
+
<xsl:otherwise>
+
<option value="all"><xsl:value-of select="php:function('lang',
'all')"/></option>
+
</xsl:otherwise>
+
</xsl:choose>
+
</select>
+ </form>
+ </div>
+ <xsl:choose>
+ <xsl:when
test="not(normalize-space(select)) and (count(select) <= 1)">
+ <div
class="pure-u-1">
+
<xsl:value-of select="php:function('lang', 'no_contracts')"/>
+ </div>
+ </xsl:when>
+ <xsl:otherwise>
+ <div
class="pure-u-1">
+
<form action="{form_url}" method="post">
+
<xsl:for-each select="select">
+
<xsl:choose>
+
<xsl:when test="id = //selected_contract">
+
<input name="contract_id" type="radio" value="{id}"
checked="" onclick="this.form.submit();" style="margin-left: 1em;"></input>
+
</xsl:when>
+
<xsl:otherwise>
+
<input name="contract_id" type="radio" value="{id}"
onclick ="this.form.submit();" style="margin-left: 1em;"></input>
+
</xsl:otherwise>
+
</xsl:choose>
+
<label style="margin-right: 1em; padding-left: 5px;"> <xsl:value-of
select="old_contract_id"/> (<xsl:value-of select="contract_status"/>)</label>
+
</xsl:for-each>
+
</form>
+ </div>
+ </xsl:otherwise>
+ </xsl:choose>
+ </div>
+ </div>
+
+ <div class="tickets">
+ <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>
+ <xsl:value-of disable-output-escaping="yes"
select="tabs_content" />
</div>
- </div>
- <xsl:value-of disable-output-escaping="yes"
select="tabs_content" />
- </div>
+ </div>
</div>
</xsl:template>
\ No newline at end of file
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [14411],
Nelson Guerra <=