fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [14862] property: clean up agreement


From: Sigurd Nes
Subject: [Fmsystem-commits] [14862] property: clean up agreement
Date: Fri, 25 Mar 2016 12:51:27 +0000

Revision: 14862
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14862
Author:   sigurdne
Date:     2016-03-25 12:51:27 +0000 (Fri, 25 Mar 2016)
Log Message:
-----------
property: clean up agreement

Modified Paths:
--------------
    trunk/property/templates/base/agreement.xsl

Modified: trunk/property/templates/base/agreement.xsl
===================================================================
--- trunk/property/templates/base/agreement.xsl 2016-03-25 12:37:53 UTC (rev 
14861)
+++ trunk/property/templates/base/agreement.xsl 2016-03-25 12:51:27 UTC (rev 
14862)
@@ -13,12 +13,6 @@
                        <xsl:when test="view">
                                <xsl:apply-templates select="view"/>
                        </xsl:when>
-                       <xsl:when test="list_attribute">
-                               <xsl:apply-templates select="list_attribute"/>
-                       </xsl:when>
-                       <xsl:when test="edit_attrib">
-                               <xsl:apply-templates select="edit_attrib"/>
-                       </xsl:when>
                        <xsl:when test="add_activity">
                                <xsl:apply-templates select="add_activity"/>
                        </xsl:when>
@@ -1110,467 +1104,6 @@
                </script>
        </xsl:template>
 
