@@ -45,17 +45,16 @@ function onRecaptchaLoad() {
4545 <?php include __DIR__ . '/../common-announcement.php ' ?>
4646
4747 <form method="post" autocomplete="off">
48- <input type="hidden" name="AuthState"
49- value=" <?= htmlentities ( $ this -> data [ ' stateparams ' ][ ' AuthState ' ]) ?> " />
48+ <input type="hidden" name="AuthState" value=" <?= htmlentities ( $ this -> data [ ' stateparams ' ][ ' AuthState ' ]) ?> " />
49+
5050 <?php
5151 $ csrfToken = htmlentities ($ this ->data ['csrfToken ' ]);
5252 ?>
5353 <input type="hidden" name="csrf-token" value="<?= $ csrfToken ?> " />
5454
5555 <div class="mdl-card mdl-shadow--8dp fill-phone-viewport">
5656 <div class="mdl-card__media white-bg margin" layout-children="column">
57- <img src="/logo.png"
58- alt="<?= $ this ->t ('{material:login:logo} ' , ['{idpName} ' => $ idpName ]) ?> ">
57+ <img src="/logo.png" alt="<?= $ this ->t ('{material:login:logo} ' , ['{idpName} ' => $ idpName ]) ?> ">
5958 </div>
6059
6160 <div class="mdl-card__title center">
@@ -69,20 +68,21 @@ function onRecaptchaLoad() {
6968 <label for="username" class="mdl-textfield__label">
7069 <?= $ this ->t ('{material:login:label_username} ' ) ?>
7170 </label>
71+
7272 <?php
7373 $ username = htmlentities ($ this ->data ['username ' ] ?? null );
7474 ?>
75- <input type="text" name="username" class="mdl-textfield__input"
76- value="<?= $ username ?> " <?= empty ($ username ) ? 'autofocus ' : '' ?>
77- id="username"/>
75+ <input type="text" name="username" class="mdl-textfield__input" value="<?= $ username ?> "
76+ <?= empty ($ username ) ? 'autofocus ' : '' ?> id="username"/>
7877 </div>
7978
8079 <div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label">
8180 <label for="password" class="mdl-textfield__label">
8281 <?= $ this ->t ('{material:login:label_password} ' ) ?>
8382 </label>
84- <input type="password" name="password" class="mdl-textfield__input"
85- <?= ! empty ($ username ) ? 'autofocus ' : '' ?> id="password"/>
83+
84+ <input type="password" name="password" class="mdl-textfield__input" <?= ! empty ($ username ) ? 'autofocus ' : '' ?>
85+ id="password"/>
8686 </div>
8787 </div>
8888
@@ -114,8 +114,7 @@ function onRecaptchaLoad() {
114114 $ forgotPasswordUrl = htmlentities ($ this ->configuration ->getValue ('passwordForgotUrl ' ));
115115 if (! empty ($ forgotPasswordUrl )) {
116116 ?>
117- <a href="<?= $ forgotPasswordUrl ?> " target="_blank"
118- class="mdl-button mdl-button--colored mdl-typography--caption">
117+ <a href="<?= $ forgotPasswordUrl ?> " target="_blank" class="mdl-button mdl-button--colored mdl-typography--caption">
119118 <?= $ this ->t ('{material:login:forgot} ' ) ?>
120119 </a>
121120 <?php
@@ -129,6 +128,20 @@ class="mdl-button mdl-button--colored mdl-typography--caption">
129128 </button>
130129 </div>
131130 </div>
131+
132+ <section layout-children="row" child-spacing="space-around">
133+ <?php if (! empty ($ this ->data ['helpCenterUrl ' ])): ?>
134+ <a href="<?= $ this ->data ['helpCenterUrl ' ] ?> " target="_blank">
135+ <?= $ this ->t ('{material:login:help} ' ) ?>
136+ </a>
137+ <?php endif ; ?>
138+
139+ <?php if (! empty ($ this ->data ['profileUrl ' ])): ?>
140+ <a href="<?= $ this ->data ['profileUrl ' ] ?> " target="_blank">
141+ <?= $ this ->t ('{material:login:profile} ' ) ?>
142+ </a>
143+ <?php endif ; ?>
144+ </section>
132145 </form>
133146 </main>
134147</div>
0 commit comments