diff --git a/site/pages/docs/ref/formvalid/formvalid-en.hbs b/site/pages/docs/ref/formvalid/formvalid-en.hbs index f10ffbb246e..57e59d6adc9 100644 --- a/site/pages/docs/ref/formvalid/formvalid-en.hbs +++ b/site/pages/docs/ref/formvalid/formvalid-en.hbs @@ -6,7 +6,7 @@ "categoryfile": "plugins", "description": "Provides generic validation and error message handling for Web forms.", "altLangPrefix": "formvalid", - "dateModified": "2014-10-28" + "dateModified": "2015-07-17" } --- @@ -115,6 +115,14 @@ data-rule-alphanumeric="true" Alphanumeric + + data-rule-cifES="true" + CIF code (Spain) + + + data-rule-creditcard="true" + Credit card number + type="date" Date @@ -123,10 +131,22 @@ type="date" data-rule-dateISO="true" Date (ISO) + + type="date" data-rule-dateITA="true" + Date (Italy) + type="number" Digits only + + type="email" + Email + + + data-rule-equalTo="#x" + Equal to field with id = "x" + data-rule-lettersonly="true" Letters only @@ -143,26 +163,70 @@ max="x" Maximum number x + + data-rule-maxWords="x" + Maximum of x words + data-rule-minlength="x" Minimum length of x + + data-rule-strippedminlength="x" + Minimum length of x (when HTML tags are removed) + min="x" Minimum number x - type="email" - Email + data-rule-minWords="x" + Minimum of x words + + + data-rule-nieES="true" + NIE code (Spain) + + + data-rule-nifES="true" + NIF code (Spain) + + + data-rule-nowhitespace="true" + No white space + + + data-rule-postalCodeCA="true" + Postal code (Canada) + + + data-rule-rangelength="[x,y]" + Range (number) data-rule-rangelength="[x,y]" Range length x to y + + data-rule-rangeWords="[x,y]" + Range of x to y words + + + type="tel" data-rule-phoneUK="true" + Telephone number (UK) + + + type="tel" data-rule-mobileUK="true" + Mobile number (UK) + type="tel" data-rule-phoneUS="true" Telephone number (US) + + data-rule-extension="true" + Telephone extension + type="time" Time @@ -175,6 +239,14 @@ type="url" data-rule-ipv6="true" URL (IPv6) + + type="url" data-rule-url2="true" + URL (TLD optional) + + + data-rule-vinUS="true" + Vehice Identification Number (VIN, US) +

See jQuery Validation Plugin - Documentation for more details.

diff --git a/site/pages/docs/ref/formvalid/formvalid-fr.hbs b/site/pages/docs/ref/formvalid/formvalid-fr.hbs index 1854a9fd6d6..74d128c52be 100644 --- a/site/pages/docs/ref/formvalid/formvalid-fr.hbs +++ b/site/pages/docs/ref/formvalid/formvalid-fr.hbs @@ -6,7 +6,7 @@ "categoryfile": "plugins", "description": "Effectue la validation de formulaires Web selon un ensemble de règles de base avant qu'ils soient soumis.", "altLangPrefix": "formvalid", - "dateModified": "2014-10-28" + "dateModified": "2015-07-17" } --- @@ -117,6 +117,14 @@ data-rule-alphanumeric="true" Alphanumeric + + data-rule-cifES="true" + CIF code (Spain) + + + data-rule-creditcard="true" + Credit card number + type="date" Date @@ -125,10 +133,22 @@ type="date" data-rule-dateISO="true" Date (ISO) + + type="date" data-rule-dateITA="true" + Date (Italy) + type="number" Digits only + + type="email" + Email + + + data-rule-equalTo="#x" + Equal to field with id = "x" + data-rule-lettersonly="true" Letters only @@ -145,26 +165,70 @@ max="x" Maximum number x + + data-rule-maxWords="x" + Maximum of x words + data-rule-minlength="x" Minimum length of x + + data-rule-strippedminlength="x" + Minimum length of x (when HTML tags are removed) + min="x" Minimum number x - type="email" - Email + data-rule-minWords="x" + Minimum of x words + + + data-rule-nieES="true" + NIE code (Spain) + + + data-rule-nifES="true" + NIF code (Spain) + + + data-rule-nowhitespace="true" + No white space + + + data-rule-postalCodeCA="true" + Postal code (Canada) + + + data-rule-rangelength="[x,y]" + Range (number) data-rule-rangelength="[x,y]" Range length x to y + + data-rule-rangeWords="[x,y]" + Range of x to y words + + + type="tel" data-rule-phoneUK="true" + Telephone number (UK) + + + type="tel" data-rule-mobileUK="true" + Mobile number (UK) + type="tel" data-rule-phoneUS="true" Telephone number (US) + + data-rule-extension="true" + Telephone extension + type="time" Time @@ -177,6 +241,14 @@ type="url" data-rule-ipv6="true" URL (IPv6) + + type="url" data-rule-url2="true" + URL (TLD optional) + + + data-rule-vinUS="true" + Vehice Identification Number (VIN, US) +

