|
Lines 367-412
Link Here
|
| 367 |
<span aria-hidden="true">×</span> |
367 |
<span aria-hidden="true">×</span> |
| 368 |
</button> |
368 |
</button> |
| 369 |
</div> |
369 |
</div> |
| 370 |
<form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="modalAuth"> |
370 |
<div class="modal-body"> |
| 371 |
<input type="hidden" name="has-search-query" id="has-search-query" value="" /> |
371 |
<div id="local_login"> |
| 372 |
<div class="modal-body"> |
372 |
<form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="modalAuth"> |
| 373 |
[% IF ( shibbolethAuthentication ) %] |
373 |
<input type="hidden" name="has-search-query" id="has-search-query" value="" /> |
|
|
374 |
<input type="hidden" name="koha_login_context" value="opac" /> |
| 375 |
<fieldset class="brief"> |
| 376 |
<label for="muserid">Login:</label><input type="text" id="muserid" name="userid" /> |
| 377 |
<label for="mpassword">Password:</label><input type="password" id="mpassword" name="password" /> |
| 378 |
</fieldset> |
| 379 |
<input type="submit" class="btn btn-primary" value="Log in" /> |
| 380 |
</form> <!-- /#auth --> |
| 381 |
</div> |
| 382 |
[% IF Koha.Preference( 'OpacLoginInstructions' ) %] |
| 383 |
<div id="nologininstructions-modal" class="nologininstructions"> |
| 384 |
[% Koha.Preference( 'OpacLoginInstructions' ) | $raw %] |
| 385 |
</div> |
| 386 |
[% END %] |
| 387 |
[% IF Koha.Preference('OpacPasswordChange') && Categories.can_any_reset_password %] |
| 388 |
<div id="forgotpassword-modal" class="forgotpassword"> |
| 389 |
<a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a> |
| 390 |
</div> |
| 391 |
[% END %] |
| 392 |
[% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %] |
| 393 |
<div id="patronregistration-modal" class="patronregistration"> |
| 394 |
<p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p> |
| 395 |
</div> |
| 396 |
[% END %] |
| 397 |
[% IF ( shibbolethAuthentication ) %] |
| 398 |
<div id="shibboleth_login"> |
| 374 |
[% IF ( invalidShibLogin ) %] |
399 |
[% IF ( invalidShibLogin ) %] |
| 375 |
<!-- This is what is displayed if shibboleth login has failed to match a koha user --> |
400 |
<!-- This is what is displayed if shibboleth login has failed to match a koha user --> |
| 376 |
<div class="alert alert-info"> |
401 |
<div class="alert alert-info"> |
| 377 |
<p>Sorry, your Shibboleth identity does not match a valid library identity. If you have a local login, you may use that below.</p> |
402 |
<p>Sorry, your Shibboleth identity does not match a valid library identity. If you have a local login, you may use that below.</p> |
| 378 |
</div> |
403 |
</div> |
| 379 |
[% ELSE %] |
404 |
[% ELSE %] |
| 380 |
<h3>Shibboleth login</h3> |
405 |
<h3>Sign in using:</h3> |
| 381 |
<p>If you have a Shibboleth account, please <a href="[% shibbolethLoginUrl | $raw %]">click here to login</a>.</p> |
406 |
<p>If you have a Shibboleth account, please <a href="[% shibbolethLoginUrl | $raw %]">click here to login</a>.</p> |
| 382 |
<h3>Local Login</h3> |
|
|
| 383 |
[% END %] |
| 384 |
[% END %] |
| 385 |
<input type="hidden" name="koha_login_context" value="opac" /> |
| 386 |
<fieldset class="brief"> |
| 387 |
<label for="muserid">Login:</label><input type="text" id="muserid" name="userid" /> |
| 388 |
<label for="mpassword">Password:</label><input type="password" id="mpassword" name="password" /> |
| 389 |
[% IF Koha.Preference( 'OpacLoginInstructions' ) %] |
| 390 |
<div id="nologininstructions-modal" class="nologininstructions"> |
| 391 |
[% Koha.Preference( 'OpacLoginInstructions' ) | $raw %] |
| 392 |
</div> |
| 393 |
[% END %] |
407 |
[% END %] |
| 394 |
[% IF Koha.Preference('OpacPasswordChange') && Categories.can_any_reset_password %] |
408 |
</div> |
| 395 |
<div id="forgotpassword-modal" class="forgotpassword"> |
409 |
[% END %] |
| 396 |
<a href="/cgi-bin/koha/opac-password-recovery.pl">Forgot your password?</a> |
410 |
</div> |
| 397 |
</div> |
|
|
| 398 |
[% END %] |
| 399 |
[% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %] |
| 400 |
<div id="patronregistration-modal" class="patronregistration"> |
| 401 |
<p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p> |
| 402 |
</div> |
| 403 |
[% END %] |
| 404 |
</fieldset> |
| 405 |
</div> |
| 406 |
<div class="modal-footer"> |
| 407 |
<input type="submit" class="btn btn-primary" value="Log in" /> |
| 408 |
</div> |
| 409 |
</form> <!-- /#auth --> |
| 410 |
</div> <!-- /.modal-content --> |
411 |
</div> <!-- /.modal-content --> |
| 411 |
</div> <!-- /.modal-dialog --> |
412 |
</div> <!-- /.modal-dialog --> |
| 412 |
</div> <!-- /#modalAuth --> |
413 |
</div> <!-- /#modalAuth --> |
| 413 |
- |
|
|