2018-05-20 00:10:01 +02:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block main %}
|
|
|
|
<div class="container">
|
|
|
|
<h1 class="header">{{ book.title }}</h1>
|
2018-06-08 17:09:04 +02:00
|
|
|
<img class="no_cover" id="{{ book.title }}" src="../uploads/cover/{{ book.cover }}" width="180" onerror="if (this.src != '../uploads/cover/{{ book.cover }}') this.src = '../static/img/default_cover.gif';">
|
2018-06-07 23:05:55 +02:00
|
|
|
|
2018-06-08 17:09:04 +02:00
|
|
|
<p>Year published: {{ book.year_published }}</p>
|
2018-05-23 17:50:01 +02:00
|
|
|
<p>Author(s): <ul>{% for author in book.authors %}
|
2018-05-23 14:12:24 +02:00
|
|
|
|
2018-05-23 17:50:01 +02:00
|
|
|
<li><a href="{{url_for('show_author_by_id', id=author.id)}}">{{ author.author_name }}</a> </li>
|
2018-05-23 14:12:24 +02:00
|
|
|
|
2018-05-23 17:50:01 +02:00
|
|
|
{% endfor %}</ul></p>
|
2018-05-23 14:12:24 +02:00
|
|
|
|
2018-06-01 17:20:12 +02:00
|
|
|
<p>Category: {{ book.category }}</p>
|
2018-05-31 20:06:13 +02:00
|
|
|
|
2018-06-08 17:09:04 +02:00
|
|
|
<p>Included in stack(s): <ul>{% for stack in book.stacks %}
|
2018-05-31 18:04:05 +02:00
|
|
|
<li><a href="{{url_for('show_stack_by_id', id=stack.id)}}">{{ stack.stack_name }}</a>
|
2018-06-09 22:05:47 +02:00
|
|
|
<p style="font-size: 10px;"><a href="{{url_for('remove_from_stack', stackid=stack.id, bookid=book.id)}}"> Remove from stack</a></p>
|
2018-06-07 23:05:55 +02:00
|
|
|
|
2018-05-31 18:04:05 +02:00
|
|
|
|
|
|
|
{% endfor %}</ul></p>
|
|
|
|
|
2018-06-09 22:05:47 +02:00
|
|
|
<button id="myBtn" style= "width: 180px; font-size: 10pt;"><a> Download this {{ book.fileformat }}</a></button>
|
|
|
|
<button style= "font-size: 10pt;"> <a href="{{ url_for('edit_book_by_id', id=book.id )}}">edit</a></button>
|
|
|
|
<button style= "font-size: 10pt;"> <a href="{{ url_for('remove_book_by_id', id=book.id)}}">delete</a></button>
|
|
|
|
|
|
|
|
<div id="myModal" class="modal">
|
|
|
|
<div class="modal-content">
|
|
|
|
<span class="close">×</span>
|
|
|
|
<h3>A message from the uploading librarian:</h3>
|
|
|
|
<p style="font-style: italic;">"{{book.message or 'Happy reading.'}}" </p>
|
2018-06-09 15:27:49 +02:00
|
|
|
<br>
|
2018-06-09 22:05:47 +02:00
|
|
|
<h4><a href="../uploads/{{ book.file }}"> >>>> Link to file <<<<</h4>
|
|
|
|
</div></div>
|
2018-05-20 00:10:01 +02:00
|
|
|
|
|
|
|
</div>
|
2018-06-09 22:05:47 +02:00
|
|
|
|
2018-05-20 00:10:01 +02:00
|
|
|
{% endblock %}
|
2018-06-09 22:05:47 +02:00
|
|
|
|
|
|
|
|