Source

datenaustausch / templates / upload / show_download.html

{% extends "templates/main.html" %}
{% block content %}
<div>
<table>
<tr><td>Datei:</td><td>{{ download.name }}</td></tr>
<tr><td>Beschreibung:</td><td>{{ download.description }}</td></tr>
<tr><td>Dateiname:</td><td>{{ download.filename }}</td></tr>
<tr><td>Passwort notwendig?:</td><td>{%if download.is_password_protected %}Ja {%else%} Nein{% endif %}</td></tr>
<tr><td>Hinzugefügt:</td><td>{{ download.created_at }}</td></tr>
</table>

{% if form %}
<form action="/download/{{ download.id }}/" method="post">

{% if download.is_password_protected %}
     {{ form.as_p }}
{% endif %}
<input type="submit" value="Download" />
</form>
{% endif %}
</div>
{% endblock %}