Bug 15005: Replace CGI->url with the corresponding url
[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="/cgi-bin/koha/mainpage.pl" 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 <p>If you have a CAS account,
80 [% IF ( casServerUrl ) %]
81     please <a href="[% casServerUrl %]">click here to login</a>.<p>
82 [% END %]
83
84 [% IF ( casServersLoop ) %]
85 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 [% INCLUDE 'intranet-bottom.inc' %]