Korrektur der Feldreihenfolge in den Suchergebnissen und Verbesserung der Tag-Anzeige

This commit is contained in:
2025-03-19 13:34:10 +01:00
parent fade9b8d62
commit daf7499b4e
2 changed files with 140 additions and 12 deletions

View File

@@ -76,6 +76,16 @@
<i class="fas fa-search search-icon"></i>
</div>
</div>
<div class="search-field">
<div class="input-group">
<select id="tagFilter" class="form-select" onchange="searchCustomers()">
<option value="medisoft" selected>MEDISOFT</option>
<option value="mediconsult">MEDICONSULT</option>
<option value="all">Alle</option>
</select>
</div>
</div>
</div>
<div class="result-counts">
@@ -277,6 +287,7 @@
const plz = document.getElementById('plzInput').value;
const fachrichtung = document.getElementById('fachrichtungInput').value;
const searchOperator = document.querySelector('input[name="searchOperator"]:checked').value;
const selectedTag = document.getElementById('tagFilter').value;
// Zeige das Lade-Icon
document.getElementById('loading').style.display = 'block';
@@ -290,6 +301,7 @@
if (plz) params.append('plz', plz);
if (fachrichtung) params.append('fachrichtung', fachrichtung);
if (searchOperator) params.append('operator', searchOperator);
if (selectedTag) params.append('tag', selectedTag);
// Führe die Suche durch
fetch('/search?' + params.toString())