ckan/ckan — pull request #1659 by wardi (2014-04-22 20:53:48+00:00)
Title: [WIP] Two-stage dataset create

Remove the third stage for creation of new datasets. The fields from the third stage can be moved to the first stage and appear just like they do when editing a dataset. This will slightly simplify our current knotted mess of templates for dataset creation and editing:

yellow: controller methods
blue: normal templates
orange: template snippets

![package-templates](https://cloud.githubusercontent.com/assets/153258/2770358/5975a43e-ca5d-11e3-9540-963c0d124c6e.png)

To this:

![package-templates-2](https://cloud.githubusercontent.com/assets/153258/2770386/edffa2da-ca5d-11e3-8afc-d5fdb3e16348.png)

1. The edit() and new() controller methods will no longer directly render p/new_package_form.html, it will be rendered by p/edit.html and p/new.html as normal snippets, just like all the other templates.
2. p/new_package_form.html will no longer hide the dataset fields that are currently on the third page. After completing the first stage the dataset will be a complete dataset with 0 resources.
3. new_metadata() controller method and p/s/package_metadata_form.html templates will be removed. All the data will have been created in the first stage. The draft dataset state no longer applies.

In a some distant future version of CKAN that breaks backwards compatibility with everyone's dataset template customization it would be nice to get closer to something like this:

![package-templates-3](https://cloud.githubusercontent.com/assets/153258/2770497/3e2c5482-ca5f-11e3-8506-2800d403883d.png)

But this will be in another PR.