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

2
BUGs
View File

@@ -7,5 +7,3 @@ BUG-30: failed to add a book with 2 x same author (need to catch error
BUG-31: series does not have 'series_num', so a book in 2 series, means he ordering is not explicit BUG-31: series does not have 'series_num', so a book in 2 series, means he ordering is not explicit
-> NEED TO display them in order of smallest num_books first -> NEED TO display them in order of smallest num_books first
BUG-39: Loaned to "info box" is below save, not to the left? (or somehow better anyway, it looks pox now)

View File

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