Bug 9569: Update warning message
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / auth.tt
1 [% USE Branches %]
2 [% SET footerjs = 1 %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha &rsaquo; 
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 %]
10 </title>
11 [% INCLUDE 'doc-head-close.inc' %]
12 </head>
13 <body id="main_auth" class="main">
14
15 <div id="doc" class="yui-t7">
16    <div id="bd">
17
18 <div id="login">
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.
24 </div>
25 <p><strong>Log in as a different user</strong></p></h2>
26 [% END %]
27
28 [% IF ( timed_out ) %]
29 <div id="login_error"><strong>Error: </strong>Session timed out.<br /> Please log in again</div>
30 [% END %]
31
32 [% IF ( different_ip ) %]
33 <div id="login_error"><strong>Error: </strong>IP address has changed. Please log in again </div>
34 [% END %]
35
36 [% IF ( wrongip ) %]
37 <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>
38 [% END %]
39
40 [% IF ( invalid_username_or_password ) %]
41 <div id="login_error"><strong>Error: </strong>Invalid username or password</div>
42 [% END %]
43
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 %]" />
49 [% END %]
50 <p><label for="userid">Username:</label>
51 <input type="text" name="userid" id="userid" class="input focus" value="[% userid %]" size="20" tabindex="1" />
52 </p>
53 <p><label for="password">Password:</label>
54 <input type="password" name="password" id="password" class="input" value="" size="20" tabindex="2" />
55 </p>
56
57 [% UNLESS IndependentBranches %]
58     <p>
59         <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>
64             [% END %]
65         </select>
66     </p>
67 [% END %]
68
69 <!-- <p><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="3" />Remember me</label></p> -->
70
71 <p class="submit"><input id="submit" type="submit" value="Login" tabindex="4" /></p>
72 </form>
73 [% IF ( casAuthentication ) %]
74 <h4>Cas login</h4>
75
76 [% IF ( invalidCasLogin ) %]
77 <!-- This is what is displayed if cas login has failed -->
78 <p>Sorry, the CAS login failed.</p>
79 [% END %]
80
81 [% IF ( casServerUrl ) %]
82     <p><a href="[% casServerUrl %]">If you have a CAS account, please click here to login</a>.<p>
83 [% END %]
84
85 [% IF ( casServersLoop ) %]
86     <p>If you have a CAS account, please choose against which one you would like to authenticate:</p>
87 <ul>
88     [% FOREACH casServer IN casServersLoop %]
89         <li><a href="[% casServer.value %]">[% casServer.name %]</a></li>
90     [% END %]
91 [% END %]
92 [% END %]
93
94 [% IF ( nopermission ) %]
95     <p><a href="javascript:window.history.back()">[Previous page]</a>
96     <a href="/">[Main page]</a></p>
97 [% END %]
98
99
100 <!--<ul> -->
101 <!--    <li><a href="/cgi-bin/koha/lostpassword.pl" title="Password lost and found">Lost your password?</a></li> -->
102 <!-- </ul> -->
103
104 </div>
105 </div>
106
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 + '"/>' );
112             }
113         });
114     </script>
115 [% END %]
116 <!-- the main div is closed in intranet-bottom.inc -->
117 [% INCLUDE 'intranet-bottom.inc' %]