2021-03-07 19:55:47 +01:00
|
|
|
{% 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>
|
|
|
|
<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-03-07 19:55:47 +01:00
|
|
|
|
2021-04-05 21:42:43 +02:00
|
|
|
<h2 id="uploadformtitle">Upload a new book</h2>
|
|
|
|
<form method="POST" action="{{ url_for('upload') }}">
|
|
|
|
{{ uploadform.csrf_token }}
|
2021-03-07 19:55:47 +01:00
|
|
|
<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 %}
|
2021-03-07 19:55:47 +01:00
|
|
|
</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 %}
|
2021-03-07 19:55:47 +01:00
|
|
|
</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 %}
|
2021-03-07 19:55:47 +01:00
|
|
|
</fieldset>
|
2021-04-05 21:42:43 +02:00
|
|
|
|
2021-03-07 19:55:47 +01:00
|
|
|
<fieldset class="uploadform-field">
|
|
|
|
{{ uploadform.custodian.label }}
|
2021-04-05 21:42:43 +02:00
|
|
|
{{ uploadform.custodian }}
|
2021-03-07 19:55:47 +01:00
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<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 %}
|
2021-03-07 19:55:47 +01:00
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset class="uploadform-field">
|
|
|
|
{{ uploadform.publishers.label }}
|
2021-04-05 21:42:43 +02:00
|
|
|
{{ uploadform.publishers }}
|
2021-03-07 19:55:47 +01:00
|
|
|
</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 }}
|
2021-04-05 21:42:43 +02:00
|
|
|
{{ uploadform.highlights }}
|
2021-03-07 19:55:47 +01:00
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset class="uploadform-field">
|
|
|
|
{{ uploadform.comments.label }}
|
|
|
|
{{ uploadform.comments }}
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<fieldset class="uploadform-field">
|
|
|
|
{{ uploadform.borrowed.label }}
|
|
|
|
{{ uploadform.borrowed }}
|
|
|
|
</fieldset>
|
|
|
|
|
2021-04-17 21:15:45 +02:00
|
|
|
<fieldset class="borrowform-field">
|
|
|
|
{{ uploadform.secret.label }}
|
|
|
|
{{ uploadform.secret }}
|
|
|
|
{% for message in uploadform.secret.errors %}
|
|
|
|
<div class="error">{{ message }}</div>
|
|
|
|
{% endfor %}
|
|
|
|
</fieldset>
|
|
|
|
|
2021-03-07 19:55:47 +01:00
|
|
|
{{ uploadform.submit }}
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|