Merge commit 'biblibre/3.2_biblibre' into to-push
[koha_fer] / koha-tmpl / opac-tmpl / prog / en / modules / opac-auth.tmpl
index 9d38d4d..1567450 100644 (file)
@@ -1,14 +1,21 @@
-<!-- TMPL_INCLUDE name="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> Catalog &rsaquo;  Log in to Your Account
+<!-- TMPL_INCLUDE name="doc-head-open.inc" --><!-- TMPL_IF NAME="LibraryNameTitle" --><!-- TMPL_VAR NAME="LibraryNameTitle" --><!-- TMPL_ELSE -->Koha Online<!-- /TMPL_IF --> 
+<!-- TMPL_IF NAME="opacuserlogin" -->
+ Catalog &rsaquo;  Log in to Your Account
+<!-- TMPL_ELSE -->
+ Catalog &rsaquo; Catalog Login Disabled
+<!-- /TMPL_IF -->
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 </head>
-<body>
+<body id="opac-login-page">
+<div id="doc3" class="yui-t7">
+   <div id="bd">
 <!-- TMPL_INCLUDE name="masthead.inc" -->
 
-<div id="doc" class="yui-t7">
-   <div id="bd">
        <div id="yui-g">
-
+<div class="container">
+<div id="opac-auth">
 <!--CONTENT-->
+<!-- TMPL_IF NAME="opacuserlogin" -->
 <!-- TMPL_IF NAME="loginprompt" -->
 <!-- login prompt time-->
 <h3>Log In to Your Account</h3>
 <p>You entered an incorrect username or password. Please try again! And remember, usernames and passwords are case sensitive.</p>
 <!-- /TMPL_IF -->
 
-<form action="<!-- TMPL_VAR NAME="url" -->" name="auth" id="auth" method="post">
+<!-- TMPL_IF NAME="casAuthentication" -->
+<h4>Cas Login</h4>
+
+<!-- TMPL_IF NAME="invalidCasLogin" -->
+<!-- This is what is displayed if cas login has failed -->
+<p>Sorry, the CAS login failed.</p>
+<!-- /TMPL_IF -->
 
+<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>
+
+<h4>Local Login</h4>
+<p>If you do not have a CAS account, but a local account, you can still log in : </p>
+
+<!-- /TMPL_IF -->
+
+<form action="<!-- TMPL_VAR NAME="url" -->" name="auth" id="auth" method="post">
+  <input type="hidden" name="koha_login_context" value="opac" />
 <fieldset class="brief"><!-- TMPL_LOOP NAME="INPUTS" -->
   <input type="hidden" name="<!-- TMPL_VAR NAME="name" -->" value="<!-- TMPL_VAR NAME="value" -->" />
 <!-- /TMPL_LOOP -->
 <ol>
-<li><label for="userid">Your card number</label>
-<input type="text"  size="25" id="userid"  name="userid" />
-<li><label for="password">Password or PIN</label><input type="password"  size="25" id="password"  name="password" />
+<li><label for="userid">Login</label>
+<input type="text"  size="25" id="userid"  name="userid" /></li>
+<li><label for="password">Password</label><input type="password"  size="25" id="password"  name="password" /></li>
 </ol></fieldset>
 
 <input type="submit" value="Log In" class="submit" />
-  <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>
-<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>  <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>
+<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>
 </form>
 
 
 <!-- /TMPL_IF -->
-
+<!-- TMPL_ELSE -->
+<h4>Logging on to the catalog has not been enabled by the library.</h4>
+<ul>
+  <li>To report this error, you can 
+          <a href="mailto:<!-- TMPL_VAR NAME="admin" -->">email the Koha Administrator</a>.</li>
+  <li>Use top menu bar to navigate to another part of Koha.</li>
+</ul>
+<!-- /TMPL_IF --></div>
 </div>
 </div>
 </div>
+
 <!-- TMPL_INCLUDE NAME="opac-bottom.inc" -->