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

Commit

Permalink
Display Health Authoritie's "Kopfnummer" (#115)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
f11h authored Aug 31, 2021
1 parent 42ba0df commit fec69ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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

0 comments on commit fec69ae

Please sign in to comment.