add lot to list erasure

This commit is contained in:
Cayo Puigdefabregas 2022-11-21 15:14:02 +01:00
parent 35dd08c9c8
commit fb430f2138
1 changed files with 13 additions and 0 deletions

View File

@ -140,11 +140,24 @@
<td>
{% if ac.device.phid() %}
<a href="{{ url_for('inventory.device_details', id=ac.device.dhid)}}">
{% if ac.device.get_type_logo() %}
<i class="{{ ac.device.get_type_logo() }}" title="{{ ac.device.type }}"></i>
{% endif %}
{{ ac.device.serial_number.upper() }}
</a>
{% else %}
{% if ac.device.get_type_logo() %}
<i class="{{ ac.device.get_type_logo() }}" title="{{ ac.device.type }}"></i>
{% endif %}
{{ ac.device.serial_number.upper() }}
{% endif %}
{% if ac.device.lots | length > 0 %}
<h6 class="d-inline">
{% for lot in ac.device.get_lots_for_template() %}
<span class="badge rounded-pill bg-light text-dark">{{ lot }}</span>
{% endfor %}
</h6>
{% endif %}
</td>
<td>
{% if ac.device.phid() %}