-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No required field identification in admin and inconsistent error messages #15434
Comments
I think the validation is there for each of these Content Fields but when it throws it highlights only the first element that needs to be fixed while it should display all of the faulty ones. |
Is this something you could provide as a PR if you think that won't break any feature. |
Yes, I will try to prepare PR. |
Hello @sebastienros, I've created my local feature branch based on main in my local git clone, but I'm not able to push it into orchard core repository to create pull request. |
Contributions to oss projects are done in forks |
+ add star char for all required fields + add validation message for required input field like in TitlePart * consolidate color for start and validation error messages * consolidate error message texts - remove client validation from inputs because of inconsistent form behaviour dependent on used browser, selected locale, ... OrchardCMS#15434
Describe the bug
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots
I've created Article content type with required TitlePart, Perex, Image media field and taxonomy fields Consumers and Topics.
On the screenshot bellow you can see variable validation messages, no validation messages under inputs and red border only on some fields (nothing on taxonomy fields)
Solution?
I think it's easy to add css required class into edit view for all required-able files using @Orchard.GetLabelCssClasses and PartFieldDefinition.GetSettings with required identification accessible inside view. Addition of validation messages under fields inputs is also possible for most of fields. Only in taxonomy field there is some vue.js component and it does not work for me yet. Red borders can be I think also added. Textation can be also rewritten in same way.
I've tried to use some overrides inside custom theme but I find it difficult to maintain in the future because of new versions, behavior... I think it will be better to have it out of the box.
The text was updated successfully, but these errors were encountered: