1 <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
2 <div class="modal-dialog modal-dialog-centered" role="document">
3 <div class="modal-content">
4 <form method='post' action="/eg/opac/login?redirect_to=%2Feg%2Fopac%2Fmyopac%2Fmain">
5 <div class="modal-header">
6 <h1 class="modal-title" id="exampleModalLabel">Login To Evergreen</h1>
7 <button type="button" class="close" data-dismiss="modal" aria-label="Close">
8 <i class="fas fa-times"></i>
11 <div class="modal-body">
13 [% IF ctx.login_failed_event %]
14 <div id='login-failed-message'>
16 IF ctx.login_failed_event.textcode == 'PATRON_CARD_INACTIVE';
17 l("The barcode used to login is marked as inactive. Please contact your local library.");
18 ELSIF ctx.login_failed_event.textcode == 'PATRON_INACTIVE';
19 l("This account has been deactivated. Please contact your local library.");
21 l("Login failed. The username or password provided was not valid. " _
22 "Passwords are case-sensitive. Check your Caps-Lock key and try again or contact your local library.");
28 <div class='container text-center'>
29 <div class="mx-auto row py-4">
30 <div class='col-md-6'>
31 <label for='username_field' class="lbl1" >[% l('Library Card Number') %]<span title="[% INCLUDE "opac/parts/login/username_hint.tt2" %]" data-html="true" data-toggle="tooltip">
32 <i class="fas fa-question-circle"></i></span></label> <br>
33 <div class="input_bg mb-2">
34 <input class="form-control" type='text' id="username_field" name="username"/>
36 <a href='[% mkurl(ctx.opac_root _ '/register', {}, 1) %]'>[% l('Request A Card') %]</a>
40 <div class='col-md-6'>
41 <label for="password_field" class="lbl1" >[% l('PIN') %]<span title="[% INCLUDE "opac/parts/login/password_hint.tt2" %]" data-html="true" data-toggle="tooltip">
42 <i class="fas fa-question-circle"></i>
45 <div class="input_bg mb-2">
46 <input class="form-control" id="password_field" name="password" type="password"/>
48 [% IF reset_password == 'true' %]
49 <a href='[% mkurl(ctx.opac_root _ '/password_reset', {}, 1) %]'>[% l('Forgot Your Password?') %] </a>
54 <div style="clear: both; padding-top: 15px;" class="col-12">
56 redirect = CGI.param('redirect_to');
57 # Don't use referer unless we got here from elsewhere within the TPAC
58 IF !redirect AND ctx.referer.match('^https?://' _ ctx.hostname _ ctx.opac_root);
59 redirect = ctx.referer;
61 # If no redirect is offered or it's leading us back to the
62 # login form, redirect the user to My Account
63 IF !redirect OR redirect.match(ctx.path_info _ '$');
64 redirect = CGI.url('-full' => 1) _ '/opac/myopac/main';
66 redirect = redirect | replace('^http:', 'https:');
70 <input id="client_tz_id" name="client_tz" type="hidden" />
73 [%# INCLUDE "opac/parts/login/help.tt2" %]
76 <div class="modal-footer">
78 <input type='hidden' name='redirect_to' value='[% redirect | html %]'/>
79 <input type="checkbox" name="persist" id="login_persist" class="mr-1"/>
80 <label for="login_persist"> [% l('Stay logged in?') %]</label>
83 <button type="button" class="btn btn-secondary" data-dismiss="modal"><i class="fas fa-times"></i> [% l('Close') %]</button>
84 <button type="submit" class="btn btn-confirm"><i class="fas fa-sign-in-alt"></i> [% l('Log in') %]</button>