{% extends './subnet/base.html' %}
{% load i18n %}
{% load plugins %}

{% block content %}
    <div class="row">
        <div class="col col-md-6">
            <div class="card">
                <h5 class="card-header">{% trans "Subnet" %}</h5>
                <table class="table table-hover attr-table">
                    {% include './inc/name_description_fields.html' %}
                    <tr>
                        <th scope="row">{% trans "Weight" %}</th>
                        <td>{{ object.weight }}</td>
                    </tr>
                    <tr>
                        <th scope="row">{% trans "Subnet ID" %}</th>
                        <td>{{ object.subnet_id|placeholder }}</td>
                    </tr>
                    <tr>
                        <th scope="row">{% trans "Address Family" %}</th>
                        <td>IPv{{ object.family }}</td>
                    </tr>
                    {% if object.dhcp_server %}
                        <tr>
                            <th scope="row">{% trans "DHCP Server" %}</th>
                            <td>{{ object.dhcp_server|linkify }}</td>
                        </tr>
                    {% elif object.shared_network %}
                        <tr>
                            <th scope="row">{% trans "Shared Network" %}</th>
                            <td>{{ object.shared_network|linkify }}</td>
                        </tr>
                    {% endif %}
                    <tr>
                        <th scope="row">{% trans "Prefix" %}</th>
                        <td>{{ object.prefix|linkify }}</td>
                    </tr>
                </table>
            </div>
            {% include './inc/client_class_card.html' %}
            {% include './inc/network_card.html' %}
            {% include './inc/bootp_card.html' %}
            {% include './inc/lifetime_card.html' %}
            {% include 'inc/panels/comments.html' %}
            {% include 'inc/panels/custom_fields.html' %}
            {% plugin_left_page object %}
        </div>
        <div class="col col-md-6">
            {% include './inc/lease_card.html' %}
            {% include './inc/ddns_update_card.html' %}
            {% include 'inc/panels/tags.html' %}
            {% plugin_right_page object %}
        </div>
    </div>
    <div class="row">
        <div class="col col-md-12">
            {% plugin_full_width_page object %}
        </div>
    </div>
{% endblock %}
