fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [12424]


From: Nelson Guerra
Subject: [Fmsystem-commits] [12424]
Date: Fri, 05 Dec 2014 23:09:43 +0000

Revision: 12424
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12424
Author:   nelson224
Date:     2014-12-05 23:09:42 +0000 (Fri, 05 Dec 2014)
Log Message:
-----------


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

Modified: branches/dev-syncromind/property/templates/base/entity.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/entity.xsl  2014-12-05 
20:50:51 UTC (rev 12423)
+++ branches/dev-syncromind/property/templates/base/entity.xsl  2014-12-05 
23:09:42 UTC (rev 12424)
@@ -228,174 +228,122 @@
        <!-- add inventory -->
        <xsl:template xmlns:php="http://php.net/xsl"; match="add_inventory">
 
-        <div align = 'left'>
-
+       <div id="inventory_edit_tabview">
                <xsl:variable name="action_url">
                        <xsl:value-of select="php:function('get_phpgw_link', 
'/index.php', 'menuaction:property.uientity.add_inventory')" />
                </xsl:variable>
 
                <form name="form" id="form" action="{$action_url}" 
method="post">
-
-        <fieldset>
-               <legend>
-                       <xsl:value-of select="system_location/descr"/>
-                       <xsl:text>::</xsl:text>                 
-                       <xsl:value-of select="php:function('lang', 'add 
inventory')" />
-               </legend>
-
-                       <table>
+                       <dl>
                                <xsl:choose>
                                        <xsl:when test="msgbox_data != ''">
-                                               <tr>
-                                                       <td align="left" 
colspan="3">
-                                                               
<xsl:call-template name="msgbox"/>
-                                                       </td>
-                                               </tr>
+                                               <dt>
+                                                       <xsl:call-template 
name="msgbox"/>
+                                               </dt>
                                        </xsl:when>
                                </xsl:choose>
-                               <tr>
-                                       <td>
-                                       <label><xsl:value-of 
select="php:function('lang', 'id')" /></label>
-                                       </td>
-                                       <td>
-                                               <xsl:value-of select="item_id"/>
-                                               <input type="hidden" 
name="location_id" value="{location_id}"/>
-                                               <input type="hidden" name="id" 
value="{item_id}"/>
-                                       </td>
-                               </tr>
+                       </dl>
+                       <div id="tab-content">
+                               <xsl:value-of disable-output-escaping="yes" 
select="tabs"/>
+                               <div id="inventory">
+                                       <fieldset>
+                                               <xsl:call-template 
name="location_form"/>
+                                               <div class="pure-control-group">
+                                                       <label><xsl:value-of 
select="php:function('lang', 'id')" /></label>
+                                                       <xsl:value-of 
select="item_id"/>
+                                                       <input type="hidden" 
name="location_id" value="{location_id}"/>
+                                                       <input type="hidden" 
name="id" value="{item_id}"/>                                      
+                                               </div>
 
-                               <xsl:call-template name="location_form"/>
-                               <tr>
-                                       <td>
-                                               <label 
for="unit_id"><xsl:value-of select="php:function('lang', 'unit')" /></label>
-                                       </td>
-                                       <td>
-                                               <select id = 'unit_id' 
name="values[unit_id]" class="forms">
-                                                       <xsl:if test="lock_unit 
= 1">
-                                                               <xsl:attribute 
name="disabled" value="disabled"/>
-                                                       </xsl:if>
-                                                       <xsl:apply-templates 
select="unit_list/options"/>
-                                               </select>
-                                       </td>
-                                       </tr>
-                                       <tr>
-                                       <td>
-                                               <label 
for="inventory"><xsl:value-of select="php:function('lang', 'inventory')" 
/></label>
-                                       </td>
-                                       <td>
+                                               <div class="pure-control-group">
+                                                       <label 
for="unit_id"><xsl:value-of select="php:function('lang', 'unit')" /></label>
+                                                       <select id = 'unit_id' 
name="values[unit_id]" class="forms">
+                                                               <xsl:if 
test="lock_unit = 1">
+                                                                       
<xsl:attribute name="disabled" value="disabled"/>
+                                                               </xsl:if>
+                                                               
<xsl:apply-templates select="unit_list/options"/>
+                                                       </select>               
                
