diff --git a/example/custom/registration/index.html b/example/custom/global/index.html similarity index 85% rename from example/custom/registration/index.html rename to example/custom/global/index.html index fed7193..3c36fa0 100644 --- a/example/custom/registration/index.html +++ b/example/custom/global/index.html @@ -2,7 +2,7 @@ - custom validator registration example + custom validator global registration example @@ -12,7 +12,7 @@
Email:
- Invalid your mail address format. +

Invalid your mail address format.

diff --git a/example/custom/local/index.html b/example/custom/local/index.html new file mode 100644 index 0000000..1aa0aa3 --- /dev/null +++ b/example/custom/local/index.html @@ -0,0 +1,46 @@ + + + + + custom validator local registration example + + + + +
+ + username:
+ email:
+ age:
+ site:
+
+

required username

+

invalid email address

+

invalid age value

+

invalid site uril format

+
+ +
+ + + diff --git a/example/custom/message/index.html b/example/custom/message/index.html index bc5f2dc..070d854 100644 --- a/example/custom/message/index.html +++ b/example/custom/message/index.html @@ -2,7 +2,7 @@ - custom validator global error message example + custom validator error message example @@ -10,45 +10,55 @@
username:
+ email:
age:
site:

{{ $validation1.username.messages.required }}

+

{{ $validation1.address.messages.email }}

{{ $validation1.age.messages.numeric }}

{{ $validation1.site.messages.url }}