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

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