mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-24 08:25:17 -06:00
9654 total weight on devices
This commit is contained in:
parent
e3cc5f9ffd
commit
44e8c35e0c
@ -110,6 +110,31 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% if object.get_total_weight %}
|
||||||
|
<div class="card">
|
||||||
|
<h5 class="card-header">
|
||||||
|
Weight
|
||||||
|
</h5>
|
||||||
|
<div class="card-body">
|
||||||
|
<table class="table table-hover attr-table">
|
||||||
|
<tr>
|
||||||
|
<th scope="row">Device Weight</th>
|
||||||
|
<td>
|
||||||
|
{% if object.device_type.weight %}
|
||||||
|
{{ object.device_type.weight|floatformat }} {{ object.device_type.get_weight_unit_display }}
|
||||||
|
{% else %}
|
||||||
|
{{ ''|placeholder }}
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">Total Weight</th>
|
||||||
|
<td>{{ object.get_total_weight|floatformat }} Kilograms</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% if vc_members %}
|
{% if vc_members %}
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
|
@ -198,7 +198,7 @@
|
|||||||
<th scope="row">Rack Weight</th>
|
<th scope="row">Rack Weight</th>
|
||||||
<td>
|
<td>
|
||||||
{% if object.weight %}
|
{% if object.weight %}
|
||||||
{{ object.weight }}
|
{{ object.weight|floatformat }} {{ object.get_weight_unit_display }}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ ''|placeholder }}
|
{{ ''|placeholder }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -206,7 +206,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">Total Weight</th>
|
<th scope="row">Total Weight</th>
|
||||||
<td>{{ object.get_total_weight }} kg</td>
|
<td>{{ object.get_total_weight|floatformat }} Kilograms</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user