[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [12593]
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [12593] |
Date: |
Tue, 13 Jan 2015 23:01:10 +0000 |
Revision: 12593
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12593
Author: nelson224
Date: 2015-01-13 23:01:09 +0000 (Tue, 13 Jan 2015)
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
2015-01-13 17:06:02 UTC (rev 12592)
+++ branches/dev-syncromind/property/templates/base/attributes_form.xsl
2015-01-13 23:01:09 UTC (rev 12593)
@@ -353,7 +353,7 @@
<xsl:value-of
select="name"/>
<xsl:text>_container</xsl:text>
</xsl:variable>
-
+
<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}">
@@ -397,7 +397,7 @@
</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">
+ <input
data-validation="date" data-validation-format="dd/mm/yyyy" 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>
@@ -407,6 +407,11 @@
<xsl:text> disabled</xsl:text>
</xsl:attribute>
</xsl:when>
+
<xsl:when test="nullable='1'">
+
<xsl:attribute name="data-validation-optional">
+
<xsl:text>true</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
</xsl:choose>
</input>
</xsl:when>
@@ -606,6 +611,38 @@
</xsl:otherwise>
</xsl:choose>
</xsl:when>
+ <xsl:when test="datatype='I'">
+ <input
data-validation="number" 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:when test="nullable='1'">
+
<xsl:attribute name="data-validation-optional">
+
<xsl:text>true</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
+ </xsl:choose>
+ </input>
+ </xsl:when>
+ <xsl:when test="datatype='N'">
+ <input
data-validation="number" data-validation-allowing="float"
data-validation-decimal-separator="." 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:when test="nullable='1'">
+
<xsl:attribute name="data-validation-optional">
+
<xsl:text>true</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
+ </xsl:choose>
+ </input>
+ </xsl:when>
<xsl:otherwise>
<input id="id_{name}"
type="text" name="values_attribute[{counter}][value]" value="{value}" size="30">
<xsl:choose>
@@ -614,6 +651,11 @@
<xsl:text> disabled</xsl:text>
</xsl:attribute>
</xsl:when>
+
<xsl:when test="nullable='1'">
+
<xsl:attribute name="data-validation-optional">
+
<xsl:text>true</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
</xsl:choose>
</input>
</xsl:otherwise>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [12593],
Nelson Guerra <=