temporary-indexing-app/templates/index.html

44 lines
995 B
HTML
Raw Normal View History

2021-12-06 10:18:50 +01:00
<!DOCTYPE html>
<html>
2021-12-06 10:43:13 +01:00
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>THIS IS A TITLE</title>
</head>
<body>
2021-12-06 10:57:59 +01:00
<form method="POST" action="/upload" enctype="multipart/form-data">
2021-12-06 11:17:33 +01:00
{{ upload_form.csrf_token }}
2021-12-06 11:22:15 +01:00
{{ upload_form.metadata.label }}
2021-12-06 11:17:33 +01:00
{{ upload_form.metadata }}
2021-12-06 11:22:15 +01:00
{{ upload_form.title.label }}
2021-12-06 11:17:33 +01:00
{{ upload_form.title }}
2021-12-06 11:22:15 +01:00
{{ upload_form.author.label }}
{{ upload_form.author }}
{{ upload_form.tags.label }}
{{ upload_form.tags }}
{{ upload_form.comments.label }}
{{ upload_form.comments }}
{{ upload_form.timestamp.label }}
{{ upload_form.timestamp }}
2021-12-06 10:43:13 +01:00
<input type="submit" value="Go" />
</form>
2021-12-06 10:57:59 +01:00
2021-12-06 11:14:56 +01:00
{% if upload_form.metadata.errors %}
2021-12-06 10:57:59 +01:00
<ul class="errors">
2021-12-06 11:14:56 +01:00
{% for error in upload_form.metadata.errors %}
2021-12-06 10:57:59 +01:00
<li>{{ error }}</li>
{% endfor %}
</ul>
{% endif %}
2021-12-06 11:10:58 +01:00
</form>
2021-12-06 10:43:13 +01:00
</body>
</html>