-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
Tabbed Fieldsets/Inlines - Highlight tab button with errors #287
Comments
@nattyg93 thank you for this suggestion, it seems very useful. |
can anyone duplicate here the suggestion of @nattyg93 mentioned earlier? |
I managed to implemented it the following way :
It works in a quite straightforward way, by looking for tabs containing fields flagged with errors and then styling the tab button with the matching name accordingly. Having several errors in the same tab does not harm since As for as I could use this snippet, it seems to work fine without any noticeable side-effect. Feel free to adapt and integrate it in a future version. |
@EricPobot thank you very much for sharing your solution! |
I've done a couple of adaptations to the change template for a better support of form rows with multiple fields and associated errors display (among other details). Since I've not done any extensive testing outside the presentation goals I was aiming, I can't be sure they don't break something. Would you be interested in me sharing them too ? |
@EricPobot indeed! |
@EricPobot I think this could be easily achieved using CSS |
@fabiocaccamo I'm not sure to understand what you are referring to exactly. Could you elaborate please ? |
I was referring to your solution, but looking closer at the html code it is not possible to do it using the |
Thanks for the clarification. At the end of the day, my proposal seems still valid if I understand correctly your very last message. Am I right ? |
@EricPobot yes it seems valid to me, I'll try to implement it tomorrow. |
Nice. Glad to have been able to contribute... at a very small scale obviously :) |
@nattyg93 @PevznerDanill @EricPobot fixed in @EricPobot thank you again for your useful snippet. |
Hi folks,
Love this package and loving the tabbed fieldsets & inlines.
One issue we have encountered is that if there are errors in a different tab, it is very tricky to know where the error is.
Would it be possible to add a class (and styling) to highlight the tab with errors in red?
The text was updated successfully, but these errors were encountered: