diff options
| author | Paul-Christian Volkmer | 2026-03-11 12:02:38 +0100 |
|---|---|---|
| committer | GitHub | 2026-03-11 11:02:38 +0000 |
| commit | e4b2c30e446affc5d258c52bfdbcbd758105f7ef (patch) | |
| tree | 1e1a14006e37cec379603a571a50dd0e216995f9 /src/main/resources/templates | |
| parent | 22d21b1bccc75f0df1629b972d03ffbdf05e9192 (diff) | |
feat: add request filter (#262)
This enables filter for
* All requests
* Requests sent to DNPM:DIP
and, if initial submission block is enabled
* Confirmed Requests sent to DNPM:DIP
* Unconfirmed Requests sent to DNPM:DIP
Diffstat (limited to 'src/main/resources/templates')
| -rw-r--r-- | src/main/resources/templates/index.html | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 7245a8b..40fb90a 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -12,12 +12,23 @@ <div class="search-form" sec:authorize="hasRole('USER') or hasRole('ADMIN')"> <form th:action="@{/}" method="get"> <input id="search-input" type="text" name="q" maxlength="64" placeholder="Suche nach Patienten-Pseudonym oder TAN" th:value="${query}"/> + <select name="f" onchange="this.form.submit()"> + <option value="">in allen Anfragen</option> + <option th:selected="${filter == 'all-dip'}" th:value="all-dip">in DNPM:DIP</option> + <option th:if="${postInitialSubmissionBlock}" th:selected="${filter == 'confirmed'}" th:value="confirmed">in DNPM:DIP mit Meldebestätigung</option> + <option th:if="${postInitialSubmissionBlock}" th:selected="${filter == 'unconfirmed'}" th:value="unconfirmed">in DNPM:DIP ohne Meldebestätigung</option> + </select> <a th:href="@{/}">🞫</a> </form> </div> <h1> - Alle Anfragen + <th:block th:switch="${filter}"> + <th:block th:case="null">Alle Anfragen</th:block> + <th:block th:case="'all-dip'">Alle Anfragen in DNPM:DIP</th:block> + <th:block th:case="'confirmed'">Alle Anfragen in DNPM:DIP mit Meldebestätigung</th:block> + <th:block th:case="'unconfirmed'">Alle Anfragen in DNPM:DIP ohne Meldebestätigung</th:block> + </th:block> <a id="reload-notify" class="btn btn-red reload" title="Neue Anfragen laden" th:href="@{/}"> <span>Neue Anfragen laden</span> </a> |
