remove lot in top

This commit is contained in:
Cayo Puigdefabregas 2022-02-28 13:05:36 +01:00
parent 560d9fae05
commit 9a95587cf3
1 changed files with 28 additions and 2 deletions

View File

@ -33,9 +33,35 @@
<div class="card-body pt-3"> <div class="card-body pt-3">
<!-- Bordered Tabs --> <!-- Bordered Tabs -->
<div class="col-12"> <div class="row">
<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>
<div class="col">
{% if lot and lot.is_temporary and not lot.devices %}
<a href="javascript:void()" class="" data-bs-toggle="modal" data-bs-target="#btnRemoveLots">
<i class="bi bi-trash"></i>
Remove Lot
</a>
{% endif %}
</div>
<div class="col">
{% if lot and lot.is_temporary %}
<a href="javascript:void()" class="dropdown-item" data-bs-toggle="modal" data-bs-target="#addingLotModal">
<i class="bi bi-plus"></i>
Add selected Devices to a lot
</a>
{% endif %}
</div>
<div class="col">
{% if lot and lot.is_temporary %}
<a href="javascript:void()" class="dropdown-item" data-bs-toggle="modal" data-bs-target="#removeLotModal">
<i class="bi bi-x"></i>
Remove selected devices from a lot
</a>
{% endif %}
</div>
</div>
</div> </div>
</div> </div>
{% endif %} {% endif %}