fixed BUG-39 (loan card in wrong spot, now fixed)

This commit is contained in:
2023-07-05 21:12:48 +10:00
parent 5554656171
commit 5a81afd3d2
2 changed files with 14 additions and 4 deletions

View File

@@ -203,7 +203,12 @@ function AddAuthorToBook(num) {
{% set keys = [ 'title', 'bals', 'publisher', 'genre', 'owned', 'covertype', 'condition', 'year_published', 'rating', 'notes', 'blurb' ] %}
<div class="container-fluid">
<div class="form-row"><h3 class="offset-2">{{page_title}}</h3></div>
<div class="row" id="main-row">
{% if books.loan|length %}
<div class="row" id="loan-row">
<div class="col-10" id="main-row">
{% else %}
<div class="col-12" id="main-row">
{% endif %}
<form role="form" class="form" action="" method="POST">
{{ book_form.id }}
{{ book_form.csrf_token }}
@@ -390,6 +395,7 @@ function AddAuthorToBook(num) {
</div class="form-row">
{{ hiddens.txt|safe }}
</form>
</div class="row" id="main-row">
{% if books.loan|length %}
<div class="col">
<div class="card border-primary">
@@ -404,10 +410,13 @@ function AddAuthorToBook(num) {
</div class="card">
</div class="col">
{% endif %}
</div class="row" id="main-row">
{% if 'Edit' in page_title %}
{% if books.loan|length %}
<div class="form-row col-10">
{% else %}
<div class="form-row">
{% endif %}
{% if b.parent|length == 0 %}
<form role="form" class="form" action="{{url_for('new_book')}}" method="POST">
<input type="hidden" name="add_sub_parent_id" value="{{books.id}}">
@@ -423,6 +432,9 @@ function AddAuthorToBook(num) {
</div class="form-row">
</div class="row" id="main-row">
{% endif %}
{% if books.loan|length %}
</div class="loan-row">
{% endif %}
</div class="container">
{% endblock main_content %}