Lines 560-615
for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidde
Link Here
|
560 |
[% END %] |
560 |
[% END %] |
561 |
|
561 |
|
562 |
<div id="refund-lost-item-fee-on-return" class="container"> |
562 |
<div id="refund-lost-item-fee-on-return" class="container"> |
563 |
<h3>Lost item fee refund on return policy</h3> |
563 |
[% IF current_branch == '*' %] |
|
|
564 |
<h3>Default lost item fee refund on return policy</h3> |
565 |
[% ELSE %] |
566 |
<h3>Lost item fee refund on return policy for [% Branches.GetName(current_branch) %]</h3> |
567 |
[% END %] |
564 |
<p>Specify the default policy for lost item fees on return. |
568 |
<p>Specify the default policy for lost item fees on return. |
565 |
</p> |
569 |
</p> |
566 |
<form method="post" action="/cgi-bin/koha/admin/smart-rules.pl"> |
570 |
<form method="post" action="/cgi-bin/koha/admin/smart-rules.pl"> |
567 |
<input type="hidden" name="op" value="add-refund-lost-item-fee-rule" /> |
571 |
<input type="hidden" name="op" value="mod-refund-lost-item-fee-rule" /> |
|
|
572 |
<input type="hidden" name="branch" value="[% current_branch %]" /> |
568 |
<table> |
573 |
<table> |
569 |
<tr> |
574 |
<tr> |
570 |
<th>Library</th> |
|
|
571 |
<th>Refund lost item fee</th> |
575 |
<th>Refund lost item fee</th> |
572 |
<th> </th> |
576 |
<th> </th> |
573 |
</tr> |
577 |
</tr> |
574 |
[% FOREACH refundLostItemFeeRule IN refundLostItemFeeRules %] |
|
|
575 |
<tr> |
578 |
<tr> |
576 |
<td> |
579 |
<td> |
577 |
[% IF refundLostItemFeeRule.branchcode == '*' %] |
580 |
<select name="refund"> |
578 |
All |
581 |
[#% Default branch %#] |
579 |
[% ELSE %] |
582 |
[% IF ( current_branch == '*' ) %] |
580 |
[% Branches.GetName(refundLostItemFeeRule.branchcode) %] |
583 |
[% IF ( refundLostItemFeeRule.refund ) %] |
581 |
[% END %] |
584 |
<option value="1" selected="selected"> |
582 |
</td> |
585 |
[% ELSE %] |
583 |
<td> |
586 |
<option value="1"> |
584 |
[% IF refundLostItemFeeRule.refund %] |
587 |
[% END %] |
585 |
Yes |
588 |
Yes |
586 |
[% ELSE %] |
589 |
</option> |
587 |
No |
590 |
[% IF ( not refundLostItemFeeRule.refund ) %] |
588 |
[% END %] |
591 |
<option value="0" selected="selected"> |
|
|
592 |
[% ELSE %] |
593 |
<option value="0"> |
594 |
[% END %] |
595 |
No |
596 |
</option> |
597 |
[% ELSE %] |
598 |
[#% Branch-specific %#] |
599 |
[% IF ( not refundLostItemFeeRule ) %] |
600 |
<option value="*" selected="selected"> |
601 |
[% ELSE %] |
602 |
<option value="*"> |
603 |
[% END %] |
604 |
[% IF defaultRefundRule %] |
605 |
Use default (Yes) |
606 |
[% ELSE %] |
607 |
Use default (No) |
608 |
[% END %] |
609 |
</option> |
610 |
[% IF ( not refundLostItemFeeRule ) %] |
611 |
<option value="1">Yes</option> |
612 |
<option value="0">No</option> |
613 |
[% ELSE %] |
614 |
[% IF ( refundLostItemFeeRule.refund ) %] |
615 |
<option value="1" selected="selected"> |
616 |
[% ELSE %] |
617 |
<option value="1"> |
618 |
[% END %] |
619 |
Yes |
620 |
</option> |
621 |
[% IF ( not refundLostItemFeeRule.refund ) %] |
622 |
<option value="0" selected="selected"> |
623 |
[% ELSE %] |
624 |
<option value="0"> |
625 |
[% END %] |
626 |
No |
627 |
</option> |
628 |
[% END %] |
629 |
[% END %] |
630 |
</select> |
589 |
</td> |
631 |
</td> |
590 |
<td class="actions"> |
632 |
<td class="actions"> |
591 |
[% IF refundLostItemFeeRule.branchcode != '*' %] |
633 |
<button type="submit" class="btn btn-mini"><i class="fa fa-save"></i> Save</button> |
592 |
<a class="btn btn-mini delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=del-refund-lost-item-fee-rule&ref_branchcode=[% refundLostItemFeeRule.branchcode %]"><i class="fa fa-trash"></i> Delete</a> |
|
|
593 |
[% END %] |
594 |
</td> |
595 |
</tr> |
596 |
[% END %] |
597 |
<tr> |
598 |
<td> |
599 |
<select name="ref_branchcode"> |
600 |
<option value='*'>All</option> |
601 |
[% FOREACH branch IN Branches.all %] |
602 |
<option value="[% branch.branchcode %]">[% branch.branchname %]</option> |
603 |
[% END %] |
604 |
</select> |
605 |
</td> |
634 |
</td> |
606 |
<td> |
|
|
607 |
<select name="ref_refund"> |
608 |
<option value="0">No</option> |
609 |
<option value="1">Yes</option> |
610 |
</select> |
611 |
</td> |
635 |
</td> |
612 |
<td class="actions"><button type="submit" class="btn btn-mini"><i class="fa fa-plus"></i> Add</td> |
|
|
613 |
</tr> |
636 |
</tr> |
614 |
</table> |
637 |
</table> |
615 |
</form> |
638 |
</form> |
616 |
- |
|
|