="submit" name="_edit" formaction="{% url 'dcim:modulebay_bulk_edit' %}?parent_device={{ object.pk }}&return_url={{ request.path }}" class="btn btn-warning btn-xs">
                        <span class="mdi mdi-pencil" aria-hidden="true"></span> Edit
                    </button>
                {% endif %}
                {% if perms.dcim.delete_modulebay %}
                    <button type="submit" formaction="{% url 'dcim:modulebay_bulk_delete' %}?return_url={{ request.path }}" class="btn btn-danger btn-x