fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [13176] template.xsl


From: Saul
Subject: [Fmsystem-commits] [13176] template.xsl
Date: Fri, 08 May 2015 23:00:41 +0000

Revision: 13176
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13176
Author:   psaul
Date:     2015-05-08 23:00:41 +0000 (Fri, 08 May 2015)
Log Message:
-----------
template.xsl

Modified Paths:
--------------
    branches/dev-syncromind/property/templates/base/template.xsl

Modified: branches/dev-syncromind/property/templates/base/template.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/template.xsl        
2015-05-08 23:00:17 UTC (rev 13175)
+++ branches/dev-syncromind/property/templates/base/template.xsl        
2015-05-08 23:00:41 UTC (rev 13176)
@@ -412,46 +412,39 @@
                 <div class="yui-content">
                     <div id="general">
                         <div align="left">
-                        <!--form method="post" class="pure-form 
pure-form-aligned" name="form" -->
-                       <table cellpadding="2" cellspacing="2" width="80%" 
align="center">
+                            <dl>
                                <xsl:choose>
                                        <xsl:when test="msgbox_data != ''">
-                                               <tr>
-                                                       <td align="left" 
colspan="3">
+                                                       <dt>
                                                                
<xsl:call-template name="msgbox"/>
-                                                       </td>
-                                               </tr>
+                                                       </dt>
                                        </xsl:when>
                                </xsl:choose>
+                            </dl>
                                <xsl:variable name="form_action">
                                        <xsl:value-of select="form_action"/>
                                </xsl:variable>
                                <form method="post" class="pure-form 
pure-form-aligned" name="form" action="{$form_action}">
                                        <xsl:choose>
                                                <xsl:when 
test="value_template_id !=''">
-                                                       <tr>
-                                                               <td 
valign="top">
+                                                       <div 
class="pure-control-group">
+                                                               <label>
                                                                        
<xsl:value-of select="lang_template_id"/>
-                                                               </td>
-                                                               <td 
class="th_text">
+                                                               </label>
                                                                        
<xsl:value-of select="value_template_id"/>
-                                                               </td>
-                                                       </tr>
+                                                       </div>
                                                </xsl:when>
                                        </xsl:choose>
-                                       <tr>
-                                               <td valign="top">
+                                       <div class="pure-control-group">
+                                               <label>
                                                        <xsl:value-of 
select="lang_chapter"/>
-                                               </td>
-                                               <td class="th_text">
+                                               </label>
                                                        <xsl:call-template 
name="chapter_select"/>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td valign="top">
+                                       </div>
+                                       <div class="pure-control-group">
+                                               <label>
                                                        <xsl:value-of 
select="lang_name"/>
-                                               </td>
-                                               <td>
+                                               </label>
                                                        <input type="text" 
name="values[name]" value="{value_name}" onMouseout="window.status='';return 
true;">
                                                                <xsl:attribute 
name="onMouseover">
                                                                        
<xsl:text>window.status='</xsl:text>
@@ -459,13 +452,11 @@
                                                                        
<xsl:text>'; return true;</xsl:text>
                                                                </xsl:attribute>
                                                        </input>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td valign="top">
+                                       </div>
+                                       <div class="pure-control-group">
+                                               <label>
                                                        <xsl:value-of 
select="lang_descr"/>
-                                               </td>
-                                               <td>
+                                               </label>
                                                        <textarea cols="60" 
rows="4" name="values[descr]" onMouseout="window.status='';return true;">
                                                                <xsl:attribute 
name="onMouseover">
                                                                        
<xsl:text>window.status='</xsl:text>
@@ -474,10 +465,8 @@
                                                                </xsl:attribute>
                                                                <xsl:value-of 
select="value_descr"/>
                                                        </textarea>
-                                               </td>
-                                       </tr>
-                                       <tr height="50">
-                                               <td>
+                                       </div>
+                                       <div class="pure-control-group">
                                                        <xsl:variable 
name="lang_save">
                                                                <xsl:value-of 
select="lang_save"/>
                                                        </xsl:variable>
@@ -488,13 +477,11 @@
                                                                        
<xsl:text>'; return true;</xsl:text>
                                                                </xsl:attribute>
                                                        </input>
-                                               </td>
-                                       </tr>
+                                       </div>
                                </form>
                                <xsl:choose>
                                        <xsl:when test="value_template_id !=''">
