Ticket #2419 (closed enhancement: fixed)

Opened 2 years ago

Last modified 22 months ago

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


Currently for some reason I'm not getting the errors/data dict in the package/new.html template.

Change History

comment:1 Changed 2 years ago by toby

  • Owner set to toby
  • Status changed from new to assigned

comment:2 Changed 2 years ago by toby

  • Owner changed from toby to aron.carroll


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

comment:3 Changed 22 months ago by aron.carroll

  • Status changed from assigned to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.