Bug 11360 - Disable barcode field and submit button when a hold is found
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / auth.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; 
3     [% IF ( nopermission ) %]Access denied[% END %]
4     [% IF ( timed_out ) %]Session timed out[% END %]
5     [% IF ( different_ip ) %]IP address change[% END %]
6     [% IF ( invalid_username_or_password ) %]Invalid username or password[% END %]
7     [% IF ( loginprompt ) %]Log in to Koha[% END %]
8 </title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 </head>
11 <body id="main_auth" class="main">
12
13 <div id="doc" class="yui-t7">
14    <div id="bd">
15
16 <div id="login">
17 <h1><a href="http://koha-community.org">Koha</a></h1>
18 [% IF ( nopermission ) %]
19 <div id="login_error">
20     <strong>Error:</strong>
21     You do not have permission to access this page.
22 </div>
23 <p><strong>Log in as a different user</strong></p></h2>
24 [% END %]
25
26 [% IF ( timed_out ) %]
27 <div id="login_error"><strong>Error: </strong>Session timed out.<br /> Please log in again</div>
28 [% END %]
29
30 [% IF ( different_ip ) %]
31 <div id="login_error"><strong>Error: </strong>IP address has changed. Please log in again </div>
32 [% END %]
33
34 [% IF ( wrongip ) %]
35 <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>
36 [% END %]
37
38 [% IF ( invalid_username_or_password ) %]
39 <div id="login_error"><strong>Error: </strong>Invalid username or password</div>
40 [% END %]
41
42 <!-- login prompt time-->
43 <form action="[% script_name %]" method="post" name="loginform" id="loginform">
44     <input type="hidden" name="koha_login_context" value="intranet" />
45 [% FOREACH INPUT IN INPUTS %]
46     <input type="hidden" name="[% INPUT.name |html %]" value="[% INPUT.value |html %]" />
47 [% END %]
48 <p><label for="userid">Username:</label>
49 <input type="text" name="userid" id="userid" class="input focus" value="[% userid %]" size="20" tabindex="1" />
50 </p>
51 <p><label for="password">Password:</label>
52 <input type="password" name="password" id="password" class="input" value="" size="20" tabindex="2" />
53 </p>
54
55 [% IF ( AutoLocation ) %][% ELSE %]
56 [% IF ( IndependentBranches ) %][% ELSE %]
57 <p><label for="branch">Library:</label>
58     <select name="branch" id="branch" class="input" tabindex="3">
59     <option value="">My library</option>
60     [% FOREACH branchloo IN branchloop %]
61     <option value="[% branchloo.branchcode %]">[% branchloo.branchname %]</option>
62     [% END %]
63     </select>
64     </p>[% END %]
65         [% END %]
66
67 <!-- <p><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="3" />Remember me</label></p> -->
68
69 <p class="submit"><input id="submit" type="submit" value="Login" tabindex="4" /></p>
70 </form>
71 [% IF ( casAuthentication ) %]
72 <h4>Cas login</h4>
73
74 [% IF ( invalidCasLogin ) %]
75 <!-- This is what is displayed if cas login has failed -->
76 <p>Sorry, the CAS login failed.</p>
77 [% END %]
78
79 [% IF ( casServerUrl ) %]
80     <p><a href="[% casServerUrl %]">If you have a CAS account, please click here to login</a>.<p>
81 [% END %]
82
83 [% IF ( casServersLoop ) %]
84     <p>If you have a CAS account, please choose against which one you would like to authenticate:</p>
85 <ul>
86     [% FOREACH casServer IN casServersLoop %]
87         <li><a href="[% casServer.value %]">[% casServer.name %]</a></li>
88     [% END %]
89 [% END %]
90 [% END %]
91
92 [% IF ( nopermission ) %]
93     <p><a href="javascript:window.history.back()">[Previous page]</a>
94     <a href="/">[Main page]</a></p>
95 [% END %]
96
97
98 <!--<ul> -->
99 <!--    <li><a href="/cgi-bin/koha/lostpassword.pl" title="Password lost and found">Lost your password?</a></li> -->
100 <!-- </ul> -->
101
102 </div>
103 </div>
104
105 <script>
106 $(document).ready( function() {
107     if ( document.location.hash ) {
108         $( '#loginform' ).append( '<input name="auth_forwarded_hash" type="hidden" value="' + document.location.hash + '"/>' );
109     }
110 } );
111 </script>
112
113 [% INCLUDE 'intranet-bottom.inc' %]