diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2022-02-08 08:18:35 +0000 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2022-02-08 08:18:35 +0000 |
commit | b81ef7a782278cb941d3b424ccbe1ccc976c54f3 (patch) | |
tree | 220622592c0e49e1bf8ca60d3f16b4881b9b8ce1 /connector/src/test/resources/config/templates/other_login_method.html | |
parent | 07b71d26fb481859548b597aa43d7312608220d9 (diff) | |
parent | 884f208b5f4152a13e3f77d64ce0d4adec481700 (diff) | |
download | National_eIDAS_Gateway-b81ef7a782278cb941d3b424ccbe1ccc976c54f3.tar.gz National_eIDAS_Gateway-b81ef7a782278cb941d3b424ccbe1ccc976c54f3.tar.bz2 National_eIDAS_Gateway-b81ef7a782278cb941d3b424ccbe1ccc976c54f3.zip |
Merge branch 'feature/matching_search_address' into 'feature/matching_base'
add SOAP client to search addresses and add first simple test to request...
See merge request egiz/eidas_at_proxy!15
Diffstat (limited to 'connector/src/test/resources/config/templates/other_login_method.html')
-rw-r--r-- | connector/src/test/resources/config/templates/other_login_method.html | 217 |
1 files changed, 28 insertions, 189 deletions
diff --git a/connector/src/test/resources/config/templates/other_login_method.html b/connector/src/test/resources/config/templates/other_login_method.html index 56c368c6..8f846f84 100644 --- a/connector/src/test/resources/config/templates/other_login_method.html +++ b/connector/src/test/resources/config/templates/other_login_method.html @@ -6,180 +6,18 @@ <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> <meta name="viewport" content="width=device-width, initial-scale=1"> - <link rel="stylesheet" href="$contextPath/static/css/css_country.css" th:href="@{/static/css/css_country.css}"/> - <title th:text="#{gui.countryselection.title}">eIDAS-Login Login-Auswahl</title> - <script type="text/javascript"> - </script> + <link rel="stylesheet" href="../webcontent/css/css_country.css" th:href="@{/static/css/css_country.css}"/> + <title th:text="#{gui.otherlogin.title}">eIDAS-Login Other Login Methods</title> <style> - body { - background-image: none; - margin: 0px; - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - } - - div.header { - background-color: #e9ecef; - padding-top: 28px; - padding-left: 137px; - padding-right: 137px; - padding-bottom: 12px; - } - - div.titlebar { - padding: 0px; - } - - div.titlebar div { - } - - .hidden { - display: none; - } - - ul.nav_oben { - padding: 0px; - margin: 0px; - text-align: right; - text-transform: uppercase; - } - - li { - display: inline-block; - } - - div.header a { - text-decoration: none; - color: black; - } - - a { - text-decoration: none; - color: #a22c1c; - } - .block { - /* override country.css */ - width: 200px; - padding-bottom: 20px; - } - - @media only screen and (min-width: 1000px) { - div.header { - padding-left: 137px; - padding-right: 137px; - } - - .content { - padding-left: 137px; - padding-right: 137px; - } - - footer { - padding-left: 137px; - padding-right: 137px; - } - } - - @media only screen and (max-width: 999px) { - div.header { - padding-left: 1em; - padding-right: 1em; - } - - .content { - padding-left: 1em; - padding-right: 1em; - } - - footer { - padding-left: 1em; - padding-right: 1em; - } - } - - div.subtitle h1 { - padding: 0px; - margin: 0px; - font-size: 130%; - align: right; - } - - div.subtitle h2 { - padding: 0px; - margin: 0px; - font-size: 115%; - } - - footer { - left: 0; - padding-top: 1em; - bottom: 0; width: 100%; - height: 2em; - background-color: rgb(162, 44, 28); - color: white; - } - - .float { - float: left; - } - - .floatright { - float: right; - } - - .copyright { - width: 66%; - font-size: 80%; } - - #countries { - padding-bottom: 40px; - } - - #country { - padding-bottom: 20px; - } - - input[type=submit] { - width: inherit; - /* text-align: left; */ - } - - form { - justify-content: center; + button { + padding: 0.5em; + margin: 0.5em; + width: 20em; } </style> - <script type="text/javascript"> - - /* Element.closest polyfill - https://developer.mozilla.org/en-US/docs/Web/API/Element/closest License: public domain*/ - if (!Element.prototype.matches) - Element.prototype.matches = Element.prototype.msMatchesSelector || - Element.prototype.webkitMatchesSelector; - - if (!Element.prototype.closest) - Element.prototype.closest = function (s) { - var el = this; - if (!document.documentElement.contains(el)) return null; - do { - if (el.matches(s)) return el; - el = el.parentElement || el.parentNode; - } while (el !== null && el.nodeType === 1); - return null; - }; - - - function clickCountryFlag(element) { - if (!element) return false; - - var form = element.closest("form"); - - if (!form) return false; - - form.submit(); - return false; - } - </script> </head> <body> <div class="header container"> @@ -198,8 +36,10 @@ </div> </li> - <li><a href="https://www.bmi.gv.at/" target="_blank" th:text="#{gui.countryselection.link.bmi}"> Startseite - BMI </a></li> + <li> + <a href="https://www.bmi.gv.at/" target="_blank" th:text="#{gui.countryselection.link.bmi}">Startseite + BMI </a> + </li> </ul> </div> </div> @@ -209,35 +49,34 @@ <h2 th:text="#{gui.countryselection.header3}"> Betrieben durch das Bundesministerium für Inneres </h2> </div> - <h1 th:text="#{gui.countryselection.header.selection}"> Wählen Sie Ihr Land / Select your country </h1> + <h1 th:text="#{gui.otherlogin.header.selection}"> Select an alternative login method </h1> - <div id="country"> - <!-- Active countries --> - <form class="block" method="post" action="$contextPath$submitEndpoint" th:attr="action=@{${submitEndpoint}}"> - <input type="submit" role="button" value="Handy-Signatur / Mobile Signature" - th:attr="value=#{gui.countryselection.country.de}"/> - <input type="hidden" name="selectedCountry" value="HS"> + <div id="otherlogin" class="block"> + <form method="post" action="$contextPath$submitEndpoint" th:attr="action=@{${submitEndpoint}}"> + <button type="submit" role="button" value="Handy-Signatur / Mobile Signature" + th:text="#{gui.otherlogin.hs}">A + </button> + <input type="hidden" name="loginSelection" value="MOBILE_PHONE_SIGNATURE_LOGIN"> <input type="hidden" name="pendingid" value="$pendingid" th:attr="value=${pendingid}"/> </form> - <form class="block" method="post" action="$contextPath$submitEndpoint" th:attr="action=@{${submitEndpoint}}"> - <input type="submit" role="button" value="Andere eIDAS ID" - th:attr="value=#{gui.countryselection.country.de}"/> - <input type="hidden" name="selectedCountry" value="EIDAS"> + <form method="post" action="$contextPath$submitEndpoint" th:attr="action=@{${submitEndpoint}}"> + <button type="submit" role="button" value="Andere eIDAS ID" th:text="#{gui.otherlogin.eidas}">B + </button> + <input type="hidden" name="loginSelection" value="EIDAS_LOGIN"> <input type="hidden" name="pendingid" value="$pendingid" th:attr="value=${pendingid}"/> </form> - <form class="block" method="post" action="$contextPath$submitEndpoint" th:attr="action=@{${submitEndpoint}}"> - <input type="submit" role="button" value="Keine weitere HS / eIDAS" - th:attr="value=#{gui.countryselection.country.de}"/> - <input type="hidden" name="selectedCountry" value="NONE"> + <form method="post" action="$contextPath$submitEndpoint" th:attr="action=@{${submitEndpoint}}"> + <button type="submit" role="button" value="Keine weitere HS / eIDAS" + th:text="#{gui.otherlogin.none}">C + </button> + <input type="hidden" name="loginSelection" value="NO_OTHER_LOGIN"> <input type="hidden" name="pendingid" value="$pendingid" th:attr="value=${pendingid}"/> </form> - <!-- todo wohnsitz --> </div> <!-- Abbrechen Button --> - <form class="block" method="post" action="$contextPath$submitEndpoint" th:attr="action=@{${submitEndpoint}}"> - <input type="submit" class="btn btn-outline-primary btn-block" value="Abbrechen/Cancel" - th:attr="value=#{gui.countryselection.cancel}"> + <form 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="pendingid" value="$pendingid" th:attr="value=${pendingid}"> </form> |