{% extends 'generic/object_detail.html' %}
{% load helpers %}

{% block extra_breadcrumbs %}
            <li>{{ object.parent|hyperlinked_object }}</li>
{% endblock extra_breadcrumbs %}

{% block content_left_page %}
        <div class="panel panel-default">
            <div class="panel-heading">
                <strong>Service</strong>
            </div>
            <table class="table table-hover panel-body attr-table">
                <tr>
                    <td>Name</td>
                    <td>{{ object.name }}</td>
                </tr>
                <tr>
                    <td>Parent</td>
                    <td>{{ object.parent|hyperlinked_object }}</td>
                </tr>
                <tr>
                    <td>Protocol</td>
                    <td>{{ object.get_protocol_display }}</td>
                </tr>
                <tr>
                    <td>Ports</td>
                    <td>{{ object.port_list }}</td>
                </tr>
                <tr>
                    <td>IP Addresses</td>
                    <td>
                        {% for ipaddress in object.ip_addresses.all %}
                            {{ ipaddress|hyperlinked_object }}<br>
                        {% empty %}
                            <span class="text-muted">None</span>
                        {% endfor %}
                    </td>
                </tr>
                <tr>
                    <td>Description</td>
                    <td>{{ object.description|placeholder }}</td>
                </tr>
            </table>
        </div>
{% endblock content_left_page %}
