mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-19 05:21:55 -06:00
Use button role names instead of color shades
This commit is contained in:
parent
347ea4ca98
commit
ebe7779f40
@ -4,7 +4,7 @@
|
|||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="float-end">
|
<div class="float-end">
|
||||||
{% if not termination and perms.circuits.add_circuittermination %}
|
{% if not termination and perms.circuits.add_circuittermination %}
|
||||||
<a href="{% url 'circuits:circuittermination_add' circuit=object.pk %}?term_side={{ side }}" class="btn btn-sm btn-green-500 lh-1">
|
<a href="{% url 'circuits:circuittermination_add' circuit=object.pk %}?term_side={{ side }}" class="btn btn-sm btn-success lh-1">
|
||||||
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Add
|
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Add
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -12,12 +12,12 @@
|
|||||||
<a href="{% url 'circuits:circuittermination_edit' pk=termination.pk %}" class="btn btn-sm btn-yellow-500 lh-1">
|
<a href="{% url 'circuits:circuittermination_edit' pk=termination.pk %}" class="btn btn-sm btn-yellow-500 lh-1">
|
||||||
<span class="mdi mdi-pencil" aria-hidden="true"></span> Edit
|
<span class="mdi mdi-pencil" aria-hidden="true"></span> Edit
|
||||||
</a>
|
</a>
|
||||||
<a href="{% url 'circuits:circuit_terminations_swap' pk=object.pk %}" class="btn btn-sm btn-blue-500 lh-1">
|
<a href="{% url 'circuits:circuit_terminations_swap' pk=object.pk %}" class="btn btn-sm btn-primary lh-1">
|
||||||
<span class="mdi mdi-swap-vertical" aria-hidden="true"></span> Swap
|
<span class="mdi mdi-swap-vertical" aria-hidden="true"></span> Swap
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if termination and perms.circuits.delete_circuittermination %}
|
{% if termination and perms.circuits.delete_circuittermination %}
|
||||||
<a href="{% url 'circuits:circuittermination_delete' pk=termination.pk %}?return_url={{ object.get_absolute_url }}" class="btn btn-sm btn-red-500 lh-1">
|
<a href="{% url 'circuits:circuittermination_delete' pk=termination.pk %}?return_url={{ object.get_absolute_url }}" class="btn btn-sm btn-danger lh-1">
|
||||||
<span class="mdi mdi-trash-can-outline" aria-hidden="true"></span> Delete
|
<span class="mdi mdi-trash-can-outline" aria-hidden="true"></span> Delete
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
{% block extra_controls %}
|
{% block extra_controls %}
|
||||||
{% if perms.dcim.change_device %}
|
{% if perms.dcim.change_device %}
|
||||||
<div class="dropdown m-1">
|
<div class="dropdown m-1">
|
||||||
<button id="add-device-components" type="button" class="btn btn-sm btn-blue-500 dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
|
<button id="add-device-components" type="button" class="btn btn-sm btn-primary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
|
||||||
<i class="mdi mdi-plus-thick" aria-hidden="true"></i> Add Components
|
<i class="mdi mdi-plus-thick" aria-hidden="true"></i> Add Components
|
||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu" aria-labeled-by="add-device-components">
|
<ul class="dropdown-menu" aria-labeled-by="add-device-components">
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
{% block extra_controls %}
|
{% block extra_controls %}
|
||||||
{% if perms.dcim.add_interface and not object.is_virtual %}
|
{% if perms.dcim.add_interface and not object.is_virtual %}
|
||||||
<a href="{% url 'dcim:interface_add' %}?device={{ object.device.pk }}&parent={{ object.pk }}&return_url={{ object.get_absolute_url }}" class="btn btn-sm btn-green-400 m-1">
|
<a href="{% url 'dcim:interface_add' %}?device={{ object.device.pk }}&parent={{ object.pk }}&return_url={{ object.get_absolute_url }}" class="btn btn-sm btn-success m-1">
|
||||||
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Add Child Interface
|
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Add Child Interface
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -22,10 +22,10 @@
|
|||||||
<i class="mdi mdi-file-image-outline"></i>
|
<i class="mdi mdi-file-image-outline"></i>
|
||||||
Hide Images
|
Hide Images
|
||||||
</button>
|
</button>
|
||||||
<a {% if prev_rack %}href="{% url 'dcim:rack' pk=prev_rack.pk %}{% endif %}" class="btn btn-sm btn-blue-500 m-1{% if not prev_rack %} disabled{% endif %}">
|
<a {% if prev_rack %}href="{% url 'dcim:rack' pk=prev_rack.pk %}{% endif %}" class="btn btn-sm btn-primary m-1{% if not prev_rack %} disabled{% endif %}">
|
||||||
<i class="mdi mdi-chevron-left" aria-hidden="true"></i> Previous
|
<i class="mdi mdi-chevron-left" aria-hidden="true"></i> Previous
|
||||||
</a>
|
</a>
|
||||||
<a {% if next_rack %}href="{% url 'dcim:rack' pk=next_rack.pk %}{% endif %}" class="btn btn-sm btn-blue-500 m-1{% if not next_rack %} disabled{% endif %}">
|
<a {% if next_rack %}href="{% url 'dcim:rack' pk=next_rack.pk %}{% endif %}" class="btn btn-sm btn-primary m-1{% if not next_rack %} disabled{% endif %}">
|
||||||
<i class="mdi mdi-chevron-right" aria-hidden="true"></i> Next
|
<i class="mdi mdi-chevron-right" aria-hidden="true"></i> Next
|
||||||
</a>
|
</a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{% block extra_controls %}
|
{% block extra_controls %}
|
||||||
{% if perms.ipam.add_ipaddress and active_tab == 'ip-addresses' and object.first_available_ip %}
|
{% if perms.ipam.add_ipaddress and active_tab == 'ip-addresses' and object.first_available_ip %}
|
||||||
<a href="{% url 'ipam:ipaddress_add' %}?address={{ object.first_available_ip }}&vrf={{ object.vrf.pk }}&tenant_group={{ object.tenant.group.pk }}&tenant={{ object.tenant.pk }}" class="btn btn-sm btn-blue-500 m-1">
|
<a href="{% url 'ipam:ipaddress_add' %}?address={{ object.first_available_ip }}&vrf={{ object.vrf.pk }}&tenant_group={{ object.tenant.group.pk }}&tenant={{ object.tenant.pk }}" class="btn btn-sm btn-primary m-1">
|
||||||
<i class="mdi mdi-plus-thick" aria-hidden="true"></i> Add IP Address
|
<i class="mdi mdi-plus-thick" aria-hidden="true"></i> Add IP Address
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{% block extra_controls %}
|
{% block extra_controls %}
|
||||||
{% if perms.ipam.add_ipaddress and active_tab == 'ip-addresses' and first_available_ip %}
|
{% if perms.ipam.add_ipaddress and active_tab == 'ip-addresses' and first_available_ip %}
|
||||||
<a href="{% url 'ipam:ipaddress_add' %}?address={{ first_available_ip }}&vrf={{ object.vrf.pk }}&tenant_group={{ object.tenant.group.pk }}&tenant={{ object.tenant.pk }}" class="btn btn-sm btn-blue-500 m-1">
|
<a href="{% url 'ipam:ipaddress_add' %}?address={{ first_available_ip }}&vrf={{ object.vrf.pk }}&tenant_group={{ object.tenant.group.pk }}&tenant={{ object.tenant.pk }}" class="btn btn-sm btn-primary m-1">
|
||||||
<i class="mdi mdi-plus-thick" aria-hidden="true"></i> Add IP Address
|
<i class="mdi mdi-plus-thick" aria-hidden="true"></i> Add IP Address
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -13,12 +13,12 @@
|
|||||||
|
|
||||||
{% block extra_controls %}
|
{% block extra_controls %}
|
||||||
{% if perms.virtualization.change_cluster and perms.virtualization.add_virtualmachine %}
|
{% if perms.virtualization.change_cluster and perms.virtualization.add_virtualmachine %}
|
||||||
<a href="{% url 'virtualization:virtualmachine_add' %}?cluster_id={{ object.pk }}&return_url={{ object.get_absolute_url }}" class="btn btn-sm btn-blue-500 m-1">
|
<a href="{% url 'virtualization:virtualmachine_add' %}?cluster_id={{ object.pk }}&return_url={{ object.get_absolute_url }}" class="btn btn-sm btn-primary m-1">
|
||||||
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Add Virtual Machine
|
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Add Virtual Machine
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if perms.virtualization.change_cluster %}
|
{% if perms.virtualization.change_cluster %}
|
||||||
<a href="{% url 'virtualization:cluster_add_devices' pk=object.pk %}?site_id={{ object.site.pk }}&return_url={{ object.get_absolute_url }}" class="btn btn-blue-500 btn-sm m-1">
|
<a href="{% url 'virtualization:cluster_add_devices' pk=object.pk %}?site_id={{ object.site.pk }}&return_url={{ object.get_absolute_url }}" class="btn btn-primary btn-sm m-1">
|
||||||
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Assign Device
|
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Assign Device
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
{% block extra_controls %}
|
{% block extra_controls %}
|
||||||
{% if perms.virtualization.add_vminterface %}
|
{% if perms.virtualization.add_vminterface %}
|
||||||
<a href="{% url 'virtualization:vminterface_add' %}?virtual_machine={{ object.pk }}&return_url={% url 'virtualization:virtualmachine_interfaces' pk=object.pk %}" class="btn btn-sm btn-blue-500 m-1">
|
<a href="{% url 'virtualization:vminterface_add' %}?virtual_machine={{ object.pk }}&return_url={% url 'virtualization:virtualmachine_interfaces' pk=object.pk %}" class="btn btn-sm btn-primary m-1">
|
||||||
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Add Interfaces
|
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Add Interfaces
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<div class="d-flex flex-shrink-1 m-1">
|
<div class="d-flex flex-shrink-1 m-1">
|
||||||
<a href="{{ add_url }}" type="button" class="btn btn-sm btn-green-500">
|
<a href="{{ add_url }}" type="button" class="btn btn-sm btn-success">
|
||||||
<i class="mdi mdi-plus-thick"></i>
|
<i class="mdi mdi-plus-thick"></i>
|
||||||
Add
|
Add
|
||||||
</a>
|
</a>
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
<a href="{{ url }}" class="btn btn-sm btn-green-400 m-1" role="button">
|
<a href="{{ url }}" class="btn btn-sm btn-success m-1" role="button">
|
||||||
<i class="mdi mdi-content-copy" aria-hidden="true"></i> Clone
|
<i class="mdi mdi-content-copy" aria-hidden="true"></i> Clone
|
||||||
</a>
|
</a>
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
<a href="{{ url }}" class="btn btn-sm btn-red-500 m-1" role="button">
|
<a href="{{ url }}" class="btn btn-sm btn-danger m-1" role="button">
|
||||||
<span class="mdi mdi-trash-can-outline" aria-hidden="true"></span> Delete
|
<span class="mdi mdi-trash-can-outline" aria-hidden="true"></span> Delete
|
||||||
</a>
|
</a>
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
<a href="{{ url }}" class="btn btn-sm btn-yellow-500 m-1" role="button">
|
<a href="{{ url }}" class="btn btn-sm btn-warning m-1" role="button">
|
||||||
<span class="mdi mdi-pencil" aria-hidden="true"></span> Edit
|
<span class="mdi mdi-pencil" aria-hidden="true"></span> Edit
|
||||||
</a>
|
</a>
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
<a href="{% url import_url %}" type="button" class="btn btn-sm btn-cyan-400 m-1">
|
<a href="{% url import_url %}" type="button" class="btn btn-sm btn-info m-1">
|
||||||
<i class="mdi mdi-upload"></i> Import
|
<i class="mdi mdi-upload"></i> Import
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user