{% import 'macros/form.html' as form %}

<h2 class="hide-heading">{{ _('Import from ZIP') }}</h2>

<form method="POST" id="form-ingest-data" class="form" enctype="multipart/form-data">

    {% block errors %}{{ form.errors(errors) }}{% endblock %}

    {% call form.input_block("field-source", _("Source file")) %}
        <input type="file" class="form-control-file" name="source" id="field-source">
    {% endcall %}
    {{ form.checkbox("update_existing", label=_('Update existing'), value=true) }}

    <div class="form-actions">
        <button type="submit" class="btn btn-default" >{{ _('Ingest') }}</button>
    </div>

</form>
