Fix for Bug 6842 - Branch transfer limits broken
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / branch_transfer_limits.tt
index cf7ada3..2b007bf 100644 (file)
         <label for="branchselect">Select a library :</label>
             <select name="branchcode" id="branchselect">
                [% FOREACH branch_loo IN branch_loop %]
+                       [% IF ( branch_loo.selected ) %]
+                <option value="[% branch_loo.value %]" selected="selected">[% branch_loo.branchname %]</option>
+            [% ELSE %]
                 <option value="[% branch_loo.value %]">[% branch_loo.branchname %]</option>
+            [% END %]
                [% END %]
             </select>
            <input type="submit" value="Choose" />          
        }).tablesorterPager({container: $("#pager[% codes_loo.code %]table"),positionFixed: false,size: 10});
 }); </script>
        
-       <span id="pager[% codes_loo.code %]table" class="pager">
-       <form class="formpager">&nbsp;<strong>page(s)</strong>&nbsp;:
+       <div id="pager[% codes_loo.code %]table" class="pager">
+       <p class="formpager">&nbsp;<strong>page(s)</strong>&nbsp;:
                <img src="[% interface %]/[% theme %]/img/first.png" class="first"/>
                <img src="[% interface %]/[% theme %]/img/prev.png" class="prev"/>
                <input type="text" size="5" class="pagedisplay"/>
                        <option value="50">50</option>
                        <option value="100">100</option>
                </select>
-       </form>
-</span>
+       </p>
+</div>
                <table id="[% codes_loo.code %]table">
                        <thead>
                                <tr>
                                        [% FOREACH to_branch_loo IN codes_loo.to_branch_loop %]
                                                [% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
                                                        <td><label style="min-width:400px;" for="[% to_branch_loo.code %][% to_branch_loo.toBranch %]row">[% to_branch_loo.toBranch %] - [% to_branch_loo.toBranchname %]</label></td>
-                                                       <td><input type="checkbox" id="[% to_branch_loo.code %][% to_branch_loo.toBranch %]row" name="[% to_branch_loo.code %]_[% to_branch_loo.toBranch %]" [% IF ( to_branch_loo.isChecked ) %]checked="checked" [% END %] /></td>
+                                                       <td>
+                                                       [% IF ( to_branch_loo.isChecked ) %]
+                                                               <input type="checkbox" id="[% to_branch_loo.code %][% to_branch_loo.toBranch %]row" name="[% to_branch_loo.code %]_[% to_branch_loo.toBranch %]" checked="checked" />
+                                                       [% ELSE %]
+                                                               <input type="checkbox" id="[% to_branch_loo.code %][% to_branch_loo.toBranch %]row" name="[% to_branch_loo.code %]_[% to_branch_loo.toBranch %]" />
+                                                       [% END %]
+                                                       </td>
                                                </tr>
                                        [% END %]
                        </tbody>