See jQuery Validation Plugin - Documentation for more details.

diff --git a/src/plugins/formvalid/formvalid-en.hbs b/src/plugins/formvalid/formvalid-en.hbs index 74533feca9f..7dc9930e443 100644 --- a/src/plugins/formvalid/formvalid-en.hbs +++ b/src/plugins/formvalid/formvalid-en.hbs @@ -7,7 +7,7 @@ "tag": "formvalid", "parentdir": "formvalid", "altLangPrefix": "formvalid", - "dateModified": "2015-03-06" + "dateModified": "2015-07-17" } ---
@@ -80,7 +80,7 @@
- +
@@ -89,11 +89,41 @@ <form action="#" method="get" id="validation-example"> ... <div class="form-group"> - <label for="tel1" class="required"><span class="field-name">Telephone number</span> (999-999-9999) <strong class="required">(required)</strong></label> + <label for="tel1" class="required"><span class="field-name">Telephone number</span> <strong class="required">(required)</strong></label> <input class="form-control" id="tel1" name="tel1" type="tel" required="required" data-rule-phoneUS="true" /> </div>
+
+ + +
+
+ View code +
<div class="wb-frmvld">
+	<form action="#" method="get" id="validation-example">
+		...
+		<div class="form-group">
+			<label for="ext1"><span class="field-name">Telephone extension</span></label>
+			<input class="form-control" id="ext1" name="ext1" type="number" required="required" data-rule-extension="true" />
+		</div>
+
+ +
+ + +
+
+ View code +
<div class="wb-frmvld">
+	<form action="#" method="get" id="validation-example">
+		...
+		<div class="form-group">
+			<label for="pcodeca1" class="required"><span class="field-name">Postal code</span> <strong class="required">(required)</strong></label>
+			<input class="form-control" id="pcodeca1" name="pcodeca1" type="text" size="7" maxlength="7" required="required" data-rule-postalCodeCA="true" />
+		</div>
+
+
@@ -247,6 +277,66 @@ </div> +
+ + +
+
+ View code +
<div class="wb-frmvld">
+	<form action="#" method="get" id="validation-example">
+		...
+		<div class="form-group">
+			<label for="word1"><span class="field-name">Maximum of 10 words</span></label>
+			<input class="form-control" id="word1" name="word1" type="text" data-rule-maxWords="10" />
+		</div>
+
+ +
+ + +
+
+ View code +
<div class="wb-frmvld">
+	<form action="#" method="get" id="validation-example">
+		...
+		<div class="form-group">
+			<label for="word2"><span class="field-name">Minimum of 2 words</span></label>
+			<input class="form-control" id="word2" name="word2" type="text" data-rule-minWords="2" />
+		</div>
+
+ +
+ + +
+
+ View code +
<div class="wb-frmvld">
+	<form action="#" method="get" id="validation-example">
+		...
+		<div class="form-group">
+			<label for="word3"><span class="field-name">Between 2 and 10 words</span></label>
+			<input class="form-control" id="word3" name="word3" type="text" data-rule-rangeWords="[2,10]" />
+		</div>
+
+ +
+ + +
+
+ View code +
<div class="wb-frmvld">
+	<form action="#" method="get" id="validation-example">
+		...
+		<div class="form-group">
+			<label for="nowhitespace1"><span class="field-name">No white space</span></label>
+			<input class="form-control" id="nowhitespace1" name="nowhitespace1" type="text" pattern="[A-Za-z-.,()'"\s]" data-rule-nowhitespace="true" />
+		</div>
+
+
diff --git a/src/plugins/formvalid/formvalid-fr.hbs b/src/plugins/formvalid/formvalid-fr.hbs index 52eb722c1db..43503eaf7f2 100644 --- a/src/plugins/formvalid/formvalid-fr.hbs +++ b/src/plugins/formvalid/formvalid-fr.hbs @@ -7,7 +7,7 @@ "tag": "formvalid", "parentdir": "formvalid", "altLangPrefix": "formvalid", - "dateModified": "2014-08-07" + "dateModified": "2015-07-17" } ---
@@ -80,8 +80,8 @@
- - + +
Visualiser le code @@ -89,8 +89,38 @@ <form action="#" method="get" id="validation-example"> ... <div class="form-group"> - <label for="tel" class="required"><span class="field-name">Numéro de téléphone</span> (999-999-9999) <strong class="required">(obligatoire)</strong></label> - <input class="form-control" id="tel" name="tel" type="tel" required="required" data-rule-phoneUS="true" /> + <label for="tel1" class="required"><span class="field-name">Numéro de téléphone (avec l'indicatif régional)</span> <strong class="required">(obligatoire)</strong></label> + <input class="form-control" id="tel1" name="tel1" type="tel" required="required" data-rule-phoneUS="true" /> + </div> +
+ +
+ + +
+
+ View code +
<div class="wb-frmvld">
+	<form action="#" method="get" id="validation-example">
+		...
+		<div class="form-group">
+			<label for="ext1"><span class="field-name">Numéro de poste</span></label>
+			<input class="form-control" id="ext1" name="ext1" type="number" required="required" data-rule-extension="true" />
+		</div>
+
+ +
+ + +
+
+ View code +
<div class="wb-frmvld">
+	<form action="#" method="get" id="validation-example">
+		...
+		<div class="form-group">
+			<label for="pcodeca1" class="required"><span class="field-name">Code postal</span> <strong class="required">(obligatoire)</strong></label>
+			<input class="form-control" id="pcodeca1" name="pcodeca1" type="text" required="required" data-rule-postalCodeCA="true" />
 		</div>
@@ -247,6 +277,66 @@ </div> +
+ + +
+
+ View code +
<div class="wb-frmvld">
+	<form action="#" method="get" id="validation-example">
+		...
+		<div class="form-group">
+			<label for="word1"><span class="field-name">Maximum de 10 mots</span></label>
+			<input class="form-control" id="word1" name="word1" type="text" data-rule-maxWords="10" />
+		</div>
+
+ +
+ + +
+
+ View code +
<div class="wb-frmvld">
+	<form action="#" method="get" id="validation-example">
+		...
+		<div class="form-group">
+			<label for="word2"><span class="field-name">Minimum de 2 mots</span></label>
+			<input class="form-control" id="word2" name="word2" type="text" data-rule-minWords="2" />
+		</div>
+
+ +
+ + +
+
+ View code +
<div class="wb-frmvld">
+	<form action="#" method="get" id="validation-example">
+		...
+		<div class="form-group">
+			<label for="word3"><span class="field-name">Entre 2 et 10 mots</span></label>
+			<input class="form-control" id="word3" name="word3" type="text" data-rule-rangeWords="[2,10]" />
+		</div>
+
+ +
+ + +
+
+ View code +
<div class="wb-frmvld">
+	<form action="#" method="get" id="validation-example">
+		...
+		<div class="form-group">
+			<label for="nowhitespace1"><span class="field-name">Sans d'espaces blancs</span></label>
+			<input class="form-control" id="nowhitespace1" name="nowhitespace1" type="text" pattern="[A-Za-z-.,()'"\s]" data-rule-nowhitespace="true" />
+		</div>
+
+