Added changelog links for organizational models

This commit is contained in:
Jeremy Stretch
2018-06-20 14:54:04 -04:00
parent d04b1dc304
commit 51bb7cee5c
7 changed files with 57 additions and 6 deletions

View File

@@ -6,6 +6,9 @@ from utilities.tables import BaseTable, ToggleColumn
from .models import Tenant, TenantGroup
TENANTGROUP_ACTIONS = """
<a href="{% url 'tenancy:tenantgroup_changelog' slug=record.slug %}" class="btn btn-default btn-xs" title="Changelog">
<i class="fa fa-history"></i>
</a>
{% if perms.tenancy.change_tenantgroup %}
<a href="{% url 'tenancy:tenantgroup_edit' slug=record.slug %}" class="btn btn-xs btn-warning"><i class="glyphicon glyphicon-pencil" aria-hidden="true"></i></a>
{% endif %}