fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [13203] tenant_claim.xsl


From: Saul
Subject: [Fmsystem-commits] [13203] tenant_claim.xsl
Date: Wed, 13 May 2015 22:52:48 +0000

Revision: 13203
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13203
Author:   psaul
Date:     2015-05-13 22:52:48 +0000 (Wed, 13 May 2015)
Log Message:
-----------
tenant_claim.xsl

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

Modified: branches/dev-syncromind/property/templates/base/tenant_claim.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/tenant_claim.xsl    
2015-05-13 22:52:15 UTC (rev 13202)
+++ branches/dev-syncromind/property/templates/base/tenant_claim.xsl    
2015-05-13 22:52:48 UTC (rev 13203)
@@ -1,5 +1,5 @@
   <!-- $Id$ -->
-       <xsl:template name="app_data">
+       <xsl:template match="data">
                <xsl:choose>
                        <xsl:when test="edit">
                                <xsl:apply-templates select="edit"/>
@@ -417,290 +417,249 @@
 <!-- New template-->
 <!-- view -->
 <xsl:template match="view" xmlns:php="http://php.net/xsl";>
-    <div align="left">
-       <table cellpadding="2" cellspacing="2" width="79%" align="left">
-           <tr>
-               <td width="25%" align="left">
-                   <xsl:value-of select="lang_claim_id"/>
-               </td>
-               <td width="75%" align="left">
-                   <xsl:value-of select="value_claim_id"/>
-               </td>
-           </tr>
-           <tr>
-               <td>
-                   <xsl:value-of select="lang_project_id"/>
-               </td>
-               <td>
-                   <xsl:value-of select="value_project_id"/>
-               </td>
-           </tr>
-           <tr>
-               <td valign="top">
-                   <xsl:value-of select="lang_name"/>
-               </td>
-               <td>
-                   <xsl:value-of select="value_name"/>
-               </td>
-           </tr>
-           <tr>
-               <td valign="top">
-                   <xsl:value-of select="lang_descr"/>
-               </td>
-               <td>
-                   <xsl:value-of select="value_descr"/>
-               </td>
-           </tr>
-           <tr>
-               <td>
-                   <xsl:value-of select="lang_category"/>
-               </td>
-               <xsl:for-each select="cat_list_project">
-                   <xsl:choose>
-                       <xsl:when test="selected='selected'">
-                           <td>
-                               <xsl:value-of select="name"/>
-                           </td>
-                       </xsl:when>
-                   </xsl:choose>
-               </xsl:for-each>
-           </tr>
-           <xsl:call-template name="location_view"/>
-           <xsl:choose>
-               <xsl:when test="contact_phone !=''">
-                   <tr>
-                       <td class="th_text" align="left">
-                           <xsl:value-of select="lang_contact_phone"/>
-                       </td>
-                       <td align="left">
-                           <xsl:value-of select="contact_phone"/>
-                       </td>
-                   </tr>
-               </xsl:when>
-           </xsl:choose>
-           <tr>
-               <td valign="top">
-                   <xsl:value-of select="lang_power_meter"/>
-               </td>
-               <td>
-                   <xsl:value-of select="value_power_meter"/>
-               </td>
-           </tr>
-           <tr>
-               <td>
-                   <xsl:value-of select="lang_charge_tenant"/>
-               </td>
-               <td>
-                   <xsl:choose>
-                       <xsl:when test="charge_tenant='1'">
-                           <b>X</b>
-                       </xsl:when>
-                   </xsl:choose>
-               </td>
-           </tr>
-           <tr>
-               <td valign="top">
-                   <xsl:value-of select="lang_budget"/>
-               </td>
-               <td>
-                   <xsl:value-of select="value_budget"/>
-                   <xsl:text> </xsl:text> [ <xsl:value-of select="currency"/> ]
-               </td>
-           </tr>
-           <tr>
-               <td valign="top">
-                   <xsl:value-of select="lang_reserve"/>
-               </td>
-               <td>
-                   <xsl:value-of select="value_reserve"/>
-                   <xsl:text> </xsl:text> [ <xsl:value-of select="currency"/> ]
-               </td>
-           </tr>
-           <tr>
-               <td valign="top">
-                   <xsl:value-of select="lang_reserve_remainder"/>
-               </td>
-               <td>
-                   <xsl:value-of select="value_reserve_remainder"/>
-                   <xsl:text> </xsl:text> [ <xsl:value-of select="currency"/> ]
-                   <xsl:text> </xsl:text> ( <xsl:value-of 
select="value_reserve_remainder_percent"/>
-                   <xsl:text> % )</xsl:text>
-               </td>
-           </tr>
-           <tr>
-               <td valign="top">
-                   <xsl:value-of select="lang_actual_cost"/>
-               </td>
-               <td>
-                   <xsl:value-of select="sum_workorder_actual_cost"/>
-                   <xsl:text> </xsl:text> [ <xsl:value-of select="currency"/> ]
-               </td>
-           </tr>
-           <tr>
-               <xsl:choose>
-                   <xsl:when test="sum_workorder_budget=''">
-                       <td class="th_text">
-                           <xsl:value-of select="lang_no_workorders"/>
-                       </td>
-                   </xsl:when>
-                   <xsl:otherwise>
-                       <td colspan="2">
-                           <table width="80%" cellpadding="2" cellspacing="2" 
align="left">
-                               <xsl:apply-templates 
select="table_header_workorder"/>
-                               <xsl:apply-templates select="workorder_budget"/>
-                               <tr class="th">
-                                   <td class="th_text" align="right">
-                                       <xsl:value-of select="lang_sum"/>
-                                   </td>
-                                   <td class="th_text" align="right">
-                                       <xsl:value-of 
select="sum_workorder_budget"/>
-                                   </td>
-                                   <td class="th_text" align="right">
-                                       <xsl:value-of 
select="sum_workorder_calculation"/>
-                                   </td>
-                                   <td>
-                                   </td>
-                                   <td>
-                                   </td>
-                                   <td>
-                                   </td>
-                               </tr>
-                           </table>
-                       </td>
-                   </xsl:otherwise>
-               </xsl:choose>
-           </tr>
-           <tr>
-               <td>
-                   <xsl:value-of select="lang_coordinator"/>
-               </td>
-               <xsl:for-each select="user_list">
-                   <xsl:choose>
-                       <xsl:when test="selected">
-                           <td>
-                               <xsl:value-of select="name"/>
-                           </td>
-                       </xsl:when>
-                   </xsl:choose>
-               </xsl:for-each>
-           </tr>
-           <tr>
-               <td>
-                   <xsl:value-of select="lang_status"/>
-               </td>
-               <xsl:for-each select="status_list">
-                   <xsl:choose>
-                       <xsl:when test="selected">
-                           <td>
-                               <xsl:value-of select="name"/>
-                           </td>
-                       </xsl:when>
-                   </xsl:choose>
-               </xsl:for-each>
-           </tr>
-           <tr>
-               <td valign="top">
-                   <xsl:value-of select="php:function('lang', 'entry date')" />
-               </td>
-               <td>
-                   <xsl:value-of select="value_entry_date"/>
-               </td>
-           </tr>
+    <script type="text/javascript">
+        self.name="first_Window";
+        <xsl:value-of select="lookup_functions"/>
+    </script>
+    <div id="tab-content">
+        <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">
+                    <div class="pure-control-group">
+                        <label>
+                            <xsl:value-of select="lang_claim_id"/>
+                        </label>
+                            <xsl:value-of select="value_claim_id"/>
+                    </div>
+                    <div class="pure-control-group">
+                        <label>
+                            <xsl:value-of select="lang_project_id"/>
+                        </label>
+                            <xsl:value-of select="value_project_id"/>
+                    </div>
+                    <div class="pure-control-group">
+                        <label>
+                            <xsl:value-of select="lang_name"/>
+                        </label>
+                            <xsl:value-of select="value_name"/>
+                    </div>
+                    <div class="pure-control-group">
+                        <label>
+                            <xsl:value-of select="lang_descr"/>
+                        </label>
+                            <xsl:value-of select="value_descr"/>
+                    </div>
+                    <div class="pure-control-group">
+                        <label>
+                            <xsl:value-of select="lang_category"/>
+                        </label>
+                        <xsl:for-each select="cat_list_project">
+                            <xsl:choose>
+                                <xsl:when test="selected='selected'">
+                                        <xsl:value-of select="name"/>
+                                </xsl:when>
+                            </xsl:choose>
+                        </xsl:for-each>
+                    </div>
+                    <xsl:call-template name="location_view"/>
+                    <xsl:choose>
+                        <xsl:when test="contact_phone !=''">
+                            <div class="pure-control-group">
+                                <label>
+                                    <xsl:value-of select="lang_contact_phone"/>
+                                </label>
+                                    <xsl:value-of select="contact_phone"/>
+                            </div>
+                        </xsl:when>
+                    </xsl:choose>
+                    <div class="pure-control-group">
+                        <label>
+                            <xsl:value-of select="lang_power_meter"/>
+                        </label>
+                            <xsl:value-of select="value_power_meter"/>
+                    </div>
+                    <div class="pure-control-group">
+                        <label>
+                            <xsl:value-of select="lang_charge_tenant"/>
+                        </label>
+                            <xsl:choose>
+                                <xsl:when test="charge_tenant='1'">
+                                    <b>X</b>
+                                </xsl:when>
+                            </xsl:choose>
+                    </div>
+                    <div class="pure-control-group">
+                        <label>
+                            <xsl:value-of select="lang_budget"/>
+                        </label>
+                            <xsl:value-of select="value_budget"/>
+                            <xsl:text> </xsl:text> [ <xsl:value-of 
select="currency"/> ]
+                    </div>
+                    <div class="pure-control-group">
+                        <label>
+                            <xsl:value-of select="lang_reserve"/>
+                        </label>
+                            <xsl:value-of select="value_reserve"/>
+                            <xsl:text> </xsl:text> [ <xsl:value-of 
select="currency"/> ]
+                    </div>
+                    <div class="pure-control-group">
+                        <label>
+                            <xsl:value-of select="lang_reserve_remainder"/>
+                        </label>
+                            <xsl:value-of select="value_reserve_remainder"/>
+                            <xsl:text> </xsl:text> [ <xsl:value-of 
select="currency"/> ]
+                            <xsl:text> </xsl:text> ( <xsl:value-of 
select="value_reserve_remainder_percent"/>
+                            <xsl:text> % )</xsl:text>
+                    </div>
+                    <div class="pure-control-group">
+                        <label>
+                            <xsl:value-of select="lang_actual_cost"/>
+                        </label>
+                            <xsl:value-of select="sum_workorder_actual_cost"/>
+                            <xsl:text> </xsl:text> [ <xsl:value-of 
select="currency"/> ]
+                    </div>
+                    <div class="pure-control-group">
+                        <xsl:choose>
+                            <xsl:when test="sum_workorder_budget=''">
+                                <label>
+                                    <xsl:value-of select="lang_no_workorders"/>
+                                </label>
+                            </xsl:when>
+                            <xsl:otherwise>
+                                        <xsl:apply-templates 
select="table_header_workorder"/>
+                                        <xsl:apply-templates 
select="workorder_budget"/>
+                                        <div class="pure-control-group">
+                                            <label>
+                                                <xsl:value-of 
select="lang_sum"/>
+                                            </label>
+                                            <label>
+                                                <xsl:value-of 
select="sum_workorder_budget"/>
+                                            </label>
+                                            <label>
+                                                <xsl:value-of 
select="sum_workorder_calculation"/>
+                                            </label>
+                                            <td>
+                                            </td>
+                                            <td>
+                                            </td>
+                                            <td>
+                                            </td>
+                                        </div>
+                            </xsl:otherwise>
+                        </xsl:choose>
+                    </div>
+                    <div class="pure-control-group">
+                        <label>
+                            <xsl:value-of select="lang_coordinator"/>
+                        </label>
+                        <xsl:for-each select="user_list">
+                            <xsl:choose>
+                                <xsl:when test="selected">
+                                        <xsl:value-of select="name"/>
+                                </xsl:when>
+                            </xsl:choose>
+                        </xsl:for-each>
+                    </div>
+                    <div class="pure-control-group">
+                        <label>
+                            <xsl:value-of select="lang_status"/>
+                        </label>
+                        <xsl:for-each select="status_list">
+                            <xsl:choose>
+                                <xsl:when test="selected">
+                                        <xsl:value-of select="name"/>
+                                </xsl:when>
+                            </xsl:choose>
+                        </xsl:for-each>
+                    </div>
+                    <div class="pure-control-group">
+                        <label>
+                            <xsl:value-of select="php:function('lang', 'entry 
date')" />
+                        </label>
+                            <xsl:value-of select="value_entry_date"/>
+                    </div>
 
