Revert "Bug 5630 CAS improvements"
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-auth.tt
1 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] 
2 [% IF ( opacuserlogin ) %]
3  Catalog ›  Log in to Your Account
4 [% ELSE %]
5  Catalog › Catalog Login Disabled
6 [% END %]
7 [% INCLUDE 'doc-head-close.inc' %]
8
9 <!-- Bug 4288: Hide circular 'Log in to Your Account' link in opac-auth.pl -->
10 <script type="text/javascript">
11     $(document).ready(function() {
12         if ( $("#auth" ) ) { $("#members ul li a").hide(); }
13     });
14 </script>
15 </head>
16 <body id="opac-login-page">
17 <div id="doc3" class="yui-t7">
18    <div id="bd">
19 [% INCLUDE 'masthead.inc' %]
20
21         <div id="yui-g">
22 <div id="userauth" class="container">
23 <div id="opac-auth">
24 <!--CONTENT-->
25 [% IF ( opacuserlogin ) %]
26 [% IF ( nopermission ) %]
27 <!-- This is what is displayed if user doesnt have permission -->
28 <p>Sorry, the system doesn't think you have permission to access this page. </p>
29 [% END %]
30 [% IF ( loginprompt ) %]
31 <!-- login prompt time-->
32 <h3>Log In to Your Account</h3>
33 [% IF ( timed_out ) %]
34 <!-- This is what is displayed if login has timed out -->
35 <p>Sorry, your session has timed out.  Please log in again.</p>
36 [% END %]
37
38 [% IF ( different_ip ) %]
39 <!-- This is what is displayed if user doesnt have permission -->
40 <p>You are logging from a different IP address.  Please log in again.</p>
41 [% END %]
42
43 [% IF ( invalid_username_or_password ) %]
44 <!-- This is what is displayed if user doesnt have permission -->
45 <p>You entered an incorrect username or password. Please try again! And remember, usernames and passwords are case sensitive.</p>
46 [% END %]
47
48 [% IF ( casAuthentication ) %]
49 <h4>Cas Login</h4>
50
51 [% IF ( invalidCasLogin ) %]
52 <!-- This is what is displayed if cas login has failed -->
53 <p>Sorry, the CAS login failed.</p>
54 [% END %]
55
56 <p>If you have a <acronym title="Central Authentication Service">CAS</acronym> account, please <a href="[% casServerUrl %]">click here to login</a>.<p>
57
58 <h4>Local Login</h4>
59 <p>If you do not have a CAS account, but a local account, you can still log in : </p>
60
61 [% END %]
62
63 <form action="[% url %]" name="auth" id="auth" method="post">
64   <input type="hidden" name="koha_login_context" value="opac" />
65 <fieldset class="brief">[% FOREACH INPUT IN INPUTS %]
66   <input type="hidden" name="[% INPUT.name |html %]" value="[% INPUT.value |html %]" />
67 [% END %]
68 <ol>
69 <li><label for="userid">Login</label>
70 <input type="text"  size="25" id="userid"  name="userid" /></li>
71 <li><label for="password">Password</label><input type="password"  size="25" id="password"  name="password" /></li>
72 </ol></fieldset>
73
74 <input type="submit" value="Log In" class="submit" />
75 <div id="nologininstructions">  <h5>Don't have a password yet?</h5><p> If you don't have a password yet, stop by the circulation desk the next time you're in the library. We'll happily set one up for you.</p>
76 <h5>Don't have a library card?</h5><p> If you don't have a library card, stop by your local library to sign up.  </p></div>
77 </form>
78
79
80 [% END %]
81 [% ELSE %]
82 <h4>Logging on to the catalog has not been enabled by the library.</h4>
83 <ul>
84   <li>To report this error, you can 
85           <a href="mailto:[% admin %]">email the Koha Administrator</a>.</li>
86   <li>Use top menu bar to navigate to another part of Koha.</li>
87 </ul>
88 [% END %]</div>
89 </div>
90 </div>
91 </div>
92
93 [% INCLUDE 'opac-bottom.inc' %]