|
5 | 5 | <meta http-equiv="X-UA-Compatible" content="IE=edge"/> |
6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/> |
7 | 7 |
|
8 | | - <title th:text="#{screen.institutionlogin.pagetitle}"></title> |
| 8 | + <title th:text="#{screen.institutionlogin.title}"></title> |
9 | 9 | <link href="../../static/css/cas.css" rel="stylesheet" th:remove="tag"/> |
10 | | - <style type="text/css"> |
11 | | - #pmlink-forgotpwd { display: none; } |
12 | | - </style> |
13 | 10 | </head> |
14 | 11 |
|
15 | | -<body> |
16 | | - <main role="main" class="container mt-3 mb-3"> |
| 12 | +<body class="login mdc-typography"> |
| 13 | + <div layout:fragment="content" class="d-flex justify-content-center"> |
| 14 | + <div class="d-flex justify-content-center flex-md-row flex-column mdc-card mdc-card-content w-lg-30"> |
| 15 | + <section class="login-section login-form login-instn-card"> |
17 | 16 |
|
18 | | - <div layout:fragment="content" class="row"> |
19 | | - <div class="banner-generic m-auto mdc-card p-4 w-card-narrow"> |
20 | | - <div class="login-generic-card login-instn-card"> |
21 | | - <div th:replace="fragments/osfinstitutionbannerui :: osfInstitutionBannerUI"> |
22 | | - <a href="fragments/osfinstitutionbannerui.html"></a> |
23 | | - </div> |
24 | | - <hr class="my-4" /> |
25 | | - <div class="card-message"> |
26 | | - <h2 th:utext="#{screen.unsupportedinstitutionlogin.heading}"></h2> |
27 | | - <p th:utext="#{screen.unsupportedinstitutionlogin.message(${osfUrl.institutionsHome})}"></p> |
28 | | - </div> |
29 | | - <div id="osfDefaultLogin"> |
30 | | - <div class="card-message"> |
31 | | - <h3 th:utext="#{screen.unsupportedinstitutionlogin.existing.heading}"></h3> |
32 | | - <p th:utext="#{screen.unsupportedinstitutionlogin.existing.osf.message}"></p> |
33 | | - </div> |
34 | | - <section class="delegation-row"> |
35 | | - <a class="delegation-button" th:href="@{/login(service=${service?.originalUrl ?: ''})}"> |
36 | | - <img class="delegation-button-logo" src="/images/osf-logo.png"> |
37 | | - <span class="delegation-button-label" th:utext="#{screen.unsupportedinstitutionlogin.existing.osf.button}"></span> |
38 | | - </a> |
39 | | - </section> |
40 | | - </div> |
41 | | - |
42 | | - <div id="osfUnsupportedInstitutionLogin"> |
43 | | - <div class="card-message"> |
44 | | - <p th:utext="#{screen.unsupportedinstitutionlogin.existing.institution.message}"></p> |
45 | | - </div> |
46 | | - </div> |
| 17 | + <section class="mb-4 service-ui text-center"> |
| 18 | + <table class="osf-shield-with-name"> |
| 19 | + <tbody> |
| 20 | + <tr> |
| 21 | + <td> |
| 22 | + <img class="service-ui-logo" src="/images/osf-logo.png"> |
| 23 | + </td> |
| 24 | + <td> |
| 25 | + <span class="service-ui-name hidden-narrow">OSF </span> |
| 26 | + <span class="service-ui-name">INSTITUTIONS</span> |
| 27 | + </td> |
| 28 | + </tr> |
| 29 | + </tbody> |
| 30 | + </table> |
| 31 | + </section> |
47 | 32 |
|
48 | | - <div class="form-wrapper"> |
49 | | - <form method="post" id="fm1" th:object="${credential}" th:action="@{${osfUrl.forgotPasswordInstitution}}"> |
| 33 | + <section class="card-message"> |
| 34 | + <h2 th:utext="#{screen.unsupp-instn.heading}"></h2> |
| 35 | + <p th:utext="#{screen.unsupp-instn.message(${osfUrl.institutionsHome})}"></p> |
| 36 | + </section> |
50 | 37 |
|
51 | | - <section class="cas-field cas-field-primary my-3"> |
52 | | - <div class="mdc-text-field d-flex"> |
53 | | - <input class="mdc-text-field__input" |
54 | | - id="username" |
55 | | - size="256" |
56 | | - type="email" |
57 | | - name="forgot_password-email" |
58 | | - th:accesskey="#{screen.unsupportedinstitutionlogin.existing.institution.label.email.accesskey}" |
59 | | - autocomplete="off" /> |
60 | | - <label for="username" class="mdc-floating-label" th:utext="#{screen.unsupportedinstitutionlogin.existing.institution.label.email}"></label> |
61 | | - </div> |
62 | | - </section> |
| 38 | + <section class="card-message"> |
| 39 | + <h3 th:utext="#{screen.unsupp-instn.existing.heading}"></h3> |
| 40 | + <p th:utext="#{screen.unsupp-instn.existing.message}"></p> |
| 41 | + </section> |
63 | 42 |
|
64 | | - <div th:replace="fragments/submitbutton :: submitButton (buttonCustomization='button-osf-green', messageKey='screen.unsupportedinstitutionlogin.existing.institution.button')" /> |
| 43 | + <section class="form-button"> |
| 44 | + <a class="mdc-button mdc-button--raised button-osf-blue" th:href="@{/login(service=${service?.originalUrl ?: ''})}"> |
| 45 | + <span class="mdc-button__label" th:utext="#{screen.unsupp-instn.existing.button}"></span> |
| 46 | + </a> |
| 47 | + </section> |
65 | 48 |
|
66 | | - </form> |
| 49 | + <section id="osfUnsupportedInstitutionLogin"> |
| 50 | + <div class="card-message"> |
| 51 | + <p th:utext="#{screen.unsupp-instn.existing.setpw.message}"></p> |
67 | 52 | </div> |
| 53 | + </section> |
68 | 54 |
|
69 | | - <hr class="my-4" /> |
70 | | - |
71 | | - <div th:replace="fragments/pmlinks :: pmlinks" /> |
| 55 | + <div class="form-wrapper"> |
| 56 | + <form method="post" id="fm1" th:object="${credential}" th:action="@{${osfUrl.forgotPasswordInstitution}}"> |
| 57 | + <section class="cas-field cas-field-primary my-3"> |
| 58 | + <div class="mdc-text-field d-flex"> |
| 59 | + <input class="mdc-text-field__input" |
| 60 | + id="username" |
| 61 | + size="256" |
| 62 | + type="email" |
| 63 | + name="forgot_password-email" |
| 64 | + th:accesskey="#{screen.unsupp-instn.existing.setpw.label.email.accesskey}" |
| 65 | + autocomplete="off" /> |
| 66 | + <label for="username" class="mdc-floating-label" th:utext="#{screen.unsupp-instn.existing.setpw.label.email}"></label> |
| 67 | + </div> |
| 68 | + </section> |
| 69 | + <section> |
| 70 | + <div th:replace="fragments/submitbutton :: submitButton (buttonDisabled=false, buttonCustomization='button-osf-blue', messageKey='screen.unsupp-instn.existing.setpw.button')" /> |
| 71 | + </section> |
| 72 | + </form> |
72 | 73 | </div> |
73 | | - </div> |
74 | 74 |
|
| 75 | + <hr class="my-4" /> |
| 76 | + <section class="text-with-mdi"> |
| 77 | + <i class="mdi mdi-account-question-outline mdi-before-text"></i> |
| 78 | + <span> |
| 79 | + <a href="https://help.osf.io/hc/en-us/articles/360019737194-Sign-in-to-OSF" th:utext="#{screen.generic.link.support}"></a> |
| 80 | + </span> |
| 81 | + </section> |
| 82 | + |
| 83 | + </section> |
75 | 84 | </div> |
76 | | - </main> |
| 85 | + |
| 86 | + <script type="text/javascript" th:inline="javascript"> |
| 87 | + /*<![CDATA[*/ |
| 88 | + var i = /*[[@{#{screen.generic.button.wip}}]]*/ 'One moment please...' ; |
| 89 | + var j = /*[[@{#{screen.unsupp-instn.existing.setpw.button}}]]*/ 'Set a password' ; |
| 90 | + /*]]>*/ |
| 91 | + $(window).on('pageshow', function () { |
| 92 | + $(':submit').prop('disabled', false); |
| 93 | + $(':submit').attr('value', j); |
| 94 | + }); |
| 95 | + $(document).ready(function () { |
| 96 | + $("#fm1").submit(function () { |
| 97 | + $(":submit").attr("disabled", true); |
| 98 | + $(":submit").attr("value", i); |
| 99 | + return true; |
| 100 | + }); |
| 101 | + }); |
| 102 | + </script> |
| 103 | + |
| 104 | + </div> |
77 | 105 | </body> |
78 | 106 |
|
79 | 107 | </html> |
0 commit comments