{% extends 'generic/object_list.html' %}

{% block title %}ModuleType Imports{% endblock %}

{% block extra_controls %}
    <div class="pull-right noprint">
        {% if perms.netbox_metatype_importer.add_metadevicetype %}
            <form method="post">
                {% csrf_token %}
                <button type="submit" name="_load"
                        formaction="{% url 'plugins:netbox_metatype_importer:metamoduletype_load' %}?return_url={% url 'plugins:netbox_metatype_importer:metamoduletype_list' %}"
                        class="btn btn-primary btn-sm">
                    <span class="mdi mdi-download" aria-hidden="true"></span> Load
                </button>
            </form>
        {% endif %}
    </div>
{% endblock %}
{% block bulk_buttons %}
    {% if perms.netbox_metatype_importer.add_metadevicetype %}
        <button type="submit" name="_edit" formaction="

                {% url 'plugins:netbox_metatype_importer:metamoduletype_import' %}{% if request.GET %}?{{ request.GET.urlencode }}{% endif %}"
                class="btn btn-warning btn-sm">
            <span class="mdi mdi-upload" aria-hidden="true"></span> Import Selected
        </button>
    {% endif %}
{% endblock %}