-           <tr>
-               <td valign="top">
-                   <xsl:value-of select="lang_start_date"/>
-               </td>
-               <td>
-                   <xsl:value-of select="value_start_date"/>
-               </td>
-           </tr>
-           <tr>
-               <td valign="top">
-                   <xsl:value-of select="lang_end_date"/>
-               </td>
-               <td>
-                   <xsl:value-of select="value_end_date"/>
-               </td>
-           </tr>
-           <tr>
-               <td align="left">
-                   <xsl:value-of select="lang_status"/>
-               </td>
-               <xsl:for-each select="status_list">
-                   <xsl:choose>
-                       <xsl:when test="selected='selected'">
-                           <td>
-                               <xsl:value-of select="name"/>
-                           </td>
-                       </xsl:when>
-                   </xsl:choose>
-               </xsl:for-each>
-           </tr>
-           <tr>
-               <td>
-                   <xsl:value-of select="lang_tenant"/>
-               </td>
-               <td>
-                   <input size="{size_last_name}" type="text" name="last_name" 
value="{value_last_name}" readonly="readonly">
-                   </input>
-                   <input size="{size_first_name}" type="text" 
name="first_name" value="{value_first_name}" readonly="readonly">
-                   </input>
-               </td>
-           </tr>
-           <xsl:call-template name="b_account_view"/>
-           <tr>
-               <td valign="top">
-                   <xsl:value-of select="lang_amount"/>
-               </td>
-               <td>
-                   <xsl:value-of select="value_amount"/>
-                   <xsl:text> </xsl:text> [ <xsl:value-of select="currency"/> ]
-               </td>
-           </tr>
-           <tr>
-               <td align="left">
-                   <xsl:value-of select="lang_category"/>
-               </td>
-               <xsl:for-each select="cat_list">
-                   <xsl:choose>
-                       <xsl:when test="selected='selected'">
-                           <td>
-                               <xsl:value-of select="name"/>
-                           </td>
-                       </xsl:when>
-                   </xsl:choose>
-               </xsl:for-each>
-           </tr>
-           <tr align="left">
-               <td valign="top">
-                   <xsl:value-of select="lang_remark"/>
-               </td>
-               <td align="left">
-                   <textarea cols="60" rows="6" name="values[remark]" 
onMouseout="window.status='';return true;">
-                       <xsl:attribute name="onMouseover">
-                           <xsl:text>window.status='</xsl:text>
-                           <xsl:value-of select="lang_remark_statustext"/>
-                           <xsl:text>'; return true;</xsl:text>
-                       </xsl:attribute>
-                       <xsl:value-of select="value_remark"/>
-                   </textarea>
-               </td>
-           </tr>
-           <tr height="50">
-               <td>
-                   <xsl:variable name="done_action">
-                       <xsl:value-of select="done_action"/>
-                   </xsl:variable>
-                   <xsl:variable name="lang_done">
-                       <xsl:value-of select="lang_done"/>
-                   </xsl:variable>
-                   <form method="post" action="{$done_action}">
-                       <input type="submit" class="forms" name="done" 
value="{$lang_done}" onMouseover="window.status='Back to the list.';return 
true;" onMouseout="window.status='';return true;"/>
-                   </form>
-               </td>
-           </tr>
-       </table>
+                    <div class="pure-control-group">
+                        <label>
+                            <xsl:value-of select="lang_start_date"/>
+                        </label>
+                            <xsl:value-of select="value_start_date"/>
+                    </div>
+                    <div class="pure-control-group">
+                        <label>
+                            <xsl:value-of select="lang_end_date"/>
+                        </label>
+                            <xsl:value-of select="value_end_date"/>
+                    </div>
+                    <div class="pure-control-group">
+                        <label>
+                            <xsl:value-of select="lang_status"/>
+                        </label>
+                        <xsl:for-each select="status_list">
+                            <xsl:choose>
+                                <xsl:when test="selected='selected'">
+                                        <xsl:value-of select="name"/>
+                                </xsl:when>
+                            </xsl:choose>
+                        </xsl:for-each>
+                    </div>
+                    <div class="pure-control-group">
+                        <label>
+                            <xsl:value-of select="lang_tenant"/>
+                        </label>
+                            <input size="{size_last_name}" type="text" 
name="last_name" value="{value_last_name}" readonly="readonly">
+                            </input>
+                            <input size="{size_first_name}" type="text" 
name="first_name" value="{value_first_name}" readonly="readonly">
+                            </input>
+                    </div>
+                    <xsl:call-template name="b_account_view"/>
+                    <div class="pure-control-group">
+                        <label>
+                            <xsl:value-of select="lang_amount"/>
+                        </label>
+                            <xsl:value-of select="value_amount"/>
+                            <xsl:text> </xsl:text> [ <xsl:value-of 
select="currency"/> ]
+                    </div>
+                    <div class="pure-control-group">
+                        <label>
+                            <xsl:value-of select="lang_category"/>
+                        </label>
+                        <xsl:for-each select="cat_list">
+                            <xsl:choose>
+                                <xsl:when test="selected='selected'">
+                                        <xsl:value-of select="name"/>
+                                </xsl:when>
+                            </xsl:choose>
+                        </xsl:for-each>
+                    </div>
+                    <div class="pure-control-group">
+                        <label>
+                            <xsl:value-of select="lang_remark"/>
+                        </label>
+                            <textarea cols="60" rows="6" name="values[remark]" 
onMouseout="window.status='';return true;">
+                                <xsl:attribute name="onMouseover">
+                                    <xsl:text>window.status='</xsl:text>
+                                    <xsl:value-of 
select="lang_remark_statustext"/>
+                                    <xsl:text>'; return true;</xsl:text>
+                                </xsl:attribute>
+                                <xsl:value-of select="value_remark"/>
+                            </textarea>
+                    </div>
+                </form>
+                    <div class="pure-control-group">
+                            <xsl:variable name="done_action">
+                                <xsl:value-of select="done_action"/>
+                            </xsl:variable>
+                            <xsl:variable name="lang_done">
+                                <xsl:value-of select="lang_done"/>
+                            </xsl:variable>
+                            <form method="post" action="{$done_action}">
+                                <input type="submit" class="pure-button 
pure-button-primary forms" name="done" value="{$lang_done}" 
onMouseover="window.status='Back to the list.';return true;" 
onMouseout="window.status='';return true;"/>
+                            </form>
+                    </div>
+            </div>
+            </div>
     </div>
 </xsl:template>
 




reply via email to

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