Bug 10951: (follow-up) tweak description of the NoLoginInstructions system preferences
[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 <div id="onerror_actions">
24     <a href="javascript:window.history.back()" class="button">Previous page</a>
25     <a href="/cgi-bin/koha/mainpage.pl?logout.x=1" class="button">Log out</a>
26 </div>
27 [% END %]
28
29 [% IF ( timed_out ) %]
30 <div id="login_error"><strong>Error: </strong>Session timed out.<br /> Please log in again</div>
31 [% END %]
32
33 [% IF ( different_ip ) %]
34 <div id="login_error"><strong>Error: </strong>IP address has changed. Please log in again </div>
35 [% END %]
36
37 [% IF ( wrongip ) %]
38 <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>
39 [% END %]
40
41 [% IF ( invalid_username_or_password ) %]
42 <div id="login_error"><strong>Error: </strong>Invalid username or password</div>
43 [% END %]
44
45 <!-- login prompt time-->
46 <form action="[% url %]" method="post" name="loginform" id="loginform">
47     <input type="hidden" name="koha_login_context" value="intranet" />
48 [% FOREACH INPUT IN INPUTS %]
49     <input type="hidden" name="[% INPUT.name |html %]" value="[% INPUT.value |html %]" />
50 [% END %]
51 <p><label for="userid">Username:</label>
52 <input type="text" name="userid" id="userid" class="input focus" value="[% userid %]" size="20" tabindex="1" />
53 </p>
54 <p><label for="password">Password:</label>
55 <input type="password" name="password" id="password" class="input" value="" size="20" tabindex="2" />
56 </p>
57
58 [% IF ( AutoLocation ) %][% ELSE %]
59 [% IF ( IndependentBranches ) %][% ELSE %]
60 <p><label for="branch">Library:</label>
61     <select name="branch" id="branch" class="input" tabindex="3">
62     <option value="">My library</option>
63     [% FOREACH branchloo IN branchloop %]
64     <option value="[% branchloo.branchcode %]">[% branchloo.branchname %]</option>
65     [% END %]
66     </select>
67     </p>[% END %]
68         [% END %]
69
70 <!-- <p><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="3" />Remember me</label></p> -->
71
72 <p class="submit"><input id="submit" type="submit" value="Login" tabindex="4" /></p>
73 </form>
74 <!--<ul> -->
75 <!--    <li><a href="/cgi-bin/koha/lostpassword.pl" title="Password lost and found">Lost your password?</a></li> -->
76 <!-- </ul> -->
77
78 </div>
79 </div>
80
81 [% INCLUDE 'intranet-bottom.inc' %]