[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [12599]
From: |
Nelson Guerra |
Subject: |
[Fmsystem-commits] [12599] |
Date: |
Wed, 14 Jan 2015 23:39:43 +0000 |
Revision: 12599
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12599
Author: nelson224
Date: 2015-01-14 23:39:42 +0000 (Wed, 14 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-14 23:39:29 UTC (rev 12598)
+++ branches/dev-syncromind/property/templates/base/attributes_form.xsl
2015-01-14 23:39:42 UTC (rev 12599)
@@ -103,6 +103,11 @@
<xsl:text> disabled</xsl:text>
</xsl:attribute>
</xsl:when>
+
<xsl:when test="nullable!='1'">
+
<xsl:attribute name="data-validation">
+
<xsl:text>required</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
</xsl:choose>
<option
value="">
<xsl:value-of select="php:function('lang', 'select')"/>
@@ -266,6 +271,11 @@
<xsl:text> disabled</xsl:text>
</xsl:attribute>
</xsl:when>
+
<xsl:when test="nullable!='1'">
+
<xsl:attribute name="data-validation">
+
<xsl:text>required</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
</xsl:choose>
</input>
<input size="30"
type="text" id="{$vendor_name}" name="{$vendor_name}" value="{vendor_name}"
onClick="{$lookup_function}" readonly="readonly">
@@ -286,6 +296,11 @@
<xsl:text> disabled</xsl:text>
</xsl:attribute>
</xsl:when>
+
<xsl:when test="nullable!='1'">
+
<xsl:attribute name="data-validation">
+
<xsl:text>required</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
</xsl:choose>
<option
value="">
<xsl:value-of select="php:function('lang', 'select')"/>
@@ -326,6 +341,11 @@
<xsl:text> disabled</xsl:text>
</xsl:attribute>
</xsl:when>
+
<xsl:when test="nullable!='1'">
+
<xsl:attribute name="data-validation">
+
<xsl:text>required</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">
@@ -355,6 +375,13 @@
</xsl:variable>
<input
id="{$custom_id}" name="values_attribute[{counter}][value]" type="hidden"
value="{value}">
+ <xsl:choose>
+
<xsl:when test="nullable!='1'">
+
<xsl:attribute name="data-validation">
+
<xsl:text>required</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
+ </xsl:choose>
</input>
<input
id="{$custom_name}" name="{$custom_name}" type="text" value="{custom_name}">
<xsl:choose>
@@ -384,6 +411,11 @@
<xsl:text> disabled</xsl:text>
</xsl:attribute>
</xsl:when>
+
<xsl:when test="nullable!='1'">
+
<xsl:attribute name="data-validation">
+
<xsl:text>required</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
</xsl:choose>
</input>
<input size="30"
type="text" id="{$user_name}" name="{$user_name}" value="{user_name}"
onClick="{$lookup_function}" readonly="readonly">
@@ -435,6 +467,11 @@
<xsl:text> disabled</xsl:text>
</xsl:attribute>
</xsl:when>
+
<xsl:when test="nullable!='1'">
+
<xsl:attribute name="data-validation">
+
<xsl:text>required</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
</xsl:choose>
</input>
</td>
@@ -485,6 +522,11 @@
<xsl:text> disabled</xsl:text>
</xsl:attribute>
</xsl:when>
+
<xsl:when test="nullable!='1'">
+
<xsl:attribute name="data-validation">
+
<xsl:text>required</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
</xsl:choose>
<xsl:attribute
name="cols">
<xsl:choose>
@@ -517,6 +559,11 @@
<xsl:text> disabled</xsl:text>
</xsl:attribute>
</xsl:when>
+
<xsl:when test="nullable!='1'">
+
<xsl:attribute name="data-validation">
+
<xsl:text>required</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
</xsl:choose>
</input>
<input type="password"
name="values_attribute[{counter}][value2]" size="30">
@@ -526,6 +573,11 @@
<xsl:text> disabled</xsl:text>
</xsl:attribute>
</xsl:when>
+
<xsl:when test="nullable!='1'">
+
<xsl:attribute name="data-validation">
+
<xsl:text>required</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
</xsl:choose>
</input>
</xsl:when>
@@ -548,6 +600,11 @@
<xsl:text> disabled</xsl:text>
</xsl:attribute>
</xsl:when>
+
<xsl:when test="nullable!='1'">
+
<xsl:attribute name="data-validation">
+
<xsl:text>required</xsl:text>
+
</xsl:attribute>
+
</xsl:when>
</xsl:choose>
</input>
<xsl:choose>
@@ -651,9 +708,9 @@
<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:when test="nullable!='1'">
+
<xsl:attribute name="data-validation">
+
<xsl:text>required</xsl:text>
</xsl:attribute>
</xsl:when>
</xsl:choose>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [12599],
Nelson Guerra <=