{% extends "base.html" %} {% load i18n static patient_tags %} {% block title %}{% trans "Audit Log" %} - {% patient_name note.patient %}{% endblock %} {% block content %}

{% trans "Note Audit Log" %}

{% trans "Back to Note" %}
{% include "includes/messages.html" %}
{% trans "Note Information" %}
{% trans "Patient" %}:
{% patient_name note.patient %}
{% trans "Category" %}:
{{ note.get_category_display }}
{% trans "Date" %}:
{{ note.note_date|date:"Y-m-d H:i" }}
{% trans "Status" %}:
{% if note.is_locked %} {% trans "Locked" %} {% else %} {% trans "Unlocked" %} {% endif %}
{% trans "Audit Trail" %}
{% if audit_logs %}
{% for log in audit_logs %}
{{ log.get_action_display }}
{{ log.timestamp|date:"Y-m-d H:i:s" }}

{% trans "User" %}: {{ log.user.get_full_name }}

{% if log.changes %}
{% trans "Changes" %}:
{{ log.changes }}
{% endif %}
{% endfor %}
{% else %}

{% trans "No audit logs found for this note." %}

{% endif %}
{% endblock %} {% block css %} {% endblock %}