mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
* Enable HTMX boosting * Refactor HTMX properties for tables * Fix dashboard object list widget * Disable scrolling to page content * Fix initialization of TomSelect dropdowns after HTMX loading * Replace formaction properties with hx-post * Fix quick search field on object list view * Reinitialize copy-to-clipboard buttons upon HTMX load * Disable scrolling effect for intra-page navigation * Introduce user preference for toggling HTMX navigation * Enable HTMX navigation only when selected by user * Pass htmx_navigation context * Fix display of confirmation form when deleting an object * Disable HTMX boosting for rack elevation SVG downloads * Fix dyanmic form rendering * Introduce htmx_boost template tag; enable HTMX for user menu * Use out-of-band sap to update footer stamp * Fix display of toasts after form submission * Fix user preference selection * Misc cleanup * Rename render_partial() to htmx_partial() * Add docstring to htmx_boost template tag * Disable HTMX for user preferences form to force a full page refresh on changes
29 lines
1.2 KiB
HTML
29 lines
1.2 KiB
HTML
{% extends 'dcim/device/components_base.html' %}
|
|
{% load helpers %}
|
|
{% load i18n %}
|
|
|
|
{% 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"
|
|
{% formaction %}="{% url bulk_disconnect_view %}?return_url={{ return_url }}"
|
|
class="btn btn-outline-danger">
|
|
<span class="mdi mdi-ethernet-cable-off" aria-hidden="true"></span> {% trans "Disconnect" %}
|
|
</button>
|
|
{% endif %}
|
|
{% endwith %}
|
|
{% endblock bulk_delete_controls %}
|
|
|
|
{% block bulk_extra_controls %}
|
|
{{ block.super }}
|
|
{% if perms.dcim.add_powerport %}
|
|
<div class="btn-group" role="group">
|
|
<a href="{% url 'dcim:powerport_add' %}?device={{ object.pk }}&return_url={% url 'dcim:device_powerports' pk=object.pk %}"
|
|
class="btn btn-primary">
|
|
<i class="mdi mdi-plus-thick" aria-hidden="true"></i> {% trans "Add Power Port" %}
|
|
</a>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock bulk_extra_controls %}
|