fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12254]


From: Nelson Guerra
Subject: [Fmsystem-commits] [12254]
Date: Wed, 29 Oct 2014 23:14:22 +0000

Revision: 12254
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12254
Author:   nelson224
Date:     2014-10-29 23:14:21 +0000 (Wed, 29 Oct 2014)
Log Message:
-----------


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

Modified: branches/dev-syncromind/property/templates/base/generic.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/generic.xsl 2014-10-29 
23:13:53 UTC (rev 12253)
+++ branches/dev-syncromind/property/templates/base/generic.xsl 2014-10-29 
23:14:21 UTC (rev 12254)
@@ -13,181 +13,184 @@
                        self.name="first_Window";
                        <xsl:value-of select="lookup_functions"/>
                </script>
-               <xsl:choose>
-                       <xsl:when test="msgbox_data != ''">
-                               <xsl:call-template name="msgbox"/>
-                       </xsl:when>
-               </xsl:choose>
-               <div class="yui-navset" id="general_edit_tabview">
+
+               <div id="general_edit_tabview">
+                       
                        <xsl:variable name="form_action">
                                <xsl:value-of select="form_action"/>
                        </xsl:variable>
+                       
+                       <xsl:value-of select="validator"/>
+       
                        <form method="post" action="{$form_action}">
-                               <xsl:value-of disable-output-escaping="yes" 
select="tabs"/>
-                               <div class="yui-content">
-                                       <div id="general">
-                                               <table cellpadding="2" 
cellspacing="2" width="79%" align="center">
+                               <dl>
+                                       <xsl:choose>
+                                               <xsl:when test="msgbox_data != 
''">
+                                                       <dt>
+                                                               
<xsl:call-template name="msgbox"/>
+                                                       </dt>
+                                               </xsl:when>
+                                       </xsl:choose>
+                               </dl>
+                       
+                               <div>
+                                       
+                                       <div id="general" class="content-wrp">
+                                               <fieldset>
                                                        <xsl:choose>
                                                                <xsl:when 
test="id_type != 'auto'">
-                                                                       <tr>
-                                                                               
<td valign="top">
+                                                                       <div 
class="pure-control-group">
+                                                                               
<label for="name">
                                                                                
        <xsl:value-of select="php:function('lang', 'id')"/>
-                                                                               
</td>
-                                                                               
<td>
-                                                                               
        <xsl:choose>
-                                                                               
                <xsl:when test="value_id != ''">
-                                                                               
                        <xsl:value-of select="value_id"/>
-                                                                               
                </xsl:when>
-                                                                               
                <xsl:otherwise>
-                                                                               
                        <input type="text" name="values[{id_name}]" 
value="{value_id}">
-                                                                               
                                <xsl:attribute name="title">
-                                                                               
                                        <xsl:value-of 
select="php:function('lang', 'Enter the ID')"/>
-                                                                               
                                </xsl:attribute>
-                                                                               
                        </input>
-                                                                               
                </xsl:otherwise>
-                                                                               
        </xsl:choose>
-                                                                               
</td>
-                                                                       </tr>
+                                                                               
</label>
+                                                                               
<xsl:choose>
+                                                                               
        <xsl:when test="value_id != ''">
+                                                                               
                <xsl:value-of select="value_id"/>
+                                                                               
        </xsl:when>
+                                                                               
        <xsl:otherwise>
+                                                                               
                <input type="text" name="values[{id_name}]" value="{value_id}">
+                                                                               
                        <xsl:attribute name="title">
+                                                                               
                                <xsl:value-of select="php:function('lang', 
'Enter the ID')"/>
+                                                                               
                        </xsl:attribute>
+                                                                               
                </input>
+                                                                               
        </xsl:otherwise>
+                                                                               
</xsl:choose>
+                                                                       </div>
                                                                </xsl:when>
                                                                <xsl:otherwise>
                                                                        
<xsl:choose>
                                                                                
<xsl:when test="value_id != ''">
-                                                                               
        <tr>
-                                                                               
                <td valign="top">
+                                                                               
        <div class="pure-control-group">
+                                                                               
                <label for="name">
                                                                                
                        <xsl:value-of select="php:function('lang', 'id')"/>
