Revised for biblibre/3.2_community: Fix for Bug 3939, Issuing rules clone button...
authorOwen Leonard <oleonard@myacpl.org>
Thu, 21 Jan 2010 13:58:43 +0000 (08:58 -0500)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Thu, 21 Jan 2010 19:49:30 +0000 (20:49 +0100)
This patch incorporates a drop-down for choosing the "clone to" library
directly from issuing-rules.pl. This eliminates the extra step of choosing
the library after submitting the "clone" action and clarifies the purpose
of the two different controls.

koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tmpl

index 8f1e85f..709b9b4 100644 (file)
@@ -56,9 +56,9 @@ $(document).ready(function() {
             <!-- /TMPL_LOOP -->
             </select>
         </form>
-       <!-- TMPL_IF Name="definedbranch" --><form action="/cgi-bin/koha/admin/clone-rules.pl" method="post"><input type="hidden" name="frombranch" value="<!-- TMPL_VAR NAME="branch" -->" /><input type="submit" value="Clone these rules" /></form><!-- /TMPL_IF -->
-               <br />
-               <br />
+<!-- TMPL_IF Name="definedbranch" --><form action="/cgi-bin/koha/admin/clone-rules.pl" method="post"><label for="tobranch"><strong>Clone these rules to:</strong></label> <input type="hidden" name="frombranch" value="<!-- TMPL_VAR NAME="branch" -->" /> 
+            <select name="tobranch" id="tobranch"><!-- TMPL_LOOP NAME="branchloop" --><option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option><!-- /TMPL_LOOP --></select> <input type="submit" value="Clone" /></form><!-- /TMPL_IF --></fieldset>
+
         <form method="post" action="/cgi-bin/koha/admin/smart-rules.pl">
             <input type="hidden" name="op" value="add" />
             <table>