125 lines
3.9 KiB
HTML
125 lines
3.9 KiB
HTML
![]() |
{% extends "base.html" %}
|
|||
|
{% block crumbs %}
|
|||
|
<li><a href="{% url 'risks:list_controls' %}">Maßnahmen</a></li>
|
|||
|
<li><a href="{% url 'risks:show_control' control.id %}">{{ control.title }}</a></li>
|
|||
|
{% endblock %}
|
|||
|
{% block content %}
|
|||
|
<div class="container">
|
|||
|
<section class="hero is-small">
|
|||
|
<div class="hero-body">
|
|||
|
<p class="title">Maßnahme: {{ control.title }}</p>
|
|||
|
<p class="subtitle is-6">{{ control.description }}</p>
|
|||
|
</div>
|
|||
|
</section>
|
|||
|
<!-- Überblick-->
|
|||
|
<div class="card">
|
|||
|
<header class="card-header">
|
|||
|
<p class="card-header-title">Überblick</p>
|
|||
|
</header>
|
|||
|
<!-- Inhalt Überblick-->
|
|||
|
<div class="card-content">
|
|||
|
<div class="columns is-multiline">
|
|||
|
<div class="column is-half">
|
|||
|
<p>
|
|||
|
<strong>Verknüpfte Risiken:</strong>
|
|||
|
</p>
|
|||
|
<p><strong><a>Zum Wiki Eintrag</a></strong></p>
|
|||
|
</div>
|
|||
|
<div class="column is-half">
|
|||
|
<p><strong>Verantwortliche/r:</strong> {{ control.owner|default:"-" }}</p>
|
|||
|
<p><strong>Erstellt am:</strong> {{ control.created_at|date:'d.m.Y H:i' }}</p>
|
|||
|
<p><strong>Aktualisiert am:</strong> {{ control.updatet_at|date:'d.m.Y H:i' }}</p>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div> <!-- Ende Inhalt Überblick -->
|
|||
|
</div> <!-- Ende Überblick -->
|
|||
|
|
|||
|
<!-- Maßnahmen -->
|
|||
|
<div class="card">
|
|||
|
<header class="card-header">
|
|||
|
<p class="card-header-title">Maßnahmen</p>
|
|||
|
</header>
|
|||
|
<div class="card-content">
|
|||
|
{% if control.controls.all %}
|
|||
|
<table class="table is-striped is-hoverable is-fullwidth">
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th>Titel</th>
|
|||
|
<th>Status</th>
|
|||
|
<th>Frist</th>
|
|||
|
<th>Verantwortlicher</th>
|
|||
|
<th>Link</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
{% for control in control.controls.all %}
|
|||
|
<tr onclick="window.location.href='/risks/controls/{{ control.id }}';" style="cursor:pointer;">
|
|||
|
<td>{{ control.title }}</td>
|
|||
|
<td>{{ control.get_status_display }}</td>
|
|||
|
<td>
|
|||
|
{% if control.due_date %}
|
|||
|
{{ control.due_date|date:"d.m.Y" }}
|
|||
|
{% else %}
|
|||
|
–
|
|||
|
{% endif %}
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
{% if control.responsible %}
|
|||
|
{{ control.responsible.get_full_name|default:control.responsible.username }}
|
|||
|
{% else %}
|
|||
|
–
|
|||
|
{% endif %}
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
{% if control.wiki_link %}
|
|||
|
<a href="{{ control.wiki_link }}" target="_blank">🔗</a>
|
|||
|
{% else %}
|
|||
|
–
|
|||
|
{% endif %}
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
{% endfor %}
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
{% else %}
|
|||
|
<p class="has-text-grey">Keine Maßnahmen erfasst.</p>
|
|||
|
{% endif %}
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<!-- Ende Maßnahmen -->
|
|||
|
|
|||
|
<!-- Historie -->
|
|||
|
<div class="card">
|
|||
|
<header class="card-header">
|
|||
|
<p class="card-header-title">Historie</p>
|
|||
|
</header>
|
|||
|
<div class="card-content">
|
|||
|
{% if logs %}
|
|||
|
<table class="table is-striped is-fullwidth">
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th>Zeitpunkt</th>
|
|||
|
<th>Benutzer</th>
|
|||
|
<th>Aktion</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
{% for log in logs %}
|
|||
|
<tr>
|
|||
|
<td>{{ log.action_time|date:"d.m.Y H:i" }}</td>
|
|||
|
<td>{{ log.user.get_full_name|default:log.user.username }}</td>
|
|||
|
<td>{{ log.get_change_message }}</td>
|
|||
|
</tr>
|
|||
|
{% endfor %}
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
{% else %}
|
|||
|
<p class="has-text-grey">Keine Historie vorhanden.</p>
|
|||
|
{% endif %}
|
|||
|
</div>
|
|||
|
</div> <!-- Ende Historie -->
|
|||
|
|
|||
|
<br><br>
|
|||
|
|
|||
|
</div>
|
|||
|
{% endblock %}
|