TODO-2 completed, can remove a subbook from parent

This commit is contained in:
2021-01-02 19:13:28 +11:00
parent 6d97df44e4
commit e625b19451

View File

@@ -303,7 +303,8 @@ function AddAuthorToBook(num) {
</form>
{% else %}
<form role="form" class="form col-lg-10" action="{{url_for('remove_sub_book')}}" method="POST">
<input type="hidden" name="rem_sub_parent_id" value="{{books.id}}">
<input type="hidden" name="rem_sub_sub_book_id" value="{{books.id}}">
<input type="hidden" name="rem_sub_parent_id" value="{{b.parent[0].id}}">
{{ book_form.rem_sub( class="btn btn-outline-danger offset-lg-2 col-lg-3" )}}
</form>
{% endif %}