|
|
@ -21,18 +21,20 @@ |
|
|
|
|
|
|
|
{% endfor %}</ul></p> |
|
|
|
|
|
|
|
<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> |
|
|
|
|
|
|
|
{% if book.file %} |
|
|
|
<button id="myBtn" style= "width: 180px; font-size: 10pt;"><a> Download this {{ book.fileformat }}</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> |
|
|
|
<br> |
|
|
|
<h4><a href="../uploads/{{ book.file }}"> >>>> Link to file <<<<</h4> |
|
|
|
</div></div> |
|
|
|
<span style="font-style: italic;">"{{book.message or 'Happy reading.'}}" </span><br> |
|
|
|
<h4><a href="../uploads/{{ book.file }}"> >>>> Link to file <<<<</h4></a></div> |
|
|
|
</div> |
|
|
|
{% else %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
<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> |
|
|
|
|
|
|
|