aboutsummaryrefslogtreecommitdiff
path: root/basicConfig/ms-connector/templates
diff options
context:
space:
mode:
Diffstat (limited to 'basicConfig/ms-connector/templates')
-rw-r--r--basicConfig/ms-connector/templates/other_login_method.html59
1 files changed, 38 insertions, 21 deletions
diff --git a/basicConfig/ms-connector/templates/other_login_method.html b/basicConfig/ms-connector/templates/other_login_method.html
index 478d6da5..6b6d4aa9 100644
--- a/basicConfig/ms-connector/templates/other_login_method.html
+++ b/basicConfig/ms-connector/templates/other_login_method.html
@@ -49,28 +49,45 @@
<h2 th:text="#{gui.countryselection.header3}"> Betrieben durch das Bundesministerium für Inneres </h2>
</div>
- <div th:if="${createNewErnpEntry != null} and ${createNewErnpEntry}">
-
- <div class="mainDescription">
- <h3 th:text="#{gui.otherlogin.inserternp.header.selection}"> Generate new ERnP entry</h3>
-
- <p th:text="#{gui.otherlogin.inserternp.first}"> Insert ERnP first block </p>
- <p th:text="#{gui.otherlogin.inserternp.second}"> Insert ERnP second block </p>
- <p>
- <span th:text="#{gui.otherlogin.inserternp.third.prefix}"> Insert ERnP third block / part 1 </span>
- <span>&nbsp;<a href="mailto:helpdesk@bmi.gv.at"> helpdesk@bmi.gv.at </a></span>
- <span th:text="#{gui.otherlogin.inserternp.third.postfix}"> Insert ERnP third block / part 3 </span>
- </p>
+ <div th:if="${createNewErnpEntryScreen != null} and ${createNewErnpEntryScreen}">
+
+ <!-- Create new ERnP entry is disabled because we found an existing ERnP entry that was closed by government -->
+ <div th:if="${disallowNewErnpEntry != null} and ${disallowNewErnpEntry}">
+ <div class="mainDescription">
+ <h3 th:text="#{gui.otherlogin.inserternp.disabled.header.selection}"> Disallow new ERnP entry</h3>
+
+ <p th:text="#{gui.otherlogin.inserternp.first}"> Disallow new ERnP first block </p>
+ <p>
+ <span th:text="#{gui.otherlogin.inserternp.disabled.prefix}"> Disallow new ERnP third block / part 1 </span>
+ <span>&nbsp;<a href="mailto:helpdesk@bmi.gv.at"> helpdesk@bmi.gv.at </a></span>
+ <span th:text="#{gui.otherlogin.inserternp.disabled.postfix}"> Disallow new ERnP third block / part 3 </span>
+ </p>
+ </div>
</div>
- <div id="insertErnp" class="block">
- <form class="block,singleButton" method="post" action="$contextPath$submitEndpoint" th:attr="action=@{${submitEndpoint}}">
- <button type="submit" role="button" value="Keine weitere HS / eIDAS"
- th:text="#{gui.otherlogin.button.inserternp}">
- </button>
- <input type="hidden" name="loginSelection" value="ADD_ME_AS_NEW">
- <input type="hidden" name="pendingid" value="$pendingid" th:attr="value=${pendingid}"/>
- </form>
+ <!-- Show button to allow new ERnP entry and give some infos about that option -->
+ <div th:unless="${disallowNewErnpEntry != null} and ${disallowNewErnpEntry}">
+ <div class="mainDescription">
+ <h3 th:text="#{gui.otherlogin.inserternp.header.selection}"> Generate new ERnP entry</h3>
+
+ <p th:text="#{gui.otherlogin.inserternp.first}"> Insert ERnP first block </p>
+ <p th:text="#{gui.otherlogin.inserternp.second}"> Insert ERnP second block </p>
+ <p>
+ <span th:text="#{gui.otherlogin.inserternp.third.prefix}"> Insert ERnP third block / part 1 </span>
+ <span>&nbsp;<a href="mailto:helpdesk@bmi.gv.at"> helpdesk@bmi.gv.at </a></span>
+ <span th:text="#{gui.otherlogin.inserternp.third.postfix}"> Insert ERnP third block / part 3 </span>
+ </p>
+ </div>
+
+ <div id="insertErnp" class="block">
+ <form class="block,singleButton" method="post" action="$contextPath$submitEndpoint" th:attr="action=@{${submitEndpoint}}">
+ <button type="submit" role="button" value="Keine weitere HS / eIDAS"
+ th:text="#{gui.otherlogin.button.inserternp}">
+ </button>
+ <input type="hidden" name="loginSelection" value="ADD_ME_AS_NEW">
+ <input type="hidden" name="pendingid" value="$pendingid" th:attr="value=${pendingid}"/>
+ </form>
+ </div>
</div>
<div id="stopMatching" class="block">
@@ -84,7 +101,7 @@
</div>
- <div th:unless="${createNewErnpEntry!= null} and ${createNewErnpEntry}">
+ <div th:unless="${createNewErnpEntryScreen!= null} and ${createNewErnpEntryScreen}">
<div class="mainDescription">
<h3 th:text="#{gui.otherlogin.header.selection}"> No person data found</h3>