103 lines
3.0 KiB
HTML
103 lines
3.0 KiB
HTML
{% extends "base.html" %}
|
|
{% block main %}
|
|
<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="publicationform">
|
|
|
|
{% for message in publicationform.uploadpublication.errors %}
|
|
<div>{{ message }}</div>
|
|
{% endfor %}
|
|
|
|
{% for message in publicationform.author.errors %}
|
|
<div>{{ message }}</div>
|
|
{% endfor %}
|
|
|
|
<h2 id="publicationformtitle">Upload a new book</h2>
|
|
<form method="POST" enctype="multipart/form-data" action="{{ url_for('upload') }}">
|
|
{{ publicationform.csrf_token }}
|
|
<fieldset class="publicationform-field">
|
|
{{ publicationform.uploadpublication.label }}
|
|
{{ publicationform.uploadpublication }}
|
|
{% for message in publicationform.uploadpublication.errors %}
|
|
<div class="error">{{ message }}</div>
|
|
{% endfor %}
|
|
</fieldset>
|
|
|
|
<fieldset class="publicationform-field">
|
|
{{ publicationform.author.label }}
|
|
{{ publicationform.author }}
|
|
{% for message in publicationform.author.errors %}
|
|
<div class="error">{{ message }}</div>
|
|
{% endfor %}
|
|
</fieldset>
|
|
|
|
<fieldset class="publicationform-field">
|
|
{{ publicationform.year.label }}
|
|
{{ publicationform.year }}
|
|
{% for message in publicationform.year.errors %}
|
|
<div class="error">{{ message }}</div>
|
|
{% endfor %}
|
|
</fieldset>
|
|
|
|
<fieldset class="publicationform-field">
|
|
{{ publicationform.fields.label }}
|
|
{{ publicationform.fields }}
|
|
</fieldset>
|
|
|
|
<fieldset class="publicationform-field">
|
|
{{ publicationform.type.label }}
|
|
{{ publicationform.type }}
|
|
{% for message in publicationform.type.errors %}
|
|
<div class="error">{{ message }}</div>
|
|
{% endfor %}
|
|
</fieldset>
|
|
|
|
<fieldset class="publicationform-field">
|
|
{{ publicationform.publishers.label }}
|
|
{{ publicationform.publishers }}
|
|
</fieldset>
|
|
|
|
<fieldset class="publicationform-field">
|
|
{{ publicationform.license.label }}
|
|
{{ publicationform.license }}
|
|
</fieldset>
|
|
|
|
<fieldset class="publicationform-field">
|
|
{{ publicationform.highlights.label }}
|
|
{{ publicationform.highlights }}
|
|
</fieldset>
|
|
|
|
<fieldset class="publicationform-field">
|
|
{{ publicationform.comments.label }}
|
|
{{ publicationform.comments }}
|
|
</fieldset>
|
|
|
|
<fieldset class="fileupload-field">
|
|
{{ publicationform.image.label }}
|
|
{{ publicationform.image }}
|
|
{% for message in publicationform.image.errors %}
|
|
<div class="error">{{ message }}</div>
|
|
{% endfor %}
|
|
</fieldset>
|
|
|
|
<fieldset class="fileupload-field">
|
|
{{ publicationform.pdf.label }}
|
|
{{ publicationform.pdf }}
|
|
{% for message in publicationform.pdf.errors %}
|
|
<div class="error">{{ message }}</div>
|
|
{% endfor %}
|
|
</fieldset>
|
|
{{ publicationform.submit }}
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|