Refactor HTML: use d-flex

This commit is contained in:
Santiago L 2022-03-07 18:28:45 +01:00
parent e90ac224c1
commit bb588b10d2

View file

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