aboutsummaryrefslogtreecommitdiff
path: root/basicConfig/ms-connector/templates
diff options
context:
space:
mode:
authorThomas <>2022-07-05 17:49:34 +0200
committerThomas <>2022-07-05 17:49:34 +0200
commitb5766d8107d6e557921f9a694893a1284963ef16 (patch)
tree708e695bb0c90d958ef0e3cde6008169fb683893 /basicConfig/ms-connector/templates
parent154f7f2a9c8a33d3fedf341df2be62d8404ff77f (diff)
parent48695aa01a86890990dc4e42b9d44493ec840b25 (diff)
downloadNational_eIDAS_Gateway-b5766d8107d6e557921f9a694893a1284963ef16.tar.gz
National_eIDAS_Gateway-b5766d8107d6e557921f9a694893a1284963ef16.tar.bz2
National_eIDAS_Gateway-b5766d8107d6e557921f9a694893a1284963ef16.zip
Merge branch 'nightlybuild' into feature/ms_proxy_service
Diffstat (limited to 'basicConfig/ms-connector/templates')
-rw-r--r--basicConfig/ms-connector/templates/other_login_method.html17
-rw-r--r--basicConfig/ms-connector/templates/residency.html8
2 files changed, 22 insertions, 3 deletions
diff --git a/basicConfig/ms-connector/templates/other_login_method.html b/basicConfig/ms-connector/templates/other_login_method.html
index 120b0ecd..d392a553 100644
--- a/basicConfig/ms-connector/templates/other_login_method.html
+++ b/basicConfig/ms-connector/templates/other_login_method.html
@@ -124,20 +124,33 @@
<input type="hidden" name="loginSelection" value="EIDAS_LOGIN">
<input type="hidden" name="pendingid" value="$pendingid" th:attr="value=${pendingid}"/>
</form>
- <form method="post" action="$contextPath$submitEndpoint" th:attr="action=@{${submitEndpoint}}">
+
+
+
+ <form th:if="${enableMatchingByAddressSearch != null} and ${enableMatchingByAddressSearch}"
+ method="post" action="$contextPath$submitEndpoint" th:attr="action=@{${submitEndpoint}}">
<button class="primaryButton" type="submit" role="button" value="Keine weitere HS / eIDAS"
th:text="#{gui.otherlogin.button.none}">C
</button>
<input type="hidden" name="loginSelection" value="NO_OTHER_LOGIN">
<input type="hidden" name="pendingid" value="$pendingid" th:attr="value=${pendingid}"/>
</form>
+ <form th:unless="${enableMatchingByAddressSearch != null} and ${enableMatchingByAddressSearch}"
+ method="post" action="$contextPath$submitEndpoint" th:attr="action=@{${submitEndpoint}}">
+ <button class="primaryButton" type="submit" role="button" value="Keine weitere HS / eIDAS"
+ th:text="#{gui.otherlogin.button.none}">C
+ </button>
+ <input type="hidden" name="loginSelection" value="REQUESTING_NEW_ENTRY">
+ <input type="hidden" name="pendingid" value="$pendingid" th:attr="value=${pendingid}"/>
+ </form>
+
</div>
<div id="stopMatching" class="block">
<!-- Abbrechen Button -->
<form class="block,singleButton" method="post" action="$contextPath$submitEndpoint" th:attr="action=@{${submitEndpoint}}">
<button type="submit" value="Abbrechen/Cancel" th:text="#{gui.otherlogin.cancel}"></button>
- <input type="hidden" name="stopAuthProcess" value="true">
+ <input type="hidden" name="loginSelection" value="STOP_MATCHING_PROCESS">
<input type="hidden" name="pendingid" value="$pendingid" th:attr="value=${pendingid}">
</form>
</div>
diff --git a/basicConfig/ms-connector/templates/residency.html b/basicConfig/ms-connector/templates/residency.html
index 26812ec0..de77269f 100644
--- a/basicConfig/ms-connector/templates/residency.html
+++ b/basicConfig/ms-connector/templates/residency.html
@@ -33,6 +33,7 @@
function search() {
let updatedText = /*[[#{gui.residency.updated}]]*/ 'Updated text';
let errorText = /*[[#{gui.residency.error}]]*/ 'Error';
+ let emptyText = /*[[#{gui.residency.noentry}]]*/ 'Found {0}'
let foundText = /*[[#{gui.residency.found}]]*/ 'Found {0}';
let uniqueText = /*[[#{gui.residency.unique}]]*/ 'Unique';
let invalidInputText = /*[[#{gui.residency.header.inputinvalid}]]*/ 'Invalid';
@@ -57,7 +58,12 @@
$("#inputForm #inputNumber").val(data["results"][0]["number"]);
return;
}
- $("#textResult").show().text(foundText.replace("{0}", data["resultCount"]));
+
+ if (data["resultCount"] === 0) {
+ $("#textResult").show().text(emptyText);
+ } else {
+ $("#textResult").show().text(foundText.replace("{0}", data["resultCount"]));
+ }
$("#tableResult").show();
$("#tableResult tbody").empty();
$.each(data.results, function (i, output) {