1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Added length and length_unit fields to Cable

This commit is contained in:
Jeremy Stretch
2018-10-26 10:28:25 -04:00
parent 2d90fc608e
commit 6bea8cc546
9 changed files with 97 additions and 8 deletions

View File

@@ -48,7 +48,17 @@
<tr>
<td>Color</td>
<td>
<label class="label" style="background-color: #{{ cable.color }}">{{ cable.color }}</label>
<span style="background-color: #{{ cable.color }}">{{ cable.color }}A</span>
</td>
</tr>
<tr>
<td>Length</td>
<td>
{% if cable.length %}
{{ cable.length }} {{ cable.get_length_unit_display }}
{% else %}
<span class="text-muted">N/A</span>
{% endif %}
</td>
</tr>
</table>

View File

@@ -7,6 +7,6 @@
</tr>
<tr>
<td>Component</td>
<td>{{ termination_a }}</td>
<td>{{ termination }}</td>
</tr>
</table>