{% macro file_upload_form(button_size='btn-sm') %}
Local Files
{% endmacro %} {% block content %} {% set has_files = project.list_files_and_folders()|length > 0 %}
Upload Data
Import directories containing your TEI files.
{% if error_message %}
{{ error_message }}
{% endif %}
{% if has_files %}
Drop files here
{{ file_upload_form('btn-sm') }}
GitHub
Nextcloud
{% for item in project.list_files_and_folders() %}
{% if item.type == 'folder' %}
{{ item.name }}
{% 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') }}
GitHub
Nextcloud
or
Drag and Drop files
{% endif %}
Next
{% endblock %}