Skip to content

Commit 2bfb9f4

Browse files
authored
Fixes #19617: Inconsistent styling of Connect buttons (#19682)
1 parent dda0a55 commit 2bfb9f4

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

netbox/templates/circuits/inc/circuit_termination_fields.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</div>
4646
{% elif perms.dcim.add_cable %}
4747
<div class="dropdown">
48-
<button type="button" class="btn btn-success dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
48+
<button type="button" class="btn btn-primary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
4949
<span class="mdi mdi-ethernet-cable" aria-hidden="true"></span> {% trans "Connect" %}
5050
</button>
5151
<ul class="dropdown-menu">

netbox/templates/dcim/consoleport.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ <h2 class="card-header">{% trans "Connection" %}</h2>
6565
{% trans "Not Connected" %}
6666
{% if perms.dcim.add_cable %}
6767
<div class="dropdown float-end">
68-
<button type="button" class="btn btn-primary btn-sm dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
68+
<button type="button" class="btn btn-primary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
6969
<span class="mdi mdi-ethernet-cable" aria-hidden="true"></span> {% trans "Connect" %}
7070
</button>
7171
<ul class="dropdown-menu dropdown-menu-end">

netbox/templates/dcim/consoleserverport.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ <h2 class="card-header">{% trans "Connection" %}</h2>
6565
{% trans "Not Connected" %}
6666
{% if perms.dcim.add_cable %}
6767
<div class="dropdown float-end">
68-
<button type="button" class="btn btn-primary btn-sm dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
68+
<button type="button" class="btn btn-primary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
6969
<span class="mdi mdi-ethernet-cable" aria-hidden="true"></span> {% trans "Connect" %}
7070
</button>
7171
<ul class="dropdown-menu dropdown-menu-end">

netbox/templates/dcim/powerfeed.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,6 @@ <h2 class="card-header">{% trans "Connection" %}</h2>
118118
{% else %}
119119
<div class="card-body text-muted">
120120
{% trans "Not connected" %}
121-
</div>
122-
{% endif %}
123-
{% if not object.mark_connected and not object.cable %}
124-
<div class="card-footer">
125121
{% if perms.dcim.add_cable %}
126122
<a href="{% url 'dcim:cable_add' %}?a_terminations_type=dcim.powerfeed&a_terminations={{ object.pk }}&b_terminations_type=dcim.powerport&return_url={{ object.get_absolute_url }}" class="btn btn-primary float-end">
127123
<i class="mdi mdi-ethernet-cable" aria-hidden="true"></i> {% trans "Connect" %}

0 commit comments

Comments
 (0)