+                                               </div>
 
-                                               <input type="text" id = 
'inventory' name="values[inventory]" value="{value_inventory}" size="12">
-                                                       <xsl:attribute 
name="title">
-                                                               <xsl:value-of 
select="lang_inventory_statustext"/>
-                                                       </xsl:attribute>
-                                               </input>
-                                       </td>
-                                       </tr>
-<!--
-                                       <tr>
-                                       <td>
-                                               <label ><xsl:value-of 
select="php:function('lang', 'write off')" /></label>
-                                       </td>
-                                       <td>
-                                               <input type="text" 
name="values[write_off]" value="{value_write_off}" size="12">
-                                                       <xsl:attribute 
name="title">
-                                                               <xsl:value-of 
select="lang_write_off_statustext"/>
-                                                       </xsl:attribute>
-                                               </input>
-                                       </td>
-                                       </tr>
--->
-                                       <tr>
-                                       <td>
-                                               <label><xsl:value-of 
select="php:function('lang', 'bookable')" /></label>
-                                       </td>
-                                       <td>
-                                               <input type="checkbox" 
name="values[bookable]" value="1">
-                                                       <xsl:attribute 
name="title">
-                                                               <xsl:value-of 
select="php:function('lang', 'bookable')"/>
-                                                       </xsl:attribute>
-                                                       <xsl:if test="bookable 
= '1'">
-                                                               <xsl:attribute 
name="checked">
-                                                                       
<xsl:text>checked</xsl:text>
+                                               <div class="pure-control-group">
+                                                       <label 
for="inventory"><xsl:value-of select="php:function('lang', 'inventory')" 
/></label>
+                                                       <input type="text" id = 
'inventory' name="values[inventory]" value="{value_inventory}" size="12">
+                                                               <xsl:attribute 
name="title">
+                                                                       
<xsl:value-of select="lang_inventory_statustext"/>
                                                                </xsl:attribute>
-                                                       </xsl:if>
-                                               </input>
-                                       </td>
-                                       </tr>
-                                       <tr>
-                                       <td>
-                                               <label>
-                                                       <xsl:value-of 
select="php:function('lang', 'active from')"/>
-                                               </label>
-                                       </td>
-                                       <td>
-                                               <input type="text" 
id="active_from" name="values[active_from]" size="10" 
value="{value_active_from}" readonly="readonly">
-                                                       <xsl:attribute 
name="title">
-                                                               <xsl:value-of 
select="lang_active_from_statustext"/>
-                                                       </xsl:attribute>
-                                               </input>
-                                       </td>
-                                       </tr>
-                                       <tr>
-                                       <td>
-                                       <label>
-                                               <xsl:value-of 
select="php:function('lang', 'active to')"/>
-                                       </label>
-                                       </td>
-                                       <td>
-                                               <input type="text" 
id="active_to" name="values[active_to]" size="10" value="{value_active_to}" 
readonly="readonly">
-                                                       <xsl:attribute 
name="title">
-                                                               <xsl:value-of 
select="lang_active_to_statustext"/>
-                                                       </xsl:attribute>
-                                               </input>
-                                       </td>
-                                       </tr>
-                                       <tr>
+                                                       </input>                
                
+                                               </div>
 
