Skip to content
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

adds render_fields function to generate form from schema #7

Closed
wants to merge 3 commits into from

Conversation

Danwhy
Copy link
Member

@Danwhy Danwhy commented Sep 25, 2018

Adds render_fields/4 function, which can be called from a Phoenix Controller, and will generate a form for either an :update or :create ('edit' or 'new') action, based on a given schema.

ref #6, dwyl/adoro#108

I'm going to add some more tests before it's ready for merge, plus I've temporarily removed the code that was used to incrementally update the data, as it was causing issues with updates being submitted too many times.

Copy link
Member

@nelsonic nelsonic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Danwhy this is an excellent start. 🥇
if you can add some docs and additional tests we'll be off to the races!! 🎉

@Danwhy Danwhy mentioned this pull request Sep 27, 2018
11 tasks
@nelsonic
Copy link
Member

@Danwhy please assign for review if you feel it's mergeable. thanks!

@Danwhy
Copy link
Member Author

Danwhy commented Sep 28, 2018

@nelsonic As this is mostly just the same code that's now in https://github.com/dwyl/autoform, I thought it would probably be best to just close this PR and include it as a hex package once it's ready if we need it

@nelsonic
Copy link
Member

@Danwhy thanks for update. agreed. 👍

@Danwhy Danwhy removed their assignment Sep 28, 2018
@Danwhy Danwhy closed this Sep 28, 2018
@Danwhy Danwhy deleted the form branch September 28, 2018 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants