[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [12145] add jquery validator
From: |
Alejandro |
Subject: |
[Fmsystem-commits] [12145] add jquery validator |
Date: |
Fri, 10 Oct 2014 19:53:59 +0000 |
Revision: 12145
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=12145
Author: nudrick
Date: 2014-10-10 19:53:59 +0000 (Fri, 10 Oct 2014)
Log Message:
-----------
add jquery validator
Modified Paths:
--------------
branches/dev-syncromind/property/templates/base/location_form2.xsl
Modified: branches/dev-syncromind/property/templates/base/location_form2.xsl
===================================================================
--- branches/dev-syncromind/property/templates/base/location_form2.xsl
2014-10-10 19:53:28 UTC (rev 12144)
+++ branches/dev-syncromind/property/templates/base/location_form2.xsl
2014-10-10 19:53:59 UTC (rev 12145)
@@ -4,9 +4,9 @@
</xsl:template>
<!-- New template-->
- <xsl:template match="location_data2"
xmlns:formvalidator="http://www.w3.org/TR/html4/"
xmlns:php="http://php.net/xsl">
+ <xsl:template match="location_data2" xmlns:php="http://php.net/xsl">
<xsl:for-each select="location">
- <dt>
+ <div class="pure-control-group">
<label title="{statustext}">
<xsl:choose>
<xsl:when test="lookup_link=1">
@@ -19,8 +19,7 @@
</xsl:otherwise>
</xsl:choose>
</label>
- </dt>
- <dd>
+
<xsl:choose>
<xsl:when test="readonly=1">
<input size="{size}"
type="{input_type}" name="{input_name}" value="{value}"
onClick="{lookup_function_call}" readonly="readonly">
@@ -28,12 +27,9 @@
<xsl:attribute
name="title">
<xsl:value-of select="statustext"/>
</xsl:attribute>
- <xsl:attribute
name="formvalidator:FormField">
-
<xsl:text>yes</xsl:text>
+ <xsl:attribute
name="data-validation">
+
<xsl:text>number</xsl:text>
</xsl:attribute>
- <xsl:attribute
name="formvalidator:Type">
-
<xsl:text>TextBaseField</xsl:text>
- </xsl:attribute>
</xsl:if>
</input>
</xsl:when>
@@ -65,6 +61,6 @@
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
- </dd>
+ </div>
</xsl:for-each>
</xsl:template>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [12145] add jquery validator,
Alejandro <=