Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.

Commit fec69ae

Browse files
authored
Display Health Authoritie's "Kopfnummer" (#115)
* Rename TeleTAN Portal to CWA Tan Portal Add Health Authority Selector for PIW TAN * Add Server-Side Check of HA ID * Add Display of "Kopfnummer" of Health Authority * Add accidently removed th:if attribute
1 parent 42ba0df commit fec69ae

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/main/resources/static/tan.js

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
$(document).ready(() => {
33
const healthAuthorityInput = $("#health-authority");
44
const healthAuthorityIdInput = $("#health-authority-id");
5+
const healthAuthorityIdDisplay = $("#health-authority-id-display");
56
const healthAuthorityDataList = $("#health-authorities");
67
const piwTanButton = $("#piw-tan-button");
78

@@ -16,6 +17,7 @@
1617
if (foundId) {
1718
piwTanButton.prop("disabled", false);
1819
healthAuthorityIdInput.val(foundId.nr);
20+
healthAuthorityIdDisplay.text(foundId.nr);
1921
} else {
2022
piwTanButton.prop("disabled", true);
2123
}

src/main/resources/templates/start.html

+5-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<input class="button" style="top: 400px;" type="submit" th:name="${'TEST'}" value="Eine TeleTan erzeugen" />
4848
</div>
4949

50-
<div th:if="${role_event}" class="box" style="border: 1px solid gray; border-radius: 3px; top: 480px; height: 200px; width: 600px; left: 50%; margin-left: -300px; position: fixed">
50+
<div th:if="${role_event}" class="box" style="border: 1px solid gray; border-radius: 3px; top: 480px; height: 240px; width: 600px; left: 50%; margin-left: -300px; position: fixed">
5151
<div class="box-title" style="font-family: 'Telegrotesk Next Regular'; font-size: 18px; color: #262626; display: inline; position: relative; top: -10px; left: 20px; background-color: white; padding: 0 5px">
5252
PIW Tan (Positiver bei Event)
5353
</div>
@@ -57,7 +57,10 @@
5757
</div>
5858
<input id="health-authority" type="text" class="input" style="top: 570px" list="health-authorities" />
5959
<datalist id="health-authorities"><!-- Populated by Script --></datalist>
60-
<input id="piw-tan-button" class="button" style="top: 620px;" type="submit" th:name="${'EVENT'}" value="Eine PIW Tan erzeugen" />
60+
<div class="text" style="top: 620px;">
61+
Kopfnummer: <i id="health-authority-id-display">Wählen Sie das anfordernde Gesundheitsamt aus</i>
62+
</div>
63+
<input id="piw-tan-button" class="button" style="top: 650px;" type="submit" th:name="${'EVENT'}" value="Eine PIW Tan erzeugen" />
6164
</div>
6265
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}" />
6366
<input id="health-authority-id" type="hidden" th:name="${'HAID'}" />

0 commit comments

Comments
 (0)