temporary-indexing-app/templates/index.html

72 lines
1.8 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-17 17:33:28 +01:00
<link
rel="stylesheet"
href="{{ url_for('static', filename='styles.css') }}"
/>
2021-12-12 14:59:49 +01:00
<title>Temporary Indexing</title>
2021-12-06 10:43:13 +01:00
</head>
<body>
2021-12-12 14:59:49 +01:00
<h1 class="title">Temporary Indexing</h1>
2021-12-17 17:47:57 +01:00
{% for field, errors in upload_form.errors.items() %}
<div class="error">
{{ upload_form[field].label }}: {{ ', '.join(errors) }}
</div>
{% endfor %}
2021-12-17 17:33:28 +01:00
<p>
{{ petname_message}}. You are anonymous. You may reveal your identity
later when saving your generated files.
</p>
2021-12-09 11:38:54 +01:00
{% if generation_message %}
<p> {{ generation_message }} </p>
{% endif %}
2021-12-12 14:59:49 +01:00
<div class="container">
<div class="forms">
2021-12-17 17:47:57 +01:00
<form class="metafields" method="POST" action="/upload" enctype="multipart/form-data">
2021-12-12 14:59:49 +01:00
{{ upload_form.csrf_token }}
{{ upload_form.metadata.label }}
{{ upload_form.metadata }}
{{ upload_form.title.label }}
{{ upload_form.title }}
{{ upload_form.author.label }}
{{ upload_form.author }}
{{ upload_form.comments.label }}
{{ upload_form.comments }}
{{ upload_form.timestamp.label }}
{{ upload_form.timestamp }}
{{ upload_form.tags.label }}
{{ upload_form.tags }}
2021-12-17 17:33:28 +01:00
<input
type="hidden"
id="petname"
name="petname"
value="{{ petname }}"
/>
2021-12-12 14:59:49 +01:00
<input type="submit" value="generate" />
</form>
</div>
2021-12-17 17:47:57 +01:00
2021-12-17 17:33:28 +01:00
<div class="iframe">
2021-12-12 14:59:49 +01:00
<object data="{{ pdf }}" type="application/pdf">
<iframe src="{{ pdf }}"></iframe>
</object>
</div>
</div>
2021-12-06 10:43:13 +01:00
</body>
</html>