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

Fix form issues on goal forms #127

Merged
merged 1 commit into from
Mar 12, 2015
Merged

Fix form issues on goal forms #127

merged 1 commit into from
Mar 12, 2015

Conversation

nikolas
Copy link
Member

@nikolas nikolas commented Mar 12, 2015

Pagetree's auto-generated <form> tag has a few problems preventing
me from using it with the goal forms:

My solution is to again have the pageblock render its own <form>. This
necessitates an unfortunate hack: hiding pagetree's Submit button with
JavaScript. This is one of the reasons I think needs_submit should be
broken out into two different configurable params: Something like
handles_post_data and renders_form. Related to issue here:
ccnmtl/django-pagetree#44

Pagetree's auto-generated <form> tag has a few problems preventing
me from using it with the goal forms:

* After submitting an invalid form, Pagetree's Submit button disappears,
preventing the user from being able to submit the form again.
* The "change my answers" form isn't compatible with formsets. See
ccnmtl/django-pagetree#58

My solution is to again have the pageblock render its own <form>. This
necessitates an unfortunate hack: hiding pagetree's Submit button with
JavaScript. This is one of the reasons I think needs_submit should be
broken out into two different configurable params: Something like
`handles_post_data` and `renders_form`. Related to issue here:
ccnmtl/django-pagetree#44
djredhand pushed a commit that referenced this pull request Mar 12, 2015
Fix form issues on goal forms
@djredhand djredhand merged commit b028cd5 into master Mar 12, 2015
@nikolas nikolas deleted the formsets-fix branch March 13, 2015 18:22
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