2018-06-03 23:33:16 +02:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block main %}
|
|
|
|
<div class="container">
|
|
|
|
|
|
|
|
<div> Chosen book:
|
|
|
|
|
|
|
|
<h1 class="header">{{ book.title }}</h1>
|
2018-06-07 19:10:56 +02:00
|
|
|
<img class="no_cover" id="{{ book.title }}" src="../uploads/cover/{{ book.cover }}" width="150" onerror="if (this.src != '../static/img/{{ book.cover }}') this.src = '../static/img/default_cover.gif';">
|
2018-06-03 23:33:16 +02:00
|
|
|
|
|
|
|
</div>
|
|
|
|
<p>These are all the stacks that have been built so far.</p>
|
2018-06-04 23:40:12 +02:00
|
|
|
{% from "_formhelpers.html" import render_field %}
|
|
|
|
<form method="POST">
|
|
|
|
<div class="search"> {{ render_field(add_form.select_stack) }} </div>
|
|
|
|
<button type="submit" class="button" value="Stack" name="add_book">Add to stack</button>
|
|
|
|
</form>
|
2018-06-03 23:33:16 +02:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|