-                                                                               
                </td>
-                                                                               
                <td>
-                                                                               
                        <xsl:value-of select="value_id"/>
-                                                                               
                </td>
-                                                                               
        </tr>
+                                                                               
                </label>
+                                                                               
                <xsl:value-of select="value_id"/>
+                                                                               
        </div>
                                                                                
</xsl:when>
                                                                        
</xsl:choose>
                                                                </xsl:otherwise>
                                                        </xsl:choose>
+                                                       
                                                        <xsl:choose>
                                                                <xsl:when 
test="value_id != ''">
                                                                        <input 
type="hidden" name="{id_name}" value="{value_id}">
                                                                        </input>
                                                                </xsl:when>
                                                        </xsl:choose>
+                                                       
                                                        <xsl:for-each 
select="fields">
-                                                               <xsl:variable 
name="name">
-                                                                       
<xsl:value-of select="name"/>
+                                                               
+                                                               <xsl:variable 
name="descr">
+                                                                       
<xsl:value-of select="descr"/>
                                                                </xsl:variable>
-                                                               <tr>
-                                                                       <td 
align="left" width="19%" valign="top" title="{descr}">
-                                                                               
<xsl:value-of select="descr"/>
-                                                                       </td>
-                                                                       <td 
align="left">
-                                                                               
<xsl:choose>
-                                                                               
        <xsl:when test="type='text'">
-                                                                               
                <textarea cols="{//textareacols}" rows="{//textarearows}" 
name="values[{name}]">
-                                                                               
                        <xsl:value-of select="value"/>
-                                                                               
                </textarea>
-                                                                               
        </xsl:when>
-                                                                               
        <xsl:when test="type='varchar' or type='integer' or type='int' or 
type='numeric'">
-                                                                               
                <input type="text" name="values[{name}]" value="{value}" 
size="{size}">
-                                                                               
                        <xsl:attribute name="title">
-                                                                               
                                <xsl:value-of select="descr"/>
-                                                                               
                        </xsl:attribute>
-                                                                               
                </input>
-                                                                               
        </xsl:when>
-                                                                               
        <xsl:when test="type='checkbox'">
-                                                                               
                <xsl:choose>
-                                                                               
                        <xsl:when test="value = 1">
-                                                                               
                                <input type="checkbox" name="values[{name}]" 
value="1" checked="checked">
-                                                                               
                                        <xsl:attribute name="title">
-                                                                               
                                                <xsl:value-of select="descr"/>
-                                                                               
                                        </xsl:attribute>
-                                                                               
                                </input>
-                                                                               
                        </xsl:when>
-                                                                               
                        <xsl:otherwise>
-                                                                               
                                <input type="checkbox" name="values[{name}]" 
value="1">
-                                                                               
                                        <xsl:attribute name="title">
-                                                                               
                                                <xsl:value-of select="descr"/>
-                                                                               
                                        </xsl:attribute>
-                                                                               
                                </input>
-                                                                               
                        </xsl:otherwise>
-                                                                               
                </xsl:choose>
-                                                                               
        </xsl:when>
-                                                                               
        <xsl:when test="type='select'">
-                                                                               
                <select name="values[{name}]">
-                                                                               
                        <option value="">
-                                                                               
                                <xsl:value-of select="php:function('lang', 
'select value')"/>
+                                                                               
                                                                                
+                                                               <div 
class="pure-control-group">
+                                                                       <label 
for="name">
+                                                                               
<xsl:value-of select="php:function('lang', $descr)"/>
+                                                                       </label>
+                                                                       
<xsl:choose>
+                                                                               
<xsl:when test="type='text'">
+                                                                               
        <textarea cols="{//textareacols}" rows="{//textarearows}" 
name="values[{name}]">
+                                                                               
                <xsl:value-of select="value"/>
+                                                                               
        </textarea>
+                                                                               
</xsl:when>
+                                                                               
<xsl:when test="type='varchar' or type='integer' or type='int' or 
type='numeric'">
+                                                                               
        <input type="text" name="values[{name}]" value="{value}" size="{size}">
+                                                                               
                <xsl:attribute name="title">
+                                                                               
                        <xsl:value-of select="descr"/>
