Skip to content
This repository was archived by the owner on Apr 19, 2019. It is now read-only.

Conversation

@dgrammatiko
Copy link
Contributor

@dgrammatiko dgrammatiko commented Dec 5, 2016

Pull Request for Issue # .

Summary of Changes

HTML5 NATIVE validation is done through pattern="something"
The validate.js is adjusted so if pattern tag exists will take precedence else we fall back to the rules

Testing Instructions

Add pattern="[a-zA-Z]+" after https://github.com/joomla/40-backend-template/blob/master/administrator/components/com_content/models/forms/article.xml#L13
Create a new article and try to submit withou title and with title = (87587676) (or any other number)

screen shot 2016-12-05 at 16 04 38

TODO

  • Add patterns to all the forms all over the admin area (form.xml)

Documentation Changes Required

@dgrammatiko
Copy link
Contributor Author

Don't merge till joomla/joomla-cms#13094 is merged

@dgrammatiko
Copy link
Contributor Author

joomla/joomla-cms#13094 is merged and this one is updated

@C-Lodder C-Lodder merged commit ed26d70 into joomla:master Dec 21, 2016
@C-Lodder C-Lodder deleted the validation2 branch December 21, 2016 13:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants