3 [% INCLUDE 'doc-head-open.inc' %]
5 [% IF ( nopermission ) %]Access denied[% END %]
6 [% IF ( timed_out ) %]Session timed out[% END %]
7 [% IF ( different_ip ) %]IP address change[% END %]
8 [% IF ( invalid_username_or_password ) %]Invalid username or password[% END %]
9 [% IF ( loginprompt ) %]Log in to Koha[% END %]
11 [% INCLUDE 'doc-head-close.inc' %]
13 <body id="main_auth" class="main">
15 <div id="doc" class="yui-t7">
19 <h1><a href="http://koha-community.org">Koha</a></h1>
20 [% IF ( nopermission ) %]
21 <div id="login_error">
22 <strong>Error:</strong>
23 You do not have permission to access this page.
25 <p><strong>Log in as a different user</strong></p></h2>
28 [% IF ( timed_out ) %]
29 <div id="login_error"><strong>Error: </strong>Session timed out.<br /> Please log in again</div>
32 [% IF ( different_ip ) %]
33 <div id="login_error"><strong>Error: </strong>IP address has changed. Please log in again </div>
37 <div id="login_error"><strong>Error: </strong>IndependentBranches and Autolocation are switched on and you are logging in with an IP address that doesn't match your library. </div>
40 [% IF ( invalid_username_or_password ) %]
41 <div id="login_error"><strong>Error: </strong>Invalid username or password</div>
44 <!-- login prompt time-->
45 <form action="[% script_name %]" method="post" name="loginform" id="loginform">
46 <input type="hidden" name="koha_login_context" value="intranet" />
47 [% FOREACH INPUT IN INPUTS %]
48 <input type="hidden" name="[% INPUT.name |html %]" value="[% INPUT.value |html %]" />
50 <p><label for="userid">Username:</label>
51 <input type="text" name="userid" id="userid" class="input focus" value="[% userid %]" size="20" tabindex="1" />
53 <p><label for="password">Password:</label>
54 <input type="password" name="password" id="password" class="input" value="" size="20" tabindex="2" />
57 [% IF ( AutoLocation ) %][% ELSE %]
58 [% IF ( IndependentBranches ) %][% ELSE %]
59 <p><label for="branch">Library:</label>
60 <select name="branch" id="branch" class="input" tabindex="3">
61 <option value="">My library</option>
62 [% FOREACH l IN Branches.all( unfiltered => 1 ) %]
63 <option value="[% l.branchcode %]">[% l.branchname %]</option>
69 <!-- <p><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="3" />Remember me</label></p> -->
71 <p class="submit"><input id="submit" type="submit" value="Login" tabindex="4" /></p>
73 [% IF ( casAuthentication ) %]
76 [% IF ( invalidCasLogin ) %]
77 <!-- This is what is displayed if cas login has failed -->
78 <p>Sorry, the CAS login failed.</p>
81 [% IF ( casServerUrl ) %]
82 <p><a href="[% casServerUrl %]">If you have a CAS account, please click here to login</a>.<p>
85 [% IF ( casServersLoop ) %]
86 <p>If you have a CAS account, please choose against which one you would like to authenticate:</p>
88 [% FOREACH casServer IN casServersLoop %]
89 <li><a href="[% casServer.value %]">[% casServer.name %]</a></li>
94 [% IF ( nopermission ) %]
95 <p><a href="javascript:window.history.back()">[Previous page]</a>
96 <a href="/">[Main page]</a></p>
101 <!-- <li><a href="/cgi-bin/koha/lostpassword.pl" title="Password lost and found">Lost your password?</a></li> -->
107 [% MACRO jsinclude BLOCK %]
108 <script type="text/javascript">
109 $(document).ready( function() {
110 if ( document.location.hash ) {
111 $( '#loginform' ).append( '<input name="auth_forwarded_hash" type="hidden" value="' + document.location.hash + '"/>' );
116 <!-- the main div is closed in intranet-bottom.inc -->
117 [% INCLUDE 'intranet-bottom.inc' %]