You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
115 lines
3.1 KiB
115 lines
3.1 KiB
{% extends "base.html" %}
|
|
{% block main %}
|
|
<div id="nav" class="container">
|
|
<button id="leftmostbtn"><a href="/">All books</a></button>
|
|
<button><a href="/upload">Upload</a></button>
|
|
<div class="dropdown" style="visibility: hidden">
|
|
<button id="Year" class="dropbtn">Year</button>
|
|
</div>
|
|
</div>
|
|
<div id="uploadform">
|
|
|
|
{% for message in uploadform.uploadpublication.errors %}
|
|
<div>{{ message }}</div>
|
|
{% endfor %}
|
|
|
|
{% for message in uploadform.author.errors %}
|
|
<div>{{ message }}</div>
|
|
{% endfor %}
|
|
|
|
<h2 id="uploadformtitle">Upload a new book</h2>
|
|
<form method="POST" enctype="multipart/form-data" action="{{ url_for('upload') }}">
|
|
{{ uploadform.csrf_token }}
|
|
<fieldset class="uploadform-field">
|
|
{{ uploadform.uploadpublication.label }}
|
|
{{ uploadform.uploadpublication }}
|
|
{% for message in uploadform.uploadpublication.errors %}
|
|
<div class="error">{{ message }}</div>
|
|
{% endfor %}
|
|
</fieldset>
|
|
|
|
<fieldset class="uploadform-field">
|
|
{{ uploadform.author.label }}
|
|
{{ uploadform.author }}
|
|
{% for message in uploadform.author.errors %}
|
|
<div class="error">{{ message }}</div>
|
|
{% endfor %}
|
|
</fieldset>
|
|
|
|
<fieldset class="uploadform-field">
|
|
{{ uploadform.year.label }}
|
|
{{ uploadform.year }}
|
|
{% for message in uploadform.year.errors %}
|
|
<div class="error">{{ message }}</div>
|
|
{% endfor %}
|
|
</fieldset>
|
|
|
|
<fieldset class="uploadform-field">
|
|
{{ uploadform.custodian.label }}
|
|
{{ uploadform.custodian }}
|
|
</fieldset>
|
|
|
|
<fieldset class="uploadform-field">
|
|
{{ uploadform.fields.label }}
|
|
{{ uploadform.fields }}
|
|
</fieldset>
|
|
|
|
<fieldset class="uploadform-field">
|
|
{{ uploadform.type.label }}
|
|
{{ uploadform.type }}
|
|
{% for message in uploadform.type.errors %}
|
|
<div class="error">{{ message }}</div>
|
|
{% endfor %}
|
|
</fieldset>
|
|
|
|
<fieldset class="uploadform-field">
|
|
{{ uploadform.publishers.label }}
|
|
{{ uploadform.publishers }}
|
|
</fieldset>
|
|
|
|
<fieldset class="uploadform-field">
|
|
{{ uploadform.license.label }}
|
|
{{ uploadform.license }}
|
|
</fieldset>
|
|
|
|
<fieldset class="uploadform-field">
|
|
{{ uploadform.licenseshort.label }}
|
|
{{ uploadform.licenseshort }}
|
|
</fieldset>
|
|
|
|
<fieldset class="uploadform-field">
|
|
{{ uploadform.highlights.label }}
|
|
{{ uploadform.highlights }}
|
|
</fieldset>
|
|
|
|
<fieldset class="uploadform-field">
|
|
{{ uploadform.comments.label }}
|
|
{{ uploadform.comments }}
|
|
</fieldset>
|
|
|
|
<fieldset class="uploadform-field">
|
|
{{ uploadform.borrowed.label }}
|
|
{{ uploadform.borrowed }}
|
|
</fieldset>
|
|
|
|
<fieldset class="fileupload-field">
|
|
{{ uploadform.image.label }}
|
|
{{ uploadform.image }}
|
|
{% for message in uploadform.image.errors %}
|
|
<div class="error">{{ message }}</div>
|
|
{% endfor %}
|
|
</fieldset>
|
|
|
|
<fieldset class="uploadform-field">
|
|
{{ uploadform.secret.label }}
|
|
{{ uploadform.secret }}
|
|
{% for message in uploadform.secret.errors %}
|
|
<div class="error">{{ message }}</div>
|
|
{% endfor %}
|
|
</fieldset>
|
|
|
|
{{ uploadform.submit }}
|
|
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|
|
|