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

{% block content %}
    <div class="row">
        <div class="col col-md-6">
            <div class="card">
                <h5 class="card-header">{% trans "DHCP Cluster" %}</h5>
                <table class="table table-hover attr-table">
                    {% include './inc/name_description_fields.html' %}
                    <tr>
                        <th scope="row">{% trans "Status" %}</th>
                        <td>{% badge object.get_status_display bg_color=object.get_status_color %}</td>
                    </tr>
                </table>
            </div>
            {% include 'inc/panels/custom_fields.html' %}
            {% include 'inc/panels/comments.html' %}
            {% plugin_left_page object %}
        </div>
        <div class="col col-md-6">
            {% if object.dhcp_servers.exists %}
            <div class="card">
                <h5 class="card-header">{% trans "DHCP Servers" %}</h5>
                <table class="table table-hover attr-table">
                    {% for dhcp_server in object.dhcp_servers.all %}
                    <tr>
                        <td>{{ dhcp_server|linkify }}</td>
                    </tr>
                    {% endfor %}
                </table>
            </div>
            {% endif %}
            {% 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 %}
