diff --git a/primed/cdsa/audit/accessor_audit.py b/primed/cdsa/audit/accessor_audit.py index a042e504..7e1f7804 100644 --- a/primed/cdsa/audit/accessor_audit.py +++ b/primed/cdsa/audit/accessor_audit.py @@ -108,7 +108,7 @@ class SignedAgreementAccessorAuditTable(tables.Table): member = tables.Column(linkify=True) has_access = BooleanIconColumn(show_false_icon=True) note = tables.Column() - # action = tables.TemplateColumn(template_name="dbgap/snippets/dbgap_collaborator_audit_action_button.html") + action = tables.TemplateColumn(template_name="cdsa/snippets/accessor_audit_action_button.html") class Meta: attrs = {"class": "table align-middle"} diff --git a/primed/templates/cdsa/snippets/accessor_audit_action_button.html b/primed/templates/cdsa/snippets/accessor_audit_action_button.html new file mode 100644 index 00000000..2d44b754 --- /dev/null +++ b/primed/templates/cdsa/snippets/accessor_audit_action_button.html @@ -0,0 +1,22 @@ +
+ {% if record.action %} +
+ + {% csrf_token %} + +
+ + {% else %} + — + {% endif %} +