-                                       <td>
-                                               <label><xsl:value-of 
select="php:function('lang', 'remark')" /></label>
-                                       </td>
-                                       <td>
-                                               <textarea cols="60" rows="4" 
name="values[remark]">
-                                                       <xsl:attribute 
name="title">
-                                                               <xsl:value-of 
select="php:function('lang', 'remark')"/>
-                                                       </xsl:attribute>
-                                                       <xsl:value-of 
select="value_remark"/>
-                                               </textarea>
-                                       </td>
-                                       </tr>
-                       </table>
-                        </fieldset>
-               <table>
-                       <tr>
-                               <td valign="bottom">
-                                       <xsl:variable name="lang_save">
-                                               <xsl:value-of 
select="php:function('lang', 'save')"/>
-                                       </xsl:variable>
-                                       <input type="submit" 
name="values[save]" value="{$lang_save}">
-                                               <xsl:attribute name="title">
-                                                       <xsl:value-of 
select="php:function('lang', 'save values and exit')"/>
-                                               </xsl:attribute>
-                                       </input>
-                               </td>
-                               <td align="right" valign="bottom">
-                                       <xsl:variable name="lang_cancel">
-                                               <xsl:value-of 
select="php:function('lang', 'cancel')"/>
-                                       </xsl:variable>
-                                       <input type="button" 
name="values[cancel]" value="{$lang_cancel}" onClick="parent.TINY.box.hide();">
-                                               <xsl:attribute name="title">
-                                                       <xsl:value-of 
select="php:function('lang', 'Back to the list')"/>
-                                               </xsl:attribute>
-                                       </input>
-                               </td>
-                       </tr>
-               </table>
+                                               <div class="pure-control-group">
+                                                       <label><xsl:value-of 
select="php:function('lang', 'bookable')" /></label>
+                                                       <input type="checkbox" 
name="values[bookable]" value="1">
+                                                               <xsl:attribute 
name="title">
+                                                                       
<xsl:value-of select="php:function('lang', 'bookable')"/>
+                                                               </xsl:attribute>
+                                                               <xsl:if 
test="bookable = '1'">
+                                                                       
<xsl:attribute name="checked">
+                                                                               
<xsl:text>checked</xsl:text>
+                                                                       
</xsl:attribute>
+                                                               </xsl:if>
+                                                       </input>                
                
+                                               </div>
 
-                       </form>
+                                               <div class="pure-control-group">
+                                                       <label><xsl:value-of 
select="php:function('lang', 'active from')"/></label>
+                                                       <input type="text" 
id="active_from" name="values[active_from]" size="10" 
value="{value_active_from}" readonly="readonly">
+                                                               <xsl:attribute 
name="title">
+                                                                       
<xsl:value-of select="lang_active_from_statustext"/>
+                                                               </xsl:attribute>
+                                                       </input>                
                
+                                               </div>
 
+                                               <div class="pure-control-group">
+                                                       <label><xsl:value-of 
select="php:function('lang', 'active to')"/></label>
+                                                       <input type="text" 
id="active_to" name="values[active_to]" size="10" value="{value_active_to}" 
readonly="readonly">
+                                                               <xsl:attribute 
name="title">
+                                                                       
<xsl:value-of select="lang_active_to_statustext"/>
+                                                               </xsl:attribute>
+                                                       </input>                
        
+                                               </div>
 
-
-        </div>
+                                               <div class="pure-control-group">
+                                                       <label><xsl:value-of 
select="php:function('lang', 'remark')" /></label>
+                                                       <textarea cols="60" 
rows="4" name="values[remark]">
+                                                               <xsl:attribute 
name="title">
+                                                                       
<xsl:value-of select="php:function('lang', 'remark')"/>
+                                                               </xsl:attribute>
+                                                               <xsl:value-of 
select="value_remark"/>
+                                                       </textarea>             
        
+                                               </div>
+                                       </fieldset>
+                                       <table>
+                                               <tr>
+                                                       <td valign="bottom">
+                                                               <xsl:variable 
name="lang_save">
+                                                                       
<xsl:value-of select="php:function('lang', 'save')"/>
+                                                               </xsl:variable>
+                                                               <input 
type="submit" name="values[save]" value="{$lang_save}">
+                                                                       
<xsl:attribute name="title">
+                                                                               
<xsl:value-of select="php:function('lang', 'save values and exit')"/>
+                                                                       
</xsl:attribute>
+                                                               </input>
+                                                       </td>
+                                                       <td align="right" 
valign="bottom">
+                                                               <xsl:variable 
name="lang_cancel">
+                                                                       
<xsl:value-of select="php:function('lang', 'cancel')"/>
+                                                               </xsl:variable>
+                                                               <input 
type="button" name="values[cancel]" value="{$lang_cancel}" 
onClick="parent.TINY.box.hide();">
+                                                                       
<xsl:attribute name="title">
+                                                                               
<xsl:value-of select="php:function('lang', 'Back to the list')"/>
+                                                                       
</xsl:attribute>
+                                                               </input>
+                                                       </td>
+                                               </tr>
+                                       </table>
+                               </div>
+                       </div>
+               </form>
+       </div>
        </xsl:template>
 
        <xsl:template match="options">




reply via email to

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