+                                                                               
                </xsl:attribute>
+                                                                               
        </input>
+                                                                               
</xsl:when>
+                                                                               
<xsl:when test="type='checkbox'">
+                                                                               
        <xsl:choose>
+                                                                               
                <xsl:when test="value = 1">
+                                                                               
                        <input type="checkbox" name="values[{name}]" value="1" 
checked="checked">
+                                                                               
                                <xsl:attribute name="title">
+                                                                               
                                        <xsl:value-of select="descr"/>
+                                                                               
                                </xsl:attribute>
+                                                                               
                        </input>
+                                                                               
                </xsl:when>
+                                                                               
                <xsl:otherwise>
+                                                                               
                        <input type="checkbox" name="values[{name}]" value="1">
+                                                                               
                                <xsl:attribute name="title">
+                                                                               
                                        <xsl:value-of select="descr"/>
+                                                                               
                                </xsl:attribute>
+                                                                               
                        </input>
+                                                                               
                </xsl:otherwise>
+                                                                               
        </xsl:choose>
+                                                                               
</xsl:when>
+                                                                               
<xsl:when test="type='select'">
+                                                                               
        <select name="values[{name}]">
+                                                                               
                <option value="">
+                                                                               
                        <xsl:value-of select="php:function('lang', 'select 
value')"/>
+                                                                               
                </option>
+                                                                               
                <xsl:for-each select="valueset">
+                                                                               
                        <option value="{id}">
+                                                                               
                                <xsl:if test="selected != 0">
+                                                                               
                                        <xsl:attribute name="selected" 
value="selected"/>
+                                                                               
                                </xsl:if>
+                                                                               
                                <xsl:value-of select="name"/>
                                                                                
                        </option>
-                                                                               
                        <xsl:for-each select="valueset">
-                                                                               
                                <option value="{id}">
-                                                                               
                                        <xsl:if test="selected != 0">
-                                                                               
                                                <xsl:attribute name="selected" 
value="selected"/>
-                                                                               
                                        </xsl:if>
-                                                                               
                                        <xsl:value-of select="name"/>
-                                                                               
                                </option>
-                                                                               
                        </xsl:for-each>
-                                                                               
                </select>
-                                                                               
        </xsl:when>
-                                                                               
        <xsl:when test="type='multiple_select'">
-                                                                               
                <select name="values[{name}][]" multiple="multiple">
-                                                                               
                        <xsl:for-each select="valueset">
-                                                                               
                                <option value="{id}">
-                                                                               
                                        <xsl:if test="selected != 0">
-                                                                               
                                                <xsl:attribute name="selected" 
value="selected"/>
-                                                                               
                                        </xsl:if>
-                                                                               
                                        <xsl:value-of select="name"/>
-                                                                               
                                </option>
-                                                                               
                        </xsl:for-each>
-                                                                               
                </select>
-                                                                               
        </xsl:when>
-                                                                               
        <xsl:when test="type='link'">
-                                                                               
                <input type="text" name="values[{name}]" value="{value}" 
size="30">
-                                                                               
                        <xsl:choose>
-                                                                               
                                <xsl:when test="disabled!=''">
-                                                                               
                                        <xsl:attribute name="disabled">
-                                                                               
                                                <xsl:text> disabled</xsl:text>
-                                                                               
                                        </xsl:attribute>
-                                                                               
                                </xsl:when>
-                                                                               
                        </xsl:choose>
-                                                                               
                </input>
+                                                                               
                </xsl:for-each>
+                                                                               
        </select>
+                                                                               
</xsl:when>
+                                                                               
<xsl:when test="type='multiple_select'">
+                                                                               
        <select name="values[{name}][]" multiple="multiple">
+                                                                               
                <xsl:for-each select="valueset">
+                                                                               
                        <option value="{id}">
+                                                                               
                                <xsl:if test="selected != 0">
+                                                                               
                                        <xsl:attribute name="selected" 
value="selected"/>
+                                                                               
                                </xsl:if>
+                                                                               
                                <xsl:value-of select="name"/>
+                                                                               
                        </option>
+                                                                               
                </xsl:for-each>
+                                                                               
        </select>
