1 {% extends "catalogue/base.html" %}
6 {% block titleextra %}{% trans "Bulk document upload" %}{% endblock %}
13 <div class="card-header">
14 <h2>{% trans "Bulk documents upload" %}</h2>
16 <div class="card-body">
19 {% trans "Please submit a ZIP with UTF-8 encoded XML files. Files not ending with <code>.xml</code> will be ignored." %}
22 <form enctype="multipart/form-data" method="POST" action="{{ request.path }}">
24 {% bootstrap_form form %}
26 <button class="btn btn-primary" type="submit">{% trans "Upload" %}</button>
34 <p class='error'>{% trans "There have been some errors. No files have been added to the repository." %}
35 <h3>{% trans "Offending files" %}</h3>
37 {% for filename, title, error in error_list %}
38 <li>{{ title }} (<code>{{ filename }}</code>): {{ error }}</li>
43 <h3>{% trans "Correct files" %}</h3>
45 {% for filename, slug, title in ok_list %}
46 <li>{{ title }} (<code>{{ filename }}</code>)</li>
54 <p class='success'>{% trans "Files have been successfully uploaded to the repository." %}</p>
55 <h3>{% trans "Uploaded files" %}</h3>
57 {% for filename, slug, title in ok_list %}
58 <li><a href='{% url "wiki_editor" slug %}'>{{ title }}</a> (<code>{{ filename }})</a></li>
65 <h3>{% trans "Skipped files" %}</h3>
66 <p>{% trans "Files skipped due to no <code>.xml</code> extension" %}</p>
67 <ul id='skipped-list'>
68 {% for filename in skipped_list %}
69 <li>{{ filename }}</li>
77 {% endblock content %}