2022-03-03 15:16:23 -05:00
|
|
|
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 %}
|
2022-08-30 09:53:38 -04:00
|
|
|
{{ value.get_full_name|placeholder }}
|
2022-03-03 15:16:23 -05:00
|
|
|
"""
|
|
|
|
|
|
|
|
OBJECTCHANGE_OBJECT = """
|
2022-08-29 14:53:28 -07:00
|
|
|
{% if value and value.get_absolute_url %}
|
|
|
|
<a href="{{ value.get_absolute_url }}">{{ record.object_repr }}</a>
|
2022-03-03 15:16:23 -05:00
|
|
|
{% else %}
|
|
|
|
{{ record.object_repr }}
|
|
|
|
{% endif %}
|
|
|
|
"""
|
|
|
|
|
|
|
|
OBJECTCHANGE_REQUEST_ID = """
|
|
|
|
<a href="{% url 'extras:objectchange_list' %}?request_id={{ value }}">{{ value }}</a>
|
|
|
|
"""
|