[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [12381]
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [12381] |
Date: |
Wed, 26 Nov 2014 23:21:30 +0000 |
Revision: 12381
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12381
Author: nelson224
Date: 2014-11-26 23:21:30 +0000 (Wed, 26 Nov 2014)
Log Message:
-----------
Modified Paths:
--------------
branches/dev-syncromind/property/templates/base/attributes_form.xsl
Modified: branches/dev-syncromind/property/templates/base/attributes_form.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/attributes_form.xsl
2014-11-26 23:21:08 UTC (rev 12380)
+++ branches/dev-syncromind/property/templates/base/attributes_form.xsl
2014-11-26 23:21:30 UTC (rev 12381)
@@ -6,7 +6,11 @@
<!-- New template-->
<xsl:template xmlns:php="http://php.net/xsl" name="attributes_values">
<xsl:for-each select="attributes_group">
- <xsl:apply-templates select="attributes"/>
+ <div id="{link}">
+ <fieldset>
+ <xsl:apply-templates
select="attributes"/>
+ </fieldset>
+ </div>
</xsl:for-each>
</xsl:template>
@@ -32,8 +36,7 @@
<div class="pure-control-group">
<xsl:choose>
<xsl:when test="not(hide_row)">
-
- <label>
+ <label>
<xsl:choose>
<xsl:when
test="helpmsg=1">
<xsl:variable
name="help_url">
@@ -64,323 +67,290 @@
<xsl:text>
]</xsl:text>
</xsl:when>
</xsl:choose>
- </label>
-
+ </label>
</xsl:when>
</xsl:choose>
-
- <xsl:choose>
- <xsl:when test="name!=''">
- <input type="hidden"
name="values_attribute[{counter}][name]" value="{name}"/>
- <input type="hidden"
name="values_attribute[{counter}][datatype]" value="{datatype}"/>
- <input type="hidden"
name="values_attribute[{counter}][precision]" value="{precision}"/>
- <input type="hidden"
name="values_attribute[{counter}][history]" value="{history}"/>
- <input type="hidden"
name="values_attribute[{counter}][attrib_id]" value="{id}"/>
- <input type="hidden"
name="values_attribute[{counter}][nullable]" value="{nullable}"/>
- <input type="hidden"
name="values_attribute[{counter}][input_text]" value="{input_text}"/>
- <input type="hidden"
name="values_attribute[{counter}][disabled]" value="{disabled}"/>
- <xsl:choose>
- <xsl:when
test="datatype='R'">
-
<xsl:call-template name="choice"/>
- </xsl:when>
- <xsl:when
test="datatype='CH'">
-
<xsl:call-template name="choice"/>
- </xsl:when>
- <xsl:when
test="datatype='LB'">
- <select
id="id_{name}" name="values_attribute[{counter}][value]" class="forms">
+ <xsl:choose>
+ <xsl:when test="name!=''">
+ <input type="hidden"
name="values_attribute[{counter}][name]" value="{name}"/>
+ <input type="hidden"
name="values_attribute[{counter}][datatype]" value="{datatype}"/>
+ <input type="hidden"
name="values_attribute[{counter}][precision]" value="{precision}"/>
+ <input type="hidden"
name="values_attribute[{counter}][history]" value="{history}"/>
+ <input type="hidden"
name="values_attribute[{counter}][attrib_id]" value="{id}"/>
+ <input type="hidden"
name="values_attribute[{counter}][nullable]" value="{nullable}"/>
+ <input type="hidden"
name="values_attribute[{counter}][input_text]" value="{input_text}"/>
+ <input type="hidden"
name="values_attribute[{counter}][disabled]" value="{disabled}"/>
+ <xsl:choose>
+ <xsl:when test="datatype='R'">
+ <xsl:call-template
name="choice"/>
+ </xsl:when>
+ <xsl:when test="datatype='CH'">
+ <xsl:call-template
name="choice"/>
+ </xsl:when>
+ <xsl:when test="datatype='LB'">
+ <select id="id_{name}"
name="values_attribute[{counter}][value]" class="forms">
+ <xsl:choose>
+
<xsl:when test="disabled!=''">
+
<xsl:attribute name="disabled">
+
<xsl:text> disabled</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
+ </xsl:choose>
+ <option
value="">
+
<xsl:value-of select="php:function('lang', 'select')"/>
+ </option>
+ <xsl:for-each
select="choice">
+
<xsl:variable name="id">
+
<xsl:value-of select="id"/>
+
</xsl:variable>
<xsl:choose>
-
<xsl:when test="disabled!=''">
-
<xsl:attribute name="disabled">
-
<xsl:text> disabled</xsl:text>
-
</xsl:attribute>
+
<xsl:when test="checked='checked'">
+
<option value="{$id}" selected="selected">
+
<xsl:value-of disable-output-escaping="yes" select="value"/>
+
</option>
</xsl:when>
+
<xsl:otherwise>
+
<option value="{$id}">
+
<xsl:value-of disable-output-escaping="yes" select="value"/>
+
</option>
+
</xsl:otherwise>
</xsl:choose>
- <option
value="">
-
<xsl:value-of select="php:function('lang', 'select')"/>
-
</option>
-
<xsl:for-each select="choice">
-
<xsl:variable name="id">
-
<xsl:value-of select="id"/>
+ </xsl:for-each>
+ </select>
+ </xsl:when>
+ <xsl:when test="datatype='AB'">
+ <table>
+ <tr>
+ <td>
+
<xsl:variable name="contact_name">
+
<xsl:value-of select="name"/>
+
<xsl:text>_name</xsl:text>
</xsl:variable>
-
<xsl:choose>
-
<xsl:when test="checked='checked'">
-
<option value="{$id}" selected="selected">
-
<xsl:value-of disable-output-escaping="yes"
select="value"/>
-
</option>
-
</xsl:when>
-
<xsl:otherwise>
-
<option value="{$id}">
-
<xsl:value-of disable-output-escaping="yes"
select="value"/>
-
</option>
-
</xsl:otherwise>
-
</xsl:choose>
-
</xsl:for-each>
- </select>
- </xsl:when>
- <xsl:when
test="datatype='AB'">
- <table
style="float:left;">
- <tr>
-
<td>
-
<xsl:variable name="contact_name">
-
<xsl:value-of select="name"/>
-
<xsl:text>_name</xsl:text>
-
</xsl:variable>
-
<xsl:variable name="lookup_function">
-
<xsl:text>lookup_</xsl:text>
-
<xsl:value-of select="name"/>
-
<xsl:text>();</xsl:text>
-
</xsl:variable>
-
<xsl:variable name="clear_function">
-
<xsl:text>clear_</xsl:text>
-
<xsl:value-of select="name"/>
-
<xsl:text>();</xsl:text>
-
</xsl:variable>
-
<input type="hidden" name="{name}" value="{value}"
onClick="{$lookup_function}" readonly="readonly" size="5">
-
<xsl:choose>
-
<xsl:when test="disabled!=''">
-
<xsl:attribute name="disabled">
-
<xsl:text> disabled</xsl:text>
-
</xsl:attribute>
-
</xsl:when>
-
</xsl:choose>
-
</input>
-
<input size="30" type="text" name="{$contact_name}"
value="{contact_name}" onClick="{$lookup_function}" readonly="readonly">
-
<xsl:choose>
-
<xsl:when test="disabled!=''">
-
<xsl:attribute name="disabled">
-
<xsl:text> disabled</xsl:text>
-
</xsl:attribute>
-
</xsl:when>
-
</xsl:choose>
-
</input>
-
<input type="checkbox" name="clear_{name}_box"
onClick="{$clear_function}">
-
<xsl:attribute name="title">
-
<xsl:value-of select="php:function('lang', 'delete')"/>
-
</xsl:attribute>
-
<xsl:attribute name="readonly">
-
<xsl:text>readonly</xsl:text>
-
</xsl:attribute>
-
</input>
-
</td>
- </tr>
-
<xsl:choose>
-
<xsl:when test="contact_tel!=''">
-
<tr>
-
<td>
-
<xsl:value-of select="contact_tel"/>
-
</td>
-
</tr>
-
</xsl:when>
-
</xsl:choose>
-
<xsl:choose>
-
<xsl:when test="contact_email!=''">
-
<tr>
-
<td>
-
<a href="mailto:{contact_email}">
-
<xsl:value-of select="contact_email"/>
-
</a>
-
</td>
-
</tr>
-
</xsl:when>
-
</xsl:choose>
- </table>
- </xsl:when>
- <xsl:when
test="datatype='ABO'">
- <table>
- <tr>
-
<td>
-
<xsl:variable name="org_name">
-
<xsl:value-of select="name"/>
-
<xsl:text>_name</xsl:text>
-
</xsl:variable>
-
<xsl:variable name="lookup_function">
-
<xsl:text>lookup_</xsl:text>
-
<xsl:value-of select="name"/>
-
<xsl:text>();</xsl:text>
-
</xsl:variable>
-
<input type="hidden" name="{name}" value="{value}"
onClick="{$lookup_function}" readonly="readonly" size="5">
-
<xsl:choose>
-
<xsl:when test="disabled!=''">
-
<xsl:attribute name="disabled">
-
<xsl:text> disabled</xsl:text>
-
</xsl:attribute>
-
</xsl:when>
-
</xsl:choose>
-
</input>
-
<input size="30" type="text" name="{$org_name}" value="{org_name}"
onClick="{$lookup_function}" readonly="readonly">
-
<xsl:choose>
-
<xsl:when test="disabled!=''">
-
<xsl:attribute name="disabled">
-
<xsl:text> disabled</xsl:text>
-
</xsl:attribute>
-
</xsl:when>
-
</xsl:choose>
-
</input>
-
</td>
- </tr>
-
<xsl:choose>
-
<xsl:when test="org_tel!=''">
-
<tr>
-
<td>
-
<xsl:value-of select="org_tel"/>
-
</td>
-
</tr>
-
</xsl:when>
-
</xsl:choose>
-
<xsl:choose>
-
<xsl:when test="org_email!=''">
-
<tr>
-
<td>
-
<a href="mailto:{org_email}">
-
<xsl:value-of select="org_email"/>
-
</a>
-
</td>
-
</tr>
-
</xsl:when>
-
</xsl:choose>
- </table>
- </xsl:when>
- <xsl:when
test="datatype='VENDOR'">
- <xsl:variable
name="vendor_name">
-
<xsl:value-of select="name"/>
-
<xsl:text>_org_name</xsl:text>
- </xsl:variable>
- <xsl:variable
name="lookup_function">
-
<xsl:text>lookup_</xsl:text>
-
<xsl:value-of select="name"/>
-
<xsl:text>();</xsl:text>
- </xsl:variable>
- <input
type="text" name="{name}" value="{value}" onClick="{$lookup_function}"
readonly="readonly" size="6">
-
<xsl:choose>
-
<xsl:when test="disabled!=''">
-
<xsl:attribute name="disabled">
-
<xsl:text> disabled</xsl:text>
+
<xsl:variable name="lookup_function">
+
<xsl:text>lookup_</xsl:text>
+
<xsl:value-of select="name"/>
+
<xsl:text>();</xsl:text>
+
</xsl:variable>
+
<xsl:variable name="clear_function">
+
<xsl:text>clear_</xsl:text>
+
<xsl:value-of select="name"/>
+
<xsl:text>();</xsl:text>
+
</xsl:variable>
+
<input type="hidden" name="{name}" value="{value}" onClick="{$lookup_function}"
readonly="readonly" size="5">
+
<xsl:choose>
+
<xsl:when test="disabled!=''">
+
<xsl:attribute name="disabled">
+
<xsl:text> disabled</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
+
</xsl:choose>
+
</input>
+
<input size="30" type="text" name="{$contact_name}" value="{contact_name}"
onClick="{$lookup_function}" readonly="readonly">
+
<xsl:choose>
+
<xsl:when test="disabled!=''">
+
<xsl:attribute name="disabled">
+
<xsl:text> disabled</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
+
</xsl:choose>
+
</input>
+
<input type="checkbox" name="clear_{name}_box" onClick="{$clear_function}">
+
<xsl:attribute name="title">
+
<xsl:value-of select="php:function('lang', 'delete')"/>
</xsl:attribute>
-
</xsl:when>
-
</xsl:choose>
- </input>
- <input
size="30" type="text" name="{$vendor_name}" value="{vendor_name}"
onClick="{$lookup_function}" readonly="readonly">
-
<xsl:choose>
-
<xsl:when test="disabled!=''">
-
<xsl:attribute name="disabled">
-
<xsl:text> disabled</xsl:text>
+
<xsl:attribute name="readonly">
+
<xsl:text>readonly</xsl:text>
</xsl:attribute>
-
</xsl:when>
-
</xsl:choose>
- </input>
- </xsl:when>
- <xsl:when
test="datatype='custom1'">
- <select
name="values_attribute[{counter}][value]" class="forms">
-
<xsl:choose>
-
<xsl:when test="disabled!=''">
-
<xsl:attribute name="disabled">
-
<xsl:text> disabled</xsl:text>
-
</xsl:attribute>
-
</xsl:when>
-
</xsl:choose>
- <option
value="">
-
<xsl:value-of select="php:function('lang', 'select')"/>
-
</option>
-
<xsl:for-each select="choice">
-
<xsl:variable name="id">
-
<xsl:value-of select="id"/>
+
</input>
+ </td>
+ </tr>
+ <xsl:choose>
+
<xsl:when test="contact_tel!=''">
+
<tr>
+
<td>
+
<xsl:value-of select="contact_tel"/>
+
</td>
+
</tr>
+
</xsl:when>
+ </xsl:choose>
+ <xsl:choose>
+
<xsl:when test="contact_email!=''">
+
<tr>
+
<td>
+
<a href="mailto:{contact_email}">
+
<xsl:value-of select="contact_email"/>
+
</a>
+
</td>
+
</tr>
+
</xsl:when>
+ </xsl:choose>
+ </table>
+ </xsl:when>
+ <xsl:when test="datatype='ABO'">
+ <table>
+ <tr>
+ <td>
+
<xsl:variable name="org_name">
+
<xsl:value-of select="name"/>
+
<xsl:text>_name</xsl:text>
</xsl:variable>
-
<xsl:choose>
-
<xsl:when test="selected='1'">
-
<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:for-each>
- </select>
- </xsl:when>
- <xsl:when
test="datatype='custom2'">
- <xsl:variable
name="custom_name">
-
<xsl:value-of select="name"/>
-
<xsl:text>_name</xsl:text>
- </xsl:variable>
- <xsl:variable
name="lookup_function">
-
<xsl:text>lookup_</xsl:text>
-
<xsl:value-of select="name"/>
-
<xsl:text>();</xsl:text>
- </xsl:variable>
- <input
type="text" name="{name}" value="{value}" onClick="{$lookup_function}"
readonly="readonly" size="6">
+
<xsl:variable name="lookup_function">
+
<xsl:text>lookup_</xsl:text>
+
<xsl:value-of select="name"/>
+
<xsl:text>();</xsl:text>
+
</xsl:variable>
+
<input type="hidden" name="{name}" value="{value}" onClick="{$lookup_function}"
readonly="readonly" size="5">
+
<xsl:choose>
+
<xsl:when test="disabled!=''">
+
<xsl:attribute name="disabled">
+
<xsl:text> disabled</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
+
</xsl:choose>
+
</input>
+
<input size="30" type="text" name="{$org_name}" value="{org_name}"
onClick="{$lookup_function}" readonly="readonly">
+
<xsl:choose>
+
<xsl:when test="disabled!=''">
+
<xsl:attribute name="disabled">
+
<xsl:text> disabled</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
+
</xsl:choose>
+
</input>
+ </td>
+ </tr>
+ <xsl:choose>
+
<xsl:when test="org_tel!=''">
+
<tr>
+
<td>
+
<xsl:value-of select="org_tel"/>
+
</td>
+
</tr>
+
</xsl:when>
+ </xsl:choose>
+ <xsl:choose>
+
<xsl:when test="org_email!=''">
+
<tr>
+
<td>
+
<a href="mailto:{org_email}">
+
<xsl:value-of select="org_email"/>
+
</a>
+
</td>
+
</tr>
+
</xsl:when>
+ </xsl:choose>
+ </table>
+ </xsl:when>
+ <xsl:when
test="datatype='VENDOR'">
+ <xsl:variable
name="vendor_name">
+ <xsl:value-of
select="name"/>
+
<xsl:text>_org_name</xsl:text>
+ </xsl:variable>
+ <xsl:variable
name="lookup_function">
+
<xsl:text>lookup_</xsl:text>
+ <xsl:value-of
select="name"/>
+
<xsl:text>();</xsl:text>
+ </xsl:variable>
+ <input type="text"
name="{name}" value="{value}" onClick="{$lookup_function}" readonly="readonly"
size="6">
+ <xsl:choose>
+
<xsl:when test="disabled!=''">
+
<xsl:attribute name="disabled">
+
<xsl:text> disabled</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
+ </xsl:choose>
+ </input>
+ <input size="30"
type="text" name="{$vendor_name}" value="{vendor_name}"
onClick="{$lookup_function}" readonly="readonly">
+ <xsl:choose>
+
<xsl:when test="disabled!=''">
+
<xsl:attribute name="disabled">
+
<xsl:text> disabled</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
+ </xsl:choose>
+ </input>
+ </xsl:when>
+ <xsl:when
test="datatype='custom1'">
+ <select
name="values_attribute[{counter}][value]" class="forms">
+ <xsl:choose>
+
<xsl:when test="disabled!=''">
+
<xsl:attribute name="disabled">
+
<xsl:text> disabled</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
+ </xsl:choose>
+ <option
value="">
+
<xsl:value-of select="php:function('lang', 'select')"/>
+ </option>
+ <xsl:for-each
select="choice">
+
<xsl:variable name="id">
+
<xsl:value-of select="id"/>
+
</xsl:variable>
<xsl:choose>
-
<xsl:when test="disabled!=''">
-
<xsl:attribute name="disabled">
-
<xsl:text> disabled</xsl:text>
-
</xsl:attribute>
+
<xsl:when test="selected='1'">
+
<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>
- </input>
- <input
size="30" type="text" name="{$custom_name}" value="{custom_name}"
onClick="{$lookup_function}" readonly="readonly">
-
<xsl:choose>
-
<xsl:when test="disabled!=''">
-
<xsl:attribute name="disabled">
-
<xsl:text> disabled</xsl:text>
-
</xsl:attribute>
-
</xsl:when>
-
</xsl:choose>
- </input>
- </xsl:when>
- <xsl:when
test="datatype='custom3'">
- <xsl:variable
name="custom_id">
-
<xsl:value-of select="name"/>
-
<xsl:text>_id</xsl:text>
- </xsl:variable>
+ </xsl:for-each>
+ </select>
+ </xsl:when>
+ <xsl:when
test="datatype='custom2'">
+ <xsl:variable
name="custom_name">
+ <xsl:value-of
select="name"/>
+
<xsl:text>_name</xsl:text>
+ </xsl:variable>
+ <xsl:variable
name="lookup_function">
+
<xsl:text>lookup_</xsl:text>
+ <xsl:value-of
select="name"/>
+
<xsl:text>();</xsl:text>
+ </xsl:variable>
+ <input type="text"
name="{name}" value="{value}" onClick="{$lookup_function}" readonly="readonly"
size="6">
+ <xsl:choose>
+
<xsl:when test="disabled!=''">
+
<xsl:attribute name="disabled">
+
<xsl:text> disabled</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
+ </xsl:choose>
+ </input>
+ <input size="30"
type="text" name="{$custom_name}" value="{custom_name}"
onClick="{$lookup_function}" readonly="readonly">
+ <xsl:choose>
+
<xsl:when test="disabled!=''">
+
<xsl:attribute name="disabled">
+
<xsl:text> disabled</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
+ </xsl:choose>
+ </input>
+ </xsl:when>
+ <xsl:when
test="datatype='custom3'">
+ <xsl:variable
name="custom_id">
+ <xsl:value-of
select="name"/>
+
<xsl:text>_id</xsl:text>
+ </xsl:variable>
- <xsl:variable
name="custom_name">
-
<xsl:value-of select="name"/>
-
<xsl:text>_name</xsl:text>
- </xsl:variable>
+ <xsl:variable
name="custom_name">
+ <xsl:value-of
select="name"/>
+
<xsl:text>_name</xsl:text>
+ </xsl:variable>
- <xsl:variable
name="custom_container">
-
<xsl:value-of select="name"/>
-
<xsl:text>_container</xsl:text>
- </xsl:variable>
+ <xsl:variable
name="custom_container">
+ <xsl:value-of
select="name"/>
+
<xsl:text>_container</xsl:text>
+ </xsl:variable>
- <div
class="autocomplete">
- <input id="{$custom_id}"
name="values_attribute[{counter}][value]" type="hidden" value="{value}">
- </input>
- <input id="{$custom_name}"
name="{$custom_name}" type="text" value="{custom_name}">
-
<xsl:choose>
-
<xsl:when test="disabled!=''">
-
<xsl:attribute name="disabled">
-
<xsl:text> disabled</xsl:text>
-
</xsl:attribute>
-
</xsl:when>
-
</xsl:choose>
- </input>
- <div
id="{$custom_container}"/>
- </div>
- </xsl:when>
- <xsl:when
test="datatype='user'">
- <xsl:variable
name="user_name">
-
<xsl:value-of select="name"/>
-
<xsl:text>_user_name</xsl:text>
- </xsl:variable>
- <xsl:variable
name="lookup_function">
-
<xsl:text>lookup_</xsl:text>
-
<xsl:value-of select="name"/>
-
<xsl:text>();</xsl:text>
- </xsl:variable>
- <input
type="text" name="{name}" value="{value}" onClick="{$lookup_function}"
readonly="readonly" size="6">
-
<xsl:choose>
-
<xsl:when test="disabled!=''">
-
<xsl:attribute name="disabled">
-
<xsl:text> disabled</xsl:text>
-
</xsl:attribute>
-
</xsl:when>
-
</xsl:choose>
+ <div
class="autocomplete">
+ <input
id="{$custom_id}" name="values_attribute[{counter}][value]" type="hidden"
value="{value}">
</input>
- <input
size="30" type="text" name="{$user_name}" value="{user_name}"
onClick="{$lookup_function}" readonly="readonly">
+ <input
id="{$custom_name}" name="{$custom_name}" type="text" value="{custom_name}">
<xsl:choose>
<xsl:when test="disabled!=''">
<xsl:attribute name="disabled">
@@ -389,260 +359,290 @@
</xsl:when>
</xsl:choose>
</input>
- </xsl:when>
- <xsl:when
test="datatype='D'">
- <input
type="text" id="values_attribute_{counter}"
name="values_attribute[{counter}][value]" value="{value}" size="12"
maxlength="12">
-
<xsl:attribute name="readonly">
-
<xsl:text> readonly</xsl:text>
-
</xsl:attribute>
-
<xsl:choose>
-
<xsl:when test="disabled!=''">
-
<xsl:attribute name="disabled">
-
<xsl:text> disabled</xsl:text>
+ <div
id="{$custom_container}"/>
+ </div>
+ </xsl:when>
+ <xsl:when
test="datatype='user'">
+ <xsl:variable
name="user_name">
+ <xsl:value-of
select="name"/>
+
<xsl:text>_user_name</xsl:text>
+ </xsl:variable>
+ <xsl:variable
name="lookup_function">
+
<xsl:text>lookup_</xsl:text>
+ <xsl:value-of
select="name"/>
+
<xsl:text>();</xsl:text>
+ </xsl:variable>
+ <input type="text"
name="{name}" value="{value}" onClick="{$lookup_function}" readonly="readonly"
size="6">
+ <xsl:choose>
+
<xsl:when test="disabled!=''">
+
<xsl:attribute name="disabled">
+
<xsl:text> disabled</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
+ </xsl:choose>
+ </input>
+ <input size="30"
type="text" name="{$user_name}" value="{user_name}"
onClick="{$lookup_function}" readonly="readonly">
+ <xsl:choose>
+
<xsl:when test="disabled!=''">
+
<xsl:attribute name="disabled">
+
<xsl:text> disabled</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
+ </xsl:choose>
+ </input>
+ </xsl:when>
+ <xsl:when test="datatype='D'">
+ <input type="text"
id="values_attribute_{counter}" name="values_attribute[{counter}][value]"
value="{value}" size="12" maxlength="12">
+ <xsl:attribute
name="readonly">
+
<xsl:text> readonly</xsl:text>
+ </xsl:attribute>
+ <xsl:choose>
+
<xsl:when test="disabled!=''">
+
<xsl:attribute name="disabled">
+
<xsl:text> disabled</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
+ </xsl:choose>
+ </input>
+ </xsl:when>
+ <xsl:when test="datatype='DT'">
+ <xsl:variable
name="clear_function">
+
<xsl:text>clear_</xsl:text>
+ <xsl:value-of
select="name"/>
+
<xsl:text>();</xsl:text>
+ </xsl:variable>
+
+ <table>
+ <tr>
+ <td>
+
<input type="text" id="values_attribute_{counter}"
name="values_attribute[{counter}][value][date]" value="{value/date}" size="12"
maxlength="12">
+
<xsl:attribute name="readonly">
+
<xsl:text> readonly</xsl:text>
</xsl:attribute>
-
</xsl:when>
-
</xsl:choose>
- </input>
- </xsl:when>
- <xsl:when
test="datatype='DT'">
- <xsl:variable
name="clear_function">
-
<xsl:text>clear_</xsl:text>
-
<xsl:value-of select="name"/>
-
<xsl:text>();</xsl:text>
- </xsl:variable>
+
<xsl:choose>
+
<xsl:when test="disabled!=''">
+
<xsl:attribute name="disabled">
+
<xsl:text> disabled</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
+
</xsl:choose>
+
</input>
+ </td>
+ <td>
+
<input type="text" id="values_attribute_{counter}_hour"
name="values_attribute[{counter}][value][hour]" value="{value/hour}" size="2"
maxlength="2" title="{$lang_hour}">
+
<xsl:choose>
+
<xsl:when test="disabled!=''">
+
<xsl:attribute name="disabled">
+
<xsl:text> disabled</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
+
</xsl:choose>
+
</input>
+ </td>
+ <td>
+
<xsl:text> : </xsl:text>
+ </td>
+ <td>
+
<input type="text" id="values_attribute_{counter}_min"
name="values_attribute[{counter}][value][min]" value="{value/min}" size="2"
maxlength="2" title="{$lang_min}">
+
<xsl:choose>
+
<xsl:when test="disabled!=''">
+
<xsl:attribute name="disabled">
+
<xsl:text> disabled</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
+
</xsl:choose>
+
</input>
+ </td>
+ <td>
+
<input type="checkbox" name="clear_{name}_box" onClick="{$clear_function}">
+
<xsl:attribute name="title">
+
<xsl:value-of select="php:function('lang', 'delete')"/>
+
</xsl:attribute>
+
<xsl:attribute name="readonly">
+
<xsl:text>readonly</xsl:text>
+
</xsl:attribute>
+
</input>
- <table>
- <tr>
-
<td>
-
<input type="text" id="values_attribute_{counter}"
name="values_attribute[{counter}][value][date]" value="{value/date}" size="12"
maxlength="12">
-
<xsl:attribute name="readonly">
-
<xsl:text> readonly</xsl:text>
-
</xsl:attribute>
-
<xsl:choose>
-
<xsl:when test="disabled!=''">
-
<xsl:attribute name="disabled">
-
<xsl:text> disabled</xsl:text>
-
</xsl:attribute>
-
</xsl:when>
-
</xsl:choose>
-
</input>
-
</td>
-
<td>
-
<input type="text" id="values_attribute_{counter}_hour"
name="values_attribute[{counter}][value][hour]" value="{value/hour}" size="2"
maxlength="2" title="{$lang_hour}">
-
<xsl:choose>
-
<xsl:when test="disabled!=''">
-
<xsl:attribute name="disabled">
-
<xsl:text> disabled</xsl:text>
-
</xsl:attribute>
-
</xsl:when>
-
</xsl:choose>
-
</input>
-
</td>
-
<td>
-
<xsl:text> : </xsl:text>
-
</td>
-
<td>
-
<input type="text" id="values_attribute_{counter}_min"
name="values_attribute[{counter}][value][min]" value="{value/min}" size="2"
maxlength="2" title="{$lang_min}">
-
<xsl:choose>
-
<xsl:when test="disabled!=''">
-
<xsl:attribute name="disabled">
-
<xsl:text> disabled</xsl:text>
-
</xsl:attribute>
-
</xsl:when>
-
</xsl:choose>
-
</input>
-
</td>
-
<td>
-
<input type="checkbox" name="clear_{name}_box"
onClick="{$clear_function}">
-
<xsl:attribute name="title">
-
<xsl:value-of select="php:function('lang', 'delete')"/>
-
</xsl:attribute>
-
<xsl:attribute name="readonly">
-
<xsl:text>readonly</xsl:text>
-
</xsl:attribute>
-
</input>
-
-
</td>
- </tr>
- </table>
- </xsl:when>
- <xsl:when
test="datatype='T'">
- <textarea
id="id_{name}" name="values_attribute[{counter}][value]">
+ </td>
+ </tr>
+ </table>
+ </xsl:when>
+ <xsl:when test="datatype='T'">
+ <textarea
id="id_{name}" name="values_attribute[{counter}][value]">
+ <xsl:choose>
+
<xsl:when test="disabled!=''">
+
<xsl:attribute name="disabled">
+
<xsl:text> disabled</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
+ </xsl:choose>
+ <xsl:attribute
name="cols">
<xsl:choose>
-
<xsl:when test="disabled!=''">
-
<xsl:attribute name="disabled">
-
<xsl:text> disabled</xsl:text>
-
</xsl:attribute>
+
<xsl:when test="$textareacols!=''">
+
<xsl:value-of select="$textareacols"/>
</xsl:when>
+
<xsl:otherwise>
+
<xsl:text>60</xsl:text>
+
</xsl:otherwise>
</xsl:choose>
-
<xsl:attribute name="cols">
-
<xsl:choose>
-
<xsl:when test="$textareacols!=''">
-
<xsl:value-of select="$textareacols"/>
-
</xsl:when>
-
<xsl:otherwise>
-
<xsl:text>60</xsl:text>
-
</xsl:otherwise>
-
</xsl:choose>
-
</xsl:attribute>
-
<xsl:attribute name="rows">
-
<xsl:choose>
-
<xsl:when test="$textarearows!=''">
-
<xsl:value-of select="$textarearows"/>
-
</xsl:when>
-
<xsl:otherwise>
-
<xsl:text>6</xsl:text>
-
</xsl:otherwise>
-
</xsl:choose>
-
</xsl:attribute>
-
<xsl:value-of select="value"/>
- </textarea>
- </xsl:when>
- <xsl:when
test="datatype='pwd'">
- <table>
- <tr>
-
<td>
-
<input type="password" name="values_attribute[{counter}][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>
-
</td>
- </tr>
- <tr>
-
<td>
-
<input type="password" name="values_attribute[{counter}][value2]"
size="30">
-
<xsl:choose>
-
<xsl:when test="disabled!=''">
-
<xsl:attribute name="disabled">
-
<xsl:text> disabled</xsl:text>
-
</xsl:attribute>
-
</xsl:when>
-
</xsl:choose>
-
</input>
-
</td>
- </tr>
- </table>
- </xsl:when>
- <xsl:when
test="datatype='bolean'">
- <input
id="id_{name}" type="checkbox" name="values_attribute[{counter}][value]"
value="1">
+ </xsl:attribute>
+ <xsl:attribute
name="rows">
<xsl:choose>
-
<xsl:when test="value!=''">
-
<xsl:attribute name="checked">
-
<xsl:text>checked</xsl:text>
-
</xsl:attribute>
+
<xsl:when test="$textarearows!=''">
+
<xsl:value-of select="$textarearows"/>
</xsl:when>
+
<xsl:otherwise>
+
<xsl:text>6</xsl:text>
+
</xsl:otherwise>
</xsl:choose>
- </input>
- </xsl:when>
- <xsl:when
test="datatype='link'">
- <input
type="text" name="values_attribute[{counter}][value]" 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:attribute>
+ <xsl:value-of
select="value"/>
+ </textarea>
+ </xsl:when>
+ <xsl:when test="datatype='pwd'">
+ <table>
+ <tr>
+ <td>
+
<input type="password" name="values_attribute[{counter}][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>
+ </td>
+ </tr>
+ <tr>
+ <td>
+
<input type="password" name="values_attribute[{counter}][value2]" size="30">
+
<xsl:choose>
+
<xsl:when test="disabled!=''">
+
<xsl:attribute name="disabled">
+
<xsl:text> disabled</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
+
</xsl:choose>
+
</input>
+ </td>
+ </tr>
+ </table>
+ </xsl:when>
+ <xsl:when
test="datatype='bolean'">
+ <input id="id_{name}"
type="checkbox" name="values_attribute[{counter}][value]" value="1">
<xsl:choose>
<xsl:when test="value!=''">
-
<br/>
-
<a href="{value}" target="_blank">
-
<xsl:value-of select="value"/>
-
</a>
+
<xsl:attribute name="checked">
+
<xsl:text>checked</xsl:text>
+
</xsl:attribute>
</xsl:when>
</xsl:choose>
- </xsl:when>
- <xsl:when
test="datatype='event'">
+ </input>
+ </xsl:when>
+ <xsl:when
test="datatype='link'">
+ <input type="text"
name="values_attribute[{counter}][value]" value="{value}" size="30">
<xsl:choose>
-
<xsl:when test="warning!=''">
-
<xsl:value-of select="warning"/>
+
<xsl:when test="disabled!=''">
+
<xsl:attribute name="disabled">
+
<xsl:text> disabled</xsl:text>
+
</xsl:attribute>
</xsl:when>
-
<xsl:otherwise>
-
<xsl:variable name="event_descr">
-
<xsl:value-of select="name"/>
-
<xsl:text>_descr</xsl:text>
-
</xsl:variable>
-
<xsl:variable name="lookup_function">
-
<xsl:text>lookup_</xsl:text>
-
<xsl:value-of select="name"/>
-
<xsl:text>();</xsl:text>
-
</xsl:variable>
-
<table>
-
<tr>
-
<td>
-
<input type="text" name="{name}" value="{value}"
onClick="{$lookup_function}" readonly="readonly" size="6"/>
-
<input size="30" type="text" name="{$event_descr}"
value="{descr}" onClick="{$lookup_function}" readonly="readonly">
-
<xsl:choose>
-
<xsl:when test="disabled!=''">
-
<xsl:attribute name="disabled">
-
<xsl:text>
disabled</xsl:text>
-
</xsl:attribute>
-
</xsl:when>
-
</xsl:choose>
-
</input>
-
</td>
-
</tr>
-
<xsl:choose>
-
<xsl:when test="next!=''">
-
<tr>
-
<td>
-
<xsl:value-of select="lang_next_run"/>
-
<xsl:text>: </xsl:text>
-
<xsl:value-of select="next"/>
-
</td>
-
</tr>
-
<tr>
-
<td>
-
<xsl:value-of select="lang_enabled"/>
-
<xsl:text>: </xsl:text>
-
<xsl:value-of select="enabled"/>
-
</td>
-
</tr>
-
</xsl:when>
-
</xsl:choose>
-
</table>
-
</xsl:otherwise>
</xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <input
id="id_{name}" type="text" name="values_attribute[{counter}][value]"
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:otherwise>
- </xsl:choose>
- <xsl:choose>
- <xsl:when
test="history=1">
- <input
type="text" id="values_attribute_{counter}_date"
name="values_attribute[{counter}][date]" value="" size="12" maxlength="10"
readonly="readonly">
- </input>
- <xsl:variable
name="link_history">
-
<xsl:value-of select="link_history"/>
- </xsl:variable>
- <xsl:variable
name="lang_history_help">
-
<xsl:value-of select="//lang_history_help"/>
- </xsl:variable>
- <xsl:variable
name="lang_history">
-
<xsl:value-of select="php:function('lang', 'history')" />
- </xsl:variable>
- <a
href="javascript:var
w=window.open('{$link_history}','','left=50,top=100,width=550,height=400,scrollbars')"
title="{$lang_history}">
-
<xsl:value-of select="$lang_history"/>
- </a>
- </xsl:when>
- </xsl:choose>
- </xsl:when>
- </xsl:choose>
-
+ </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:when
test="datatype='event'">
+ <xsl:choose>
+ <xsl:when
test="warning!=''">
+
<xsl:value-of select="warning"/>
+ </xsl:when>
+ <xsl:otherwise>
+
<xsl:variable name="event_descr">
+
<xsl:value-of select="name"/>
+
<xsl:text>_descr</xsl:text>
+
</xsl:variable>
+
<xsl:variable name="lookup_function">
+
<xsl:text>lookup_</xsl:text>
+
<xsl:value-of select="name"/>
+
<xsl:text>();</xsl:text>
+
</xsl:variable>
+ <table>
+
<tr>
+
<td>
+
<input type="text" name="{name}" value="{value}"
onClick="{$lookup_function}" readonly="readonly" size="6"/>
+
<input size="30" type="text" name="{$event_descr}"
value="{descr}" onClick="{$lookup_function}" readonly="readonly">
+
<xsl:choose>
+
<xsl:when test="disabled!=''">
+
<xsl:attribute name="disabled">
+
<xsl:text> disabled</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
+
</xsl:choose>
+
</input>
+
</td>
+
</tr>
+
<xsl:choose>
+
<xsl:when test="next!=''">
+
<tr>
+
<td>
+
<xsl:value-of select="lang_next_run"/>
+
<xsl:text>: </xsl:text>
+
<xsl:value-of select="next"/>
+
</td>
+
</tr>
+
<tr>
+
<td>
+
<xsl:value-of select="lang_enabled"/>
+
<xsl:text>: </xsl:text>
+
<xsl:value-of select="enabled"/>
+
</td>
+
</tr>
+
</xsl:when>
+
</xsl:choose>
+ </table>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:otherwise>
+ <input id="id_{name}"
type="text" name="values_attribute[{counter}][value]" 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:otherwise>
+ </xsl:choose>
+ <xsl:choose>
+ <xsl:when test="history=1">
+ <input type="text"
id="values_attribute_{counter}_date" name="values_attribute[{counter}][date]"
value="" size="12" maxlength="10" readonly="readonly">
+ </input>
+ <xsl:variable
name="link_history">
+ <xsl:value-of
select="link_history"/>
+ </xsl:variable>
+ <xsl:variable
name="lang_history_help">
+ <xsl:value-of
select="//lang_history_help"/>
+ </xsl:variable>
+ <xsl:variable
name="lang_history">
+ <xsl:value-of
select="php:function('lang', 'history')" />
+ </xsl:variable>
+ <a href="javascript:var
w=window.open('{$link_history}','','left=50,top=100,width=550,height=400,scrollbars')"
title="{$lang_history}">
+ <xsl:value-of
select="$lang_history"/>
+ </a>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:when>
+ </xsl:choose>
</div>
</xsl:template>
@@ -654,37 +654,18 @@
<xsl:variable name="name">
<xsl:value-of select="name"/>
</xsl:variable>
- <table cellpadding="2" cellspacing="2" align="left">
+ <div class="pure-custom">
<xsl:for-each select="choice">
- <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:choose>
- <xsl:when
test="checked='checked'">
- <input
id="id_{$name}_{id}" type="{input_type}"
name="values_attribute[{$counter}][value][]" value="{id}" checked="checked"/>
- </xsl:when>
- <xsl:otherwise>
- <input
id="id_{$name}_{id}" type="{input_type}"
name="values_attribute[{$counter}][value][]" value="{id}"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:text> </xsl:text>
- </td>
- <td align="left">
- <xsl:value-of select="value"/>
- </td>
- </tr>
+ <xsl:choose>
+ <xsl:when
test="checked='checked'">
+ <input
id="id_{$name}_{id}" type="{input_type}"
name="values_attribute[{$counter}][value][]" value="{id}" checked="checked"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <input
id="id_{$name}_{id}" type="{input_type}"
name="values_attribute[{$counter}][value][]" value="{id}"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:value-of select="value"/>
+ <br></br>
</xsl:for-each>
- </table>
+ </div>
</xsl:template>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [12381],
Nelson Guerra <=