|
2 | 2 | <html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout}"> |
3 | 3 |
|
4 | 4 | <head> |
5 | | - <meta http-equiv="X-UA-Compatible" content="IE=edge"/> |
6 | | - <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/> |
| 5 | + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 6 | + <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> |
7 | 7 |
|
8 | | - <title th:text="#{screen.generic.login.header}"></title> |
9 | | - <link href="../../static/css/cas.css" rel="stylesheet" th:remove="tag"/> |
| 8 | + <title th:text="#{screen.generic.loginsuccess.title}"></title> |
| 9 | + <link href="../../static/css/cas.css" rel="stylesheet" th:remove="tag" /> |
10 | 10 | </head> |
11 | 11 |
|
12 | | -<body> |
13 | | - <main role="main" class="container mt-3 mb-3"> |
14 | | - <div layout:fragment="content" class="row"> |
15 | | - <div class="banner-generic m-auto mdc-card p-4 w-card-wide"> |
16 | | - <div class="login-generic-card"> |
| 12 | +<body class="mdc-typography"> |
| 13 | + <div layout:fragment="content" class="d-flex justify-content-center"> |
| 14 | + |
| 15 | + <div class="d-flex justify-content-center flex-md-row flex-column mdc-card mdc-card-content w-lg-30"> |
| 16 | + <section class="login-error-card"> |
| 17 | + <section> |
17 | 18 | <div th:replace="fragments/osfbannerui :: osfBannerUI"> |
18 | 19 | <a href="fragments/osfbannerui.html"></a> |
19 | 20 | </div> |
| 21 | + </section> |
| 22 | + <section class="text-without-mdi text-center text-bold text-large margin-large-vertical title-danger"> |
| 23 | + <span th:utext="#{screen.generic.loginsuccess.tip}"></span> |
| 24 | + </section> |
| 25 | + <hr class="my-4" /> |
| 26 | + <section class="card-message"> |
| 27 | + <h2 th:utext="#{screen.generic.loginsuccess.heading}"></h2> |
| 28 | + <div th:utext="#{screen.generic.loginsuccess.message}"></div> |
| 29 | + </section> |
| 30 | + <section class="form-button"> |
| 31 | + <a class="mdc-button mdc-button--raised button-osf-blue" th:href="@{${osfUrl.dashboard}}"> |
| 32 | + <span class="mdc-button__label" th:utext="#{screen.generic.loginsuccess.button.continue}"></span> |
| 33 | + </a> |
| 34 | + </section> |
| 35 | + <hr class="my-4" /> |
| 36 | + <section class="text-with-mdi"> |
| 37 | + <i class="mdi mdi-logout mdi-before-text"></i> |
| 38 | + <span><a th:href="@{/logout(service=${osfUrl.logout})}" th:utext="#{screen.generic.loginsuccess.link.cancel}"></a></span> |
| 39 | + </section> |
| 40 | + <section> |
| 41 | + <!-- <section th:if="${osfCasLoginContext.devMode}"> --> |
20 | 42 | <hr class="my-4" /> |
21 | | - <div class="card-message"> |
22 | | - <h2 th:utext="#{screen.generic.login.heading}"></h2> |
23 | | - <p th:utext="#{screen.generic.login.message}"></p> |
24 | | - </div> |
25 | | - <div class="form-button-inline"> |
26 | | - <a class="mdc-button mdc-button--raised button-osf-green" th:href="@{${osfUrl.dashboard}}"> |
27 | | - <span class="mdc-button__label" th:utext="#{screen.generic.button.backtoosf}"></span> |
28 | | - </a> |
29 | | - <a class="mdc-button mdc-button--raised button-osf-blue" th:href="@{/logout(service=${osfUrl.logout})}"> |
30 | | - <span class="mdc-button__label" th:utext="#{screen.generic.button.logout}"></span> |
31 | | - </a> |
32 | | - </div> |
33 | | - <hr class="hr-text" data-content="DEVELOPING MODE ONLY" /> |
34 | | - <div class="form-button"> |
| 43 | + <section class="text-without-mdi text-center text-bold text-large margin-large-vertical title-danger"> |
| 44 | + <span th:utext="#{screen.authnerror.instructions.devmode}"></span> |
| 45 | + </section> |
| 46 | + <section class="form-button"> |
35 | 47 | <button id="buttonViewAuthenticationDetails" type="button" |
36 | | - class="mdc-button mdc-button--raised button-osf-red" |
37 | | - onclick="showAuthenticationDetails();"> |
38 | | - <span class="mdc-button__label" th:utext="#{screen.generic.button.viewdetails}"></span> |
| 48 | + class="mdc-button mdc-button--raised button-osf-navbar" |
| 49 | + onclick="showAuthenticationDetails();"> |
| 50 | + <span class="mdc-button__label" th:utext="#{screen.generic.loginsuccess.button.show}"></span> |
39 | 51 | </button> |
40 | | - <button id="buttonHideAuthenticationDetails" type="button" style="display: none;" |
41 | | - class="mdc-button mdc-button--raised button-osf-red" |
42 | | - onclick="hideAuthenticationrDetails();"> |
43 | | - <span class="mdc-button__label" th:utext="#{screen.generic.button.hidedetails}"></span> |
| 52 | + <button id="buttonHideAuthenticationDetails" type="button" |
| 53 | + class="mdc-button mdc-button--raised button-osf-navbar hidden-button" |
| 54 | + onclick="hideAuthenticationDetails();"> |
| 55 | + <span class="mdc-button__label" th:utext="#{screen.generic.loginsuccess.button.hide}"></span> |
44 | 56 | </button> |
45 | | - </div> |
46 | | - <div id="authenticationDetails" class="pre-formatted-small word-break-all" style="display: none;"> |
| 57 | + </section> |
| 58 | + <section id="authenticationDetails" class="pre-formatted-small word-break-all hidden-details"> |
47 | 59 | <p th:unless="${#maps.isEmpty(authentication.principal.attributes)}"> |
48 | 60 | The following attributes are resolved for <strong th:utext="${authentication.principal.id}"></strong>: |
49 | | - <div class="w-100 mdc-data-table mx-auto my-4" id="divPrincipalAttributes"> |
50 | | - <table id="attributesTable" class="mdc-data-table__table" style="white-space: unset"> |
51 | | - <thead> |
52 | | - <tr class="mdc-data-table__header-row"> |
53 | | - <th class="mdc-data-table__header-cell" role="columnheader" scope="col">Attribute</th> |
54 | | - <th class="mdc-data-table__header-cell" role="columnheader" scope="col">Value(s)</th> |
55 | | - <th class="mdc-data-table__header-cell" role="columnheader" scope="col">Type</th> |
56 | | - </tr> |
57 | | - </thead> |
58 | | - <tbody class="mdc-data-table__content"> |
59 | | - <tr th:each="attribute : ${authentication.principal.attributes}" class="mdc-data-table__row"> |
60 | | - <td class="mdc-data-table__cell"><code><span th:utext="${attribute.key}"></span></code></td> |
61 | | - <td class="mdc-data-table__cell"><code><span th:utext="${attribute.value}"></span></code></td> |
62 | | - <td class="mdc-data-table__cell"><code>Principal</code></td> |
63 | | - </tr> |
64 | | - <tr th:each="attribute : ${authentication.attributes}" class="mdc-data-table__row"> |
65 | | - <td class="mdc-data-table__cell"><code><span th:utext="${attribute.key}"></span></code></td> |
66 | | - <td class="mdc-data-table__cell"><code><span th:utext="${attribute.value}"></span></code></td> |
67 | | - <td class="mdc-data-table__cell"><code>Authentication</code></td> |
68 | | - </tr> |
69 | | - </tbody> |
70 | | - </table> |
71 | | - </div> |
72 | 61 | </p> |
73 | | - </div> |
74 | | - </div> |
75 | | - </div> |
76 | | - <script type="text/javascript" th:inline="javascript"> |
77 | | - let div = document.querySelector('#divPrincipalAttributes'); |
78 | | - new mdc.dataTable.MDCDataTable(div); |
79 | | - |
80 | | - /*<![CDATA[*/ |
81 | | - function showAuthenticationDetails() { |
82 | | - $("#buttonViewAuthenticationDetails").hide() |
83 | | - $("#buttonHideAuthenticationDetails").show() |
84 | | - $("#authenticationDetails").show() |
85 | | - } |
86 | | - function hideAuthenticationrDetails() { |
87 | | - $("#buttonViewAuthenticationDetails").show() |
88 | | - $("#buttonHideAuthenticationDetails").hide() |
89 | | - $("#authenticationDetails").hide() |
90 | | - } |
91 | | - /*]]>*/ |
92 | | - </script> |
| 62 | + <div class="w-100 mdc-data-table mx-auto my-4" id="divPrincipalAttributes"> |
| 63 | + <table id="attributesTable" class="mdc-data-table__table" style="white-space: unset"> |
| 64 | + <thead> |
| 65 | + <tr class="mdc-data-table__header-row"> |
| 66 | + <th class="mdc-data-table__header-cell" role="columnheader" scope="col">Attribute</th> |
| 67 | + <th class="mdc-data-table__header-cell" role="columnheader" scope="col">Value(s)</th> |
| 68 | + <th class="mdc-data-table__header-cell" role="columnheader" scope="col">Type</th> |
| 69 | + </tr> |
| 70 | + </thead> |
| 71 | + <tbody class="mdc-data-table__content"> |
| 72 | + <tr th:each="attribute : ${authentication.principal.attributes}" class="mdc-data-table__row"> |
| 73 | + <td class="mdc-data-table__cell"><code><span th:utext="${attribute.key}"></span></code></td> |
| 74 | + <td class="mdc-data-table__cell"><code><span th:utext="${attribute.value}"></span></code></td> |
| 75 | + <td class="mdc-data-table__cell"><code>Principal</code></td> |
| 76 | + </tr> |
| 77 | + <tr th:each="attribute : ${authentication.attributes}" class="mdc-data-table__row"> |
| 78 | + <td class="mdc-data-table__cell"><code><span th:utext="${attribute.key}"></span></code></td> |
| 79 | + <td class="mdc-data-table__cell"><code><span th:utext="${attribute.value}"></span></code></td> |
| 80 | + <td class="mdc-data-table__cell"><code>Authentication</code></td> |
| 81 | + </tr> |
| 82 | + </tbody> |
| 83 | + </table> |
| 84 | + </div> |
| 85 | + </section> |
| 86 | + </section> |
| 87 | + </section> |
93 | 88 | </div> |
94 | | - </main> |
| 89 | + |
| 90 | + <script type="text/javascript"> |
| 91 | + disableSignUpButton(); |
| 92 | + </script> |
| 93 | + |
| 94 | + <script type="text/javascript"> |
| 95 | + <!-- <script type="text/javascript" th:if="${devMode}"> --> |
| 96 | + let div = document.querySelector('#divPrincipalAttributes'); |
| 97 | + new mdc.dataTable.MDCDataTable(div); |
| 98 | + function showAuthenticationDetails() { |
| 99 | + $("#buttonViewAuthenticationDetails").hide() |
| 100 | + $("#buttonHideAuthenticationDetails").show() |
| 101 | + $("#authenticationDetails").show() |
| 102 | + } |
| 103 | + function hideAuthenticationDetails() { |
| 104 | + $("#buttonViewAuthenticationDetails").show() |
| 105 | + $("#buttonHideAuthenticationDetails").hide() |
| 106 | + $("#authenticationDetails").hide() |
| 107 | + } |
| 108 | + </script> |
| 109 | + |
| 110 | + </div> |
95 | 111 | </body> |
96 | 112 |
|
97 | 113 | </html> |
0 commit comments