{% extends 'generic/object_children.html' %}
{% load i18n %}

{% block extra_controls %}
    {% if perms.dcim.add_rackreservation %}
        <a href="{% url 'dcim:rackreservation_add' %}?rack={{ object.pk }}&return_url={% url 'dcim:rack_reservations' pk=object.pk %}"
           class="btn btn-primary">
            <i class="mdi mdi-plus-thick" aria-hidden="true"></i> {% trans "Add reservation" %}
        </a>
    {% endif %}
{% endblock extra_controls %}
