mirror of
https://github.com/netbox-community/netbox.git
synced 2026-05-06 22:12:43 +08:00
* #20048 add get_action_url utility function * #20048 add get_action_url utility function * #20048 add get_action_url utility function * #20048 add get_action_url utility function * #20048 add get_action_url utility function * #20048 action_url template tag * #20048 action_url template tag * #20048 fix test * #20048 review feedback * #20048 fix tags
12 lines
488 B
HTML
12 lines
488 B
HTML
{% extends 'generic/object_children.html' %}
|
|
{% load helpers %}
|
|
{% load i18n %}
|
|
|
|
{% block extra_controls %}
|
|
{% if perms.tenancy.add_contactassignment %}
|
|
<a href="{% url 'tenancy:contactassignment_add' %}?object_type={{ object|content_type_id }}&object_id={{ object.pk }}&return_url={% action_url object 'contacts' pk=object.pk %}" class="btn btn-primary">
|
|
<i class="mdi mdi-plus-thick" aria-hidden="true"></i> {% trans "Add a contact" %}
|
|
</a>
|
|
{% endif %}
|
|
{% endblock %}
|