mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Closes #10675: Add max_weight field to track maximum load capacity for racks
This commit is contained in:
@@ -169,6 +169,16 @@
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Maximum Weight</th>
|
||||
<td>
|
||||
{% if object.max_weight %}
|
||||
{{ object.max_weight }} {{ object.get_weight_unit_display }}
|
||||
{% else %}
|
||||
{{ ''|placeholder }}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Total Weight</th>
|
||||
<td>
|
||||
|
@@ -58,10 +58,14 @@
|
||||
</div>
|
||||
<div class="row mb-3">
|
||||
<label class="col col-md-3 col-form-label text-lg-end">Weight</label>
|
||||
<div class="col col-md-6 mb-1">
|
||||
<div class="col col-md-3 mb-1">
|
||||
{{ form.weight }}
|
||||
<div class="form-text">Weight</div>
|
||||
</div>
|
||||
<div class="col col-md-3 mb-1">
|
||||
{{ form.max_weight }}
|
||||
<div class="form-text">Maximum Weight</div>
|
||||
</div>
|
||||
<div class="col col-md-3 mb-1">
|
||||
{{ form.weight_unit }}
|
||||
<div class="form-text">Unit</div>
|
||||
|
Reference in New Issue
Block a user