-                                               <tr>
-                                                       <td height="50">
+                                               <div class="pure-control-group">
                                                                <xsl:variable 
name="add_action">
                                                                        
<xsl:value-of select="add_action"/>
                                                                </xsl:variable>
@@ -510,12 +497,10 @@
                                                                                
</xsl:attribute>
                                                                        </input>
                                                                </form>
-                                                       </td>
-                                               </tr>
+                                                </div>
                                        </xsl:when>
                                </xsl:choose>
-                               <tr>
-                                       <td>
+                               <div class="pure-control-group">
                                                <xsl:variable 
name="done_action">
                                                        <xsl:value-of 
select="done_action"/>
                                                </xsl:variable>
@@ -531,10 +516,7 @@
                                                                </xsl:attribute>
                                                        </input>
                                                </form>
-                                       </td>
-                               </tr>
-                       </table>
-                        <!--/form-->
+                               </div>
                         </div>
                     </div>
                 </div>
@@ -555,17 +537,15 @@
                     <xsl:value-of disable-output-escaping="yes" select="tabs"/>
                     <div id="general">
                         <div align="left">
-                                <!--form method="post" class="pure-form 
pure-form-aligned" name="form" action=""-->
-                                <table cellpadding="2" cellspacing="2" 
width="80%" align="center">
+                                    <dl>
                                         <xsl:choose>
                                                 <xsl:when test="msgbox_data != 
''">
-                                                        <tr>
-                                                                <td 
align="left" colspan="3">
+                                                                <dt>
                                                                         
<xsl:call-template name="msgbox"/>
-                                                                </td>
-                                                        </tr>
+                                                                </dt>
                                                 </xsl:when>
                                         </xsl:choose>
+                                    </dl>
                                         <xsl:variable name="form_action">
                                                 <xsl:value-of 
select="form_action"/>
                                         </xsl:variable>
@@ -574,11 +554,10 @@
                                                         <xsl:when 
test="value_hour_id !=''">
                                                                 <xsl:choose>
                                                                         
<xsl:when test="value_activity_num =''">
-                                                                               
 <tr>
-                                                                               
         <td>
+                                                                               
 <div class="pure-control-group">
+                                                                               
         <label>
                                                                                
                 <xsl:value-of select="lang_copy_hour"/>
-                                                                               
         </td>
-                                                                               
         <td>
+                                                                               
         </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>
@@ -586,66 +565,54 @@
                                                                                
                                 <xsl:text>'; return true;</xsl:text>
                                                                                
                         </xsl:attribute>
                                                                                
                 </input>
-                                                                               
         </td>
-                                                                               
 </tr>
+                                                                               
 </div>
                                                                         
</xsl:when>
                                                                 </xsl:choose>
-                                                                <tr>
-                                                                        <td 
valign="top">
+                                                                <div 
class="pure-control-group">
+                                                                        <label>
                                                                                
 <xsl:value-of select="lang_hour_id"/>
-                                                                        </td>
-                                                                        <td 
class="th_text">
+                                                                        
</label>
                                                                                
 <xsl:value-of select="value_hour_id"/>
-                                                                        </td>
-                                                                </tr>
+                                                                </div>
                                                         </xsl:when>
                                                 </xsl:choose>
                                                 <xsl:choose>
                                                         <xsl:when 
test="value_activity_num !=''">
-                                                                <tr>
-                                                                        <td 
valign="top">
+                                                                <div 
class="pure-control-group">
+                                                                        <label>
                                                                                
 <xsl:value-of select="lang_activity_num"/>
-                                                                        </td>
-                                                                        <td 
class="th_text">
+                                                                        
</label>
                                                                                
 <xsl:value-of select="value_activity_num"/>
-                                                                        </td>
-                                                                </tr>
+                                                                </div>
                                                         </xsl:when>
                                                 </xsl:choose>
-                                                <tr>
-                                                        <td valign="top">
+                                                <div 
class="pure-control-group">
+                                                        <label>
                                                                 <xsl:value-of 
select="lang_template"/>
-                                                        </td>
-                                                        <td class="th_text">
+                                                        </label>
                                                                 <xsl:value-of 
select="value_template_name"/>
                                                                 <xsl:text> [ 
</xsl:text>
                                                                 <xsl:value-of 
select="value_template_id"/>
                                                                 <xsl:text> 
]</xsl:text>
-                                                        </td>
-                                                </tr>
+                                                </div>
                                                 <xsl:choose>
                                                         <xsl:when 
