Bug 7067 - OPAC Borrower Self Registration
[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, 
57 [% IF ( casServerUrl ) %]
58     please <a href="[% casServerUrl %]">click here to login</a>.<p>
59 [% END %]
60
61 [% IF ( casServersLoop ) %]
62 please choose against which one you would like to authenticate: </p>
63 <ul>
64     [% FOREACH casServer IN casServersLoop %]
65         <li><a href="[% casServer.value %]">[% casServer.name %]</a></li>
66     [% END %]
67 [% END %]
68 </ul>
69
70 <h4>Local login</h4>
71 <p>If you do not have a CAS account, but a local account, you can still log in : </p>
72
73 [% END %]
74
75 <form action="[% url %]" name="auth" id="auth" method="post">
76   <input type="hidden" name="koha_login_context" value="opac" />
77 <fieldset class="brief">[% FOREACH INPUT IN INPUTS %]
78   <input type="hidden" name="[% INPUT.name |html %]" value="[% INPUT.value |html %]" />
79 [% END %]
80 <ol>
81 <li><label for="userid">Login</label>
82 <input type="text"  size="25" id="userid"  name="userid" /></li>
83 <li><label for="password">Password</label><input type="password"  size="25" id="password"  name="password" /></li>
84 </ol></fieldset>
85
86 <input type="submit" value="Log In" class="submit" />
87 <div id="nologininstructions">
88     <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>
89     <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[% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %] or  <a href="/cgi-bin/koha/opac-memberentry.pl">register here</a>[% END %].</p>
90 </div>
91 </form>
92
93
94 [% END %]
95 [% ELSE %]
96 <h4>Logging on to the catalog has not been enabled by the library.</h4>
97 <ul>
98   <li>To report this error, you can 
99           <a href="mailto:[% admin %]">email the Koha Administrator</a>.</li>
100   <li>Use top menu bar to navigate to another part of Koha.</li>
101 </ul>
102 [% END %]</div>
103 </div>
104 </div>
105 </div>
106
107 [% INCLUDE 'opac-bottom.inc' %]