From 32917113f2816f7e8593351d8b7941f9b19c04df Mon Sep 17 00:00:00 2001 From: "Adrian A. Baumann" Date: Wed, 5 Nov 2025 10:16:56 +0100 Subject: [PATCH] Design suggestion from AI. Not very useable --- VorgabenUI/urls.py | 4 +- .../templates/standards/standard_detail.html | 487 ++++++++--- .../templates/standards/standard_list.html | 204 ++++- pages/templates/base.html | 166 +++- pages/templates/results.html | 176 +++- pages/templates/search.html | 161 +++- pages/templates/search_simple.html | 139 +++ pages/templates/startseite.html | 339 +++++++- pages/views.py | 2 +- referenzen/templates/referenz_detail.html | 219 ++++- referenzen/templates/referenz_tree.html | 473 +++++++++- static/custom/css/vorgaben-ui.css | 819 ++++++++++++++++++ .../stichworte/stichwort_detail.html | 187 +++- .../templates/stichworte/stichwort_list.html | 150 +++- 14 files changed, 3257 insertions(+), 269 deletions(-) create mode 100644 pages/templates/search_simple.html create mode 100644 static/custom/css/vorgaben-ui.css diff --git a/VorgabenUI/urls.py b/VorgabenUI/urls.py index 4a4427e..57b90de 100644 --- a/VorgabenUI/urls.py +++ b/VorgabenUI/urls.py @@ -26,8 +26,8 @@ import referenzen.views admin.site.site_header="Autorenumgebung" urlpatterns = [ - path('',pages.views.startseite), - path('search/',pages.views.search), + path('',pages.views.startseite, name='startseite'), + path('search/',pages.views.search, name='search'), path('dokumente/', include("dokumente.urls")), path('autorenumgebung/', admin.site.urls), path('stichworte/', include("stichworte.urls")), diff --git a/dokumente/templates/standards/standard_detail.html b/dokumente/templates/standards/standard_detail.html index e4ff3da..6de8e0f 100644 --- a/dokumente/templates/standards/standard_detail.html +++ b/dokumente/templates/standards/standard_detail.html @@ -1,110 +1,403 @@ {% extends "base.html" %} -{% block title %}{{ standard }}{% endblock %} +{% block title %}{{ standard.nummer }} – {{ standard.name }}{% endblock %} +{% block breadcrumb_items %} + + +{% endblock %} + {% block content %} -

{{ standard.nummer }} – {{ standard.name }}

-{% if standard.history == True %} -

Version vom {{ standard.check_date }}

-{% endif %} - -

Autoren: {{ standard.autoren.all|join:", " }}

-

Prüfende: {{ standard.pruefende.all|join:", " }}

-

Gültigkeit: {{ standard.gueltigkeit_von }} bis {{ standard.gueltigkeit_bis|default_if_none:"auf weiteres" }}

-

JSON herunterladen

- - -{% if standard.einleitung_html %} -

Einleitung

-{% for typ, html in standard.einleitung_html %} -
{{ html|safe }}
-{% endfor %} -{% endif %} - - - -{% if standard.geltungsbereich_html %} -

Geltungsbereich

-{% for typ, html in standard.geltungsbereich_html %} -
{{ html|safe }}
-{% endfor %} -{% endif %} - - -

Vorgaben

-{% for vorgabe in vorgaben %} - -{% if standard.history == True or vorgabe.long_status == "active" %} -
- {% if vorgabe.long_status == "active"%} -
- {% elif standard.history == True %} -
- {% endif %} -

{{ vorgabe.Vorgabennummer }} – {{ vorgabe.titel }} - {% if vorgabe.long_status != "active" and standard.history == True %} ({{ vorgabe.long_status}}){% endif %} -

- {% if vorgabe.relevanzset %} - Relevanz: - {{ vorgabe.relevanzset|join:", " }} - - {% endif %} - - {{ vorgabe.thema }} +
+ +
+ +
+
+
+
+

{{ standard.nummer }} – {{ standard.name }}

+ {% if standard.history == True %} +

Version vom {{ standard.check_date|date:"d.m.Y" }}

+ {% endif %} +
+
+ {% if not standard.aktiv %} + Inaktiv + {% else %} + Aktiv + {% endif %} +
+
+
+
+
+
+
📅 Gültigkeit
+

+ Von: {{ standard.gueltigkeit_von|default_if_none:"-" }}
+ Bis: {{ standard.gueltigkeit_bis|default_if_none:"Auf weiteres" }} +

+
+
+
👥 Verantwortlich
+ {% if standard.autoren.all %} +

Autoren:
+ {% for autor in standard.autoren.all %} + {{ autor }} + {% endfor %} +

+ {% endif %} + {% if standard.pruefende.all %} +

Prüfende:
+ {% for pruefender in standard.pruefende.all %} + {{ pruefender }} + {% endfor %} +

+ {% endif %} +
+
+ +
+ + 📄 JSON herunterladen + + +
+
-
- - {% comment %} KURZTEXT BLOCK {% endcomment %} - {% if vorgabe.kurztext_html.0.1 %} -
- {% for typ, html in vorgabe.kurztext_html %} - {% if html %} -
{{ html|safe }}
+ +
+

📋 Inhaltsverzeichnis

+ +
+ + + {% if standard.einleitung_html %} +
+
+
+

📖 Einleitung

+
+
+ {% for typ, html in standard.einleitung_html %} +
{{ html|safe }}
+ {% endfor %} +
+
+
+ {% endif %} + + + {% if standard.geltungsbereich_html %} +
+
+
+

🎯 Geltungsbereich

+
+
+ {% for typ, html in standard.geltungsbereich_html %} +
{{ html|safe }}
+ {% endfor %} +
+
+
+ {% endif %} + + +
+
+

📝 Vorgaben

+
+ + +
+
+ + {% for vorgabe in vorgaben %} + {% if standard.history == True or vorgabe.long_status == "active" %} +
+
+
+
+ +

+ {{ vorgabe.Vorgabennummer }} – {{ vorgabe.titel }} + {% if vorgabe.long_status != "active" and standard.history == True %} + {{ vorgabe.long_status }} + {% endif %} +

+
+
+ {% if vorgabe.relevanzset %} + + 🔥 {{ vorgabe.relevanzset|join:", " }} + + {% endif %} + {% if vorgabe.thema %} + {{ vorgabe.thema }} + {% endif %} +
+
+
+ +
+ + {% if vorgabe.kurztext_html.0.1 %} +
+
📌 Kurztext
+ {% for typ, html in vorgabe.kurztext_html %} + {% if html %} +
{{ html|safe }}
+ {% endif %} + {% endfor %} +
{% endif %} - {% endfor %} + + +
+ {% for typ, html in vorgabe.langtext_html %} + {% if html %} +
{{ html|safe }}
+ {% endif %} + {% endfor %} +
+ + +
+
✅ Checklistenfragen
+ {% if vorgabe.checklistenfragen.all %} +
+ {% for frage in vorgabe.checklistenfragen.all %} +
+
+ + +
+
+ {% endfor %} +
+ {% else %} +

Keine Checklistenfragen vorhanden

+ {% endif %} +
+ + +
+
+
+
🏷️ Stichworte
+ {% if vorgabe.stichworte.all %} +
+ {% for s in vorgabe.stichworte.all %} + + {{ s }} + + {% endfor %} +
+ {% else %} +

Keine Stichworte

+ {% endif %} +
+
+
🔗 Referenzen
+ {% if vorgabe.referenzpfade %} +
+ {% for ref in vorgabe.referenzpfade %} +
{{ ref|safe }}
+ {% endfor %} +
+ {% else %} +

Keine Referenzen

+ {% endif %} +
+
+
+
{% endif %} - -
- {% comment %} LANGTEXT BLOCK {% endcomment %} - {#
Langtext
#} - {% for typ, html in vorgabe.langtext_html %} - {% if html %}
{{ html|safe }}
{% endif %} {% endfor %} - - {% comment %} CHECKLISTENFRAGEN BLOCK {% endcomment %} -
Checklistenfragen
- {% if vorgabe.checklistenfragen.all %} -
    - {% for frage in vorgabe.checklistenfragen.all %} -
  • {{ frage.frage }}
  • - {% endfor %} -
- {% else %} -

Keine Checklistenfragen

- {% endif %} - {% comment %} STICHWORTE + REFERENZEN AT BOTTOM {% endcomment %} -
- Stichworte: - {% if vorgabe.stichworte.all %} - {% for s in vorgabe.stichworte.all %} - {{ s }}{% if not forloop.last %}, {% endif %} - {% endfor %} - {% else %} - Keine - {% endif %} -
- Referenzen: - {% if vorgabe.referenzpfade %} - {% for ref in vorgabe.referenzpfade %} - {{ ref|safe }}{% if not forloop.last %}, {% endif %} - {% endfor %} - {% else %} - Keine - {% endif %} +
+
+ + +
+ +
+
+
⚡ Schnellaktionen
+
+
+ + + +
+ + ← Zurück zur Liste + +
+
+
+ + +
+
+
📊 Statistiken
+
+
+
+
+
+

{{ vorgaben|length }}

+ Vorgaben +
+
+
+

+ {% for vorgabe in vorgaben %} + {% if vorgabe.long_status == "active" %} + {% if forloop.first %}1{% else %}{{ forloop.counter }}{% endif %} + {% endif %} + {% endfor %} +

+ Aktiv +
+
- {% endif %} -{% endfor %} +
+ + + + + {% endblock %} diff --git a/dokumente/templates/standards/standard_list.html b/dokumente/templates/standards/standard_list.html index 1fb5072..91d3efe 100644 --- a/dokumente/templates/standards/standard_list.html +++ b/dokumente/templates/standards/standard_list.html @@ -1,13 +1,201 @@ {% extends "base.html" %} +{% block title %}Standards Informatiksicherheit{% endblock %} +{% block breadcrumb_items %} + +{% endblock %} + {% block content %} -

Standards Informatiksicherheit

-
    +
    +

    Standards Informatiksicherheit

    +
    + {{ dokumente|length }} Standards +
    +
    + + +
    +
    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    +
    +
    + + +
    {% for dokument in dokumente %} -
  • - - {{ dokument.nummer }} – {{ dokument.name }} - -
  • +
    +
    +
    +
    + {{ dokument.nummer }} + {% if not dokument.aktiv %} + Inaktiv + {% else %} + Aktiv + {% endif %} +
    + +
    +
    +
    + + {{ dokument.name }} + +
    + +
    +
    +
    + + Gültig von:
    + {{ dokument.gueltigkeit_von|default_if_none:"-" }} +
    +
    +
    + + Gültig bis:
    + {{ dokument.gueltigkeit_bis|default_if_none:"Auf weiteres" }} +
    +
    +
    +
    + + {% if dokument.autoren.all %} +
    + + Autoren: + {% for autor in dokument.autoren.all %} + {{ autor }}{% if not forloop.last %}, {% endif %} + {% endfor %} + +
    + {% endif %} + + {% if dokument.pruefende.all %} +
    + + Prüfende: + {% for pruefender in dokument.pruefende.all %} + {{ pruefender }}{% if not forloop.last %}, {% endif %} + {% endfor %} + +
    + {% endif %} + +
    + + Details anzeigen + +
    + + {% if dokument.history %} + Version vom {{ dokument.check_date|date:"d.m.Y" }} + {% endif %} + +
    +
    +
    +
    +
    + {% empty %} +
    +
    +

    Keine Standards gefunden

    +

    Es wurden keine Standards gefunden, die Ihren Kriterien entsprechen.

    +
    +
    {% endfor %} -
+
+ + + {% endblock %} \ No newline at end of file diff --git a/pages/templates/base.html b/pages/templates/base.html index 8dc8607..7aa5b62 100644 --- a/pages/templates/base.html +++ b/pages/templates/base.html @@ -1,36 +1,160 @@ - + - {% block title %}{% endblock %} + + {% block title %}Vorgaben Informatiksicherheit BIT{% endblock %} + + {% load static %} + -