Refactor HTML: use d-flex

This commit is contained in:
Santiago L 2022-03-07 18:28:45 +01:00
parent e90ac224c1
commit bb588b10d2
1 changed files with 17 additions and 29 deletions

View File

@ -32,36 +32,24 @@
<div class="card-body pt-3"> <div class="card-body pt-3">
<!-- Bordered Tabs --> <!-- Bordered Tabs -->
<div class="row"> <div class="d-flex align-items-center justify-content-between">
<div class="col-6"> <h3><a href="{{ url_for('inventory.devices.lot_edit', id=lot.id) }}">{{ lot.name }}</a></h3>
<h3><a href="{{ url_for('inventory.devices.lot_edit', id=lot.id) }}">{{ lot.name }}</a></h3>
</div> <div><!-- lot actions -->
<div class="col"> {% if lot.is_temporary %}
{% if lot and lot.is_temporary %} <span class="d-none" id="activeRemoveLotModal" data-bs-toggle="modal" data-bs-target="#btnRemoveLots"></span>
<span class="d-none" id="activeRemoveLotModal" data-bs-toggle="modal" data-bs-target="#btnRemoveLots"></span> <a class="me-2" href="javascript:removeLot()">
<a href="javascript:removeLot()"> <i class="bi bi-trash"></i> Remove Lot
<i class="bi bi-trash"></i> </a>
Remove Lot <a class="me-2" href="javascript:newTrade('user_from')">
</a> <i class="bi bi-plus"></i> Add supplier
{% endif %} </a>
</div> <a href="javascript:newTrade('user_to')">
<div class="col"> <i class="bi bi-plus"></i> Add receiver
{% if lot and lot.is_temporary %} </a>
<a href="javascript:newTrade('user_from')"> {% endif %}
<i class="bi bi-plus"></i>
Add supplier
</a>
{% endif %}
</div>
<div class="col">
{% if lot and lot.is_temporary %}
<a href="javascript:newTrade('user_to')">
<i class="bi bi-plus"></i>
Add receiver
</a>
{% endif %}
</div>
</div> </div>
</div>
</div> </div>
</div> </div>
{% endif %} {% endif %}