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' ] %}
|
||||
<div class="container-fluid">
|
||||
<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">
|
||||
{{ book_form.id }}
|
||||
{{ book_form.csrf_token }}
|
||||
@@ -296,19 +296,20 @@ function AddAuthorToBook(num) {
|
||||
{{ hiddens.txt|safe }}
|
||||
</form>
|
||||
{% if books.loan|length %}
|
||||
<div class="col">
|
||||
<div class="card border-primary">
|
||||
<div class="card-header bg-primary text-white">Loaned to</div>
|
||||
<div class="col">
|
||||
<div class="card border-primary">
|
||||
<div class="card-header bg-primary text-white">Loaned to</div>
|
||||
<div class="card-body text-primary">
|
||||
<h5 class="card-title">{{books.loan[0].firstnames}} {{books.loan[0].surname}}</h5>
|
||||
<p class="card-text">
|
||||
When: {{books.loan[0].date_lent}}<br>
|
||||
Contact: {{books.loan[0].contact_details}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div class="card-body">
|
||||
</div class="card-header">
|
||||
</div class="card">
|
||||
</div class="col">
|
||||
{% endif %}
|
||||
</div class="row" id="main-row">
|
||||
|
||||
{% if 'Edit' in page_title %}
|
||||
<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" )}}
|
||||
</form>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div class="form-row">
|
||||
{% endif %}
|
||||
</div class="row">
|
||||
</div class="container">
|
||||
|
||||
{% endblock main_content %}
|
||||
|
||||
Reference in New Issue
Block a user