| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- {% extends 'generic/object.html' %}
- {% load buttons %}
- {% load helpers %}
- {% load perms %}
- {% load plugins %}
- {% load i18n %}
- {% block breadcrumbs %}
- {{ block.super }}
- {% if object.device %}
- <li class="breadcrumb-item"><a href="{% url 'ipam:service_list' %}?device_id={{ object.device.pk }}">{{ object.device }}</a></li>
- {% elif object.virtual_machine %}
- <li class="breadcrumb-item"><a href="{% url 'ipam:service_list' %}?virtual_machine_id={{ object.virtual_machine.pk }}">{{ object.virtual_machine }}</a></li>
- {% endif %}
- {% endblock %}
- {% block content %}
- <div class="row mb-3">
- <div class="col col-12 col-md-6">
- <div class="card">
- <h2 class="card-header">{% trans "Service" %}</h2>
- <table class="table table-hover attr-table">
- <tr>
- <th scope="row">{% trans "Name" %}</th>
- <td>{{ object.name }}</td>
- </tr>
- <tr>
- <th scope="row">{% trans "Parent" %}</th>
- <td>{{ object.parent|linkify }}</td>
- </tr>
- <tr>
- <th scope="row">{% trans "Protocol" %}</th>
- <td>{{ object.get_protocol_display }}</td>
- </tr>
- <tr>
- <th scope="row">{% trans "Ports" %}</th>
- <td>{{ object.port_list }}</td>
- </tr>
- <tr>
- <th scope="row">{% trans "IP Addresses" %}</th>
- <td>
- {% for ipaddress in object.ipaddresses.all %}
- {{ ipaddress|linkify }}<br />
- {% empty %}
- {{ ''|placeholder }}
- {% endfor %}
- </td>
- </tr>
- <tr>
- <th scope="row">{% trans "Description" %}</th>
- <td>{{ object.description|placeholder }}</td>
- </tr>
- </table>
- </div>
- {% plugin_left_page object %}
- </div>
- <div class="col col-12 col-md-6">
- {% include 'inc/panels/custom_fields.html' %}
- {% include 'inc/panels/tags.html' %}
- {% include 'inc/panels/comments.html' %}
- {% plugin_right_page object %}
- </div>
- </div>
- <div class="row mb-3">
- <div class="col col-md-12">
- {% plugin_full_width_page object %}
- </div>
- </div>
- {% endblock %}
|