]> wagnertech.de Git - SVBaL.git/blob - python/eh_util/eh_abgleich/templates/list.html
Erste Version
[SVBaL.git] / python / eh_util / eh_abgleich / templates / list.html
1 <!DOCTYPE html>
2 <html>
3     <head>
4         <meta charset="utf-8">
5         <title>Minimal Django File Upload Example</title>
6     </head>
7
8     <body>
9         <!-- List of uploaded documents -->
10         {% if documents %}
11             <ul>
12                 {% for document in documents %}
13                     <li><a href="{{ document.docfile.url }}">{{ document.docfile.name }}</a></li>
14                 {% endfor %}
15             </ul>
16         {% else %}
17             <p>No documents.</p>
18         {% endif %}
19
20         <!-- Upload form. Note enctype attribute! -->
21         <form action="{% url 'list' %}" method="post" enctype="multipart/form-data">
22             {% csrf_token %}
23             <p>{{ form.non_field_errors }}</p>
24
25             <p>{{ form.docfile.label_tag }} {{ form.docfile.help_text }}</p>
26
27             <p>
28                 {{ form.docfile.errors }}
29                 {{ form.docfile }}
30             </p>
31             
32            
33
34             <p><input type="submit" value="Upload"/></p>
35         </form>
36     </body>
37
38 </html>