Commit graph

19 commits

Author SHA1 Message Date
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
e8da89bdbc improvement: add AshPhoenix.update_form/3
docs: add docs for special cases of auto forms
2021-07-17 14:17:05 -04:00
Zach Daniel
0508ff48d5 improvement: add auto?: true flag 2021-07-16 20:40:49 -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
defbf581dc improvement: first edition of auto forms 2021-07-16 16:50:36 -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
Zach Daniel
a7b2296d43 chore: refactor the use_data? change 2021-07-12 17:37:06 -04:00
Zach Daniel
e98c617405 chore: fix lint 2021-07-12 17:19:17 -04:00
Zach Daniel
9350101bb5 improvement: add use_data? opt to add_related
test: add some tests for `add_related`
fix: don't assume an empty map is an indexed map
2021-07-12 17:19:06 -04:00
Zach Daniel
26d24b4801 imorovement: add_to_path when 0th item is updating 2021-06-13 21:25:04 -04:00
Zach Daniel
d5a485e068 fix: fix case where "lists" weren't properly added to
test: add unit tests for `add_to_path/3`
2021-06-13 20:23:14 -04:00
Zach Daniel
8b03e9fc5a
feat: general cleanup, ready for initial release 2020-10-20 21:25:28 -04:00
Zach Daniel
b6b87b95e9
feat: init 2020-10-20 13:54:35 -04:00