{% extends "base.html" %} {% load static %} {% block title %}Risk Assessment - {{ object.title }}{% endblock %} {% block content %}

Risk Assessment Details

Assessment Overview

{{ object.get_status_display }}
Title: {{ object.title }}
Assessment ID: {{ object.assessment_id }}
Risk Category: {{ object.get_risk_category_display }}
Department: {{ object.department.name|default:"All Departments" }}
Assessor: {{ object.assessor.get_full_name }}
Assessment Date: {{ object.assessment_date|date:"F d, Y" }}
Review Date: {{ object.review_date|date:"F d, Y"|default:"Not scheduled" }}
Priority: {{ object.get_priority_display }}
Overall Risk Score: {{ object.overall_risk_score|default:0 }}
Risk Level: {{ object.get_risk_level_display }}

Risk Description

{% if object.description %}
{{ object.description|linebreaks }}
{% else %}

No description provided

{% endif %}

Risk Factors

{% if risk_factors %}
{% for factor in risk_factors %}
{{ factor.name }}
Likelihood: {{ factor.likelihood }}/5
Impact: {{ factor.impact }}/5
Risk Score: {{ factor.risk_score }}
{% if factor.description %}
{{ factor.description }}
{% endif %}
{% endfor %}
{% else %}

No risk factors identified

{% endif %}

Mitigation Strategies

{% if object.mitigation_strategies %}
{{ object.mitigation_strategies|linebreaks }}
{% else %}

No mitigation strategies defined

{% endif %}
{% if object.implementation_plan %}

Implementation Plan

{{ object.implementation_plan|linebreaks }}
{% endif %} {% if object.monitoring_plan %}

Monitoring Plan

{{ object.monitoring_plan|linebreaks }}
{% endif %}

Assessment History

{% if assessment_history %}
{% for entry in assessment_history %}
{{ entry.action|title }}
{{ entry.timestamp|date:"M d, Y g:i A" }}

{{ entry.description }}

by {{ entry.user.get_full_name }}
{% endfor %}
{% else %}
No History Available

No assessment history recorded.

{% endif %}
Risk Matrix
{% for i in "54321" %} {% for j in "12345" %} {% endfor %} {% endfor %}
Likelihood
Impact 1 2 3 4 5
{{ i }} {{ i|mul:j }}
Current Risk Score: {{ object.overall_risk_score|default:0 }}
Quick Actions
{% if object.status == 'draft' %} {% endif %} {% if object.status == 'in_review' and user.has_perm:'quality.approve_risk_assessment' %} {% endif %} {% if object.status == 'approved' %} {% endif %}
Related Items
{% if related_incidents %}
Related Incidents
{% for incident in related_incidents %} {% endfor %} {% endif %} {% if related_audits %}
Related Audits
{% for audit in related_audits %} {% endfor %} {% endif %} {% if not related_incidents and not related_audits %}

No related items

{% endif %}
System Information
Assessment ID: {{ object.pk }}
Created: {{ object.created_at|date:"M d, Y g:i A" }}
Last Updated: {{ object.updated_at|date:"M d, Y g:i A" }}
Version: {{ object.version|default:"1.0" }}
{% if object.approved_by %}
Approved By: {{ object.approved_by.get_full_name }}
Approval Date: {{ object.approval_date|date:"M d, Y" }}
{% endif %}
{% endblock %}