<div id="transferlimit_tabs" class="toptabs">
- <ul class="ui-tabs-nav">
+ <ul class="ui-tabs-nav">
[% FOREACH codes_loo IN codes_loop %]<li><a href="#[% codes_loo.code | uri %]set">[% codes_loo.code | html %]</a></li>[% END %]
- </ul>
+ </ul>
- <form method="post" action="branch_transfer_limits.pl">
+ <form method="post" action="branch_transfer_limits.pl">
- [% FOREACH codes_loo IN codes_loop %]
- <div id="[% codes_loo.code | html %]set">
- <h4>Policy for [% codes_loo.limit_phrase | html %]: [% codes_loo.code | html %]</h4>
+ [% FOREACH codes_loo IN codes_loop %]
+ <div id="[% codes_loo.code | html %]set">
+ <h4>Policy for [% codes_loo.limit_phrase | html %]: [% codes_loo.code | html %]</h4>
<p><a id="CheckAll[% codes_loo.code | html %]table" class="checkall" href="#"><i class="fa fa-check"></i> Select all</a> | <a id="UncheckAll[% codes_loo.code | html %]table" class="uncheckall" href="#"><i class="fa fa-remove"></i> Clear all</a></p>
-
- <table id="[% codes_loo.code | html %]table" class="sorted">
- <thead>
- <tr>
- <th>Library</th>
- <th>Allow transfer?</th>
- </tr>
- </thead>
-
- <tbody>
- [% FOREACH to_branch_loo IN codes_loo.to_branch_loop %]
+
+ <table id="[% codes_loo.code | html %]table" class="sorted">
+ <thead>
+ <tr>
+ <th>Library</th>
+ <th>Allow transfer?</th>
+ </tr>
+ </thead>
+
+ <tbody>
+ [% FOREACH to_branch_loo IN codes_loo.to_branch_loop %]
<tr>
<td><label style="min-width:400px;" for="[% to_branch_loo.code | html %][% to_branch_loo.toBranch | html %]row">[% to_branch_loo.toBranch | html %] - [% Branches.GetName( to_branch_loo.toBranch ) | html %]</label></td>
- <td>
- [% IF ( to_branch_loo.isChecked ) %]
- <input type="checkbox" id="[% to_branch_loo.code | html %][% to_branch_loo.toBranch | html %]row" name="[% to_branch_loo.code | html %]_[% to_branch_loo.toBranch | html %]" checked="checked" />
- [% ELSE %]
- <input type="checkbox" id="[% to_branch_loo.code | html %][% to_branch_loo.toBranch | html %]row" name="[% to_branch_loo.code | html %]_[% to_branch_loo.toBranch | html %]" />
- [% END %]
- </td>
- </tr>
- [% END %]
- </tbody>
- </table>
- </div>
- [% END %]
-
- <fieldset class="action">
- <input type="hidden" name="updateLimits" value="1" />
- <input type="hidden" name="branchcode" value="[% branchcode | html %]" />
- <input type="submit" value="Save" />
- <a class="cancel" href="/cgi-bin/koha/admin/admin-home.pl">Cancel</a>
- </fieldset>
- </form>
- </div>
+ <td>
+ [% IF ( to_branch_loo.isChecked ) %]
+ <input type="checkbox" id="[% to_branch_loo.code | html %][% to_branch_loo.toBranch | html %]row" name="[% to_branch_loo.code | html %]_[% to_branch_loo.toBranch | html %]" checked="checked" />
+ [% ELSE %]
+ <input type="checkbox" id="[% to_branch_loo.code | html %][% to_branch_loo.toBranch | html %]row" name="[% to_branch_loo.code | html %]_[% to_branch_loo.toBranch | html %]" />
+ [% END %]
+ </td>
+ </tr>
+ [% END %]
+ </tbody>
+ </table>
+ </div>
+ [% END %]
+
+ <fieldset class="action">
+ <input type="hidden" name="updateLimits" value="1" />
+ <input type="hidden" name="branchcode" value="[% branchcode | html %]" />
+ <input type="submit" value="Save" />
+ <a class="cancel" href="/cgi-bin/koha/admin/admin-home.pl">Cancel</a>
+ </fieldset>
+ </form>
+ </div>
</main>
</div> <!-- /.col-sm-10.col-sm-push-2 -->