displaying button Renew All only if syspref OpacRenewalAllowed is set.

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Henri-Damien LAURENT 2008-01-15 11:39:15 -06:00 committed by Joshua Ferraro
parent a552277978
commit 7e5bfb9d29
1 changed files with 10 additions and 8 deletions

View File

@ -189,14 +189,16 @@
</tr>
<!-- /TMPL_LOOP -->
</table>
<form action="/cgi-bin/koha/opac-renew.pl" method="post">
<input type="hidden" name="from" value="opac_user" />
<input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
<!-- TMPL_LOOP NAME="ISSUES" -->
<input type="hidden" name="item" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
<!-- /TMPL_LOOP -->
<input type="submit" value="Renew All" />
</form>
<!--TMPL_IF Name="OpacRenewalAllowed"-->
<form action="/cgi-bin/koha/opac-renew.pl" method="post">
<input type="hidden" name="from" value="opac_user" />
<input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->" />
<!-- TMPL_LOOP NAME="ISSUES" -->
<input type="hidden" name="item" value="<!-- TMPL_VAR NAME="itemnumber" -->" />
<!-- /TMPL_LOOP -->
<input type="submit" value="Renew All" />
</form>
<!--/TMPL_IF-->
<!-- TMPL_ELSE -->
<table>
<tr><td>You have nothing checked out</td></tr>