fixed button ordering, which also fixed bug with page_title for book.html not being used

This commit is contained in:
2020-12-31 12:03:29 +11:00
parent 08f1550068
commit 5a92f967be
2 changed files with 11 additions and 6 deletions

View File

@@ -125,6 +125,7 @@ function AddAuthorToBook(num) {
{% set keys = [ 'title', 'author', 'publisher', 'genre', 'owned', 'covertype', 'condition', 'year_published', 'rating', 'notes', 'blurb' ] %}
<div class="container-fluid">
<div class="form-row col-lg-10"><h3 class="offset-lg-2">{{page_title}}</h3></div>
<div class="row">
<form role="form" class="form col-lg-10" action="" method="POST">
{{ book_form.id }}
@@ -286,13 +287,15 @@ function AddAuthorToBook(num) {
<div id="spacer"><br></div>
<div class="form-row">
<div class="form-row col mx-0">
{{ book_form.delete( class="btn btn-outline-danger offset-lg-2 col-lg-2" )}}
{{ book_form.submit( class="btn btn-primary col-lg-2" )}}
{{ book_form.submit( class="btn btn-primary offset-lg-2 col-lg-2" )}}
{% if 'Edit' in page_title %}
{{ book_form.delete( class="btn btn-outline-danger col-lg-2" )}}
{% endif %}
</div class="form-row">
</div class="form-row">
{{ hiddens.txt|safe }}
</form>
{% if b.parent|length == 0 %}
{% if b.parent|length == 0 and 'Edit' in page_title %}
<form role="form" class="form col-lg-10" action="{{url_for('new_book')}}" method="POST">
<input type="hidden" name="add_sub_parent_id" value="{{books.id}}">
{{ book_form.add_sub( class="btn btn-outline-success offset-lg-2 col-lg-2" )}}