{% import 'macros/form.html' as form %}
{% set action = h.url_for('import_datapackage') %}

<form class="dataset-form form-horizontal" method="post" action="{{ action }}" data-module="basic-form" enctype="multipart/form-data">
    {% block errors %}{{ form.errors(error_summary) }}{% endblock %}

    {% block basic_fields %}
        {% snippet 'datapackage/snippets/import_datapackage_basic_fields.html', data=data, errors=errors %}
    {% endblock %}

  <div class="form-actions">
    {% block add_button %}
    <button class="btn btn-primary" type="submit">{{ _('Import') }}</button>
    {% endblock %}
  </div>
</form>
