All files for deployment ready and tested - further development in this repo.
This commit is contained in:
28
standards/templates/standards/standard_checkliste.html
Normal file
28
standards/templates/standards/standard_checkliste.html
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{ standard }}</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
{% load static %}
|
||||
</head>
|
||||
<body class="container py-4">
|
||||
|
||||
|
||||
|
||||
<h1>{{ standard.nummer }} – {{ standard.name }}</h1>
|
||||
|
||||
|
||||
<h2>Checkliste</h2>
|
||||
<ul class="list-group">
|
||||
{% for vorgabe in vorgaben %}
|
||||
{% if vorgabe.checklistenfragen.all %}
|
||||
{% for frage in vorgabe.checklistenfragen.all %}
|
||||
<li class="list-group-item">{{ vorgabe.Vorgabennummer }}: {{ frage.frage }}</li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
105
standards/templates/standards/standard_detail.html
Normal file
105
standards/templates/standards/standard_detail.html
Normal file
@@ -0,0 +1,105 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}{{ standard }}{% endblock %}
|
||||
{% block content %}
|
||||
<h1>{{ standard.nummer }} – {{ standard.name }}</h1>
|
||||
{% if standard.history == True %}
|
||||
<h2>Version vom {{ standard.check_date }}</h2>
|
||||
{% endif %}
|
||||
|
||||
<p><strong>Autoren:</strong> {{ standard.autoren.all|join:", " }}</p>
|
||||
<p><strong>Prüfende:</strong> {{ standard.pruefende.all|join:", " }}</p>
|
||||
<p><strong>Gültigkeit:</strong> {{ standard.gueltigkeit_von }} bis {{ standard.gueltigkeit_bis }}</p>
|
||||
|
||||
{% if standard.einleitung_html %}
|
||||
<h2>Einleitung</h2>
|
||||
{% for typ, html in standard.einleitung_html %}
|
||||
<div>{{ html|safe }}</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if standard.geltungsbereich_html %}
|
||||
<h2>Geltungsbereich</h2>
|
||||
{% for typ, html in standard.geltungsbereich_html %}
|
||||
<div>{{ html|safe }}</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
<h2>Vorgaben</h2>
|
||||
{% for vorgabe in vorgaben %}
|
||||
{% if standard.history == True or vorgabe.long_status == "active" %}
|
||||
<a id="{{ vorgabe.Vorgabennummer }}"></a><div class="card mb-4">
|
||||
{% if vorgabe.long_status == "active"%}
|
||||
<div class="card-header d-flex justify-content-between align-items-center bg-secondary text-light">
|
||||
{% elif standard.history == True %}
|
||||
<div class="card-header d-flex justify-content-between align-items-center bg-danger-subtle">
|
||||
{% endif %}
|
||||
<h3 class="h5 m-0">{{ vorgabe.Vorgabennummer }} – {{ vorgabe.titel }}
|
||||
{% if vorgabe.long_status != "active" and standard.history == True %}<span class="text-danger"> ({{ vorgabe.long_status}})</span>{% endif %}
|
||||
</h3>
|
||||
{% if vorgabe.relevanzset %}
|
||||
<span class="badge bg-light text-black"> Relevanz:
|
||||
{% for V in vorgabe.relevanzset %}
|
||||
{{ V|make_list|first }}
|
||||
{% endfor %}
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
<span class="badge bg-light text-black">{{ vorgabe.thema }}</span>
|
||||
</div>
|
||||
|
||||
<div class="card-body p-0">
|
||||
|
||||
{% comment %} KURZTEXT BLOCK {% endcomment %}
|
||||
{% if vorgabe.kurztext_html.0.1 %}
|
||||
<div class="p-3 mb-3 bg-light border-3" style="width: 100%;">
|
||||
{% for typ, html in vorgabe.kurztext_html %}
|
||||
{% if html %}
|
||||
<div class="mb-2">{{ html|safe }}</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="p-3 mb-3">
|
||||
{% comment %} LANGTEXT BLOCK {% endcomment %}
|
||||
{# <h5>Langtext</h5> #}
|
||||
{% for typ, html in vorgabe.langtext_html %}
|
||||
{% if html %}<div class="mb-3">{{ html|safe }}</div>{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% comment %} CHECKLISTENFRAGEN BLOCK {% endcomment %}
|
||||
<h5>Checklistenfragen</h5>
|
||||
{% if vorgabe.checklistenfragen.all %}
|
||||
<ul class="list-group">
|
||||
{% for frage in vorgabe.checklistenfragen.all %}
|
||||
<li class="list-group-item">{{ frage.frage }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p><em>Keine Checklistenfragen</em></p>
|
||||
{% endif %}
|
||||
{% comment %} STICHWORTE + REFERENZEN AT BOTTOM {% endcomment %}
|
||||
<div class="mt-4 small text-muted">
|
||||
<strong>Stichworte:</strong>
|
||||
{% if vorgabe.stichworte.all %}
|
||||
{% for s in vorgabe.stichworte.all %}
|
||||
<a href="{% url 'stichwort_detail' stichwort=s %}">{{ s }}</a>{% if not forloop.last %}, {% endif %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<em>Keine</em>
|
||||
{% endif %}
|
||||
<br>
|
||||
<strong>Referenzen:</strong>
|
||||
{% if vorgabe.referenzpfade %}
|
||||
{% for ref in vorgabe.referenzpfade %}
|
||||
{{ ref|safe }}{% if not forloop.last %}, {% endif %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<em>Keine</em>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
35
standards/templates/standards/standard_detail_barebones.html
Normal file
35
standards/templates/standards/standard_detail_barebones.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<h1>{{ standard.nummer }} – {{ standard.name }}</h1>
|
||||
|
||||
<p><strong>Autoren:</strong> {{ standard.autoren.all|join:", " }}</p>
|
||||
<p><strong>Prüfende:</strong> {{ standard.pruefende.all|join:", " }}</p>
|
||||
<p><strong>Gültigkeit:</strong> {{ standard.gueltigkeit_von }} bis {{ standard.gueltigkeit_bis }}</p>
|
||||
|
||||
{% if standard.geltungsbereich_html %}
|
||||
<h2>Geltungsbereich</h2>
|
||||
{% for typ, html in standard.geltungsbereich_html %}
|
||||
<div>{{ html|safe }}</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
<h2>Vorgaben</h2>
|
||||
{% for vorgabe in vorgaben %}
|
||||
<h3>{{ vorgabe.Vorgabennummer }} – {{ vorgabe.titel }}</h3>
|
||||
{% if vorgabe.referenzpfade %}
|
||||
<h4>Referenzen:</h4>
|
||||
{% endif %}
|
||||
{% for ref in vorgabe.referenzpfade %}
|
||||
{{ref | safe}}<br>
|
||||
{% empty %}
|
||||
Keine Referenzen angegeben
|
||||
{% endfor %}
|
||||
{# <h4>Kurztext</h4> #}
|
||||
{% for typ, html in vorgabe.kurztext_html %}
|
||||
{% if html %}<div>{{ html|safe }}</div>{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
<h4>Langtext</h4>
|
||||
{% for typ, html in vorgabe.langtext_html %}
|
||||
{% if html %}<div>{{ html|safe }}</div>{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
13
standards/templates/standards/standard_list.html
Normal file
13
standards/templates/standards/standard_list.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<h1>Standards Informatiksicherheit</h1>
|
||||
<ul>
|
||||
{% for standard in standards %}
|
||||
<li>
|
||||
<a href="{% url 'standard_detail' nummer=standard.nummer %}">
|
||||
{{ standard.nummer }} – {{ standard.name }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user