mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
26 lines
914 B
Python
26 lines
914 B
Python
CONFIGCONTEXT_ACTIONS = """
|
|
{% if perms.extras.change_configcontext %}
|
|
<a href="{% url 'extras:configcontext_edit' pk=record.pk %}" class="btn btn-sm btn-warning"><i class="mdi mdi-pencil" aria-hidden="true"></i></a>
|
|
{% endif %}
|
|
{% if perms.extras.delete_configcontext %}
|
|
<a href="{% url 'extras:configcontext_delete' pk=record.pk %}" class="btn btn-sm btn-danger"><i class="mdi mdi-trash-can-outline" aria-hidden="true"></i></a>
|
|
{% endif %}
|
|
"""
|
|
|
|
OBJECTCHANGE_FULL_NAME = """
|
|
{% load helpers %}
|
|
{{ record.user.get_full_name|placeholder }}
|
|
"""
|
|
|
|
OBJECTCHANGE_OBJECT = """
|
|
{% if value.changed_object and value.changed_object.get_absolute_url %}
|
|
<a href="{{ value.changed_object.get_absolute_url }}">{{ record.object_repr }}</a>
|
|
{% else %}
|
|
{{ record.object_repr }}
|
|
{% endif %}
|
|
"""
|
|
|
|
OBJECTCHANGE_REQUEST_ID = """
|
|
<a href="{% url 'extras:objectchange_list' %}?request_id={{ value }}">{{ value }}</a>
|
|
"""
|