[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [12781]
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [12781] |
Date: |
Mon, 23 Feb 2015 23:39:15 +0000 |
Revision: 12781
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12781
Author: nelson224
Date: 2015-02-23 23:39:14 +0000 (Mon, 23 Feb 2015)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind/property/templates/base/project.xsl
Modified: branches/dev-syncromind/property/templates/base/project.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/project.xsl 2015-02-20
23:42:25 UTC (rev 12780)
+++ branches/dev-syncromind/property/templates/base/project.xsl 2015-02-23
23:39:14 UTC (rev 12781)
@@ -2,9 +2,12 @@
<xsl:template match="data">
<xsl:choose>
- <xsl:when test="edit">
- <xsl:apply-templates select="edit"/>
- </xsl:when>
+ <xsl:when test="edit">
+ <xsl:apply-templates select="edit"/>
+ </xsl:when>
+ <xsl:when test="bulk_update_status">
+ <xsl:apply-templates select="bulk_update_status"/>
+ </xsl:when>
</xsl:choose>
</xsl:template>
@@ -49,12 +52,11 @@
</xsl:choose>
</table>
<form ENCTYPE="multipart/form-data" method="post" id="form" name="form"
action="{form_action}" class= "pure-form pure-form-aligned">
+ <xsl:variable name="decimal_separator">
+ <xsl:value-of select="decimal_separator"/>
+ </xsl:variable>
+ <input type="hidden" name="tab" value=""/>
<div id="tab-content">
- <!--input type="hidden" name="tab" value=""/-->
- <!--div class="yui-navset" id="project_tabview"-->
- <xsl:variable name="decimal_separator">
- <xsl:value-of select="decimal_separator"/>
- </xsl:variable>
<xsl:value-of disable-output-escaping="yes"
select="tabs"/>
<div id="general">
<fieldset>
@@ -738,7 +740,6 @@
</div>
</xsl:when>
</xsl:choose>
-
<xsl:call-template name="attributes_values"/>
</div>
@@ -878,38 +879,36 @@
<!-- New template-->
<xsl:template xmlns:php="http://php.net/xsl" match="bulk_update_status">
- <div align="left">
- <table cellpadding="2" cellspacing="2" width="80%"
align="center">
- <form name="form" method="post"
action="{update_action}">
- <tr>
- <td>
- <xsl:value-of
select="php:function('lang', 'start date')"/>
- </td>
- <td>
+ <input type="hidden" name="tab" value=""/>
+ <form name="form" id="form" method="post"
action="{update_action}" class= "pure-form pure-form-aligned">
+ <div id="tab-content">
+ <xsl:value-of disable-output-escaping="yes"
select="tabs"/>
+ <div id="generic">
+ <fieldset>
+ <div class="pure-control-group">
+ <label for="name">
+ <xsl:value-of
select="php:function('lang', 'start date')"/>
+ </label>
<input type="text"
id="values_start_date" name="start_date" size="10" value="{start_date}"
readonly="readonly">
<xsl:attribute
name="title">
<xsl:value-of select="lang_start_date_statustext"/>
</xsl:attribute>
</input>
- </td>
- </tr>
- <tr>
- <td>
- <xsl:value-of
select="php:function('lang', 'end date')"/>
- </td>
- <td>
+ </div>
+ <div class="pure-control-group">
+ <label for="name">
+ <xsl:value-of
select="php:function('lang', 'end date')"/>
+ </label>
<input type="text"
id="values_end_date" name="end_date" size="10" value="{end_date}"
readonly="readonly">
<xsl:attribute
name="title">
<xsl:value-of select="lang_end_date_statustext"/>
</xsl:attribute>
</input>
- </td>
- </tr>
- <tr>
- <td>
- <xsl:value-of
select="php:function('lang', 'dimb')"/>
- </td>
- <td>
+ </div>
+ <div class="pure-control-group">
+ <label for="name">
+ <xsl:value-of
select="php:function('lang', 'dimb')"/>
+ </label>
<select name="ecodimb">
<xsl:attribute
name="title">
<xsl:value-of select="php:function('lang', 'select')"/>
@@ -919,13 +918,11 @@
</option>
<xsl:apply-templates select="ecodimb_list/options"/>
</select>
- </td>
- </tr>
- <tr>
- <td>
- <xsl:value-of
select="php:function('lang', 'user')"/>
- </td>
- <td>
+ </div>
+ <div class="pure-control-group">
+ <label for="name">
+ <xsl:value-of
select="php:function('lang', 'user')"/>
+ </label>
<select name="user_id">
<xsl:attribute
name="title">
<xsl:value-of select="php:function('lang', 'select user')"/>
@@ -935,26 +932,22 @@
</option>
<xsl:apply-templates select="user_list/options"/>
</select>
- </td>
- </tr>
- <tr>
- <td>
- <xsl:value-of
select="php:function('lang', 'type')"/>
- </td>
- <td>
+ </div>
+ <div class="pure-control-group">
+ <label for="name">
+ <xsl:value-of
select="php:function('lang', 'type')"/>
+ </label>
<select name="type"
onChange="this.form.submit();">
<xsl:attribute
name="title">
<xsl:value-of select="php:function('lang', 'select type')"/>
</xsl:attribute>
<xsl:apply-templates select="type_list/options"/>
</select>
- </td>
- </tr>
- <tr>
- <td>
- <xsl:value-of
select="php:function('lang', 'status filter')"/>
- </td>
- <td>
+ </div>
+ <div class="pure-control-group">
+ <label for="name">
+ <xsl:value-of
select="php:function('lang', 'status filter')"/>
+ </label>
<select
name="status_filter">
<xsl:attribute
name="title">
<xsl:value-of select="php:function('lang', 'select status')"/>
@@ -964,13 +957,11 @@
</option>
<xsl:apply-templates select="status_list_filter/options"/>
</select>
- </td>
- </tr>
- <tr>
- <td>
- <xsl:value-of
select="php:function('lang', 'status new')"/>
- </td>
- <td>
+ </div>
+ <div class="pure-control-group">
+ <label for="name">
+ <xsl:value-of
select="php:function('lang', 'status new')"/>
+ </label>
<select
name="status_new">
<xsl:attribute
name="title">
<xsl:value-of select="php:function('lang', 'select status')"/>
@@ -980,13 +971,11 @@
</option>
<xsl:apply-templates select="status_list_new/options"/>
</select>
- </td>
- </tr>
- <tr>
- <td>
- <xsl:value-of
select="php:function('lang', 'transfer budget')"/>
- </td>
- <td>
+ </div>
+ <div class="pure-control-group">
+ <label for="name">
+ <xsl:value-of
select="php:function('lang', 'transfer budget')"/>
+ </label>
<select
name="transfer_budget">
<xsl:attribute
name="title">
<xsl:value-of select="php:function('lang', 'transfer budget')"/>
@@ -996,15 +985,13 @@
</option>
<xsl:apply-templates select="year_list/options"/>
</select>
- </td>
- </tr>
- <xsl:choose>
- <xsl:when test="check_paid = 1">
- <tr>
- <td>
-
<xsl:value-of select="php:function('lang', 'paid')"/>
- </td>
- <td>
+ </div>
+ <xsl:choose>
+ <xsl:when
test="check_paid = 1">
+ <div
class="pure-control-group">
+ <label
for="name">
+
<xsl:value-of select="php:function('lang', 'paid')"/>
+ </label>
<input
type="checkbox" name="paid" value="True">
<xsl:if test="paid = 1">
<xsl:attribute name="checked" value="checked"/>
@@ -1013,17 +1000,15 @@
<xsl:value-of select="php:function('lang', 'workorder')"/>
</xsl:attribute>
</input>
- </td>
- </tr>
- </xsl:when>
- </xsl:choose>
- <xsl:choose>
- <xsl:when
test="check_closed_orders = 1">
- <tr>
- <td>
-
<xsl:value-of select="php:function('lang', 'closed')"/>
- </td>
- <td>
+ </div>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when
test="check_closed_orders = 1">
+ <div
class="pure-control-group">
+ <label
for="name">
+
<xsl:value-of select="php:function('lang', 'closed')"/>
+ </label>
<input
type="checkbox" name="closed_orders" value="True">
<xsl:if test="closed_orders = 1">
<xsl:attribute name="checked" value="checked"/>
@@ -1032,14 +1017,11 @@
<xsl:value-of select="php:function('lang', 'projekt')"/>
</xsl:attribute>
</input>
- </td>
- </tr>
- </xsl:when>
- </xsl:choose>
- <tr>
- <td>
- </td>
- <td>
+ </div>
+ </xsl:when>
+ </xsl:choose>
+ <div class="pure-control-group">
+ <label
for="name"></label>
<input type="submit"
name="get_list">
<xsl:attribute
name="value">
<xsl:value-of select="php:function('lang', 'get list')"/>
@@ -1050,44 +1032,12 @@
<xsl:value-of select="php:function('lang', 'save')"/>
</xsl:attribute>
</input>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of
select="total_records"/>
- </td>
- <td>
- <div id="paging_0">
</div>
- <div
id="datatable-container_0"/>
- <input type="hidden"
name="id_to_update" value=""/>
- <input type="hidden"
name="new_budget" value=""/>
- </td>
- </tr>
- </form>
- </table>
+ </div>
+
+ </fieldset>
+ </div>
</div>
- <!-- 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();
- var td_count = 5;
- <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>
+ </form>
</xsl:template>
<!-- New template-->
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [12781],
Nelson Guerra <=