1. 21 Oct, 2020 3 commits
    • Romain Courteaud's avatar
      erp5_web_renderjs_ui_test: reproduce validation error issue and add asserts to... · f52296dd
      Romain Courteaud authored
      erp5_web_renderjs_ui_test: reproduce validation error issue and add asserts to make sure field has expected class
      
      * Trigger focus and blur to test renderjs functions properly
      * Add asserts to make sure we don't lose value after raise Invalid Date
      * Cover issue that invalid class does not disappear after click to create new object Foo in relation input
      * Make sure fifth_failure input has invalid class
      * Cover validation error to multicheckbox, checkbox and radio fields
      f52296dd
    • Gabriel Monnerat's avatar
      erp5_web_renderjs_ui: Improve fields to propagate error_text · 41e9f04b
      Gabriel Monnerat authored
      * 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
      41e9f04b
    • Romain Courteaud's avatar
      ce8f386c
  2. 20 Oct, 2020 2 commits
  3. 19 Oct, 2020 7 commits
  4. 15 Oct, 2020 3 commits
  5. 14 Oct, 2020 4 commits
  6. 13 Oct, 2020 4 commits
  7. 12 Oct, 2020 1 commit
  8. 08 Oct, 2020 1 commit
  9. 05 Oct, 2020 9 commits
  10. 01 Oct, 2020 3 commits
  11. 30 Sep, 2020 3 commits