Skip to content

Commit c2ccd51

Browse files
committed
fix(templates): Update button styles for consistency
Removed unnecessary "btn-sm" classes and replaced span icons with <i> tags for uniform styling.
1 parent ba9d896 commit c2ccd51

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

netbox_acls/templates/inc/view_tab.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
{% block extra_controls %}
88
{% if perms.netbox_todo.add_accesslist %}
9-
<a href="{% url add_url %}?{{ model_type }}={{ object.pk }}&return_url={{ object.get_absolute_url }}"
10-
class="btn btn-sm btn-primary">
9+
<a href="{% url add_url %}?{{ model_type }}={{ object.pk }}&return_url={{ object.get_absolute_url }}" class="btn btn-primary">
1110
<i class="mdi mdi-plus-thick"></i> Add Access List
1211
</a>
1312
{% endif %}

netbox_acls/templates/netbox_acls/accesslist.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
{% block extra_controls %}
55
{% if perms.netbox_acls.change_policy %}
66
{% if object.type == 'extended' %}
7-
<a href="{% url 'plugins:netbox_acls:aclextendedrule_add' %}?access_list={{ object.pk }}" class="btn btn-sm btn-primary">
7+
<a href="{% url 'plugins:netbox_acls:aclextendedrule_add' %}?access_list={{ object.pk }}" class="btn btn-primary">
88
{% elif object.type == 'standard' %}
9-
<a href="{% url 'plugins:netbox_acls:aclstandardrule_add' %}?access_list={{ object.pk }}" class="btn btn-sm btn-primary">
9+
<a href="{% url 'plugins:netbox_acls:aclstandardrule_add' %}?access_list={{ object.pk }}" class="btn btn-primary">
1010
{% endif %}
11-
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Rule
11+
<i class="mdi mdi-plus-thick" aria-hidden="true"></i> Rule
1212
</a>
1313
{% endif %}
1414
{% endblock extra_controls %}

0 commit comments

Comments
 (0)