Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tmpl
Garry Collum 48f958fb19 Bug 2889: Removed toggle variable from overduerules.tmpl - added __odd__
Removed toggle variable from overduerules.pl and overduerules.tmpl. Used template variable __odd__ instead.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-06-08 16:47:58 -05:00

182 lines
11 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Tools &rsaquo; Notice Triggers</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
$('#selectlibrary').find("input:submit").hide();
$('#branch').change(function() {
$('#selectlibrary').submit();
});
});
//]]>
</script>
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<!-- TMPL_INCLUDE NAME="cat-search.inc" -->
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; Notice Triggers</div>
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<h1>Defining <!-- TMPL_IF NAME="branch" -->overdue actions for <!-- TMPL_VAR NAME="branch" --><!-- TMPL_ELSE -->default overdue actions<!-- /TMPL_IF --></h1>
<div class="help">
<p>Delay is the number of days after an issue is due before an action is triggered. </p>
<p>If you want Koha to trigger an action (send a letter or debar member), a delay value is required.</p>
<p>Columns must be filled left to right: if the first column is blank, other columns will be ignored. </p>
</div>
<form method="post" action="/cgi-bin/koha/tools/overduerules.pl" id="selectlibrary">
<label for="branch">Select a library:</label>
<select id="branch" name="branch">
<option value="">Default</option>
<!-- TMPL_LOOP NAME="branchloop" -->
<!-- TMPL_IF NAME="selected" -->
<option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
<!-- TMPL_ELSE -->
<option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</select>
<input type="submit" value="Select" />
</form>
<!--TMPL_IF Name="ERROR"-->
<div class="dialog alert">
<h3>Data error</h3>
<p>The following fields have a forbidden value. Correct them and press OK again :</p>
<ul>
<!-- TMPL_IF NAME="ERRORDELAY" -->
<li>Delay <!--TMPL_VAR Name="ERRORDELAY"--> for <!--TMPL_VAR Name="BORERR"--> borrower category has some unexpected characters. There should be only numerical characters. </li>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="ERRORUSELESSDELAY" -->
<li>No letter or debar action specified for delay <!--TMPL_VAR Name="ERRORUSELESSDELAY"--> for <!--TMPL_VAR Name="BORERR"--> borrower category. If a delay is supplied, either a letter, debar action, or both should be specified.</li>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="ERRORORDER" -->
<li>Delay1 should be less than Delay2 which should be less than Delay3 for <!--TMPL_VAR Name="BORERR"--> borrower category </li>
<!-- /TMPL_IF -->
</ul>
</div>
<!--/TMPL_IF -->
<!-- TMPL_IF name="table" -->
<form method="post" action="/cgi-bin/koha/tools/overduerules.pl">
<input type="hidden" name="op" value="save" />
<input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
<table>
<caption>Rules for overdue actions: <!--TMPL_IF Name="branch"--><!-- TMPL_VAR NAME="branch" --><!--TMPL_ELSE--> default library <!--/TMPL_IF-->
<!--TMPL_IF Name="datasaved"-->
<br /><div class="dialog message">INPUT SAVED</div>
<!--/TMPL_IF -->
</caption>
<tr>
<th rowspan="2">&nbsp;</th><th colspan="3" scope="col">First</th><th colspan="3" scope="col">Second</th><th colspan="3" scope="col">Third</th>
</tr>
<tr>
<th scope="col">Delay</th><th scope="col">Letter</th><th scope="col">Debar</th><th scope="col">Delay</th><th scope="col">Letter</th><th scope="col">Debar</th><th scope="col">Delay</th><th scope="col">Letter</th><th scope="col">Debar</th>
</tr>
<!-- TMPL_LOOP NAME="table" -->
<!-- TMPL_UNLESS NAME="__odd__" -->
<tr class="highlight">
<!-- TMPL_ELSE -->
<tr>
<!-- /TMPL_UNLESS -->
<th scope="row"><!-- TMPL_VAR NAME="line" --></th>
<td>
<input name="delay1-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay1" -->" />
</td>
<td>
<!--TMPL_IF Name="noletter" -->
<input type="text" name="letter1-<!-- TMPL_VAR NAME="overduename" -->" value="<!--TMPL_VAR Name="letter1"-->" />
<!--TMPL_ELSE -->
<select name="letter1-<!-- TMPL_VAR NAME="overduename" -->">
<option value="">No notice</option>
<!-- TMPL_LOOP name="letterloop1" -->
<!-- TMPL_IF NAME="selected" -->
<option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="lettername" --></option>
<!-- TMPL_ELSE -->
<option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="lettername" --></option>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</select>
<!--/TMPL_IF -->
</td>
<td>
<!-- TMPL_IF NAME="debarred1" -->
<input type="checkbox" name="debarred1-<!-- TMPL_VAR NAME="overduename" -->" checked="checked" value="1" />
<!-- TMPL_ELSE -->
<input type="checkbox" name="debarred1-<!-- TMPL_VAR NAME="overduename" -->" value="1" />
<!-- /TMPL_IF -->
</td>
<td>
<input name="delay2-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay2" -->" />
</td>
<td>
<!--TMPL_IF Name="noletter" -->
<input type="text" name="letter2-<!-- TMPL_VAR NAME="overduename" -->" value="<!--TMPL_VAR Name="letter2"-->" />
<!--TMPL_ELSE -->
<select name="letter2-<!-- TMPL_VAR NAME="overduename" -->">
<option value="">No notice</option>
<!-- TMPL_LOOP name="letterloop2" -->
<!-- TMPL_IF NAME="selected" -->
<option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="lettername" --></option>
<!-- TMPL_ELSE -->
<option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="lettername" --></option>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</select>
<!--/TMPL_IF -->
</td>
<td>
<!-- TMPL_IF NAME="debarred2" -->
<input type="checkbox" name="debarred2-<!-- TMPL_VAR NAME="overduename" -->" checked="checked" value="1" />
<!-- TMPL_ELSE -->
<input type="checkbox" name="debarred2-<!-- TMPL_VAR NAME="overduename" -->" value="1" />
<!-- /TMPL_IF -->
</td>
<td>
<input name="delay3-<!-- TMPL_VAR NAME="overduename" -->" size="5" value="<!-- TMPL_VAR NAME="delay3" -->" />
</td>
<td>
<!--TMPL_IF Name="noletter" -->
<input type="text" name="letter3-<!-- TMPL_VAR NAME="overduename" -->" value="<!--TMPL_VAR Name="letter3"-->" />
<!--TMPL_ELSE -->
<select name="letter3-<!-- TMPL_VAR NAME="overduename" -->">
<option value="">No notice</option>
<!-- TMPL_LOOP name="letterloop3" -->
<!-- TMPL_IF NAME="selected" -->
<option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="lettername" --></option>
<!-- TMPL_ELSE -->
<option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="lettername" --></option>
<!-- /TMPL_IF -->
<!-- /TMPL_LOOP -->
</select>
<!--/TMPL_IF -->
</td>
<td>
<!-- TMPL_IF NAME="debarred3" -->
<input type="checkbox" name="debarred3-<!-- TMPL_VAR NAME="overduename" -->" checked="checked" value="1" />
<!-- TMPL_ELSE -->
<input type="checkbox" name="debarred3-<!-- TMPL_VAR NAME="overduename" -->" value="1" />
<!-- /TMPL_IF -->
</td>
</tr>
<!-- /TMPL_LOOP -->
</table>
<fieldset class="action"><input type="submit" value="Save Changes" /></fieldset>
</form>
<!-- TMPL_ELSE -->
<div class="warning">You don't have patron categories defined, or the patron categories are not set to receive overdue notices.</div>
<div class="warning">If this is not what you were expecting, go to <a href="../admin/categorie.pl">patron categories</p></div>
<!-- /TMPL_IF -->
</div>
</div>
<div class="yui-b noprint">
<!-- TMPL_INCLUDE NAME="tools-menu.inc" -->
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->