+                                                                               
</xsl:when>
+                                                                               
<xsl:when test="type='link'">
+                                                                               
        <input type="text" name="values[{name}]" value="{value}" size="30">
                                                                                
                <xsl:choose>
-                                                                               
                        <xsl:when test="value!=''">
-                                                                               
                                <br/>
-                                                                               
                                <a href="{value}" target="_blank">
-                                                                               
                                        <xsl:value-of select="value"/>
-                                                                               
                                </a>
+                                                                               
                        <xsl:when test="disabled!=''">
+                                                                               
                                <xsl:attribute name="disabled">
+                                                                               
                                        <xsl:text> disabled</xsl:text>
+                                                                               
                                </xsl:attribute>
                                                                                
                        </xsl:when>
                                                                                
                </xsl:choose>
-                                                                               
        </xsl:when>
-                                                                               
</xsl:choose>
-                                                                       </td>
-                                                               </tr>
+                                                                               
        </input>
+                                                                               
        <xsl:choose>
+                                                                               
                <xsl:when test="value!=''">
+                                                                               
                        <br/>
+                                                                               
                        <a href="{value}" target="_blank">
+                                                                               
                                <xsl:value-of select="value"/>
+                                                                               
                        </a>
+                                                                               
                </xsl:when>
+                                                                               
        </xsl:choose>
+                                                                               
</xsl:when>
+                                                                       
</xsl:choose>
+                                                                       
+                                                               </div>
                                                        </xsl:for-each>
-                                               </table>
+                                               </fieldset>
                                        </div>
+                                       
                                        <xsl:call-template 
name="attributes_values"/>
-                                       <table cellpadding="2" cellspacing="2" 
width="80%" align="center">
-                                               <tr height="50">
-                                                       <td valign="bottom">
-                                                               <input 
type="submit" name="values[save]" value="{lang_save}" 
onMouseout="window.status='';return true;">
-                                                                       
<xsl:attribute name="title">
-                                                                               
<xsl:value-of select="php:function('lang', 'Save the record and return to the 
list')"/>
-                                                                       
</xsl:attribute>
-                                                               </input>
-                                                       </td>
-                                                       <td valign="bottom">
-                                                               <input 
type="submit" name="values[apply]" value="{lang_apply}" 
onMouseout="window.status='';return true;">
-                                                                       
<xsl:attribute name="title">
-                                                                               
<xsl:value-of select="php:function('lang', 'Apply the values')"/>
-                                                                       
</xsl:attribute>
-                                                               </input>
-                                                       </td>
-                                                       <td align="right" 
valign="bottom">
-                                                               <input 
type="button" name="values[cancel]" value="{lang_cancel}" 
onMouseout="window.status='';return true;" 
onClick="document.cancel_form.submit();">
-                                                                       
<xsl:attribute name="title">
-                                                                               
<xsl:value-of select="php:function('lang', 'Leave the record untouched and 
return to the list')"/>
-                                                                       
</xsl:attribute>
-                                                               </input>
-                                                       </td>
-                                               </tr>
-                                       </table>
+                                       
+                                       <div class="form-buttons">
+                                               <input type="submit" 
name="values[save]" value="{lang_save}" onMouseout="window.status='';return 
true;">
+                                                       <xsl:attribute 
name="title">
+                                                               <xsl:value-of 
select="php:function('lang', 'Save the record and return to the list')"/>
+                                                       </xsl:attribute>
+                                               </input>
+                                               <input type="submit" 
name="values[apply]" value="{lang_apply}" onMouseout="window.status='';return 
true;">
+                                                       <xsl:attribute 
name="title">
+                                                               <xsl:value-of 
select="php:function('lang', 'Apply the values')"/>
+                                                       </xsl:attribute>
+                                               </input>
+                                               <input type="button" 
name="values[cancel]" value="{lang_cancel}" onMouseout="window.status='';return 
true;" onClick="document.cancel_form.submit();">
+                                                       <xsl:attribute 
name="title">
+                                                               <xsl:value-of 
select="php:function('lang', 'Leave the record untouched and return to the 
list')"/>
+                                                       </xsl:attribute>
+                                               </input>
+                                       </div>
                                </div>
                        </form>
                        <xsl:variable name="cancel_url">




reply via email to

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