actually, no need for a publisher + button, so removed it, made the add button for authors be at the right, is more logical / neater

This commit is contained in:
2020-11-22 12:07:48 +11:00
parent fc12536a83
commit afb132820b

View File

@@ -27,11 +27,6 @@
{% elif key == "publisher" %}
<div class="col-lg-10">
<div class="form-row input-group" style="margin-left:0px; margin-right:0px;">
<div class="input-group-prepend">
<button class="btn btn-outline-success" type="button">
<a style="color:inherit" href="{{url_for(key, id=-1)}}"><i class="fas fa-plus"></i></a>
</button>
</div>
<div class="input-group-prepend">
<button class="btn btn-outline-primary" type="button">
<a style="color:inherit" href="{{url_for(key, id=books[key][0].id)}}"><i class="far fa-edit"></i></a>
@@ -55,17 +50,13 @@
{% set cnt = namespace(idx=0) %}
{% for objects in books[key] %}
<div class="col input-group" style="padding-left:0px;padding-right:0px">
<div class="input-group-prepend">
{% if cnt.idx == 0 %}
<button class="btn btn-outline-success" type="button">
<a style="color:inherit" href="{{url_for(key, id=-1)}}"><i class="fas fa-plus"></i></a>
</button>
{% else %}
{% if cnt.idx > 0 %}
<div class="input-group-prepend">
<button class="btn btn-outline-danger" type="button">
<a style="color:inherit" href="{{url_for(key, id=-1)}}"><i class="fas fa-minus"></i></a>
</button>
{% endif %}
</div>
</div>
{% endif %}
<div class="input-group-prepend">
<button class="btn btn-outline-primary" type="button">
<a style="color:inherit" href="{{url_for(key, id=books[key][cnt.idx].id)}}"><i class="far fa-edit"></i></a>
@@ -84,6 +75,11 @@
</div class="col">
{% set cnt.idx = cnt.idx+1 %}
{% endfor %}
<div class="input-group-append">
<button class="btn btn-outline-success" type="button">
<a style="color:inherit" href="{{url_for(key, id=-1)}}"><i class="fas fa-plus"></i></a>
</button>
</div>
</div class="form-row">
</div class="col-lg-10">
{% else %}