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