test="value_activity_num=''">
-                                                                <tr>
-                                                                        <td 
valign="top">
+                                                                <div 
class="pure-control-group">
+                                                                        <label>
                                                                                
 <xsl:value-of select="lang_chapter"/>
-                                                                        </td>
-                                                                        <td 
class="th_text">
+                                                                        
</label>
                                                                                
 <xsl:call-template name="chapter_select"/>
-                                                                        </td>
-                                                                </tr>
-                                                                <tr>
-                                                                        <td 
valign="top">
+                                                                </div>
+                                                                <div 
class="pure-control-group">
+                                                                        <label>
                                                                                
 <xsl:value-of select="lang_grouping"/>
-                                                                        </td>
-                                                                        <td 
class="th_text">
+                                                                        
</label>
                                                                                
 <xsl:call-template name="grouping_select"/>
-                                                                        </td>
-                                                                </tr>
-                                                                <tr>
-                                                                        <td 
valign="top">
+                                                                </div>
+                                                                <div 
class="pure-control-group">
+                                                                        <label>
                                                                                
 <xsl:value-of select="lang_new_grouping"/>
-                                                                        </td>
-                                                                        <td>
+                                                                        
</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>
@@ -653,15 +620,13 @@
                                                                                
                 <xsl:text>'; return true;</xsl:text>
                                                                                
         </xsl:attribute>
                                                                                
 </input>
-                                                                        </td>
-                                                                </tr>
+                                                                </div>
                                                         </xsl:when>
                                                 </xsl:choose>
-                                                <tr>
-                                                        <td>
+                                                <div 
class="pure-control-group">
+                                                        <label>
                                                                 <xsl:value-of 
select="php:function('lang', 'building part')"/>
-                                                        </td>
-                                                        <td>
+                                                        </label>
                                                                 <select 
name="values[building_part_id]">
                                                                         
<xsl:attribute name="title">
                                                                                
 <xsl:value-of select="php:function('lang', 'select building part')"/>
@@ -671,24 +636,20 @@
                                                                         
</option>
                                                                         
<xsl:apply-templates select="building_part_list/options"/>
                                                                 </select>
-                                                        </td>
-                                                </tr>
+                                                </div>
                                                 <xsl:choose>
                                                         <xsl:when 
test="value_activity_num !=''">
-                                                                <tr>
-                                                                        <td 
valign="top">
+                                                                <div 
class="pure-control-group">
+                                                                        <label>
                                                                                
 <xsl:value-of select="lang_ns3420"/>
-                                                                        </td>
-                                                                        <td 
class="th_text">
+                                                                        
</label>
                                                                                
 <xsl:value-of select="value_ns3420_id"/>
                                                                                
 <input type="hidden" name="ns3420_id" value="{value_ns3420_id}"/>
-                                                                        </td>
-                                                                </tr>
-                                                                <tr>
-                                                                        <td 
valign="top">
+                                                                </div>
+                                                                <div 
class="pure-control-group">
+                                                                        <label>
                                                                                
 <xsl:value-of select="lang_descr"/>
-                                                                        </td>
-                                                                        <td>
+                                                                        
</label>
                                                                                
 <textarea cols="60" rows="4" name="values[descr]" 
onMouseout="window.status='';return true;">
                                                                                
         <xsl:attribute name="onMouseover">
                                                                                
                 <xsl:text>window.status='</xsl:text>
@@ -697,17 +658,15 @@
                                                                                
         </xsl:attribute>
                                                                                
         <xsl:value-of select="value_descr"/>
                                                                                
 </textarea>
-                                                                        </td>
-                                                                </tr>
+                                                                </div>
                                                         </xsl:when>
                                                         <xsl:otherwise>
-                                                                <tr>
-                                                                        <td 
valign="top">
+                                                                <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>
-                                                                        </td>
-                                                                        <td 
valign="top">
+                                                                        
</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>
@@ -715,12 +674,10 @@
                                                                                
                 <xsl:text>'; return true;</xsl:text>
                                                                                
         </xsl:attribute>
                                                                                
 </input>
-                                                                        </td>
-                                                                </tr>
-                                                                <tr>
-                                                                        <td>
-                                                                        </td>
-                                                                        <td>
+                                                                </div>
+                                                                <div 
class="pure-control-group">
+                                                                        
<label></label>
+                                                                        <div 
style="display: inline-block; vertical-align: top;">
                                                                                
 <textarea cols="40" rows="4" name="ns3420_descr" 
