optimize ui

This commit is contained in:
team2
2026-02-17 21:20:26 +01:00
parent 8f563f2c9a
commit 9017701ad3
2 changed files with 56 additions and 54 deletions

View File

@@ -152,12 +152,12 @@
{% if text|length > 240 %}{% endif %}
</div>
<details class="mt-2">
<details class="mt-2 position-relative">
<summary class="text-secondary small">
JSON anzeigen
</summary>
<pre class="bg-dark text-info p-2 border border-secondary rounded mt-2 small">
<pre class="bg-dark text-info p-2 border border-secondary rounded mt-2 small position-absolute top-25 z-1 w-100">
{{ item|json_encode(constant('JSON_PRETTY_PRINT')) }}
</pre>
</details>

View File

@@ -19,58 +19,6 @@
<div class="alert alert-danger">{{ message }}</div>
{% endfor %}
{# ============================= #}
{# Neue Version erstellen #}
{# ============================= #}
<div class="card bg-black border-secondary mb-5 text-light">
<div class="card-body">
<h5 class="text-info mb-3">Neue Version erstellen</h5>
<form method="post">
<input type="hidden"
name="_token"
value="{{ csrf_token('create_system_prompt') }}">
<div class="mb-3">
<label class="form-label">Kommentar (optional)</label>
<input type="text"
name="comment"
class="form-control bg-dark text-light border-secondary"
placeholder="Warum wurde der Prompt geändert?">
<div class="form-text text-secondary">
Dokumentation der Änderung für spätere Nachvollziehbarkeit.
</div>
</div>
<div class="mb-3">
<label class="form-label">
Prompt-Inhalt
</label>
<div class="form-text text-secondary mb-2">
Verfügbare Variable:
<code>{% verbatim %}{% now %}{% endverbatim %}</code>
(aktuelles Datum/Zeit)
</div>
<textarea name="content"
rows="16"
class="form-control bg-dark text-light border-secondary"
required>{{ active ? active.content : '' }}</textarea>
</div>
{% if is_granted('ROLE_SUPER_ADMIN') %}
<div class="d-flex justify-content-end">
<button class="btn btn-outline-info">
Neue Version speichern
</button>
</div>
{% endif %}
</form>
</div>
</div>
{# ============================= #}
{# Versionen Übersicht #}
{# ============================= #}
@@ -169,4 +117,58 @@
des LLM unmittelbar. Änderungen sollten dokumentiert und versioniert erfolgen.
</div>
{# ============================= #}
{# Neue Version erstellen #}
{# ============================= #}
<div class="card bg-black border-secondary mb-5 text-light">
<div class="card-body">
<h5 class="text-info mb-3">Neue Version erstellen</h5>
<form method="post">
<input type="hidden"
name="_token"
value="{{ csrf_token('create_system_prompt') }}">
<div class="mb-3">
<label class="form-label">Kommentar (optional)</label>
<input type="text"
name="comment"
class="form-control bg-dark text-light border-secondary"
placeholder="Warum wurde der Prompt geändert?">
<div class="form-text text-secondary">
Dokumentation der Änderung für spätere Nachvollziehbarkeit.
</div>
</div>
<div class="mb-3">
<label class="form-label">
Prompt-Inhalt
</label>
<div class="form-text text-secondary mb-2">
Verfügbare Variable:
<code>{% verbatim %}{% now %}{% endverbatim %}</code>
(aktuelles Datum/Zeit)
</div>
<textarea name="content"
rows="16"
class="form-control bg-dark text-light border-secondary"
required>{{ active ? active.content : '' }}</textarea>
</div>
{% if is_granted('ROLE_SUPER_ADMIN') %}
<div class="d-flex justify-content-end">
<button class="btn btn-outline-info">
Neue Version speichern
</button>
</div>
{% endif %}
</form>
</div>
</div>
{% endblock %}