From c5f4715e97158651acb1e411416de4b09ead114b Mon Sep 17 00:00:00 2001 From: "Adrian A. Baumann" Date: Fri, 7 Nov 2025 14:31:05 +0100 Subject: [PATCH] Some tweaks on Oblique --- .../templates/standards/standard_detail.html | 263 +++++++++++------- pages/templates/base.html | 2 +- .../templates/stichworte/stichwort_list.html | 18 +- 3 files changed, 178 insertions(+), 105 deletions(-) diff --git a/dokumente/templates/standards/standard_detail.html b/dokumente/templates/standards/standard_detail.html index e4ff3da..526e29a 100644 --- a/dokumente/templates/standards/standard_detail.html +++ b/dokumente/templates/standards/standard_detail.html @@ -1,110 +1,181 @@ {% extends "base.html" %} -{% block title %}{{ standard }}{% endblock %} + +{% block title %}{{ standard.nummer }} – {{ standard.name }}{% 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 %} - +

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

- -{% if standard.geltungsbereich_html %} -

Geltungsbereich

-{% for typ, html in standard.geltungsbereich_html %} -
{{ html|safe }}
-{% endfor %} -{% endif %} - + {% if standard.history == True %} + + {% 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 %} + +
+
+
+
Autoren:
+
{{ standard.autoren.all|join:", " }}
- {{ vorgabe.thema }} +
Prüfende:
+
{{ standard.pruefende.all|join:", " }}
+ +
Gültigkeit:
+
{{ standard.gueltigkeit_von }} bis {{ standard.gueltigkeit_bis|default_if_none:"auf weiteres" }}
+
+

+ + JSON herunterladen + +

+
-
- - {% comment %} KURZTEXT BLOCK {% endcomment %} - {% if vorgabe.kurztext_html.0.1 %} -
- {% for typ, html in vorgabe.kurztext_html %} - {% if html %} -
{{ html|safe }}
- {% endif %} - {% endfor %} -
- {% 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 }}
  • + + {% if standard.einleitung_html %} +
    +
    +
    +
    +

    Einleitung

    +
    +
    + {% for typ, html in standard.einleitung_html %} +
    {{ html|safe }}
    {% 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 %} -
+
{% endif %} -{% endfor %} + + + {% 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 not forloop.first %} +
+ {% endif %} + + +
+
+
+

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

+
+ {{ vorgabe.thema }} + {% if vorgabe.relevanzset %} + + Relevanz: {{ vorgabe.relevanzset|join:", " }} + + {% endif %} +
+
+
+ +
+ + {% if vorgabe.kurztext_html.0.1 %} +
+ {% for typ, html in vorgabe.kurztext_html %} + {% if html %} +
{{ html|safe }}
+ {% endif %} + {% endfor %} +
+ {% endif %} + + +
+ {% for typ, html in vorgabe.langtext_html %} + {% if html %} +
{{ html|safe }}
+ {% endif %} + {% endfor %} +
+ + +

Checklistenfragen

+ {% if vorgabe.checklistenfragen.all %} +
    + {% for frage in vorgabe.checklistenfragen.all %} +
  • {{ frage.frage }}
  • + {% endfor %} +
+ {% else %} +

Keine Checklistenfragen

+ {% endif %} + + +
+

+ 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 %} +

+
+
+
+
+
+ {% endif %} + {% endfor %} +
{% endblock %} diff --git a/pages/templates/base.html b/pages/templates/base.html index fe4dea6..ef8ff6f 100644 --- a/pages/templates/base.html +++ b/pages/templates/base.html @@ -114,7 +114,7 @@ -
+
{% if messages %}
diff --git a/stichworte/templates/stichworte/stichwort_list.html b/stichworte/templates/stichworte/stichwort_list.html index 0f6d59f..b15b838 100644 --- a/stichworte/templates/stichworte/stichwort_list.html +++ b/stichworte/templates/stichworte/stichwort_list.html @@ -11,16 +11,18 @@

{{ Anfang }}

-
- {% for Wort in Worte %} - - {{ Wort }} - - {% endfor %} -
+
+ {% for Wort in Worte %} + + {% endfor %} +
{% endfor %}
{% endblock %} \ No newline at end of file