onMouseout="window.status='';return true;">
                                                                                
         <xsl:attribute name="onMouseover">
                                                                                
                 <xsl:text>window.status='</xsl:text>
@@ -729,39 +686,32 @@
                                                                                
         </xsl:attribute>
                                                                                
         <xsl:value-of select="value_descr"/>
                                                                                
 </textarea>
-                                                                        </td>
-                                                                </tr>
-                                                                <tr>
-                                                                        <td>
+                                                                        </div>
+                                                                </div>
+                                                                <div 
class="pure-control-group">
+                                                                        <label>
                                                                                
 <xsl:value-of select="lang_tolerance"/>
-                                                                        </td>
-                                                                        <td>
+                                                                        
</label>
                                                                                
 <xsl:call-template name="tolerance_select"/>
-                                                                        </td>
-                                                                </tr>
+                                                                </div>
                                                         </xsl:otherwise>
                                                 </xsl:choose>
-                                                <tr>
-                                                        <td>
+                                                <div 
class="pure-control-group">
+                                                        <label>
                                                                 <xsl:value-of 
select="lang_unit"/>
-                                                        </td>
-                                                        <td>
+                                                        </label>
                                                                 
<xsl:call-template name="unit_select"/>
-                                                        </td>
-                                                </tr>
-                                                <tr>
-                                                        <td>
+                                                </div>
+                                                <div 
class="pure-control-group">
+                                                        <label>
                                                                 <xsl:value-of 
select="lang_dim_d"/>
-                                                        </td>
-                                                        <td>
+                                                        </label>
                                                                 
<xsl:call-template name="dim_d_select"/>
-                                                        </td>
-                                                </tr>
-                                                <tr>
-                                                        <td valign="top">
+                                                </div>
+                                                <div 
class="pure-control-group">
+                                                        <label>
                                                                 <xsl:value-of 
select="lang_quantity"/>
-                                                        </td>
-                                                        <td>
+                                                        </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>
@@ -769,28 +719,25 @@
                                                                                
 <xsl:text>'; return true;</xsl:text>
                                                                         
</xsl:attribute>
                                                                 </input>
-                                                        </td>
-                                                </tr>
-                                                <tr>
-                                                        <td valign="top">
+                                                </div>
+                                                <div 
class="pure-control-group">
+                                                        <label>
                                                                 <xsl:value-of 
select="lang_billperae"/>
-                                                        </td>
-                                                        <td>
+                                                        </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"/> ]
-                                                        </td>
-                                                </tr>
-                                                <tr>
-                                                        <td valign="top">
+
+                                                </div>
+                                                <div 
class="pure-control-group">
+                                                        <label>
                                                                 <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">
+                                                        </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"/>
-                                                        </td>
-                                                        <td>
+                                                        </label>
                                                                 <textarea 
cols="60" rows="4" name="values[remark]" onMouseout="window.status='';return 
true;">
                                                                         
<xsl:attribute name="onMouseover">
                                                                                
 <xsl:text>window.status='</xsl:text>
@@ -799,10 +746,8 @@
                                                                         
</xsl:attribute>
                                                                         
<xsl:value-of select="value_remark"/>
                                                                 </textarea>
-                                                        </td>
-                                                </tr>
-                                                <tr height="50">
-                                                        <td>
+                                                </div>
+                                                <div 
class="pure-control-group">
                                                                 <xsl:variable 
name="lang_save">
                                                                         
<xsl:value-of select="lang_save"/>
                                                                 </xsl:variable>
@@ -813,11 +758,9 @@
                                                                                
 <xsl:text>'; return true;</xsl:text>
                                                                         
</xsl:attribute>
                                                                 </input>
-                                                        </td>
-                                                </tr>
+                                                </div>
                                         </form>
-                                        <tr>
-                                                <td>
+                                        <div class="pure-control-group">
                                                         <xsl:variable 
name="done_action">
                                                                 <xsl:value-of 
select="done_action"/>
                                                         </xsl:variable>
@@ -833,10 +776,7 @@
                                                                         
</xsl:attribute>
                                                                 </input>
                                                         </form>
-                                                </td>
-                                        </tr>
-                                </table>
-                                <!--/form-->
+                                        </div>
                         </div>
                     </div>
                 </div>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]