add lot to list erasure
This commit is contained in:
parent
35dd08c9c8
commit
fb430f2138
|
@ -140,11 +140,24 @@
|
||||||
<td>
|
<td>
|
||||||
{% if ac.device.phid() %}
|
{% if ac.device.phid() %}
|
||||||
<a href="{{ url_for('inventory.device_details', id=ac.device.dhid)}}">
|
<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() }}
|
{{ ac.device.serial_number.upper() }}
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% 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() }}
|
{{ ac.device.serial_number.upper() }}
|
||||||
{% endif %}
|
{% 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>
|
||||||
<td>
|
<td>
|
||||||
{% if ac.device.phid() %}
|
{% if ac.device.phid() %}
|
||||||
|
|
Reference in New Issue