You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
XPPL/app/templates/edit_book_detail.html

43 lines
1.4 KiB
HTML

7 years ago
{% extends 'base.html' %}
{% block main %}
<div class="container">
<a href="{{ url_for('show_book_by_id', id=book.id )}}">back</a>
<form method="POST" action="{{ url_for('edit_book_by_id', id=book.id )}}">
{{ form.csrf_token }}
<div class="form-group"><h1 class="header">{{ form.title.label }} {{ form.title(size=20, class="form-control") }}</h1></div>
7 years ago
<object class="no_cover" data="../../static/img/default_cover.png" type="image/png" width="150">
7 years ago
<img src="../../uploads/cover/{{ book.cover }}" width="200">
7 years ago
</object>
7 years ago
<br> <br>
<div data-toggle="fieldset" id="phone-fieldset">
{{ form.author.label }} <button type="button" data-toggle="fieldset-add-row"
data-target="#phone-fieldset">+</button>
<table>
<tr>
<th></th>
<th></th>
</tr>
{% for author in form.author %}
<tr data-toggle="fieldset-entry">
<td>{{ author.author_name }}</td>
<td><button type="button" data-toggle="fieldset-remove-row" id="phone-{{loop.index0}}-remove">-</button></td>
</tr>
{% endfor %}
</table>
</div>
7 years ago
<div class="form-group">
{{ form.category.label }} {{ form.category(size=20, class="form-control") }}
</div>
7 years ago
<br>
<button type="submit" class="btn btn-primary">Update</button>
</form>
</div>
{% endblock %}