{% import 'macros/form.html' as form %} {% set action = g.form_action or '' %} {# This provides a full page that renders a form for adding a dataset. It can then itself be extended to add/remove blocks of functionality. #}
{{ h.csrf_input() }} {% block stages %} {{ h.snippet('package/snippets/stages.html', stages=stage, dataset_type=dataset_type) }} {% endblock %} {# pkg_name used in 3 stage edit #} {% block errors %}{{ form.errors(error_summary) }}{% endblock %} {% block basic_fields %} {% snippet 'package/snippets/package_basic_fields.html', data=data, errors=errors %} {% endblock %} {% block metadata_fields %} {% snippet 'package/snippets/package_metadata_fields.html', data=data, errors=errors %} {% endblock %} {% block form_actions %}
{% block disclaimer %}

{%- trans -%} The data license you select above only applies to the contents of any resource files that you add to this dataset. By submitting this form, you agree to release the metadata values that you enter into the form under the Open Database License. {%- endtrans -%}

{% endblock %} {% block delete_button %} {% if h.check_access('package_delete', {'id': data.id}) and not data.state == 'deleted' %} {% block delete_button_text %}{{ _('Delete') }}{% endblock %} {% endif %} {% endblock %} {% block save_button %} {% endblock %} {{ form.required_message() }}
{% endblock %}