feat: added text search for title and description

This commit is contained in:
2025-05-19 21:08:11 +02:00
parent 8df466c61f
commit 6306ffd432
2 changed files with 24 additions and 3 deletions

View File

@@ -59,6 +59,18 @@
<option value="closed" {% if selected_status == "closed" %}selected{% endif %}>Erledigt</option>
</select>
</form>
<form method="get" style="margin-bottom: 1.5rem;">
<input type="text" name="q" placeholder="🔍 Suche nach Titel oder Beschreibung"
value="{{ search_query }}" style="padding: 0.4rem; width: 60%; max-width: 300px;">
{% if selected_status %}
<input type="hidden" name="status" value="{{ selected_status }}">
{% endif %}
<button type="submit">Suchen</button>
</form>
{% if search_query %}
<p>Ergebnisse für „<strong>{{ search_query }}</strong>“:</p>
{% endif %}
{% for ticket in tickets %}
<div class="ticket-item">