-<!-- New template-->
-       <xsl:template match="table_add2">
-               <tr>
-                       <td height="50">
-                               <xsl:variable name="add_action">
-                                       <xsl:value-of select="add_action"/>
-                               </xsl:variable>
-                               <xsl:variable name="lang_add">
-                                       <xsl:value-of select="lang_add"/>
-                               </xsl:variable>
-                               <form method="post" action="{$add_action}">
-                                       <input type="submit" name="add" 
value="{$lang_add}">
-                                               <xsl:attribute name="title">
-                                                       <xsl:value-of 
select="lang_add_standardtext"/>
-                                               </xsl:attribute>
-                                       </input>
-                               </form>
-                       </td>
-                       <td height="50">
-                               <xsl:variable name="done_action">
-                                       <xsl:value-of select="done_action"/>
-                               </xsl:variable>
-                               <xsl:variable name="lang_done">
-                                       <xsl:value-of select="lang_done"/>
-                               </xsl:variable>
-                               <form method="post" action="{$done_action}">
-                                       <input type="submit" name="add" 
value="{$lang_done}">
-                                               <xsl:attribute name="title">
-                                                       <xsl:value-of 
select="lang_add_standardtext"/>
-                                               </xsl:attribute>
-                                       </input>
-                               </form>
-                       </td>
-               </tr>
-       </xsl:template>
-
-       <!-- list attribute -->
-       <xsl:template match="list_attribute">
-               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
-                       <tr>
-                               <td align="right">
-                                       <xsl:call-template name="search_field"/>
-                               </td>
-                       </tr>
-                       <tr>
-                               <td colspan="3" width="100%">
-                                       <xsl:call-template name="nextmatchs"/>
-                               </td>
-                       </tr>
-               </table>
-               <table width="100%" cellpadding="2" cellspacing="2" 
align="center">
-                       <xsl:apply-templates select="table_header_attrib"/>
-                       <xsl:apply-templates select="values_attrib"/>
-                       <xsl:apply-templates select="table_add2"/>
-               </table>
-       </xsl:template>
-
-<!-- New template-->
-       <xsl:template match="table_header_attrib">
-               <xsl:variable name="sort_sorting">
-                       <xsl:value-of select="sort_sorting"/>
-               </xsl:variable>
-               <xsl:variable name="sort_id">
-                       <xsl:value-of select="sort_id"/>
-               </xsl:variable>
-               <xsl:variable name="sort_name">
-                       <xsl:value-of select="sort_name"/>
-               </xsl:variable>
-               <tr class="th">
-                       <td class="th_text" width="10%" align="left">
-                               <a href="{$sort_name}">
-                                       <xsl:value-of select="lang_name"/>
-                               </a>
-                       </td>
-                       <td class="th_text" width="10%" align="left">
-                               <xsl:value-of select="lang_descr"/>
-                       </td>
-                       <td class="th_text" width="1%" align="center">
-                               <xsl:value-of select="lang_datatype"/>
-                       </td>
-                       <td class="th_text" width="5%" align="center">
-                               <a href="{$sort_sorting}">
-                                       <xsl:value-of select="lang_sorting"/>
-                               </a>
-                       </td>
-                       <td class="th_text" width="1%" align="center">
-                               <xsl:value-of select="lang_search"/>
-                       </td>
-                       <td class="th_text" width="5%" align="center">
-                               <xsl:value-of select="lang_edit"/>
-                       </td>
-                       <td class="th_text" width="5%" align="center">
-                               <xsl:value-of select="lang_delete"/>
-                       </td>
-               </tr>
-       </xsl:template>
-
-<!-- New template-->
-       <xsl:template match="values_attrib">
-               <xsl:variable name="lang_up_text">
-                       <xsl:value-of select="lang_up_text"/>
-               </xsl:variable>
-               <xsl:variable name="lang_down_text">
-                       <xsl:value-of select="lang_down_text"/>
-               </xsl:variable>
-               <xsl:variable name="lang_attribute_attribtext">
-                       <xsl:value-of select="lang_delete_attribtext"/>
-               </xsl:variable>
-               <xsl:variable name="lang_edit_attribtext">
-                       <xsl:value-of select="lang_edit_attribtext"/>
-               </xsl:variable>
-               <xsl:variable name="lang_delete_attribtext">
-                       <xsl:value-of select="lang_delete_attribtext"/>
-               </xsl:variable>
-               <tr>
-                       <xsl:attribute name="class">
-                               <xsl:choose>
-                                       <xsl:when test="@class">
-                                               <xsl:value-of select="@class"/>
-                                       </xsl:when>
-                                       <xsl:when test="position() mod 2 = 0">
-                                               <xsl:text>row_off</xsl:text>
-                                       </xsl:when>
-                                       <xsl:otherwise>
-                                               <xsl:text>row_on</xsl:text>
-                                       </xsl:otherwise>
-                               </xsl:choose>
-                       </xsl:attribute>
-                       <td align="left">
-                               <xsl:value-of select="column_name"/>
-                       </td>
-                       <td align="left">
-                               <xsl:value-of select="input_text"/>
-                       </td>
-                       <td align="left">
-                               <xsl:value-of select="datatype"/>
-                       </td>
-                       <td>
-                               <table align="left">
-                                       <tr>
-                                               <td>
-                                                       <xsl:value-of 
select="sorting"/>
-                                               </td>
-                                               <td align="left">
-                                                       <xsl:variable 
name="link_up">
-                                                               <xsl:value-of 
select="link_up"/>
-                                                       </xsl:variable>
-                                                       <a href="{$link_up}" 
title="window.status='{$lang_up_text}';return true;">
-                                                               <xsl:value-of 
select="text_up"/>
-                                                       </a>
-                                                       <xsl:text> | </xsl:text>
-                                                       <xsl:variable 
name="link_down">
-                                                               <xsl:value-of 
select="link_down"/>
-                                                       </xsl:variable>
-                                                       <a href="{$link_down}" 
title="window.status='{$lang_down_text}';return true;">
-                                                               <xsl:value-of 
select="text_down"/>
-                                                       </a>
-                                               </td>
-                                       </tr>
-                               </table>
-                       </td>
-                       <td align="center">
-                               <xsl:value-of select="search"/>
-                       </td>
-                       <td align="center">
-                               <xsl:variable name="link_edit">
-                                       <xsl:value-of select="link_edit"/>
-                               </xsl:variable>
-                               <a href="{$link_edit}" 
title="window.status='{$lang_edit_attribtext}';return true;">
-                                       <xsl:value-of select="text_edit"/>
-                               </a>
-                       </td>
-                       <td align="center">
-                               <xsl:variable name="link_delete">
-                                       <xsl:value-of select="link_delete"/>
-                               </xsl:variable>
-                               <a href="{$link_delete}" 
title="window.status='{$lang_delete_attribtext}';return true;">
-                                       <xsl:value-of select="text_delete"/>
-                               </a>
-                       </td>
-               </tr>
-       </xsl:template>
-
-<!-- add attribute / edit attribute -->
-       <xsl:template match="edit_attrib">
-               <div align="left">
-                       <table cellpadding="2" cellspacing="2" width="80%" 
align="center">
-                               <xsl:choose>
-                                       <xsl:when test="msgbox_data != ''">
-                                               <tr>
-                                                       <td align="left" 
colspan="3">
-                                                               
<xsl:call-template name="msgbox"/>
-                                                       </td>
-                                               </tr>
-                                       </xsl:when>
-                               </xsl:choose>
-                               <xsl:variable name="form_action">
-                                       <xsl:value-of select="form_action"/>
-                               </xsl:variable>
-                               <form method="post" action="{$form_action}">
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:choose>
-                                                               <xsl:when 
test="value_id != ''">
-                                                                       
<xsl:value-of select="lang_id"/>
-                                                               </xsl:when>
-                                                               <xsl:otherwise>
-                                                               </xsl:otherwise>
-                                                       </xsl:choose>
-                                               </td>
-                                               <td>
-                                                       <xsl:choose>
-                                                               <xsl:when 
test="value_id != ''">
-                                                                       
<xsl:value-of select="value_id"/>
-                                                               </xsl:when>
-                                                               <xsl:otherwise>
-                                                               </xsl:otherwise>
-                                                       </xsl:choose>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:value-of 
select="lang_column_name"/>
-                                               </td>
-                                               <td>
-                                                       <input type="text" 
name="values[column_name]" value="{value_column_name}" maxlength="20">
-                                                               <xsl:attribute 
name="title">
-                                                                       
<xsl:value-of select="lang_column_name_statustext"/>
-                                                               </xsl:attribute>
-                                                       </input>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:value-of 
select="lang_input_text"/>
-                                               </td>
-                                               <td>
-                                                       <input type="text" 
name="values[input_text]" value="{value_input_text}" size="60" maxlength="50">
-                                                               <xsl:attribute 
name="title">
-                                                                       
<xsl:value-of select="lang_input_text_statustext"/>
-                                                               </xsl:attribute>
-                                                       </input>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:value-of 
select="lang_statustext"/>
-                                               </td>
-                                               <td>
-                                                       <textarea cols="60" 
rows="10" name="values[statustext]">
-                                                               <xsl:attribute 
name="title">
-                                                                       
<xsl:value-of select="lang_statustext_attribtext"/>
-                                                               </xsl:attribute>
-                                                               <xsl:value-of 
select="value_statustext"/>
-                                                       </textarea>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:value-of 
select="lang_datatype"/>
-                                               </td>
-                                               <td valign="top">
-                                                       <xsl:variable 
name="lang_datatype_statustext">
-                                                               <xsl:value-of 
select="lang_datatype_statustext"/>
-                                                       </xsl:variable>
-                                                       <select 
name="values[column_info][type]" class="forms" 
title="window.status='{$lang_datatype_statustext}'; return true;">
-                                                               <option 
value="">
-                                                                       
<xsl:value-of select="lang_no_datatype"/>
-                                                               </option>
-                                                               
<xsl:apply-templates select="datatype_list"/>
-                                                       </select>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:value-of 
select="lang_precision"/>
-                                               </td>
-                                               <td>
-                                                       <input type="text" 
name="values[column_info][precision]" value="{value_precision}">
-                                                               <xsl:attribute 
name="title">
-
-                                                                       
<xsl:value-of select="lang_precision_statustext"/>
-
-                                                               </xsl:attribute>
-                                                       </input>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:value-of 
select="lang_scale"/>
-                                               </td>
-                                               <td>
-                                                       <input type="text" 
name="values[column_info][scale]" value="{value_scale}">
-                                                               <xsl:attribute 
name="title">
-                                                                       
<xsl:value-of select="lang_scale_statustext"/>
-                                                               </xsl:attribute>
-                                                       </input>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:value-of 
select="lang_default"/>
-                                               </td>
-                                               <td>
-                                                       <input type="text" 
name="values[column_info][default]" value="{value_default}">
-                                                               <xsl:attribute 
name="title">
-
-                                                                       
<xsl:value-of select="lang_default_statustext"/>
-
-                                                               </xsl:attribute>
-                                                       </input>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td valign="top">
-                                                       <xsl:value-of 
select="lang_nullable"/>
-                                               </td>
-                                               <td valign="top">
-                                                       <xsl:variable 
name="lang_nullable_statustext">
-                                                               <xsl:value-of 
select="lang_nullable_statustext"/>
-                                                       </xsl:variable>
-                                                       <select 
name="values[column_info][nullable]" class="forms" 
title="window.status='{$lang_nullable_statustext}'; return true;">
-                                                               <option 
value="">
-                                                                       
<xsl:value-of select="lang_select_nullable"/>
-                                                               </option>
-                                                               
<xsl:apply-templates select="nullable_list"/>
-                                                       </select>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td>
-                                                       <xsl:value-of 
select="lang_list"/>
-                                               </td>
-                                               <td>
-                                                       <xsl:choose>
-                                                               <xsl:when 
test="value_list = 1">
-                                                                       <input 
type="checkbox" name="values[list]" value="1" checked="checked">
-                                                                               
<xsl:attribute name="title">
-                                                                               
        <xsl:value-of select="lang_list_statustext"/>
