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

{% block content %}
    <div class="row">
        <div class="col col-md-6">
            <div class="card">
                <h5 class="card-header">{% trans "Option" %}</h5>
                <table class="table table-hover attr-table">
                    {% if object.description %}
                    <tr>
                        <th scope="row">{% trans "Description" %}</th>
                        <td style="word-break:break-all;">{{ object.description }}</td>
                    </tr>
                    <tr>
                        <th scope="row">{% trans "Weight" %}</th>
                        <td>{{ object.weight }}</td>
                    </tr>
                    {% endif %}
                    <tr>
                        <th scope="row">{% trans "Address Family" %}</th>
                        <td>{{ object.definition.get_family_display }}</td>
                    </tr>
                    <tr>
                        <th scope="row">{% trans "Space" %}</th>
                        <td>{{ object.definition.space }}</td>
                    </tr>
                    <tr>
                        <th scope="row">{% trans "Name" %}</th>
                        <td>{{ object.definition.name }}</td>
                    </tr>
                    <tr>
                        <th scope="row">{% trans "Code" %}</th>
                        <td>{{ object.definition.code }}</td>
                    </tr>
                    <tr>
                        <th scope="row">{% trans "Data" %}</th>
                        <td>{{ object.data }}</td>
                    </tr>
                    <tr>
                        <th scope="row">{% trans "Weight" %}</th>
                        <td>{{ object.definition.weight }}</td>
                    </tr>
                    <tr>
                        <th scope="row">{% trans "CSV Format" %}</th>
                        <td>{% null_checkmark object.csv_format %}</td>
                    </tr>
                    <tr>
                        <th scope="row">{% trans "Send Option" %}</th>
                        <td>{{ object.get_send_option_display }}</td>
                    </tr>
                    <tr>
                        <th scope="row">{% trans "Definition" %}</th>
                        <td>{{ object.definition|linkify }}</td>
                    </tr>
                </table>
            </div>
            <div class="card">
                <h5 class="card-header">{% trans "Assigned Object" %}</h5>
                <table class="table table-hover attr-table">
                    <tr>
                        <th scope="row">{% trans "Name" %}</th>
                        <td>{{ object.assigned_object|linkify }}</td>
                    </tr>
                    <tr>
                        <th scope="row">{% trans "Type" %}</th>
                        <td>{{ object.assigned_object_type.name }}</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">
            {% include './inc/client_class_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 %}
