Refactor HTML: use d-flex
This commit is contained in:
parent
e90ac224c1
commit
bb588b10d2
|
@ -32,32 +32,20 @@
|
||||||
<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 class="col">
|
<div><!-- lot actions -->
|
||||||
{% if lot and lot.is_temporary %}
|
{% if 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 href="javascript:removeLot()">
|
<a class="me-2" href="javascript:removeLot()">
|
||||||
<i class="bi bi-trash"></i>
|
<i class="bi bi-trash"></i> Remove Lot
|
||||||
Remove Lot
|
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
<a class="me-2" href="javascript:newTrade('user_from')">
|
||||||
</div>
|
<i class="bi bi-plus"></i> Add supplier
|
||||||
<div class="col">
|
|
||||||
{% if lot and lot.is_temporary %}
|
|
||||||
<a href="javascript:newTrade('user_from')">
|
|
||||||
<i class="bi bi-plus"></i>
|
|
||||||
Add supplier
|
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
<div class="col">
|
|
||||||
{% if lot and lot.is_temporary %}
|
|
||||||
<a href="javascript:newTrade('user_to')">
|
<a href="javascript:newTrade('user_to')">
|
||||||
<i class="bi bi-plus"></i>
|
<i class="bi bi-plus"></i> Add receiver
|
||||||
Add receiver
|
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Reference in New Issue