+Change.author_desc, minor changes
[redakcja.git] / apps / wiki / templates / wiki / document_upload.html
1 {% extends "wiki/base.html" %}
2 {% load i18n %}
3
4
5 {% block leftcolumn %}
6
7
8 <h2>{% trans "Bulk documents upload" %}</h2>
9
10 <p>
11 {% trans "Please submit a ZIP with UTF-8 encoded XML files. Files not ending with <code>.xml</code> will be ignored." %}
12 </p>
13
14 <form enctype="multipart/form-data" method="POST" action="">
15 {{ form.as_p }}
16 <p><button type="submit">{% trans "Upload" %}</button></p>
17 </form>
18
19 <hr/>
20
21 {% if error_list %}
22
23     <p class='error'>{% trans "There have been some errors. No files have been added to the repository." %}
24     <h3>{% trans "Offending files" %}</h3>
25     <ul id='error-list'>
26         {% for filename, title, error in error_list %}
27             <li>{{ title }} (<code>{{ filename }}</code>): {{ error }}</li>
28         {% endfor %}
29     </ul>
30
31     {% if ok_list %}
32     <h3>{% trans "Correct files" %}</h3>
33         <ul>
34             {% for filename, slug, title in ok_list %}
35                 <li>{{ title }} (<code>{{ filename }}</code>)</li>
36             {% endfor %}
37         </ul>
38     {% endif %}
39
40 {% else %}
41
42     {% if ok_list %}
43         <p class='success'>{% trans "Files have been successfully uploaded to the repository." %}</p>
44         <h3>{% trans "Uploaded files" %}</h3>
45         <ul id='ok-list'>
46         {% for filename, slug, title in ok_list %}
47             <li><a href='{% url wiki_editor slug %}'>{{ title }}</a> (<code>{{ filename }})</a></li>
48         {% endfor %}
49         </ul>
50     {% endif %}
51 {% endif %}
52
53 {% if skipped_list %}
54     <h3>{% trans "Skipped files" %}</h3>
55     <p>{% trans "Files skipped due to no <code>.xml</code> extension" %}</p>
56     <ul id='skipped-list'>
57         {% for filename in skipped_list %}
58             <li>{{ filename }}</li>
59         {% endfor %}
60     </ul>
61 {% endif %}
62
63
64 {% endblock leftcolumn %}
65
66
67 {% block rightcolumn %}
68 {% endblock rightcolumn %}