2023-08-09 23:46:03 +05:30
|
|
|
{% extends 'dcim/device/components_base.html' %}
|
2020-11-13 15:00:12 -05:00
|
|
|
{% load helpers %}
|
2023-07-29 03:30:25 +07:00
|
|
|
{% load i18n %}
|
2020-11-13 15:00:12 -05:00
|
|
|
|
2023-08-09 23:46:03 +05:30
|
|
|
{% block bulk_delete_controls %}
|
|
|
|
{{ block.super }}
|
|
|
|
{% with bulk_disconnect_view=child_model|validated_viewname:"bulk_disconnect" %}
|
|
|
|
{% if 'bulk_disconnect' in actions and bulk_disconnect_view %}
|
|
|
|
<button type="submit" name="_disconnect"
|
2024-03-28 11:51:38 -04:00
|
|
|
{% formaction %}="{% url bulk_disconnect_view %}?return_url={{ return_url }}"
|
2024-01-17 16:25:42 -05:00
|
|
|
class="btn btn-outline-danger">
|
2023-08-09 15:31:21 -04:00
|
|
|
<span class="mdi mdi-ethernet-cable-off" aria-hidden="true"></span> {% trans "Disconnect" %}
|
2022-08-16 09:49:51 -04:00
|
|
|
</button>
|
|
|
|
{% endif %}
|
2023-08-09 23:46:03 +05:30
|
|
|
{% endwith %}
|
|
|
|
{% endblock bulk_delete_controls %}
|
|
|
|
|
|
|
|
{% block bulk_extra_controls %}
|
|
|
|
{{ block.super }}
|
|
|
|
{% if perms.dcim.add_frontport %}
|
2024-01-17 16:25:42 -05:00
|
|
|
<div class="btn-group" role="group">
|
2023-08-09 23:46:03 +05:30
|
|
|
<a href="{% url 'dcim:frontport_add' %}?device={{ object.pk }}&return_url={% url 'dcim:device_frontports' pk=object.pk %}"
|
2024-01-17 16:25:42 -05:00
|
|
|
class="btn btn-primary">
|
2023-08-09 15:31:21 -04:00
|
|
|
<i class="mdi mdi-plus-thick" aria-hidden="true"></i> {% trans "Add Front Ports" %}
|
2023-08-09 23:46:03 +05:30
|
|
|
</a>
|
2021-07-15 00:31:12 -07:00
|
|
|
</div>
|
2023-08-09 23:46:03 +05:30
|
|
|
{% endif %}
|
2023-08-09 15:31:21 -04:00
|
|
|
{% endblock bulk_extra_controls %}
|