erp5_web_renderjs_ui: Improve fields to propagate error_text
* change the label field to not display the error text by default * change all html5 fields (input, select, textarea) to add a custom *invalid* class when the field is invalid * change all html5 fields to listen to the `focus` and `blur` event (with the renderjs onEvent method) Then, acquire (with `declareAcquiredMethod`) and call `notifyFocus` / `notifyBlur` methods respectively. * change the label field to handle `notifyFocus` / `notifyBlur` (with `allowPublicAcquisition`). Change the validation error text display state depending on the field status * Trigger onStateChange to set invalid class. If error comes from input field, we need to change state locally to set invalid class * Regenerate gadget_erp5_nojqm.css from erp5less.css using http://lesscss.org/less-preview/ * Textarea gadget should not prevent default when invalid event is triggered * Support notifyFocus and notifyBlur in panel
Showing
-
mentioned in commit romain/erp5@f3066ab5
-
mentioned in commit romain/erp5@e66b5e69
-
mentioned in commit romain/erp5@cde612ad
-
mentioned in commit romain/erp5@a8b023b8
-
mentioned in commit romain/erp5@c98362d5
-
mentioned in commit romain/erp5@8a82c3e2
-
mentioned in commit romain/erp5@95d5a587
-
mentioned in commit romain/erp5@c271969e
-
mentioned in commit romain/erp5@4bd265fd
-
mentioned in commit romain/erp5@e28c0d3c
-
mentioned in commit romain/erp5@67ede85b
-
mentioned in commit romain/erp5@0ff8d80a
-
mentioned in commit romain/erp5@fe6a9a95
-
mentioned in commit romain/erp5@40cfe242
-
mentioned in merge request !1371 (merged)
Please register or sign in to comment