Ticket #2445 (new enhancement) — at Version 4

Opened 2 years ago

Last modified 2 years ago

Create demo dataset add related page

Reported by: aron.carroll Owned by: aron.carroll
Priority: major Milestone: ckan-sprint-2012-06-25
Component: ckan Keywords: demo-theme
Cc: toby, ross Repository: ckan
Theme: none

Description (last modified by aron.carroll) (diff)

Discussion:

https://okfn.basecamphq.com/projects/9558659-demo-ckan-front-end/posts/62821386/comments

Implementation:

http://s031.okserver.org:2375/dataset/adur_district_spending/related/new

Needs a new endpoint at /dataset/DATASET/related/new this should have a form containing the following fields.

  • Title (required)
  • Type of item (Application|Visualisation)
  • Description
  • URL (required)
  • Image URL

When submitted if an item is created it should redirect (303) back to /dataset/DATASET/related with a flash message saying "Related item was successfully created".

If failed to create it should redirect (303) back to the form and populate the error messages, see add dataset for examples (https://github.com/okfn/ckan/blob/feature-2375-demo-theme/ckan/templates/package/new_package_form.html)

Change History

comment:1 Changed 2 years ago by aron.carroll

  • Milestone set to current-ckan-sprint-2012-05-29

comment:2 Changed 2 years ago by aron.carroll

  • Description modified (diff)

comment:3 Changed 2 years ago by aron.carroll

  • Milestone changed from ckan-sprint-2012-05-29 to current-ckan-sprint-2012-06-25

comment:4 Changed 2 years ago by aron.carroll

  • Cc ross added
  • Description modified (diff)
Note: See TracTickets for help on using tickets.