-                                                                               
</xsl:attribute>
-                                                                       </input>
-                                                               </xsl:when>
-                                                               <xsl:otherwise>
-                                                                       <input 
type="checkbox" name="values[list]" value="1">
-                                                                               
<xsl:attribute name="title">
-                                                                               
        <xsl:value-of select="lang_list_statustext"/>
-                                                                               
</xsl:attribute>
-                                                                       </input>
-                                                               </xsl:otherwise>
-                                                       </xsl:choose>
-                                               </td>
-                                       </tr>
-                                       <tr>
-                                               <td>
-                                                       <xsl:value-of 
select="lang_include_search"/>
-                                               </td>
-                                               <td>
-                                                       <xsl:choose>
-                                                               <xsl:when 
test="value_search = 1">
-                                                                       <input 
type="checkbox" name="values[search]" value="1" checked="checked">
-                                                                               
<xsl:attribute name="title">
-                                                                               
        <xsl:value-of select="lang_include_search_statustext"/>
-                                                                               
</xsl:attribute>
-                                                                       </input>
-                                                               </xsl:when>
-                                                               <xsl:otherwise>
-                                                                       <input 
type="checkbox" name="values[search]" value="1">
-                                                                               
<xsl:attribute name="title">
-                                                                               
        <xsl:value-of select="lang_include_search_statustext"/>
