feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
{% extends "base.html" %}
|
2025-09-10 10:49:14 +02:00
|
|
|
|
{% load i18n risk_extras %}
|
2025-09-11 15:30:42 +02:00
|
|
|
|
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
{% block crumbs %}
|
2025-09-10 13:44:03 +02:00
|
|
|
|
<li><a href="{% url 'risks:list_risks' %}">{% trans "Risk analysis" %}</a></li>
|
2025-09-11 15:30:42 +02:00
|
|
|
|
<li><a href="{% url 'risks:show_risk' risk.id %}">{% trans "Risk" %}: {{ risk.title }}</a></li>
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
{% endblock %}
|
|
|
|
|
{% block content %}
|
2025-09-10 13:44:03 +02:00
|
|
|
|
|
2025-09-11 15:30:42 +02:00
|
|
|
|
<!-- ERP-style tabs under breadcrumb -->
|
|
|
|
|
<div class="erp-tabs">
|
|
|
|
|
<a class="is-active" data-tab="overview">{% trans "Overview" %}</a>
|
|
|
|
|
<a data-tab="measures">{% trans "Measures" %}</a>
|
|
|
|
|
<a data-tab="incidents">{% trans "Incidents" %}</a>
|
|
|
|
|
<a data-tab="history">{% trans "History" %}</a>
|
2025-09-12 13:04:04 +02:00
|
|
|
|
<!-- Action Icons -->
|
|
|
|
|
<div class="buttons">
|
|
|
|
|
<a href="{% url 'admin:risks_risk_change' risk.pk %}" class="button is-small is-warning" title="{% trans 'Edit Risk' %}">
|
2025-09-15 11:06:33 +02:00
|
|
|
|
<span class="icon"><i class="fas fa-edit"></i> </span> {% trans 'Edit Risk' %}
|
2025-09-12 13:04:04 +02:00
|
|
|
|
</a>
|
|
|
|
|
<a href="{% url 'admin:risks_risk_delete' risk.pk %}" class="button is-small is-danger" title="{% trans 'Delete Risk' %}">
|
2025-09-15 11:06:33 +02:00
|
|
|
|
<span class="icon"><i class="fas fa-trash"></i></span> {% trans 'Delete Risk' %}
|
|
|
|
|
</a>
|
2025-09-16 14:27:48 +02:00
|
|
|
|
{% if risk.status != 'closed' %}
|
2025-09-15 11:06:33 +02:00
|
|
|
|
<a href="{% url 'risks:mark_risk_reviewed' risk.pk %}"
|
|
|
|
|
class="button is-small is-success"
|
|
|
|
|
title="{% trans 'Mark Risk as reviewed' %}">
|
|
|
|
|
<span class="icon"><i class="fas fa-check"></i></span> {% trans 'Mark Risk as reviewed' %}
|
2025-09-12 13:04:04 +02:00
|
|
|
|
</a>
|
2025-09-16 14:27:48 +02:00
|
|
|
|
{% endif %}
|
2025-09-12 13:04:04 +02:00
|
|
|
|
</div>
|
2025-09-11 15:30:42 +02:00
|
|
|
|
</div>
|
Refactor risk management application with enhanced localization, user authentication, and UI improvements
- Added verbose names for Incident and ResidualRisk models for better clarity in admin interface.
- Updated impact choices for ResidualRisk and Risk models to ensure consistency and clarity.
- Implemented gettext_lazy for translatable strings in models and choices.
- Enhanced the Risk, ResidualRisk, Control, AuditLog, and Incident models with Meta options for better admin representation.
- Added login required decorators to views for improved security.
- Introduced new CSS variables and classes for better visual representation of risk levels.
- Created custom template tags for dynamic CSS class assignment based on risk likelihood and impact.
- Improved dashboard and statistics views with user authentication checks.
- Updated templates for risks, controls, incidents, and admin interface to include edit and delete options for staff users.
- Added new login and logout templates for user authentication.
- Enhanced list views for risks, controls, and incidents to include action buttons for staff users.
- Improved overall UI/UX with Bulma CSS framework for a more modern look and feel.
2025-09-09 14:25:59 +02:00
|
|
|
|
|
2025-09-11 15:30:42 +02:00
|
|
|
|
<!-- Tab: Overview -->
|
|
|
|
|
<div class="tab-panel" data-tab="overview">
|
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-content">
|
|
|
|
|
|
|
|
|
|
<!-- General info -->
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
<div class="columns is-multiline">
|
|
|
|
|
<div class="column is-half">
|
2025-09-10 13:44:03 +02:00
|
|
|
|
<p><strong>{% trans "Asset" %}:</strong> {{ risk.asset|default:"-" }}</p>
|
|
|
|
|
<p><strong>{% trans "Process" %}:</strong> {{ risk.process|default:"-" }}</p>
|
|
|
|
|
<p><strong>{% trans "Category" %}:</strong> {{ risk.category|default:"-" }}</p>
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
<p>
|
2025-09-10 13:44:03 +02:00
|
|
|
|
<strong>{% trans "Protection goals" %}:</strong>
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
{% if risk.cia %}
|
Refactor risk management application with enhanced localization, user authentication, and UI improvements
- Added verbose names for Incident and ResidualRisk models for better clarity in admin interface.
- Updated impact choices for ResidualRisk and Risk models to ensure consistency and clarity.
- Implemented gettext_lazy for translatable strings in models and choices.
- Enhanced the Risk, ResidualRisk, Control, AuditLog, and Incident models with Meta options for better admin representation.
- Added login required decorators to views for improved security.
- Introduced new CSS variables and classes for better visual representation of risk levels.
- Created custom template tags for dynamic CSS class assignment based on risk likelihood and impact.
- Improved dashboard and statistics views with user authentication checks.
- Updated templates for risks, controls, incidents, and admin interface to include edit and delete options for staff users.
- Added new login and logout templates for user authentication.
- Enhanced list views for risks, controls, and incidents to include action buttons for staff users.
- Improved overall UI/UX with Bulma CSS framework for a more modern look and feel.
2025-09-09 14:25:59 +02:00
|
|
|
|
{{ risk.get_cia_display }}
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
{% else %}
|
2025-09-10 13:44:03 +02:00
|
|
|
|
<span class="has-text-grey">{% trans "Not yet assigned" %}</span>
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
{% endif %}
|
|
|
|
|
</p>
|
2025-09-16 14:27:48 +02:00
|
|
|
|
<p>
|
|
|
|
|
<strong>{% trans "Status" %}:</strong>
|
|
|
|
|
<strong class="tag
|
|
|
|
|
{% if risk.status == 'open' %}
|
|
|
|
|
is-info
|
|
|
|
|
{% elif risk.status == 'review_required' %}
|
|
|
|
|
is-warning
|
|
|
|
|
{% elif risk.status == 'closed' %}
|
|
|
|
|
is-success
|
|
|
|
|
{% elif risk.status == 'in_progress' %}
|
|
|
|
|
is-link is-light
|
|
|
|
|
{% endif %}
|
|
|
|
|
">{{ risk.get_status_display }}
|
|
|
|
|
</strong>
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div class="column is-half">
|
2025-09-10 13:44:03 +02:00
|
|
|
|
<p><strong>{% trans "Risk owner" %}:</strong> {{ risk.owner|user_display|default:"-" }}</p>
|
|
|
|
|
<p><strong>{% trans "Created at" %}:</strong> {{ risk.created_at|date:'d.m.Y H:i' }}</p>
|
2025-09-11 15:30:42 +02:00
|
|
|
|
<p><strong>{% trans "Updated at" %}:</strong> {{ risk.updated_at|date:'d.m.Y H:i' }}</p>
|
2025-09-10 13:44:03 +02:00
|
|
|
|
<p><strong>{% trans "Resubmission" %}:</strong> {{ risk.follow_up|date:'d.m.Y' }}</p>
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-09-11 15:30:42 +02:00
|
|
|
|
|
|
|
|
|
<!-- Effects -->
|
2025-09-10 15:00:59 +02:00
|
|
|
|
<section>
|
2025-09-11 15:30:42 +02:00
|
|
|
|
<h3 class="title is-6">{% trans "Effects" %}</h3>
|
|
|
|
|
<p>{{ risk.effects|default:"–" }}</p>
|
2025-09-10 15:00:59 +02:00
|
|
|
|
</section>
|
2025-09-11 15:30:42 +02:00
|
|
|
|
|
|
|
|
|
<!-- Risk assessment -->
|
2025-09-10 10:49:14 +02:00
|
|
|
|
<section class="hero has-text-centered is-small">
|
|
|
|
|
<div class="hero-body">
|
2025-09-10 13:44:03 +02:00
|
|
|
|
<p class="title">{% trans "Risk assessment" %}</p>
|
2025-09-10 10:49:14 +02:00
|
|
|
|
</div>
|
|
|
|
|
</section>
|
2025-09-11 15:30:42 +02:00
|
|
|
|
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
<div class="columns is-multiline">
|
|
|
|
|
|
2025-09-11 15:30:42 +02:00
|
|
|
|
<!-- Gross risk -->
|
|
|
|
|
<div class="column is-full-mobile is-half-desktop has-text-centered is-flex">
|
2025-09-10 10:49:14 +02:00
|
|
|
|
<div class="box is-flex is-flex-direction-column is-flex-grow-1">
|
2025-09-11 15:30:42 +02:00
|
|
|
|
<h4 class="title is-6">{% trans "Gross (before measures)" %}</h4>
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
<div class="columns is-multiline">
|
|
|
|
|
|
2025-09-11 15:30:42 +02:00
|
|
|
|
<!-- Likelihood -->
|
|
|
|
|
<div class="column is-half">
|
|
|
|
|
<button class="risk-chip {{ risk.likelihood|likelihood_class }}" type="button">
|
|
|
|
|
<span class="chip-head">{% trans "Likelihood" %}</span>
|
2025-09-22 09:44:51 +02:00
|
|
|
|
<span class="chip-id">{{ risk.likelihood.value }} - {{ risk.likelihood.name }}</span>
|
|
|
|
|
<span class="chip-label">{{ risk.likelihood.description }}</span>
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
</button>
|
2025-09-10 10:49:14 +02:00
|
|
|
|
</div>
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
|
2025-09-11 15:30:42 +02:00
|
|
|
|
<!-- Impact -->
|
|
|
|
|
<div class="column is-half">
|
|
|
|
|
<button class="risk-chip {{ risk.impact|impact_class }}" type="button">
|
|
|
|
|
<span class="chip-head">{% trans "Impact" %}</span>
|
2025-09-22 10:14:21 +02:00
|
|
|
|
<span class="chip-id">{{ risk.impact.value }} - {{ risk.impact.name }}</span>
|
|
|
|
|
<span class="chip-label">{{ risk.impact.description }}</span>
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
</button>
|
2025-09-10 10:49:14 +02:00
|
|
|
|
</div>
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
|
2025-09-11 15:30:42 +02:00
|
|
|
|
<!-- Level -->
|
|
|
|
|
<div class="column is-half">
|
|
|
|
|
<button class="risk-chip {{ risk.level|level_class }}" type="button">
|
2025-09-10 13:44:03 +02:00
|
|
|
|
<span class="chip-head">{% trans "Level" %}</span>
|
2025-09-10 10:49:14 +02:00
|
|
|
|
<span class="chip-id">{{ risk.level|level_id }}</span>
|
|
|
|
|
<span class="chip-label">{{ risk.level }}</span>
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
</button>
|
2025-09-10 10:49:14 +02:00
|
|
|
|
</div>
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
|
Refactor risk management application with enhanced localization, user authentication, and UI improvements
- Added verbose names for Incident and ResidualRisk models for better clarity in admin interface.
- Updated impact choices for ResidualRisk and Risk models to ensure consistency and clarity.
- Implemented gettext_lazy for translatable strings in models and choices.
- Enhanced the Risk, ResidualRisk, Control, AuditLog, and Incident models with Meta options for better admin representation.
- Added login required decorators to views for improved security.
- Introduced new CSS variables and classes for better visual representation of risk levels.
- Created custom template tags for dynamic CSS class assignment based on risk likelihood and impact.
- Improved dashboard and statistics views with user authentication checks.
- Updated templates for risks, controls, incidents, and admin interface to include edit and delete options for staff users.
- Added new login and logout templates for user authentication.
- Enhanced list views for risks, controls, and incidents to include action buttons for staff users.
- Improved overall UI/UX with Bulma CSS framework for a more modern look and feel.
2025-09-09 14:25:59 +02:00
|
|
|
|
<!-- Score -->
|
2025-09-11 15:30:42 +02:00
|
|
|
|
<div class="column is-half">
|
|
|
|
|
<button class="risk-chip {{ risk.score|score_class }}" type="button">
|
2025-09-10 13:44:03 +02:00
|
|
|
|
<span class="chip-head">{% trans "Score" %}</span>
|
2025-09-10 10:49:14 +02:00
|
|
|
|
<span class="chip-id">{{ risk.score }}</span>
|
2025-09-11 15:30:42 +02:00
|
|
|
|
<span class="chip-label">Max. 20</span>
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
</button>
|
2025-09-10 10:49:14 +02:00
|
|
|
|
</div>
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-09-11 15:30:42 +02:00
|
|
|
|
</div><!-- Gross risk End -->
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
|
2025-09-11 15:30:42 +02:00
|
|
|
|
<!-- Net risk -->
|
|
|
|
|
<div class="column is-full-mobile is-half-desktop has-text-centered is-flex">
|
2025-09-10 10:49:14 +02:00
|
|
|
|
<div class="box is-flex is-flex-direction-column is-flex-grow-1">
|
2025-09-11 15:30:42 +02:00
|
|
|
|
<h4 class="title is-6">{% trans "Net (after measures)" %}</h4>
|
2025-09-10 10:49:14 +02:00
|
|
|
|
<div class="columns is-multiline">
|
2025-09-11 15:30:42 +02:00
|
|
|
|
{% if risk.residual_risk %}
|
|
|
|
|
<!-- Likelihood -->
|
|
|
|
|
<div class="column is-half">
|
|
|
|
|
<button class="risk-chip {{ risk.residual_risk.likelihood|likelihood_class }}" type="button">
|
|
|
|
|
<span class="chip-head">{% trans "Likelihood" %}</span>
|
2025-09-22 09:44:51 +02:00
|
|
|
|
<span class="chip-id">{{ risk.residual_risk.likelihood.value }} - {{ risk.residual_risk.likelihood.name }}</span>
|
|
|
|
|
<span class="chip-label">{{ risk.residual_risk.likelihood.description }}</span>
|
Refactor risk management application with enhanced localization, user authentication, and UI improvements
- Added verbose names for Incident and ResidualRisk models for better clarity in admin interface.
- Updated impact choices for ResidualRisk and Risk models to ensure consistency and clarity.
- Implemented gettext_lazy for translatable strings in models and choices.
- Enhanced the Risk, ResidualRisk, Control, AuditLog, and Incident models with Meta options for better admin representation.
- Added login required decorators to views for improved security.
- Introduced new CSS variables and classes for better visual representation of risk levels.
- Created custom template tags for dynamic CSS class assignment based on risk likelihood and impact.
- Improved dashboard and statistics views with user authentication checks.
- Updated templates for risks, controls, incidents, and admin interface to include edit and delete options for staff users.
- Added new login and logout templates for user authentication.
- Enhanced list views for risks, controls, and incidents to include action buttons for staff users.
- Improved overall UI/UX with Bulma CSS framework for a more modern look and feel.
2025-09-09 14:25:59 +02:00
|
|
|
|
</button>
|
2025-09-10 10:49:14 +02:00
|
|
|
|
</div>
|
Refactor risk management application with enhanced localization, user authentication, and UI improvements
- Added verbose names for Incident and ResidualRisk models for better clarity in admin interface.
- Updated impact choices for ResidualRisk and Risk models to ensure consistency and clarity.
- Implemented gettext_lazy for translatable strings in models and choices.
- Enhanced the Risk, ResidualRisk, Control, AuditLog, and Incident models with Meta options for better admin representation.
- Added login required decorators to views for improved security.
- Introduced new CSS variables and classes for better visual representation of risk levels.
- Created custom template tags for dynamic CSS class assignment based on risk likelihood and impact.
- Improved dashboard and statistics views with user authentication checks.
- Updated templates for risks, controls, incidents, and admin interface to include edit and delete options for staff users.
- Added new login and logout templates for user authentication.
- Enhanced list views for risks, controls, and incidents to include action buttons for staff users.
- Improved overall UI/UX with Bulma CSS framework for a more modern look and feel.
2025-09-09 14:25:59 +02:00
|
|
|
|
|
2025-09-11 15:30:42 +02:00
|
|
|
|
<!-- Impact -->
|
|
|
|
|
<div class="column is-half">
|
|
|
|
|
<button class="risk-chip {{ risk.residual_risk.impact|impact_class }}" type="button">
|
|
|
|
|
<span class="chip-head">{% trans "Impact" %}</span>
|
2025-09-22 10:14:21 +02:00
|
|
|
|
<span class="chip-id">{{ risk.residual_risk.impact.value }} - {{ risk.residual_risk.impact.name }}</span>
|
|
|
|
|
<span class="chip-label">{{ risk.residual_risk.impact.description }}</span>
|
Refactor risk management application with enhanced localization, user authentication, and UI improvements
- Added verbose names for Incident and ResidualRisk models for better clarity in admin interface.
- Updated impact choices for ResidualRisk and Risk models to ensure consistency and clarity.
- Implemented gettext_lazy for translatable strings in models and choices.
- Enhanced the Risk, ResidualRisk, Control, AuditLog, and Incident models with Meta options for better admin representation.
- Added login required decorators to views for improved security.
- Introduced new CSS variables and classes for better visual representation of risk levels.
- Created custom template tags for dynamic CSS class assignment based on risk likelihood and impact.
- Improved dashboard and statistics views with user authentication checks.
- Updated templates for risks, controls, incidents, and admin interface to include edit and delete options for staff users.
- Added new login and logout templates for user authentication.
- Enhanced list views for risks, controls, and incidents to include action buttons for staff users.
- Improved overall UI/UX with Bulma CSS framework for a more modern look and feel.
2025-09-09 14:25:59 +02:00
|
|
|
|
</button>
|
2025-09-10 10:49:14 +02:00
|
|
|
|
</div>
|
Refactor risk management application with enhanced localization, user authentication, and UI improvements
- Added verbose names for Incident and ResidualRisk models for better clarity in admin interface.
- Updated impact choices for ResidualRisk and Risk models to ensure consistency and clarity.
- Implemented gettext_lazy for translatable strings in models and choices.
- Enhanced the Risk, ResidualRisk, Control, AuditLog, and Incident models with Meta options for better admin representation.
- Added login required decorators to views for improved security.
- Introduced new CSS variables and classes for better visual representation of risk levels.
- Created custom template tags for dynamic CSS class assignment based on risk likelihood and impact.
- Improved dashboard and statistics views with user authentication checks.
- Updated templates for risks, controls, incidents, and admin interface to include edit and delete options for staff users.
- Added new login and logout templates for user authentication.
- Enhanced list views for risks, controls, and incidents to include action buttons for staff users.
- Improved overall UI/UX with Bulma CSS framework for a more modern look and feel.
2025-09-09 14:25:59 +02:00
|
|
|
|
|
2025-09-11 15:30:42 +02:00
|
|
|
|
<!-- Level -->
|
|
|
|
|
<div class="column is-half">
|
|
|
|
|
<button class="risk-chip {{ risk.residual_risk.level|level_class }}" type="button">
|
2025-09-10 13:44:03 +02:00
|
|
|
|
<span class="chip-head">{% trans "Level" %}</span>
|
2025-09-10 10:49:14 +02:00
|
|
|
|
<span class="chip-id">{{ risk.residual_risk.level|level_id }}</span>
|
|
|
|
|
<span class="chip-label">{{ risk.residual_risk.level }}</span>
|
Refactor risk management application with enhanced localization, user authentication, and UI improvements
- Added verbose names for Incident and ResidualRisk models for better clarity in admin interface.
- Updated impact choices for ResidualRisk and Risk models to ensure consistency and clarity.
- Implemented gettext_lazy for translatable strings in models and choices.
- Enhanced the Risk, ResidualRisk, Control, AuditLog, and Incident models with Meta options for better admin representation.
- Added login required decorators to views for improved security.
- Introduced new CSS variables and classes for better visual representation of risk levels.
- Created custom template tags for dynamic CSS class assignment based on risk likelihood and impact.
- Improved dashboard and statistics views with user authentication checks.
- Updated templates for risks, controls, incidents, and admin interface to include edit and delete options for staff users.
- Added new login and logout templates for user authentication.
- Enhanced list views for risks, controls, and incidents to include action buttons for staff users.
- Improved overall UI/UX with Bulma CSS framework for a more modern look and feel.
2025-09-09 14:25:59 +02:00
|
|
|
|
</button>
|
2025-09-10 10:49:14 +02:00
|
|
|
|
</div>
|
Refactor risk management application with enhanced localization, user authentication, and UI improvements
- Added verbose names for Incident and ResidualRisk models for better clarity in admin interface.
- Updated impact choices for ResidualRisk and Risk models to ensure consistency and clarity.
- Implemented gettext_lazy for translatable strings in models and choices.
- Enhanced the Risk, ResidualRisk, Control, AuditLog, and Incident models with Meta options for better admin representation.
- Added login required decorators to views for improved security.
- Introduced new CSS variables and classes for better visual representation of risk levels.
- Created custom template tags for dynamic CSS class assignment based on risk likelihood and impact.
- Improved dashboard and statistics views with user authentication checks.
- Updated templates for risks, controls, incidents, and admin interface to include edit and delete options for staff users.
- Added new login and logout templates for user authentication.
- Enhanced list views for risks, controls, and incidents to include action buttons for staff users.
- Improved overall UI/UX with Bulma CSS framework for a more modern look and feel.
2025-09-09 14:25:59 +02:00
|
|
|
|
|
|
|
|
|
<!-- Score -->
|
2025-09-11 15:30:42 +02:00
|
|
|
|
<div class="column is-half">
|
2025-09-10 10:49:14 +02:00
|
|
|
|
<button class="risk-chip {{ risk.residual_risk.score|score_class }}" type="button">
|
2025-09-10 13:44:03 +02:00
|
|
|
|
<span class="chip-head">{% trans "Score" %}</span>
|
2025-09-10 10:49:14 +02:00
|
|
|
|
<span class="chip-id">{{ risk.residual_risk.score }}</span>
|
2025-09-11 15:30:42 +02:00
|
|
|
|
<span class="chip-label">Max. 20</span>
|
Refactor risk management application with enhanced localization, user authentication, and UI improvements
- Added verbose names for Incident and ResidualRisk models for better clarity in admin interface.
- Updated impact choices for ResidualRisk and Risk models to ensure consistency and clarity.
- Implemented gettext_lazy for translatable strings in models and choices.
- Enhanced the Risk, ResidualRisk, Control, AuditLog, and Incident models with Meta options for better admin representation.
- Added login required decorators to views for improved security.
- Introduced new CSS variables and classes for better visual representation of risk levels.
- Created custom template tags for dynamic CSS class assignment based on risk likelihood and impact.
- Improved dashboard and statistics views with user authentication checks.
- Updated templates for risks, controls, incidents, and admin interface to include edit and delete options for staff users.
- Added new login and logout templates for user authentication.
- Enhanced list views for risks, controls, and incidents to include action buttons for staff users.
- Improved overall UI/UX with Bulma CSS framework for a more modern look and feel.
2025-09-09 14:25:59 +02:00
|
|
|
|
</button>
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
</div>
|
|
|
|
|
|
2025-09-11 15:30:42 +02:00
|
|
|
|
{% else %}
|
2025-09-15 11:06:33 +02:00
|
|
|
|
<div class="column is-vcentered is-centered">
|
|
|
|
|
<a href="{% url 'admin:risks_residualrisk_add' %}?risk={{ risk.pk }}"
|
|
|
|
|
class="button is-success is-focused">
|
|
|
|
|
<span class="icon"><i class="fas fa-add"></i></span>
|
|
|
|
|
<span>{% trans "Add net Risk" %}</span>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
2025-09-11 15:30:42 +02:00
|
|
|
|
{% endif %}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div><!-- Net risk End -->
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
|
2025-09-11 15:30:42 +02:00
|
|
|
|
</div><!-- Risk assessment End -->
|
|
|
|
|
</div>
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
</div>
|
2025-09-11 15:30:42 +02:00
|
|
|
|
</div><!-- Overview Tab End -->
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
|
2025-09-11 15:30:42 +02:00
|
|
|
|
<!-- Tab: Measures -->
|
|
|
|
|
<div class="tab-panel is-hidden" data-tab="measures">
|
|
|
|
|
<div class="table-container">
|
|
|
|
|
<table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr class="has-background-prosoft">
|
|
|
|
|
<th class="has-text-centered">{% trans "Title" %}</th>
|
|
|
|
|
<th class="has-text-centered">{% trans "Status" %}</th>
|
|
|
|
|
<th class="has-text-centered">{% trans "Deadline" %}</th>
|
|
|
|
|
<th class="has-text-centered">{% trans "Responsible" %}</th>
|
|
|
|
|
<th class="has-text-centered">{% trans "Link" %}</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{% for control in risk.controls.all %}
|
|
|
|
|
<tr onclick="window.location.href='/risks/controls/{{ control.id }}';" style="cursor:pointer;">
|
|
|
|
|
<td>{{ control.title }}</td>
|
|
|
|
|
<td class="has-text-centered">{{ control.get_status_display }}</td>
|
|
|
|
|
<td class="has-text-centered">{{ control.due_date|date:"d.m.Y"|default:"–" }}</td>
|
|
|
|
|
<td class="has-text-centered">{{ control.responsible.get_full_name|default:control.responsible.username|default:"–" }}</td>
|
|
|
|
|
<td class="has-text-centered">{% if control.wiki_link %}<a href="{{ control.wiki_link }}" target="_blank">🔗</a>{% else %}–{% endif %}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% empty %}
|
|
|
|
|
<tr><td colspan="5" class="has-text-grey has-text-centered">{% trans "No measures recorded." %}</td></tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div><!-- Measures Tab End -->
|
Add risk status and notification preferences
- Introduced a new `status` field to the `Risk` model with choices for "open", "in_progress", "closed", and "review_required".
- Created a `NotificationPreference` model to manage user notification settings for various events related to risks, controls, residual risks, reviews, users, and incidents.
- Updated the admin interface to include `NotificationPreference` inline with the `User` admin.
- Enhanced signal handlers to send notifications based on user preferences for created, updated, and deleted events for users, risks, controls, and incidents.
- Modified the `check_risk_followups` utility function to update risk status and create notifications for follow-ups.
- Updated serializers and views to accommodate the new `status` field and improved risk listing functionality.
- Added a new section in the risk detail template to display related incidents.
- Removed the unused statistics view from URLs.
2025-09-10 11:54:08 +02:00
|
|
|
|
|
2025-09-11 15:30:42 +02:00
|
|
|
|
<!-- Tab: Incidents -->
|
|
|
|
|
<div class="tab-panel is-hidden" data-tab="incidents">
|
|
|
|
|
<div class="table-container">
|
|
|
|
|
<table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr class="has-background-prosoft">
|
|
|
|
|
<th class="has-text-centered">{% trans "Incident" %}</th>
|
|
|
|
|
<th class="has-text-centered">{% trans "Status" %}</th>
|
|
|
|
|
<th class="has-text-centered">{% trans "Reported on" %}</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{% for i in risk.incidents.all %}
|
|
|
|
|
<tr onclick="window.location.href='/risks/incidents/{{ i.id }}';" style="cursor:pointer;">
|
|
|
|
|
<td>{{ i.title }}</td>
|
|
|
|
|
<td class="has-text-centered">{{ i.get_status_display }}</td>
|
|
|
|
|
<td class="has-text-centered">{{ i.created_at|date:"d.m.Y H:i" }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% empty %}
|
2025-09-15 11:06:33 +02:00
|
|
|
|
<tr><td class="has-text-centered"><a href="{% url 'admin:risks_incident_add' %}?related_risks={{ risk.id }}"><span class="icon breadcrumb-add-icon"><i class="fas fa-add"></i></span></a></td><td colspan="3" class="has-text-grey has-text-centered">{% trans "No incidents recorded." %}</td></tr>
|
2025-09-11 15:30:42 +02:00
|
|
|
|
{% endfor %}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div><!-- Incidents Tab End -->
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
|
2025-09-11 15:30:42 +02:00
|
|
|
|
<!-- Tab: History -->
|
|
|
|
|
<div class="tab-panel is-hidden" data-tab="history">
|
|
|
|
|
<div class="table-container">
|
|
|
|
|
<table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr class="has-background-prosoft">
|
|
|
|
|
<th class="has-text-centered">{% trans "Time" %}</th>
|
|
|
|
|
<th class="has-text-centered">{% trans "User" %}</th>
|
|
|
|
|
<th class="has-text-centered">{% trans "Action" %}</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{% for log in logs %}
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="has-text-centered">{{ log.action_time|date:"d.m.Y H:i" }}</td>
|
|
|
|
|
<td class="has-text-centered">{{ log.user.get_full_name|default:log.user.username }}</td>
|
|
|
|
|
<td>{{ log.get_change_message }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% empty %}
|
|
|
|
|
<tr><td colspan="3" class="has-text-grey has-text-centered">{% trans "No history found." %}</td></tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div><!-- History Tab End -->
|
feat: Enhance Risk Management Module
- Updated Risk model to include description, created_at, and updated_at fields.
- Modified RiskSerializer to include created_at and updated_at in serialized output.
- Improved logging in signals for Risk and Control models, including serialization of values.
- Added new template tags for CIA label mapping.
- Refactored URL patterns for better clarity and added detail views for risks, controls, and incidents.
- Implemented list and detail views for risks, controls, and incidents with filtering options.
- Enhanced CSS for better UI/UX, including breadcrumbs and table styling.
- Created new templates for displaying individual risks, controls, and incidents with detailed information.
2025-09-08 15:03:12 +02:00
|
|
|
|
|
2025-09-11 15:30:42 +02:00
|
|
|
|
<!-- Tab switching script -->
|
|
|
|
|
<script>
|
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
|
|
|
const tabs = document.querySelectorAll('.erp-tabs a[data-tab]');
|
|
|
|
|
const panels = document.querySelectorAll('.tab-panel');
|
|
|
|
|
tabs.forEach(tab => {
|
|
|
|
|
tab.addEventListener('click', e => {
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
tabs.forEach(x => x.classList.remove('is-active'));
|
|
|
|
|
panels.forEach(p => p.classList.add('is-hidden'));
|
|
|
|
|
tab.classList.add('is-active');
|
|
|
|
|
const target = tab.getAttribute('data-tab');
|
|
|
|
|
const activePanel = document.querySelector(`.tab-panel[data-tab="${target}"]`);
|
|
|
|
|
if (activePanel) activePanel.classList.remove('is-hidden');
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
{% endblock %}
|