2025-09-07 20:52:19 +02:00
|
|
|
{% load static %}
|
2025-09-10 13:44:03 +02:00
|
|
|
{% load i18n %}
|
2025-09-07 20:52:19 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="de">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
2025-09-10 13:44:03 +02:00
|
|
|
<title>{% trans "Risk Management" %}</title>
|
2025-09-08 08:10:30 +02:00
|
|
|
<link rel="stylesheet" href="{% static 'css/bulma.min.css' %}">
|
|
|
|
<link rel="stylesheet" href="{% static 'css/design.css' %}">
|
|
|
|
<link rel="stylesheet" href="{% static 'css/fontawesome.min.css' %}">
|
|
|
|
<link rel="stylesheet" href="{% static 'css/print.css' %}" media="print">
|
2025-09-07 20:52:19 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
2025-09-08 08:10:30 +02:00
|
|
|
<header class="topbar">
|
|
|
|
<nav class="navbar topbar-nav" role="navigation" aria-label="main navigation">
|
|
|
|
<div class="navbar-brand">
|
|
|
|
<a class="navbar-item logo" href="/risks/index">
|
2025-09-12 17:02:37 +02:00
|
|
|
<strong class="logo-text">WIRA Intranet</strong>
|
2025-09-08 08:10:30 +02:00
|
|
|
</a>
|
2025-09-07 20:52:19 +02:00
|
|
|
|
2025-09-08 08:10:30 +02:00
|
|
|
<!-- Burger Menu für Mobile -->
|
|
|
|
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="mainNavbar">
|
|
|
|
<span aria-hidden="true"></span>
|
|
|
|
<span aria-hidden="true"></span>
|
|
|
|
<span aria-hidden="true"></span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="mainNavbar" class="navbar-menu">
|
|
|
|
<div class="navbar-start">
|
|
|
|
<div class="navbar-item has-dropdown is-hoverable">
|
2025-09-10 13:44:03 +02:00
|
|
|
<a class="navbar-link">{% trans "Risk Management" %}</a>
|
2025-09-08 08:10:30 +02:00
|
|
|
<div class="navbar-dropdown">
|
2025-09-10 13:44:03 +02:00
|
|
|
<a class="navbar-item" href="/risks/index">{% trans "Dashboard" %}</a>
|
2025-09-11 10:22:20 +02:00
|
|
|
<a class="navbar-item" href="/risks/risk_matrix">{% trans "Risk Matrix" %}</a>
|
|
|
|
<hr class="navbar-divider">
|
2025-09-10 13:44:03 +02:00
|
|
|
<a class="navbar-item" href="/risks/list_risks">{% trans "Risk analysis" %}</a>
|
|
|
|
<a class="navbar-item" href="/risks/list_controls">{% trans "Controls" %}</a>
|
|
|
|
<a class="navbar-item" href="/risks/list_incidents">{% trans "Incidents" %}</a>
|
2025-09-08 08:10:30 +02:00
|
|
|
</div>
|
2025-09-07 20:52:19 +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-07 20:52:19 +02:00
|
|
|
</div>
|
|
|
|
</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
|
|
|
<!-- Profil -->
|
2025-09-08 08:10:30 +02:00
|
|
|
<div class="navbar-end">
|
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
|
|
|
<!-- Suche -->
|
|
|
|
<div class="navbar-item">
|
2025-09-08 08:10:30 +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
|
|
|
|
|
|
|
{% if request.user.is_authenticated %}
|
|
|
|
<!-- Profil-Dropdown -->
|
|
|
|
<div class="navbar-item has-dropdown is-hoverable">
|
|
|
|
<a class="navbar-link">
|
|
|
|
<!-- Initialen-Badge -->
|
2025-09-10 13:44:03 +02:00
|
|
|
<span class="avatar-wrap">
|
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
|
|
|
<span class="tag is-link is-light is-medium is-rounded"
|
|
|
|
style="width:2.25rem;height:2.25rem;display:inline-flex;align-items:center;justify-content:center;">
|
|
|
|
{{ request.user.username|slice:":2"|upper }}
|
|
|
|
</span>
|
2025-09-10 13:44:03 +02:00
|
|
|
|
|
|
|
{% if notifications_unread_count %}
|
|
|
|
<span class="badge tag is-danger is-rounded">
|
|
|
|
{% if notifications_unread_count > 99 %}99+{% else %}{{ notifications_unread_count }}{% endif %}
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
</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
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class="navbar-dropdown is-right">
|
|
|
|
{% if request.user.is_staff %}
|
2025-09-10 13:44:03 +02:00
|
|
|
<a class="navbar-item" href="/admin/">{% trans "AdminCP" %}</a>
|
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
|
|
|
<hr class="navbar-divider">
|
|
|
|
{% endif %}
|
|
|
|
|
2025-09-10 13:44:03 +02:00
|
|
|
<a class="navbar-item" href="{% url 'risks:notifications' %}">
|
|
|
|
{% trans "Notifications" %}
|
|
|
|
{% if notifications_unread_count %}
|
|
|
|
<span class="tag is-danger is-rounded" style="margin-left:.5rem;">{{ notifications_unread_count }}</span>
|
|
|
|
{% endif %}
|
|
|
|
</a>
|
|
|
|
|
2025-09-09 21:34:03 +02:00
|
|
|
<!-- Dark Mode Toggle -->
|
2025-09-10 13:44:03 +02:00
|
|
|
<a id="dark-mode-toggle" class="navbar-item is-small is-light">
|
|
|
|
🌙 {% trans "Derk Mode" %}
|
|
|
|
</a>
|
2025-09-09 21:34:03 +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
|
|
|
<!-- Logout als POST über Hidden-Form -->
|
|
|
|
<a class="navbar-item" href="#"
|
|
|
|
onclick="document.getElementById('logout-form').submit(); return false;">
|
2025-09-10 13:44:03 +02:00
|
|
|
{% trans "Logout" %}
|
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
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div><!-- Profil-Dropdown Ende -->
|
|
|
|
|
|
|
|
<!-- Hidden Logout Form (muss im DOM vorhanden sein) -->
|
|
|
|
<form id="logout-form" method="post" action="{% url 'logout' %}" style="display:none;">
|
|
|
|
{% csrf_token %}
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{% else %}
|
|
|
|
<!-- Login-Button -->
|
|
|
|
<div class="navbar-item">
|
|
|
|
<div class="buttons">
|
|
|
|
<a class="button is-primary is-light" href="{% url 'login' %}">
|
2025-09-10 13:44:03 +02:00
|
|
|
<strong>{% trans "Login" %}</strong>
|
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
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2025-09-08 08:10:30 +02:00
|
|
|
</nav>
|
|
|
|
</header>
|
2025-09-07 20:52:19 +02:00
|
|
|
|
|
|
|
<main class="content">
|
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 breadcrumbs %}
|
|
|
|
<nav class="breadcrumb top-breadcrumb" aria-label="breadcrumbs">
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="/risks/index">
|
|
|
|
<span class="icon is-small">
|
2025-09-11 15:02:29 +02:00
|
|
|
<i class="fas fa-home" aria-hidden="true" style="color: #6f3165"></i>
|
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
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% block crumbs %}
|
|
|
|
{% if title %} › {{ title }}{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{% endblock %}
|
Add FontAwesome webfonts and update templates for Risiko Management
- Added FontAwesome webfont files: fa-brands-400.woff2, fa-regular-400.woff2, fa-solid-900.woff2, and fa-v4compatibility.woff2.
- Updated base.html to include FontAwesome stylesheet.
- Renamed the application title from "Risiko Management" to "ISO27001 Management".
- Enhanced navigation menu with dynamic active states for Dashboard, Statistics, Risks, Controls, and Incidents.
- Created new templates for dashboard, controls, incidents, risks, and statistics with breadcrumb navigation.
2025-09-07 23:07:56 +02:00
|
|
|
{% block content %}{% endblock %}
|
2025-09-07 20:52:19 +02:00
|
|
|
</main>
|
2025-09-09 21:34:03 +02:00
|
|
|
|
|
|
|
<script>
|
|
|
|
const toggleButton = document.getElementById('dark-mode-toggle');
|
|
|
|
|
|
|
|
// Dark Mode aus localStorage laden
|
|
|
|
if (localStorage.getItem('darkMode') === 'enabled') {
|
|
|
|
document.body.classList.add('dark-mode');
|
2025-09-10 13:44:03 +02:00
|
|
|
toggleButton.textContent = '☀️ {% trans "Light Mode" %}';
|
2025-09-09 21:34:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
toggleButton.addEventListener('click', () => {
|
|
|
|
document.body.classList.toggle('dark-mode');
|
|
|
|
if (document.body.classList.contains('dark-mode')) {
|
|
|
|
localStorage.setItem('darkMode', 'enabled');
|
2025-09-10 13:44:03 +02:00
|
|
|
toggleButton.textContent = '☀️ {% trans "Light Mode" %}';
|
2025-09-09 21:34:03 +02:00
|
|
|
} else {
|
|
|
|
localStorage.setItem('darkMode', 'disabled');
|
2025-09-10 13:44:03 +02:00
|
|
|
toggleButton.textContent = '🌙 {% trans "Dark Mode" %}';
|
2025-09-09 21:34:03 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
// Burger Menu für mobile
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
|
|
const burger = document.querySelector('.navbar-burger');
|
|
|
|
const menu = document.getElementById(burger.dataset.target);
|
|
|
|
|
|
|
|
burger.addEventListener('click', () => {
|
|
|
|
burger.classList.toggle('is-active');
|
|
|
|
menu.classList.toggle('is-active');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2025-09-07 20:52:19 +02:00
|
|
|
</body>
|
2025-09-08 08:10:30 +02:00
|
|
|
</html>
|