Bug 3800 - Misplaced IF was causing the no permission message never to be displayed
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-auth.tmpl
1 <!-- TMPL_INCLUDE name="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> 
2 <!-- TMPL_IF NAME="opacuserlogin" -->
3  Catalog &rsaquo;  Log in to Your Account
4 <!-- TMPL_ELSE -->
5  Catalog &rsaquo; Catalog Login Disabled
6 <!-- /TMPL_IF -->
7 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
8 </head>
9 <body id="opac-login-page">
10 <div id="doc3" class="yui-t7">
11    <div id="bd">
12 <!-- TMPL_INCLUDE name="masthead.inc" -->
13
14         <div id="yui-g">
15 <div class="container">
16 <div id="opac-auth">
17 <!--CONTENT-->
18 <!-- TMPL_IF NAME="opacuserlogin" -->
19 <!-- TMPL_IF NAME="nopermission" -->
20 <!-- This is what is displayed if user doesnt have permission -->
21 <p>Sorry, the system doesn't think you have permission to access this page. </p>
22 <!-- /TMPL_IF -->
23 <!-- TMPL_IF NAME="loginprompt" -->
24 <!-- login prompt time-->
25 <h3>Log In to Your Account</h3>
26 <!-- TMPL_IF NAME="timed_out" -->
27 <!-- This is what is displayed if login has timed out -->
28 <p>Sorry, your session has timed out.  Please log in again.</p>
29 <!-- /TMPL_IF -->
30
31 <!-- TMPL_IF NAME="different_ip" -->
32 <!-- This is what is displayed if user doesnt have permission -->
33 <p>You are logging from a different IP address.  Please log in again.</p>
34 <!-- /TMPL_IF -->
35
36 <!-- TMPL_IF NAME="invalid_username_or_password" -->
37 <!-- This is what is displayed if user doesnt have permission -->
38 <p>You entered an incorrect username or password. Please try again! And remember, usernames and passwords are case sensitive.</p>
39 <!-- /TMPL_IF -->
40
41 <!-- TMPL_IF NAME="casAuthentication" -->
42 <h4>Cas Login</h4>
43
44 <!-- TMPL_IF NAME="invalidCasLogin" -->
45 <!-- This is what is displayed if cas login has failed -->
46 <p>Sorry, the CAS login failed.</p>
47 <!-- /TMPL_IF -->
48
49 <p>If you have a <acronym title="Central Authentication Service">CAS</acronym> account, please <a href="<!-- TMPL_VAR NAME="casServerUrl" -->">click here to login</a>.<p>
50
51 <h4>Local Login</h4>
52 <p>If you do not have a CAS account, but a local account, you can still log in : </p>
53
54 <!-- /TMPL_IF -->
55
56 <form action="<!-- TMPL_VAR NAME="url" -->" name="auth" id="auth" method="post">
57   <input type="hidden" name="koha_login_context" value="opac" />
58 <fieldset class="brief"><!-- TMPL_LOOP NAME="INPUTS" -->
59   <input type="hidden" name="<!-- TMPL_VAR NAME="name" -->" value="<!-- TMPL_VAR NAME="value" -->" />
60 <!-- /TMPL_LOOP -->
61 <ol>
62 <li><label for="userid">Login</label>
63 <input type="text"  size="25" id="userid"  name="userid" /></li>
64 <li><label for="password">Password</label><input type="password"  size="25" id="password"  name="password" /></li>
65 </ol></fieldset>
66
67 <input type="submit" value="Log In" class="submit" />
68 <div>  <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>
69 <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>
70 </form>
71
72
73 <!-- /TMPL_IF -->
74 <!-- TMPL_ELSE -->
75 <h4>Logging on to the catalog has not been enabled by the library.</h4>
76 <ul>
77   <li>To report this error, you can 
78           <a href="mailto:<!-- TMPL_VAR NAME="admin" -->">email the Koha Administrator</a>.</li>
79   <li>Use top menu bar to navigate to another part of Koha.</li>
80 </ul>
81 <!-- /TMPL_IF --></div>
82 </div>
83 </div>
84 </div>
85
86 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->