Bug 18584: Our legacy code contains trailing-spaces
authorThatcher Leonard <thatcher.f.leonard@gmail.com>
Wed, 10 Apr 2019 23:23:46 +0000 (23:23 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 25 Apr 2019 13:16:44 +0000 (14:16 +0100)
This patch removes trailing spaces and replaces tab characters with
spaces in the branch transfer limits template.

Mentored-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 8eb22efa0893849e2967e34c821c018c6405f8d3)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

koha-tmpl/intranet-tmpl/prog/en/modules/admin/branch_transfer_limits.tt

index 5aa9404..040772d 100644 (file)
 
 
   <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 -->