mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-06 20:17:29 -06:00
Closes #9832: Add mounting_depth field to rack model
This commit is contained in:
committed by
Jeremy Stretch
parent
dbe66596f9
commit
d773f4e62a
@@ -129,7 +129,7 @@
|
||||
<th scope="row">Outer Width</th>
|
||||
<td>
|
||||
{% if object.outer_width %}
|
||||
<span>{{ object.outer_width }} {{ object.get_outer_unit_display }}</span>
|
||||
{{ object.outer_width }} {{ object.get_outer_unit_display }}
|
||||
{% else %}
|
||||
{{ ''|placeholder }}
|
||||
{% endif %}
|
||||
@@ -139,7 +139,17 @@
|
||||
<th scope="row">Outer Depth</th>
|
||||
<td>
|
||||
{% if object.outer_depth %}
|
||||
<span>{{ object.outer_depth }} {{ object.get_outer_unit_display }}</span>
|
||||
{{ object.outer_depth }} {{ object.get_outer_unit_display }}
|
||||
{% else %}
|
||||
{{ ''|placeholder }}
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Mounting Depth</th>
|
||||
<td>
|
||||
{% if object.mounting_depth %}
|
||||
{{ object.mounting_depth }} Millimeters
|
||||
{% else %}
|
||||
{{ ''|placeholder }}
|
||||
{% endif %}
|
||||
|
||||
@@ -55,6 +55,7 @@
|
||||
<div class="form-text">Unit</div>
|
||||
</div>
|
||||
</div>
|
||||
{% render_field form.mounting_depth %}
|
||||
{% render_field form.desc_units %}
|
||||
</div>
|
||||
<div class="field-group my-5">
|
||||
|
||||
Reference in New Issue
Block a user