Introduce panel template for services

This commit is contained in:
jeremystretch
2022-11-16 16:52:35 -05:00
parent 216d8d24b8
commit f411c4f439
5 changed files with 53 additions and 90 deletions

View File

@@ -144,29 +144,7 @@
</table>
</div>
</div>
<div class="card">
<h5 class="card-header">
Services
</h5>
<div class="card-body">
{% if services %}
<table class="table table-hover">
{% for service in services %}
{% include 'ipam/inc/service.html' %}
{% endfor %}
</table>
{% else %}
<span class="text-muted">None</span>
{% endif %}
</div>
{% if perms.ipam.add_service %}
<div class="card-footer text-end noprint">
<a href="{% url 'ipam:service_add' %}?virtual_machine={{ object.pk }}" class="btn btn-sm btn-primary">
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> Assign Service
</a>
</div>
{% endif %}
</div>
{% include 'inc/panels/services.html' %}
{% include 'inc/panels/contacts.html' %}
{% plugin_right_page object %}
</div>