mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
fix circuit termination styles
This commit is contained in:
@ -8,29 +8,27 @@
|
|||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">Termination</h5>
|
<h5 class="card-header">Termination</h5>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="form-group">
|
<div class="form-floating mb-3">
|
||||||
<label class="col-md-3 control-label">Provider</label>
|
<input class="form-control" value="{{ obj.circuit.provider }}" disabled />
|
||||||
<div class="col-md-9">
|
<label>Provider</label>
|
||||||
<p class="form-control-static">{{ obj.circuit.provider }}</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-floating mb-3">
|
||||||
<label class="col-md-3 control-label">Circuit</label>
|
<input class="form-control" value="{{ obj.circuit.cid }}" disabled />
|
||||||
<div class="col-md-9">
|
<label>Circuit</label>
|
||||||
<p class="form-control-static">{{ obj.circuit.cid }}</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-floating mb-3">
|
||||||
<label class="col-md-3 control-label">Termination</label>
|
<input class="form-control" value="{{ form.term_side.value }}" disabled />
|
||||||
<div class="col-md-9">
|
<label>Termination</label>
|
||||||
<p class="form-control-static">{{ form.term_side.value }}</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{% render_field form.mark_connected %}
|
{% render_field form.mark_connected %}
|
||||||
{% with providernetwork_tab_active=form.initial.provider_network %}
|
{% with providernetwork_tab_active=form.initial.provider_network %}
|
||||||
<ul class="nav nav-tabs" role="tablist">
|
<ul class="nav nav-tabs mb-3" role="tablist">
|
||||||
<li role="presentation"{% if not providernetwork_tab_active %} class="active"{% endif %}><a href="#site" role="tab" data-toggle="tab">Site</a></li>
|
<li class="nav-item" role="presentation">
|
||||||
<li role="presentation"{% if providernetwork_tab_active %} class="active"{% endif %}><a href="#providernetwork" role="tab" data-toggle="tab">Provider Network</a></li>
|
<button class="nav-link{% if not providernetwork_tab_active %} active{% endif %}" role="tab" type="button" data-bs-target="#site" data-bs-toggle="tab">Site</button>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item" role="presentation">
|
||||||
|
<button class="nav-link{% if providernetwork_tab_active %} active{% endif %}" role="tab" type="button" data-bs-toggle="tab" data-bs-target="#providernetwork">Provider Network</button>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane{% if not providernetwork_tab_active %} active{% endif %}" id="site">
|
<div class="tab-pane{% if not providernetwork_tab_active %} active{% endif %}" id="site">
|
||||||
|
@ -43,17 +43,19 @@
|
|||||||
<span class="text-success"><i class="mdi mdi-check-bold"></i></span>
|
<span class="text-success"><i class="mdi mdi-check-bold"></i></span>
|
||||||
<span class="text-muted">Marked as connected</span>
|
<span class="text-muted">Marked as connected</span>
|
||||||
{% elif termination.cable %}
|
{% elif termination.cable %}
|
||||||
{% if perms.dcim.delete_cable %}
|
|
||||||
<div class="pull-right">
|
<div class="float-end">
|
||||||
<a href="{% url 'dcim:cable_delete' pk=termination.cable.pk %}?return_url={{ termination.circuit.get_absolute_url }}" title="Remove cable" class="btn btn-danger btn-sm">
|
<a href="{% url 'circuits:circuittermination_trace' pk=termination.pk %}" class="btn btn-primary btn-sm lh-1" title="Trace">
|
||||||
<i class="mdi mdi-ethernet-cable-off" aria-hidden="true"></i> Disconnect
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
<a href="{{ termination.cable.get_absolute_url }}">{{ termination.cable }}</a>
|
|
||||||
<a href="{% url 'circuits:circuittermination_trace' pk=termination.pk %}" class="btn btn-primary btn-sm" title="Trace">
|
|
||||||
<i class="mdi mdi-transit-connection-variant" aria-hidden="true"></i>
|
<i class="mdi mdi-transit-connection-variant" aria-hidden="true"></i>
|
||||||
</a>
|
</a>
|
||||||
|
{% if perms.dcim.delete_cable %}
|
||||||
|
<a href="{% url 'dcim:cable_delete' pk=termination.cable.pk %}?return_url={{ termination.circuit.get_absolute_url }}" title="Remove cable" class="btn btn-danger btn-sm lh-1">
|
||||||
|
<i class="mdi mdi-ethernet-cable-off" aria-hidden="true"></i> Disconnect
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<a href="{{ termination.cable.get_absolute_url }}">{{ termination.cable }}</a>
|
||||||
{% with peer=termination.get_cable_peer %}
|
{% with peer=termination.get_cable_peer %}
|
||||||
to
|
to
|
||||||
{% if peer.device %}
|
{% if peer.device %}
|
||||||
@ -61,11 +63,11 @@
|
|||||||
{% elif peer.circuit %}
|
{% elif peer.circuit %}
|
||||||
<a href="{{ peer.circuit.get_absolute_url }}">{{ peer.circuit }}</a>
|
<a href="{{ peer.circuit.get_absolute_url }}">{{ peer.circuit }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
({{ peer }})
|
<span class="text-muted">{{ peer }}</span>
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if perms.dcim.add_cable %}
|
{% if perms.dcim.add_cable %}
|
||||||
<div class="pull-right">
|
<div class="float-end">
|
||||||
<span class="dropdown">
|
<span class="dropdown">
|
||||||
<button type="button" class="btn btn-success btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<button type="button" class="btn btn-success btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
<span class="mdi mdi-ethernet-cable" aria-hidden="true"></span> Connect
|
<span class="mdi mdi-ethernet-cable" aria-hidden="true"></span> Connect
|
||||||
@ -81,7 +83,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% else %}
|
{% comment %} {% else %} {% endcomment %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>Provider Network</td>
|
<td>Provider Network</td>
|
||||||
<td>
|
<td>
|
||||||
|
Reference in New Issue
Block a user