You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to come up with a way to better customize pageblock forms. If you create a custom pageblock that needs to handle POST data, but you need to render your own Submit button(s) for (and possible your own <form>), there's no clear method to doing this. In the past, Susan has resorted to using JavaScript to make interface changes to custom PageBlock's forms, which shouldn't be necessary.
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
We need to come up with a way to better customize pageblock forms. If you create a custom pageblock that needs to handle POST data, but you need to render your own Submit button(s) for (and possible your own
<form>
), there's no clear method to doing this. In the past, Susan has resorted to using JavaScript to make interface changes to custom PageBlock's forms, which shouldn't be necessary.See discussion here:
https://frontdesk.ccnmtl.columbia.edu/logs/2015/02/27/#2015-02-27T10:37:20.577444106-05:00
The text was updated successfully, but these errors were encountered: