Commit graph

15 commits

Author SHA1 Message Date
Zach Daniel
24cbc780de improvement: add Form.errors/2, deprecate Form.errors_for/3 2021-07-21 21:52:04 -04:00
Darren Black
6ca6435263
test: Error on submit when removing the last item from a single resource (#20) 2021-07-20 01:54:36 -04:00
Darren Black
380a67a1fa
fix: Fix remove form path when a nested single (#19) 2021-07-20 01:00:44 -04:00
Darren Black
72a341a6c1
test: Failing test for invalid path (#17) 2021-07-19 23:42:11 -04:00
Darren Black
2373c19e8b
test: Failing test for remove_form reindex (#16) 2021-07-19 22:55:05 -04:00
Darren Black
8194e433cb
improvement: Improve error message when incorrect api configured for resource (#15) 2021-07-19 00:58:46 -04:00
Darren Black
c861cc9092
fix: Fix nested form naming (#14) 2021-07-18 22:07:54 -04:00
Zach Daniel
d1889a5bfb fix: set form aliases properly
improvement: move `api` to initial form creation option
2021-07-18 19:20:25 -04:00
Zach Daniel
ff40864c6b improvement: alter behavior of params option to submit
improvement: add `set_data/2`
2021-07-18 12:43:59 -04:00
Darren Black
e8d8aebaa3
fix: Fix default form id when :as provided (#12) 2021-07-18 12:28:47 -04:00
Zach Daniel
f36e6c30f2 fix: always pass forms down 2021-07-17 16:06:15 -04:00
Darren Black
785263e514
test: Add failing test (#9) 2021-07-17 15:57:27 -04:00
Zach Daniel
ea9ec350cd test: add another test for validation errors
fix: don't set data unless necessary
2021-07-16 19:58:14 -04:00
Darren Black
8378a38713
fix: Wrap single items on to_form (#8) 2021-07-16 18:23:07 -04:00
Zach Daniel
d7ec7da419
improvement: refactor forms with new data structure AshPhoenix.Form (#6)
Co-authored-by: Darren Black <dblack@totaltrash.net>
2021-07-15 14:09:15 -04:00