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

Closes #5225: CircuitTermination port_speed is now optional

This commit is contained in:
Jeremy Stretch
2020-10-09 14:06:24 -04:00
parent 96650b0216
commit 30778a9c40
9 changed files with 40 additions and 18 deletions

View File

@@ -47,7 +47,7 @@
<div class="panel-heading"><strong>Termination Details</strong></div>
<div class="panel-body">
<div class="form-group">
<label class="col-md-3 control-label required" for="id_port_speed">{{ form.port_speed.label }}</label>
<label class="col-md-3 control-label" for="id_port_speed">{{ form.port_speed.label }}</label>
<div class="col-md-9">
<div class="input-group">
{{ form.port_speed }}

View File

@@ -83,11 +83,13 @@
<tr>
<td>Speed</td>
<td>
{% if termination.upstream_speed %}
{% if termination.port_speed and termination.upstream_speed %}
<i class="fa fa-arrow-down" title="Downstream"></i> {{ termination.port_speed|humanize_speed }} &nbsp;
<i class="fa fa-arrow-up" title="Upstream"></i> {{ termination.upstream_speed|humanize_speed }}
{% else %}
{% elif termination.port_speed %}
{{ termination.port_speed|humanize_speed }}
{% else %}
<span class="text-muted">&mdash;</span>
{% endif %}
</td>
</tr>