3 <div class='container'>
5 <h3 class="text-center">[% l('Log in to Your Account') %]</h3>
7 <div class="row text-center">[%# INCLUDE "opac/parts/login/help.tt2" %]</div>
8 [% IF ctx.login_failed_event %]
9 <div id='login-failed-message'>
11 IF ctx.login_failed_event.textcode == 'PATRON_CARD_INACTIVE';
12 l("The barcode used to login is marked as inactive. <br>Please contact your local library.");
13 ELSIF ctx.login_failed_event.textcode == 'PATRON_INACTIVE';
14 l("This account has been deactivated. <br>Please contact your local library.");
16 l("Login failed. <br> The username or password provided was not valid. <br>" _
17 "Passwords are case-sensitive. <br>Check your Caps-Lock key and try again or contact your local library.");
23 <div class="table table-borderless table-sm">
25 <div class="col-sm w-50">
26 <label for='username_field' class="lbl1" >[% l('Library Card Number') %]
27 <a href="#" title="[% INCLUDE "opac/parts/login/username_hint.tt2" %]" data-html="true" data-toggle="tooltip">
28 <i class="fas fa-question-circle"></i></a></label>
30 <div class="col-sm w-50">
31 <label for="password_field" class="lbl1" >[% l('PIN') %]
32 <a href="#" title="[% INCLUDE "opac/parts/login/password_hint.tt2" %]" data-html="true" data-toggle="tooltip">
33 <i class="fas fa-question-circle"></i></a></label>
37 <div class="col-sm w-50">
38 <input class="form-control" type='text' id="username_field" name="username" autofocus />
40 <div class="col-sm w-50">
41 <input class="form-control" id="password_field" name="password" type="password"/>
45 <div class="col-sm w-50">
46 [% IF ctx.get_org_setting (
47 ctx.physical_org || ctx.aou_tree.id, 'opac.allow_pending_user') %]
48 <a href='[% mkurl(ctx.opac_root _ '/register', {}, 1) %]'>[% l('Request A Card') %]</a>
51 <div class="col-sm w-50">
52 [% IF reset_password == 'true' %]
53 <a href='[% mkurl(ctx.opac_root _ '/password_reset', {}, 1) %]'>[% l('Forgot Your Password?') %] </a>
58 <div class="col-sm w-50">
59 <input type="checkbox" value="" id="rememberMe">
60 <label class="form-check-label" for="rememberMe">
61 [% l('Stay logged in?') %]
64 <div class="col-sm w-50">
65 <button type="submit" class="btn btn-confirm my-2"><i class="fas fa-sign-in-alt" aria-hidden="true"></i> [% l('Log in') %]</button>
70 <div style="clear: both; padding-top: 15px;" class="col-12 text-center">
72 redirect = CGI.param('redirect_to');
73 # Don't use referer unless we got here from elsewhere within the TPAC
74 IF !redirect AND ctx.referer.match('^https?://' _ ctx.hostname _ ctx.opac_root);
75 redirect = ctx.referer;
77 # If no redirect is offered or it's leading us back to the
78 # login form, redirect the user to My Account
79 IF !redirect OR redirect.match(ctx.path_info _ '$');
80 redirect = CGI.url('-full' => 1) _ '/opac/myopac/main';
82 redirect = redirect | replace('^http:', 'https:');
84 <input type='hidden' name='redirect_to' value='[% redirect | html %]'/>
87 <input id="client_tz_id" name="client_tz" type="hidden" />