Koha/koha-tmpl/intranet-tmpl/prog/en/modules/auth.tmpl
Paul POULAIN 6f5a9ee480 IndependantBranches behaviour fix
if IndependantBranches is set, then the user can't choose it's branch, it's automatically affected to it's own branch.

This fix removes the branch list & choose the branch automatically from the login

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-10-24 17:02:24 -05:00

65 lines
2.6 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo;
<!-- TMPL_IF NAME="nopermission" -->Access denied<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="timed_out" -->Session timed out<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="different_ip" -->IP address change<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="invalid_username_or_password" -->Invalid username or password<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="loginprompt" -->Log in to Koha<!-- /TMPL_IF -->
</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
</head>
<body>
<div id="doc" class="yui-t7">
<div id="bd">
<div id="login">
<h1><a href="http://koha.org">Koha</a></h1>
<!-- TMPL_IF NAME="nopermission" -->
<div id="login_error"><strong>Error</strong>: unauthorized user <a href="/cgi-bin/koha/mainpage.pl?logout.x=1">click to log out</a></div>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="timed_out" -->
<div id="login_error"><strong>Error</strong>: session timed out, please log in again</div>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="different_ip" -->
<div id="login_error"><strong>Error</strong>: IP address has changed, please log in again </div>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="invalid_username_or_password" -->
<div id="login_error"><strong>Error</strong>: Incorrect username or password</div>
<!-- /TMPL_IF -->
<!-- login prompt time-->
<form action="<!-- TMPL_VAR NAME="url" -->" method="post" name="loginform" id="loginform">
<!-- TMPL_LOOP NAME="INPUTS" -->
<input type="hidden" name="<!-- TMPL_VAR NAME="name" -->" value="<!-- TMPL_VAR NAME="value" -->" />
<!-- /TMPL_LOOP -->
<p><label>Username:<br />
<input type="text" name="userid" id="userid" class="input focus" value="<!-- TMPL_VAR NAME="userid" -->" size="20" tabindex="1" /></label>
</p>
<p><label>Password:<br />
<input type="password" name="password" id="password" class="input" value="" size="20" tabindex="2" /></label>
</p>
<!-- TMPL_UNLESS name="IndependantBranches" -->
<p><label for="branch">Library:<br />
<select name="branch" id="branch" class="input">
<!-- TMPL_LOOP NAME="branchloop" -->
<option value="<!-- TMPL_VAR NAME='branchcode' -->"><!-- TMPL_VAR NAME='branchname' --></option>
<!-- /TMPL_LOOP -->
</select></label>
</p>
<!-- /TMPL_UNLESS -->
<!-- <p><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="3" />Remember me</label></p> -->
<p class="submit"><input id="submit" type="submit" value="Login &raquo;" tabindex="4" /></p>
</form>
<!--<ul> -->
<!-- <li><a href="/cgi-bin/koha/lostpassword.pl" title="Password Lost and Found">Lost your password?</a></li> -->
<!-- </ul> -->
</div>
</div>
<!-- TMPL_INCLUDE name="intranet-bottom.inc" -->