This is the varia library website work in progress.
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.

85 lines
2.3 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>
<table id="publication">
<tbody>
{%if fullpublication["Image"]%}
<tr>
<td colspan="2" class="tdimage">
<img src="{{ url_for('static', filename='images/image-{0}.jpg'.format(publicationID))}}" alt="">
</td>
</tr>
{% endif %}
<tr>
<td>Title of publication</td>
<td>{{ fullpublication["Title"] }}</td>
</tr>
<tr>
<td>Author/Editor</td>
<td>{{ fullpublication["Author"] }}</td>
</tr>
<tr>
<td>Year</td>
<td>{{ fullpublication["Year"] }}</td>
</tr>
<tr>
<td>Custodian</td>
<td>{{ fullpublication["Custodian"] }}</td>
</tr>
<tr>
<td>Fields</td>
<td>{{ fullpublication["Fields"] }}</td>
</tr>
<tr>
<td>Type of publication</td>
<td>{{ fullpublication["Type"] }}</td>
</tr>
<tr>
<td>Publishers</td>
<td>{{ fullpublication["Publishers"] }}</td>
</tr>
<tr>
<td>License</td>
<td>{{ fullpublication["License"] }}</td>
</tr>
<tr>
<td>Highlights</td>
<td><p>{{ fullpublication["Highlights"] }}</p></td>
</tr>
<tr>
<td>Comments</td>
<td><p>{{ fullpublication["Comments"] }}</p></td>
</tr>
<tr>
<td>Currently borrowed by:</td>
<td><p>{{ fullpublication["Borrowed"] }}</p></td>
</tr>
<tr>
<td colspan="2">
<form class="borrow" method="POST" action="/{{ publicationID }}">
{{ borrowform.csrf_token }}
<fieldset class="borrowform-field">
{{ borrowform.borrowed.label }}
{{ borrowform.borrowed }}
{% for message in borrowform.borrowed.errors %}
<div class="error">{{ message }}</div>
{% endfor %}
</fieldset>
<fieldset class="borrowform-field">
{{ borrowform.secret.label }}
{{ borrowform.secret }}
{% for message in borrowform.secret.errors %}
<div class="error">{{ message }}</div>
{% endfor %}
</fieldset>
{{ borrowform.submit }}
<form>
</td>
</tr>
</tbody>
</table>
{% endblock %}