[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [13162]
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [13162] |
Date: |
Thu, 07 May 2015 23:12:15 +0000 |
Revision: 13162
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13162
Author: nelson224
Date: 2015-05-07 23:12:15 +0000 (Thu, 07 May 2015)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind/property/templates/base/wo_hour.xsl
Modified: branches/dev-syncromind/property/templates/base/wo_hour.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/wo_hour.xsl 2015-05-07
23:11:59 UTC (rev 13161)
+++ branches/dev-syncromind/property/templates/base/wo_hour.xsl 2015-05-07
23:12:15 UTC (rev 13162)
@@ -1,5 +1,5 @@
<!-- $Id$ -->
- <xsl:template name="app_data">
+ <xsl:template match="data">
<xsl:choose>
<xsl:when test="edit_hour">
<xsl:apply-templates select="edit_hour"/>
@@ -2194,30 +2194,31 @@
TINY.box.show({iframe:'<xsl:value-of
select="ns3420_link"/>',
boxid:"frameless",width:750,height:450,fixed:false,maskid:"darkmask",maskopacity:40,
mask:true, animate:true, close: true});
}
</script>
- <div align="left">
+ <xsl:choose>
+ <xsl:when test="msgbox_data != ''">
+ <dl>
+ <dt>
+ <xsl:call-template
name="msgbox"/>
+ </dt>
+ </dl>
+ </xsl:when>
+ </xsl:choose>
+ <div id="wo_hour_edit_tabview">
<xsl:variable name="form_action">
<xsl:value-of select="form_action"/>
</xsl:variable>
- <form method="post" name="form" action="{$form_action}">
- <table cellpadding="2" cellspacing="2" width="80%"
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>
- <xsl:choose>
- <xsl:when test="value_hour_id
!=''">
- <xsl:choose>
- <xsl:when
test="value_activity_num =''">
- <tr>
-
<td>
-
<xsl:value-of select="lang_copy_hour"/>
-
</td>
-
<td>
+ <form method="post" id="form" name="form"
action="{$form_action}" class="pure-form pure-form-aligned">
+ <div id="tab-content">
+ <xsl:value-of
disable-output-escaping="yes" select="tabs"/>
+ <div id="generic">
+ <xsl:choose>
+ <xsl:when
test="value_hour_id !=''">
+ <xsl:choose>
+
<xsl:when test="value_activity_num =''">
+
<div class="pure-control-group">
+
<label>
+
<xsl:value-of select="lang_copy_hour"/>
+
</label>
<input type="checkbox" name="values[copy_hour]" value="True"
onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
@@ -2225,77 +2226,63 @@
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
-
</td>
- </tr>
- </xsl:when>
- </xsl:choose>
- <tr>
- <td
valign="top">
-
<xsl:value-of select="lang_hour_id"/>
- </td>
- <td
class="th_text">
+
</div>
+
</xsl:when>
+ </xsl:choose>
+ <div
class="pure-control-group">
+ <label>
+
<xsl:value-of select="lang_hour_id"/>
+ </label>
<xsl:value-of select="value_hour_id"/>
- </td>
- </tr>
- </xsl:when>
- </xsl:choose>
- <xsl:choose>
- <xsl:when
test="value_activity_num !=''">
- <tr>
- <td
valign="top">
-
<xsl:value-of select="lang_activity_num"/>
- </td>
- <td
class="th_text">
+ </div>
+ </xsl:when>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when
test="value_activity_num !=''">
+ <div
class="pure-control-group">
+ <label>
+
<xsl:value-of select="lang_activity_num"/>
+ </label>
<xsl:value-of select="value_activity_num"/>
- </td>
- </tr>
- </xsl:when>
- </xsl:choose>
- <tr>
- <td valign="top">
- <xsl:value-of
select="lang_workorder"/>
- </td>
- <td class="th_text">
+ </div>
+ </xsl:when>
+ </xsl:choose>
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="lang_workorder"/>
+ </label>
<xsl:value-of
select="value_workorder_title"/>
<xsl:text> [ </xsl:text>
<xsl:value-of
select="value_workorder_id"/>
<xsl:text> ]</xsl:text>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of
select="lang_vendor"/>
- </td>
- <td class="th_text">
+ </div>
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="lang_vendor"/>
+ </label>
<xsl:value-of
select="value_vendor_name"/>
<xsl:text> [ </xsl:text>
<xsl:value-of
select="value_vendor_id"/>
<xsl:text> ]</xsl:text>
- </td>
- </tr>
- <xsl:choose>
- <xsl:when
test="value_activity_num=''">
- <tr>
- <td
valign="top">
-
<xsl:value-of select="lang_chapter"/>
- </td>
- <td
class="th_text">
+ </div>
+ <xsl:choose>
+ <xsl:when
test="value_activity_num=''">
+ <div
class="pure-control-group">
+ <label>
+
<xsl:value-of select="lang_chapter"/>
+ </label>
<xsl:call-template name="chapter_select"/>
- </td>
- </tr>
- <tr>
- <td
valign="top">
-
<xsl:value-of select="lang_grouping"/>
- </td>
- <td
class="th_text">
+ </div>
+ <div
class="pure-control-group">
+ <label>
+
<xsl:value-of select="lang_grouping"/>
+ </label>
<xsl:call-template name="grouping_select"/>
- </td>
- </tr>
- <tr>
- <td
valign="top">
-
<xsl:value-of select="lang_new_grouping"/>
- </td>
- <td>
+ </div>
+ <div
class="pure-control-group">
+ <label>
+
<xsl:value-of select="lang_new_grouping"/>
+ </label>
<input
type="text" name="values[new_grouping]" value="{value_new_grouping}"
onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
@@ -2303,15 +2290,13 @@
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
- </td>
- </tr>
- </xsl:when>
- </xsl:choose>
- <tr>
- <td>
- <xsl:value-of
select="php:function('lang', 'building part')"/>
- </td>
- <td>
+ </div>
+ </xsl:when>
+ </xsl:choose>
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="php:function('lang', 'building part')"/>
+ </label>
<select
name="values[building_part_id]">
<xsl:attribute
name="title">
<xsl:value-of select="php:function('lang', 'select building part')"/>
@@ -2321,24 +2306,20 @@
</option>
<xsl:apply-templates select="building_part_list/options"/>
</select>
- </td>
- </tr>
- <xsl:choose>
- <xsl:when
test="value_activity_num !=''">
- <tr>
- <td
valign="top">
-
<xsl:value-of select="lang_ns3420"/>
- </td>
- <td
class="th_text">
+ </div>
+ <xsl:choose>
+ <xsl:when
test="value_activity_num !=''">
+ <div
class="pure-control-group">
+ <label>
+
<xsl:value-of select="lang_ns3420"/>
+ </label>
<xsl:value-of select="value_ns3420_id"/>
<input
type="hidden" name="ns3420_id" value="{value_ns3420_id}"/>
- </td>
- </tr>
- <tr>
- <td
valign="top">
-
<xsl:value-of select="lang_descr"/>
- </td>
- <td>
+ </div>
+ <div
class="pure-control-group">
+ <label>
+
<xsl:value-of select="lang_descr"/>
+ </label>
<textarea cols="60" rows="4" name="values[descr]"
onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
@@ -2347,17 +2328,15 @@
</xsl:attribute>
<xsl:value-of select="value_descr"/>
</textarea>
- </td>
- </tr>
- </xsl:when>
- <xsl:otherwise>
- <tr>
- <td
valign="top">
- <a
href="javascript:ns3420_lookup()"
onMouseover="window.status='{lang_ns3420_statustext}';return true;"
onMouseout="window.status='';return true;">
-
<xsl:value-of select="lang_ns3420"/>
- </a>
- </td>
- <td
valign="top">
+ </div>
+ </xsl:when>
+ <xsl:otherwise>
+ <div
class="pure-control-group">
+ <label>
+
<a href="javascript:ns3420_lookup()"
onMouseover="window.status='{lang_ns3420_statustext}';return true;"
onMouseout="window.status='';return true;">
+
<xsl:value-of select="lang_ns3420"/>
+
</a>
+ </label>
<input
type="text" name="ns3420_id" value="{value_ns3420_id}"
onClick="ns3420_lookup();" readonly="readonly">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
@@ -2365,12 +2344,9 @@
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
- </td>
- </tr>
- <tr>
- <td>
- </td>
- <td>
+ </div>
+ <div
class="pure-control-group">
+
<label></label>
<textarea cols="40" rows="4" name="ns3420_descr"
onMouseout="window.status='';return true;">
<xsl:attribute name="onMouseover">
<xsl:text>window.status='</xsl:text>
@@ -2379,39 +2355,31 @@
</xsl:attribute>
<xsl:value-of select="value_descr"/>
</textarea>
- </td>
- </tr>
- <tr>
- <td>
-
<xsl:value-of select="lang_tolerance"/>
- </td>
- <td>
+ </div>
+ <div
class="pure-control-group">
+ <label>
+
<xsl:value-of select="lang_tolerance"/>
+ </label>
<xsl:call-template name="tolerance_select"/>
- </td>
- </tr>
- </xsl:otherwise>
- </xsl:choose>
- <tr>
- <td>
- <xsl:value-of
select="lang_unit"/>
- </td>
- <td>
+ </div>
+ </xsl:otherwise>
+ </xsl:choose>
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="lang_unit"/>
+ </label>
<xsl:call-template
name="unit_select"/>
- </td>
- </tr>
- <tr>
- <td>
- <xsl:value-of
select="lang_dim_d"/>
- </td>
- <td>
+ </div>
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="lang_dim_d"/>
+ </label>
<xsl:call-template
name="dim_d_select"/>
- </td>
- </tr>
- <tr>
- <td>
- <xsl:value-of
select="lang_wo_hour_category"/>
- </td>
- <td>
+ </div>
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="lang_wo_hour_category"/>
+ </label>
<xsl:variable
name="lang_wo_hour_cat_statustext">
<xsl:value-of
select="lang_to_email_address_statustext"/>
</xsl:variable>
@@ -2429,13 +2397,11 @@
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of
select="lang_quantity"/>
- </td>
- <td>
+ </div>
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="lang_quantity"/>
+ </label>
<input type="text"
name="values[quantity]" value="{value_quantity}"
onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
@@ -2443,27 +2409,23 @@
<xsl:text>'; return true;</xsl:text>
</xsl:attribute>
</input>
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of
select="lang_billperae"/>
- </td>
- <td><input type="text"
name="values[billperae]" value="{value_billperae}"
onMouseout="window.status='';return true;"><xsl:attribute
name="onMouseover"><xsl:text>window.status='</xsl:text><xsl:value-of
select="lang_billperae_statustext"/><xsl:text>'; return
true;</xsl:text></xsl:attribute></input><xsl:text> </xsl:text> [ <xsl:value-of
select="currency"/> ]
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of
select="lang_total_cost"/>
- </td>
- <td><xsl:value-of
select="value_total_cost"/><xsl:text> </xsl:text> [ <xsl:value-of
select="currency"/> ]
- </td>
- </tr>
- <tr>
- <td valign="top">
- <xsl:value-of
select="lang_remark"/>
- </td>
- <td>
+ </div>
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="lang_billperae"/>
+ </label>
+ <input type="text"
name="values[billperae]" value="{value_billperae}"
onMouseout="window.status='';return true;"><xsl:attribute
name="onMouseover"><xsl:text>window.status='</xsl:text><xsl:value-of
select="lang_billperae_statustext"/><xsl:text>'; return
true;</xsl:text></xsl:attribute></input><xsl:text> </xsl:text> [ <xsl:value-of
select="currency"/> ]
+ </div>
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="lang_total_cost"/>
+ </label>
+ <xsl:value-of
select="value_total_cost"/><xsl:text> </xsl:text> [ <xsl:value-of
select="currency"/> ]
+ </div>
+ <div class="pure-control-group">
+ <label>
+ <xsl:value-of
select="lang_remark"/>
+ </label>
<textarea cols="60"
rows="4" name="values[remark]" onMouseout="window.status='';return true;">
<xsl:attribute
name="onMouseover">
<xsl:text>window.status='</xsl:text>
@@ -2472,45 +2434,36 @@
</xsl:attribute>
<xsl:value-of
select="value_remark"/>
</textarea>
- </td>
- </tr>
- <tr height="50">
- <td>
- <xsl:variable
name="lang_save">
- <xsl:value-of
select="lang_save"/>
- </xsl:variable>
- <input type="submit"
name="values[save]" value="{$lang_save}" onMouseout="window.status='';return
true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
-
<xsl:value-of select="lang_save_statustext"/>
-
<xsl:text>'; return true;</xsl:text>
- </xsl:attribute>
- </input>
- </td>
- </tr>
- </table>
- </form>
- <table>
- <tr>
- <td>
- <xsl:variable
name="done_action">
- <xsl:value-of
select="done_action"/>
- </xsl:variable>
- <xsl:variable name="lang_done">
- <xsl:value-of
select="lang_done"/>
- </xsl:variable>
- <form method="post"
action="{$done_action}">
- <input type="submit"
name="done" value="{$lang_done}" onMouseout="window.status='';return true;">
- <xsl:attribute
name="onMouseover">
-
<xsl:text>window.status='</xsl:text>
-
<xsl:value-of select="lang_done_statustext"/>
-
<xsl:text>'; return true;</xsl:text>
- </xsl:attribute>
- </input>
- </form>
- </td>
- </tr>
- </table>
+ </div>
+ </div>
+ </div>
+ <div class="proplist-col">
+ <xsl:variable name="lang_save">
+ <xsl:value-of
select="lang_save"/>
+ </xsl:variable>
+ <input type="submit" class="pure-button
pure-button-primary" name="values[save]" value="{$lang_save}"
onMouseout="window.status='';return true;">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_save_statustext"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ <xsl:variable name="lang_done">
+ <xsl:value-of
select="lang_done"/>
+ </xsl:variable>
+ <input type="button" class="pure-button
pure-button-primary" name="done" value="{$lang_done}"
onMouseout="window.status='';return true;"
onClick="document.cancel_form.submit();">
+ <xsl:attribute
name="onMouseover">
+
<xsl:text>window.status='</xsl:text>
+ <xsl:value-of
select="lang_done_statustext"/>
+ <xsl:text>'; return
true;</xsl:text>
+ </xsl:attribute>
+ </input>
+ </div>
+ </form>
+ <xsl:variable name="done_action">
+ <xsl:value-of select="done_action"/>
+ </xsl:variable>
+ <form name="cancel_form" id="cancel_form"
action="{$done_action}" method="post"></form>
</div>
</xsl:template>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [13162],
Nelson Guerra <=