105 lines
3.1 KiB
HTML
105 lines
3.1 KiB
HTML
{% extends "base.html" %}
|
|
{% block main %}
|
|
{% include 'user_authorization.html' %}
|
|
<div id="nav" class="menu">
|
|
<div class="dropdown">
|
|
<button><a href="/">All books</a></button>
|
|
</div>
|
|
{% if current_user.is_authenticated %}
|
|
<div class="dropdown">
|
|
<button><a href="/upload">Upload</a></button>
|
|
</div>
|
|
{% endif %}
|
|
<div class="dropdown" style="visibility: hidden">
|
|
<button id="Year" class="dropbtn">Year</button>
|
|
</div>
|
|
</div>
|
|
<div id="publication">
|
|
<table>
|
|
<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>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>File</td>
|
|
<td><a href='files/{{fullpublication["Files"]}}'><p>{{ fullpublication["Files"] }}</p></a></td>
|
|
</tr>
|
|
{% if current_user.is_authenticated %}
|
|
<tr>
|
|
<td>Upload new</td>
|
|
<td>
|
|
<form method="POST" enctype="multipart/form-data" action="/{{ publicationID }}">
|
|
{{ pdf_uploadform.csrf_token }}
|
|
<fieldset class="fileupload-field">
|
|
{{ pdf_uploadform.pdf.label }}
|
|
{{ pdf_uploadform.pdf }}
|
|
{% for message in pdf_uploadform.pdf.errors %}
|
|
<div class="error">{{ message }}</div>
|
|
{% endfor %}
|
|
</fieldset>
|
|
{{ pdf_uploadform.submit }}
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Upload new</td>
|
|
<td>
|
|
<form method="POST" enctype="multipart/form-data" action="/{{ publicationID }}">
|
|
{{ image_uploadform.csrf_token }}
|
|
<fieldset class="fileupload-field">
|
|
{{ image_uploadform.image.label }}
|
|
{{ image_uploadform.image }}
|
|
{% for message in image_uploadform.image.errors %}
|
|
<div class="error">{{ message }}</div>
|
|
{% endfor %}
|
|
</fieldset>
|
|
{{ image_uploadform.submit }}
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endblock %}
|