mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
4eb5e90ccc
* adds contact tabs #11599 * fixed lint issues * changes as per review * changes as per review * replaces generic object template with base template
28 lines
889 B
HTML
28 lines
889 B
HTML
{% extends base_template %}
|
|
{% load helpers %}
|
|
|
|
{% block extra_controls %}
|
|
{% if perms.tenancy.add_contactassignment %}
|
|
<a href="{% url 'tenancy:contactassignment_add' %}?content_type={{ object|content_type_id }}&object_id={{ object.pk }}&return_url={{ object.get_absolute_url }}" class="btn btn-primary btn-sm">
|
|
<i class="mdi mdi-plus-thick" aria-hidden="true"></i> Add a contact
|
|
</a>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% include 'inc/table_controls_htmx.html' with table_modal="ContactTable_config" %}
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
<div class="card">
|
|
<div class="card-body" id="object_list">
|
|
{% include 'htmx/table.html' %}
|
|
</div>
|
|
</div>
|
|
</form>
|
|
{% endblock content %}
|
|
|
|
{% block modals %}
|
|
{{ block.super }}
|
|
{% table_config_form table %}
|
|
{% endblock modals %}
|