csv-library-website/library/templates/upload.html

103 lines
2.7 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
{% block main %}
2024-03-30 18:22:53 +01:00
<div id="nav" class="menu">
<div class="dropdown">
<button><a href="/">Back to books</a></button>
</div>
<div class="dropdown">
<button><a href="/upload">Upload</a></button>
</div>
<div class="dropdown" style="visibility: hidden">
<button id="Year" class="dropbtn">Year</button>
</div>
</div>
<div id="uploadform">
2021-04-05 21:42:43 +02:00
{% for message in uploadform.uploadpublication.errors %}
<div>{{ message }}</div>
{% endfor %}
{% for message in uploadform.author.errors %}
<div>{{ message }}</div>
{% endfor %}
2021-04-05 21:42:43 +02:00
<h2 id="uploadformtitle">Upload a new book</h2>
<form method="POST" enctype="multipart/form-data" action="{{ url_for('upload') }}">
2021-04-05 21:42:43 +02:00
{{ uploadform.csrf_token }}
<fieldset class="uploadform-field">
{{ uploadform.uploadpublication.label }}
2021-04-05 21:42:43 +02:00
{{ uploadform.uploadpublication }}
{% for message in uploadform.uploadpublication.errors %}
<div class="error">{{ message }}</div>
{% endfor %}
</fieldset>
<fieldset class="uploadform-field">
{{ uploadform.author.label }}
{{ uploadform.author }}
2021-04-05 21:42:43 +02:00
{% for message in uploadform.author.errors %}
<div class="error">{{ message }}</div>
{% endfor %}
</fieldset>
<fieldset class="uploadform-field">
{{ uploadform.year.label }}
{{ uploadform.year }}
2021-04-05 21:42:43 +02:00
{% for message in uploadform.year.errors %}
<div class="error">{{ message }}</div>
{% endfor %}
</fieldset>
2021-04-05 21:42:43 +02:00
<fieldset class="uploadform-field">
{{ uploadform.fields.label }}
{{ uploadform.fields }}
</fieldset>
<fieldset class="uploadform-field">
{{ uploadform.type.label }}
{{ uploadform.type }}
2021-04-05 21:42:43 +02:00
{% for message in uploadform.type.errors %}
<div class="error">{{ message }}</div>
{% endfor %}
</fieldset>
<fieldset class="uploadform-field">
{{ uploadform.publishers.label }}
2021-04-05 21:42:43 +02:00
{{ uploadform.publishers }}
</fieldset>
<fieldset class="uploadform-field">
{{ uploadform.license.label }}
{{ uploadform.license }}
</fieldset>
<fieldset class="uploadform-field">
{{ uploadform.highlights.label }}
2021-04-05 21:42:43 +02:00
{{ uploadform.highlights }}
</fieldset>
<fieldset class="uploadform-field">
{{ uploadform.comments.label }}
{{ uploadform.comments }}
</fieldset>
<fieldset class="fileupload-field">
{{ uploadform.image.label }}
{{ uploadform.image }}
{% for message in uploadform.image.errors %}
<div class="error">{{ message }}</div>
{% endfor %}
</fieldset>
2023-12-01 15:23:37 +01:00
<fieldset class="fileupload-field">
{{ uploadform.pdf.label }}
{{ uploadform.pdf }}
{% for message in uploadform.pdf.errors %}
<div class="error">{{ message }}</div>
{% endfor %}
</fieldset>
{{ uploadform.submit }}
</form>
</div>
{% endblock %}