1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00
Files
netbox-community-netbox/netbox/templates/ipam/service.html

86 lines
2.9 KiB
HTML
Raw Normal View History

2021-03-02 15:58:33 -05:00
{% extends 'generic/object.html' %}
{% load buttons %}
{% load helpers %}
2021-03-02 15:58:33 -05:00
{% load perms %}
{% load plugins %}
2021-03-02 15:58:33 -05:00
{% block breadcrumbs %}
2021-04-18 11:35:42 -07:00
<li class="breadcrumb-item"><a href="{% url 'ipam:service_list' %}">Services</a></li>
<li class="breadcrumb-item"><a href="{{ object.parent.get_absolute_url }}">{{ object.parent }}</a></li>
<li class="breadcrumb-item">{{ object }}</li>
2021-03-02 15:58:33 -05:00
{% endblock %}
2021-04-18 11:35:42 -07:00
{% block controls %}
{% plugin_buttons object %}
<div class="container mb-2 mx-0">
<div class="d-flex flex-wrap justify-content-end">
{% block extra_controls %}{% endblock %}
2021-03-02 15:58:33 -05:00
{% if request.user|can_change:object %}
{% edit_button object %}
{% endif %}
{% if request.user|can_delete:object %}
{% delete_button object %}
{% endif %}
2021-04-18 11:35:42 -07:00
</div>
</div>
2021-03-02 15:58:33 -05:00
{% endblock %}
{% block content %}
2021-04-18 11:35:42 -07:00
<div class="row mb-3">
2021-04-30 15:55:37 -07:00
<div class="col col-md-6">
2021-04-18 11:35:42 -07:00
<div class="card">
<h5 class="card-header">
Service
</h5>
<div class="card-body">
<table class="table table-hover attr-table">
<tr>
<th scope="row">Name</th>
<td>{{ object.name }}</td>
</tr>
<tr>
<th scope="row">Parent</th>
<td>
<a href="{{ object.parent.get_absolute_url }}">{{ object.parent }}</a>
</td>
</tr>
<tr>
<th scope="row">Protocol</th>
<td>{{ object.get_protocol_display }}</td>
</tr>
<tr>
<th scope="row">Ports</th>
<td>{{ object.port_list }}</td>
</tr>
<tr>
<th scope="row">IP Addresses</th>
<td>
{% for ipaddress in object.ipaddresses.all %}
<a href="{{ ipaddress.get_absolute_url }}">{{ ipaddress }}</a><br />
{% empty %}
<span class="text-muted">None</span>
{% endfor %}
</td>
</tr>
<tr>
<th scope="row">Description</th>
<td>{{ object.description|placeholder }}</td>
</tr>
</table>
</div>
</div>
2020-11-19 13:53:37 -05:00
{% include 'inc/custom_fields_panel.html' %}
{% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='ipam:service_list' %}
{% plugin_left_page object %}
</div>
2021-04-30 15:55:37 -07:00
<div class="col col-md-6">
{% plugin_right_page object %}
</div>
</div>
2021-04-18 11:35:42 -07:00
<div class="row mb-3">
2021-04-30 15:55:37 -07:00
<div class="col col-md-12">
{% plugin_full_width_page object %}
</div>
</div>
{% endblock %}