fix up new regression on add subbook button after fixing loans div bug
This commit is contained in:
@@ -126,7 +126,7 @@ function AddAuthorToBook(num) {
|
|||||||
{% set keys = [ 'title', 'author', 'publisher', 'genre', 'owned', 'covertype', 'condition', 'year_published', 'rating', 'notes', 'blurb' ] %}
|
{% set keys = [ 'title', 'author', 'publisher', 'genre', 'owned', 'covertype', 'condition', 'year_published', 'rating', 'notes', 'blurb' ] %}
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="form-row col-lg-10"><h3 class="offset-lg-2">{{page_title}}</h3></div>
|
<div class="form-row col-lg-10"><h3 class="offset-lg-2">{{page_title}}</h3></div>
|
||||||
<div class="row">
|
<div class="row" id="main-row">
|
||||||
<form role="form" class="form col-lg-10" action="" method="POST">
|
<form role="form" class="form col-lg-10" action="" method="POST">
|
||||||
{{ book_form.id }}
|
{{ book_form.id }}
|
||||||
{{ book_form.csrf_token }}
|
{{ book_form.csrf_token }}
|
||||||
@@ -296,19 +296,20 @@ function AddAuthorToBook(num) {
|
|||||||
{{ hiddens.txt|safe }}
|
{{ hiddens.txt|safe }}
|
||||||
</form>
|
</form>
|
||||||
{% if books.loan|length %}
|
{% if books.loan|length %}
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="card border-primary">
|
<div class="card border-primary">
|
||||||
<div class="card-header bg-primary text-white">Loaned to</div>
|
<div class="card-header bg-primary text-white">Loaned to</div>
|
||||||
<div class="card-body text-primary">
|
<div class="card-body text-primary">
|
||||||
<h5 class="card-title">{{books.loan[0].firstnames}} {{books.loan[0].surname}}</h5>
|
<h5 class="card-title">{{books.loan[0].firstnames}} {{books.loan[0].surname}}</h5>
|
||||||
<p class="card-text">
|
<p class="card-text">
|
||||||
When: {{books.loan[0].date_lent}}<br>
|
When: {{books.loan[0].date_lent}}<br>
|
||||||
Contact: {{books.loan[0].contact_details}}
|
Contact: {{books.loan[0].contact_details}}
|
||||||
</div>
|
</div class="card-body">
|
||||||
</div>
|
</div class="card-header">
|
||||||
</div>
|
</div class="card">
|
||||||
</div>
|
</div class="col">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div class="row" id="main-row">
|
||||||
|
|
||||||
{% if 'Edit' in page_title %}
|
{% if 'Edit' in page_title %}
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
@@ -324,9 +325,8 @@ function AddAuthorToBook(num) {
|
|||||||
{{ 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 %}
|
||||||
</div>
|
</div class="form-row">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div class="row">
|
|
||||||
</div class="container">
|
</div class="container">
|
||||||
|
|
||||||
{% endblock main_content %}
|
{% endblock main_content %}
|
||||||
|
|||||||
Reference in New Issue
Block a user