{% import 'macros/form.html' as form %}
{% set action = c.form_action or '' %}

<form novalidate="novalidate" id="dataset-edit" class="dataset-form form-horizontal" method="post" action="{{ action }}"
      data-module="basic-form">
    {% block stages %}
        {{ h.snippet('package/snippets/stages.html', stages=stage) }}
    {% endblock %}

    <input type="hidden" name="_ckan_phase" value="dataset_new_1"/>
    {# pkg_name used in 3 stage edit #}
    <input type="hidden" name="pkg_name" value="{{ data.id