TODO-2 completed, can remove a subbook from parent
This commit is contained in:
@@ -303,7 +303,8 @@ function AddAuthorToBook(num) {
|
|||||||
</form>
|
</form>
|
||||||
{% else %}
|
{% else %}
|
||||||
<form role="form" class="form col-lg-10" action="{{url_for('remove_sub_book')}}" method="POST">
|
<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" )}}
|
{{ book_form.rem_sub( class="btn btn-outline-danger offset-lg-2 col-lg-3" )}}
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user