{% import 'macros/form.html' as form %} {% set action = c.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. #}
{% block stages %} {{ h.snippet('package/snippets/stages.html', stages=stage) }} {% 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, licences=c.licences, groups_available=c.groups_available %} {% endblock %} {% block metadata_fields %} {% snippet 'package/snippets/package_metadata_fields.html', data=data, errors=errors %} {% endblock %} {% block form_actions %}
{% block disclaimer %}

{%- trans -%} Important: By submitting content, you agree to release your contributions under the Open Database License. {%- endtrans -%}

{% endblock %} {% block delete_button %} {% if h.check_access('package_delete', {'id': data.id}) %} {% set locale = h.dump_json({'content': _('Are you sure you want to delete this dataset?')}) %} {% block delete_button_text %}{{ _('Delete') }}{% endblock %} {% endif %} {% endblock %} {% block cancel_button %} {% block cancel_button_text %}{{ _('Cancel') }}{% endblock %} {% endblock %}
{% endblock %}