4 [% INCLUDE 'doc-head-open.inc' %]
6 [% IF ( nopermission ) %]Access denied[% END %]
7 [% IF ( timed_out ) %]Session timed out[% END %]
8 [% IF ( different_ip ) %]IP address change[% END %]
9 [% IF too_many_login_attempts %]This account has been locked.
10 [% ELSIF invalid_username_or_password %]Invalid username or password[% END %]
11 [% IF ( loginprompt ) %]Log in to Koha[% END %]
13 [% INCLUDE 'doc-head-close.inc' %]
15 <body id="main_auth" class="main_main-auth">
17 <div class="main container-fluid">
20 <h1><a href="http://koha-community.org">Koha</a></h1>
21 [% IF (Koha.Preference('StaffLoginInstructions')) %]<div id="login_instructions">[% Koha.Preference('StaffLoginInstructions') %]</div>[% END %]
22 [% IF ( nopermission ) %]
23 <div id="login_error">
24 <strong>Error:</strong>
25 You do not have permission to access this page.
27 <p><strong>Log in as a different user</strong></p></h2>
30 [% IF ( timed_out ) %]
31 <div id="login_error"><strong>Error: </strong>Session timed out.<br /> Please log in again</div>
34 [% IF ( different_ip ) %]
35 <div id="login_error"><strong>Error: </strong>IP address has changed. Please log in again </div>
39 <div id="login_error"><strong>Error: </strong>Autolocation is switched on and you are logging in with an IP address that doesn't match your library. </div>
42 [% IF too_many_login_attempts %]
43 <div id="login_error"><strong>Error: </strong>This account has been locked!</div>
44 [% IF Koha.Preference('OpacResetPassword') && Koha.Preference('OpacBaseURL') %]
45 <a href="[% Koha.Preference('OpacBaseURL') %]/cgi-bin/koha/opac-password-recovery.pl">You must reset your password</a>.
47 [% ELSIF invalid_username_or_password %]
48 <div id="login_error"><strong>Error: </strong>Invalid username or password</div>
51 <!-- login prompt time-->
52 <form action="[% script_name %]" method="post" name="loginform" id="loginform">
53 <input type="hidden" name="koha_login_context" value="intranet" />
54 [% FOREACH INPUT IN INPUTS %]
55 <input type="hidden" name="[% INPUT.name |html %]" value="[% INPUT.value |html %]" />
57 <p><label for="userid">Username:</label>
58 <input type="text" name="userid" id="userid" class="input focus" value="[% userid %]" size="20" tabindex="1" />
60 <p><label for="password">Password:</label>
61 <input type="password" name="password" id="password" class="input" value="" size="20" tabindex="2" />
64 [% UNLESS IndependentBranches %]
66 <label for="branch">Library:</label>
67 <select name="branch" id="branch" class="input" tabindex="3">
68 <option value="">My library</option>
69 [% FOREACH l IN Branches.all( unfiltered => 1 ) %]
70 <option value="[% l.branchcode %]">[% l.branchname %]</option>
76 <!-- <p><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="3" />Remember me</label></p> -->
78 <p class="submit"><input id="submit" type="submit" value="Login" tabindex="4" /></p>
80 [% IF ( casAuthentication ) %]
83 [% IF ( invalidCasLogin ) %]
84 <!-- This is what is displayed if cas login has failed -->
85 <p>Sorry, the CAS login failed.</p>
88 [% IF ( casServerUrl ) %]
89 <p><a href="[% casServerUrl %]">If you have a CAS account, please click here to login</a>.<p>
92 [% IF ( casServersLoop ) %]
93 <p>If you have a CAS account, please choose against which one you would like to authenticate:</p>
95 [% FOREACH casServer IN casServersLoop %]
96 <li><a href="[% casServer.value %]">[% casServer.name %]</a></li>
101 [% IF ( nopermission ) %]
102 <p><a href="javascript:window.history.back()">[Previous page]</a>
103 <a href="/">[Main page]</a></p>
108 <!-- <li><a href="/cgi-bin/koha/lostpassword.pl" title="Password lost and found">Lost your password?</a></li> -->
113 [% MACRO jsinclude BLOCK %]
114 <script type="text/javascript">
115 $(document).ready( function() {
116 if ( document.location.hash ) {
117 $( '#loginform' ).append( '<input name="auth_forwarded_hash" type="hidden" value="' + document.location.hash + '"/>' );
122 <!-- the main div is closed in intranet-bottom.inc -->
123 [% INCLUDE 'intranet-bottom.inc' %]