-
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
Consolidate admin required fields #15545
Consolidate admin required fields #15545
Conversation
+ 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
@dotnet-policy-service agree |
@all-contributors please add @xtomas for code. |
I've put up a pull request to add @xtomas! 🎉 |
@@ -6,11 +6,12 @@ | |||
|
|||
<script asp-name="jQuery-ui-i18n" at="Foot"></script> | |||
<div class="@Orchard.GetFieldWrapperClasses(Model.PartFieldDefinition)" id="@Html.IdFor(x => x.Value)_FieldWrapper"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you tried with asp-validation-class-for="Value"
on this div to set the entire "field" to be set has having a validation error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Skrypt do you have anything else to add or shall we merge this? |
It's approved; you can merge but I'm just asking if we should not also add the asp-validation-class-for too then to make this consistent everywhere. |
What's the wrong with |
It is missing everywhere for these fields. But we use it in ActivityDisplayDrivers editors for example. |
#15434
New test content item form with required fields
And the same content item after Publish