{% extends 'dcim/device/components_base.html' %}
{% load i18n %}

{% block bulk_extra_controls %}
    {{ block.super }}
    {% if perms.dcim.add_modulebay %}
        <div class="btn-group" role="group">
            <a href="{% url 'dcim:modulebay_add' %}?device={{ object.pk }}&return_url={% url 'dcim:device_modulebays' pk=object.pk %}"
               class="btn btn-primary">
                <i class="mdi mdi-plus-thick" aria-hidden="true"></i> {% trans "Add Module Bays" %}
            </a>
        </div>
    {% endif %}
{% endblock bulk_extra_controls %}
