Ticket #2419 (closed enhancement: fixed)
Add dataset form needs hooking up to action/controller
Reported by: | aron.carroll | Owned by: | aron.carroll |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | ckan | Keywords: | |
Cc: | Repository: | ckan | |
Theme: | none |
Description
Currently for some reason I'm not getting the errors/data dict in the package/new.html template.
Change History
comment:2 Changed 2 years ago by toby
- Owner changed from toby to aron.carroll
@aron
the reason for this is that controller/package.py renders the form package/new_package_form.html as part of it's work and then makes this available a c.form to the template. I'm not sure I like this as an approach but it is how it is currently done. If you split your form into a new template package/new_package_form.html then you get all the errors etc.
I think for now we should do this and then look at if doing it all in one template pass might be more sensible.
reassign to me if you want me to do this else I'll leave it with you