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

Add contact/role assignment tables

This commit is contained in:
jeremystretch
2021-10-18 15:30:28 -04:00
parent f193f0d3f9
commit faf1e6a43d
4 changed files with 56 additions and 7 deletions

View File

@@ -46,6 +46,12 @@
<td>Address</td>
<td>{{ object.address|linebreaksbr|placeholder }}</td>
</tr>
<tr>
<th scope="row">Assignments</th>
<td>
<a href="{% url 'tenancy:contact_list' %}?contact_id={{ object.pk }}">{{ assignment_count }}</a>
</td>
</tr>
</table>
</div>
</div>
@@ -60,6 +66,13 @@
</div>
<div class="row">
<div class="col col-md-12">
<div class="card">
<h5 class="card-header">Assignments</h5>
<div class="card-body">
{% include 'inc/table.html' with table=contacts_table %}
</div>
</div>
{% include 'inc/paginator.html' with paginator=contacts_table.paginator page=contacts_table.page %}
{% plugin_full_width_page object %}
</div>
</div>

View File

@@ -21,6 +21,12 @@
<th scope="row">Description</th>
<td>{{ object.description|placeholder }}</td>
</tr>
<tr>
<th scope="row">Assignments</th>
<td>
<a href="{% url 'tenancy:contact_list' %}?role={{ object.slug }}">{{ assignment_count }}</a>
</td>
</tr>
</table>
</div>
</div>