{% load render_table from django_tables2 %}
{% load perms %}
{% load i18n %}

{% if perms.netbox_dhcp.view_pool %}
    {% if pools %}
        <div class="card">
            {% if pools.rows|length == 1 %}
                <h2 class="card-header">{% trans "DHCP Pool" %}</h2>
            {% else %}
                <h2 class="card-header">{% trans "DHCP Pools" %}</h2>
            {% endif %}
            <div class="table-responsive">
                {% render_table pools 'inc/table.html' %}
            </div>
        </div>
    {% endif %}
{% endif %}
