{% extends 'generic/object.html' %}
{% load perms %}
{% load i18n %}

{% block extra_controls %}
    {% if perms.netbox_dhcp.add_option %}
        <div class="dropdown">
            <button id="add-objects" type="button" class="btn btn-primary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
                <i class="mdi mdi-plus-thick" aria-hidden="true"></i> {% trans "Add Object" %}
            </button>
            <ul class="dropdown-menu" aria-labeled-by="add-objects">
                <li><a class="dropdown-item" href="{% url 'plugins:netbox_dhcp:option_add' %}?host_reservation={{ object.pk }}&return_url={% url 'plugins:netbox_dhcp:hostreservation_options' pk=object.pk %}">{% trans "Option" %}</a></li>
            </ul>
        </div>
    {% endif %}
{% endblock %}