-                                                                               
</xsl:attribute>
-                                                                       </input>
-                                                               </xsl:otherwise>
-                                                       </xsl:choose>
-                                               </td>
-                                       </tr>
-                                       <xsl:choose>
-                                               <xsl:when test="multiple_choice 
!= ''">
-                                                       <tr>
-                                                               <td 
valign="top">
-                                                                       
<xsl:value-of select="lang_choice"/>
-                                                               </td>
-                                                               <td 
align="right">
-                                                                       
<xsl:call-template name="choice"/>
-                                                               </td>
-                                                       </tr>
-                                               </xsl:when>
-                                       </xsl:choose>
-                                       <tr height="50">
-                                               <td>
-                                                       <xsl:variable 
name="lang_save">
-                                                               <xsl:value-of 
select="lang_save"/>
-                                                       </xsl:variable>
-                                                       <input type="submit" 
name="values[save]" value="{$lang_save}">
-                                                               <xsl:attribute 
name="title">
-                                                                       
<xsl:value-of select="lang_save_attribtext"/>
-                                                               </xsl:attribute>
-                                                       </input>
-                                               </td>
-                                       </tr>
-                               </form>
-                               <tr>
-                                       <td>
-                                               <xsl:variable 
name="done_action">
-                                                       <xsl:value-of 
select="done_action"/>
-                                               </xsl:variable>
-                                               <xsl:variable name="lang_done">
-                                                       <xsl:value-of 
select="lang_done"/>
-                                               </xsl:variable>
-                                               <form method="post" 
action="{$done_action}">
-                                                       <input type="submit" 
name="done" value="{$lang_done}">
-                                                               <xsl:attribute 
name="title">
-
-                                                                       
<xsl:value-of select="lang_done_attribtext"/>
-
-                                                               </xsl:attribute>
-                                                       </input>
-                                               </form>
-                                       </td>
-                               </tr>
-                       </table>
-               </div>
-       </xsl:template>
-
-<!-- datatype_list -->
-       <xsl:template match="datatype_list">
-               <xsl:variable name="id">
-                       <xsl:value-of select="id"/>
-               </xsl:variable>
-               <xsl:choose>
-                       <xsl:when test="selected">
-                               <option value="{$id}" selected="selected">
-                                       <xsl:value-of 
disable-output-escaping="yes" select="name"/>
-                               </option>
-                       </xsl:when>
-                       <xsl:otherwise>
-                               <option value="{$id}">
-                                       <xsl:value-of 
disable-output-escaping="yes" select="name"/>
-                               </option>
-                       </xsl:otherwise>
-               </xsl:choose>
-       </xsl:template>
-
-<!-- nullable_list -->
-       <xsl:template match="nullable_list">
-               <xsl:variable name="id">
-                       <xsl:value-of select="id"/>
-               </xsl:variable>
-               <xsl:choose>
-                       <xsl:when test="selected">
-                               <option value="{$id}" selected="selected">
-                                       <xsl:value-of 
disable-output-escaping="yes" select="name"/>
-                               </option>
-                       </xsl:when>
-                       <xsl:otherwise>
-                               <option value="{$id}">
-                                       <xsl:value-of 
disable-output-escaping="yes" select="name"/>
-                               </option>
-                       </xsl:otherwise>
-               </xsl:choose>
-       </xsl:template>
-
        <!-- New template-->
        <xsl:template match="member_of_list">
                <xsl:variable name="id">




reply via email to

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