temporary-indexing-app/templates/index.html
2021-12-20 18:09:29 +01:00

81 lines
1.9 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="stylesheet"
href="{{ url_for('static', filename='styles.css') }}"
/>
<title>Temporary Indexing</title>
</head>
<body>
<h1 class="title">Temporary Indexing</h1>
{% with messages = get_flashed_messages() %}
{% if messages %}
<ul class=flashes>
{% for message in messages %}
<li>{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
{% endwith %}
{% for field, errors in upload_form.errors.items() %}
<div class="error">
{{ upload_form[field].label }}: {{ ', '.join(errors) }}
</div>
{% endfor %}
<p>
{{ petname_message}}. You are anonymous.
</p>
{% if generation_message %}
<p> {{ generation_message }} </p>
{% endif %}
<div class="container">
<div class="forms">
<form class="metafields" method="POST" action="/upload" enctype="multipart/form-data">
{{ upload_form.csrf_token }}
{{ upload_form.metadata.label }}
{{ upload_form.metadata }}
{{ upload_form.title.label }}
{{ upload_form.title }}
{{ upload_form.authors.label }}
{{ upload_form.authors }}
{{ upload_form.comments.label }}
{{ upload_form.comments }}
{{ upload_form.timestamp.label }}
{{ upload_form.timestamp }}
{{ upload_form.tags.label }}
{{ upload_form.tags }}
<input
type="hidden"
id="petname"
name="petname"
value="{{ petname }}"
/>
<input type="submit" value="generate" />
</form>
</div>
<div class="iframe">
<object data="{{ pdf }}" type="application/pdf">
<iframe src="{{ pdf }}"></iframe>
</object>
</div>
</div>
</body>
</html>