mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-23 21:57:47 -06:00
* adds generic tab view template #12110 * Rename view_tab.html and move to generic/ * Fix console ports template * Move bulk operations view resolution to template * Avoid setting default template_name on ObjectChildrenView * Move base_template and table_config context vars to base context * removed bulk_delete_control from templates * refactored bulk_controls view * fixed table_config * renamed object_tab.html to objectchildren_list.html * removed unused import * Refactor template blocks for bulk operation buttons * Rename object children generic template * Move disconnect bulk action into a separate template for device components * Fix cluster devices & VM interfaces views * minor button label change --------- Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
14 lines
533 B
HTML
14 lines
533 B
HTML
{% extends 'dcim/device/components_base.html' %}
|
|
|
|
{% block bulk_extra_controls %}
|
|
{{ block.super }}
|
|
{% if perms.dcim.add_devicebay %}
|
|
<div class="bulk-button-group">
|
|
<a href="{% url 'dcim:devicebay_add' %}?device={{ object.pk }}&return_url={% url 'dcim:device_devicebays' pk=object.pk %}"
|
|
class="btn btn-primary btn-sm">
|
|
<i class="mdi mdi-plus-thick" aria-hidden="true"></i> Add Device Bays
|
|
</a>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock bulk_extra_controls %}
|