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
|
|
|
|
2021-12-17 18:35:59 +01:00
|
|
|
{% with messages = get_flashed_messages() %}
|
|
|
|
{% if messages %}
|
|
|
|
<ul class=flashes>
|
|
|
|
{% for message in messages %}
|
|
|
|
<li>{{ message }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
{% endwith %}
|
|
|
|
|
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>
|
2021-12-20 18:09:29 +01:00
|
|
|
{{ petname_message}}. You are anonymous.
|
2021-12-17 17:33:28 +01:00
|
|
|
</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 }}
|
|
|
|
|
2021-12-17 18:12:16 +01:00
|
|
|
{{ upload_form.authors.label }}
|
|
|
|
{{ upload_form.authors }}
|
2021-12-12 14:59:49 +01:00
|
|
|
|
|
|
|
{{ 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>
|