{% macro file_upload_form(button_size='btn-sm') %}
{% endmacro %} {% block content %} {% set has_files = project.list_files_and_folders()|length > 0 %}

Upload Data

Import directories containing your TEI files.

{% if error_message %} {% endif %}
{% if has_files %}
Drop files here
{{ file_upload_form('btn-sm') }}
{% for item in project.list_files_and_folders() %}
{% if item.type == 'folder' %} {% else %} {{ item.name }} {% endif %}
{% endfor %}
{% for item in project.list_files_and_folders() %} {% if item.type == 'folder' %} {% with folder=item, index=loop.index %} {% include 'modal/file_explorer_main.html' %} {% endwith %} {% endif %} {% endfor %}
{% else %}
{{ file_upload_form('btn-lg') }}

or

Drag and Drop files

{% endif %}
{% endblock %}