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

feat: display health authoritie's "Kopfnummer" #115

Merged
merged 5 commits into from
Aug 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/main/resources/static/tan.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
$(document).ready(() => {
const healthAuthorityInput = $("#health-authority");
const healthAuthorityIdInput = $("#health-authority-id");
const healthAuthorityIdDisplay = $("#health-authority-id-display");
const healthAuthorityDataList = $("#health-authorities");
const piwTanButton = $("#piw-tan-button");

Expand All @@ -16,6 +17,7 @@
if (foundId) {
piwTanButton.prop("disabled", false);
healthAuthorityIdInput.val(foundId.nr);
healthAuthorityIdDisplay.text(foundId.nr);
} else {
piwTanButton.prop("disabled", true);
}
Expand Down
7 changes: 5 additions & 2 deletions src/main/resources/templates/start.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<input class="button" style="top: 400px;" type="submit" th:name="${'TEST'}" value="Eine TeleTan erzeugen" />
</div>

<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">
<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">
<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">
PIW Tan (Positiver bei Event)
</div>
Expand All @@ -57,7 +57,10 @@
</div>
<input id="health-authority" type="text" class="input" style="top: 570px" list="health-authorities" />
<datalist id="health-authorities"><!-- Populated by Script --></datalist>
<input id="piw-tan-button" class="button" style="top: 620px;" type="submit" th:name="${'EVENT'}" value="Eine PIW Tan erzeugen" />
<div class="text" style="top: 620px;">
Kopfnummer: <i id="health-authority-id-display">Wählen Sie das anfordernde Gesundheitsamt aus</i>
</div>
<input id="piw-tan-button" class="button" style="top: 650px;" type="submit" th:name="${'EVENT'}" value="Eine PIW Tan erzeugen" />
</div>
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}" />
<input id="health-authority-id" type="hidden" th:name="${'HAID'}" />
Expand Down