temporary-indexing-app/templates/index.html

58 lines
1.4 KiB
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" />
2021-12-06 11:25:36 +01:00
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
2021-12-06 10:43:13 +01:00
<title>THIS IS A TITLE</title>
</head>
<body>
2021-12-09 11:38:54 +01:00
<p>{{ petname_message}}. You are anonymous. You may reveal your identity later when saving your generated files.</p>
{% if generation_message %}
<p> {{ generation_message }} </p>
{% endif %}
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.comments.label }}
{{ upload_form.comments }}
{{ upload_form.timestamp.label }}
{{ upload_form.timestamp }}
2021-12-09 11:38:54 +01:00
{{ upload_form.tags.label }}
{{ upload_form.tags }}
<input type="hidden" id="petname" name="petname" value="{{ petname }}">
<input type="submit" value="generate" />
2021-12-06 10:43:13 +01:00
</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 12:11:30 +01:00
2021-12-06 12:22:00 +01:00
<object data="{{ pdf }}" type="application/pdf">
<iframe src="{{ pdf }}"></iframe>
</object>
2021-12-06 12:11:30 +01:00
2021-12-06 10:43:13 +01:00
</body>
</html>