Bug 12744 - Set language in staff client should have 'Cancel' link
authorMarc Véron <veron@veron.ch>
Tue, 29 Jul 2014 13:27:08 +0000 (15:27 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Sun, 24 Aug 2014 16:23:41 +0000 (13:23 -0300)
Test plan

Without patch:
Click on Library name in head of any staff client page anc choose 'Set library'
Result: Form 'Set library' with no 'Cancel' near 'Submit' button

With patch:
Form displays 'Cancel' link.
This link closes the form and takes you back to the page where you came from.

New patch without empty "onclick" attribute.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Nice patch, no problems found.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/selectbranchprinter.tt

index 78ebd53..faaa963 100644 (file)
@@ -78,7 +78,10 @@ Updated:<ul>
     [% END %] -->
     </ol>
 </fieldset>
-<fieldset class="action"><input type="submit" value="Submit" /></fieldset>
+<fieldset class="action">
+    <input type="submit" value="Submit" />
+    <a class="cancel" id="cancel_set_library" href="[% referer or '/cgi-bin/koha/circ/circulation.pl' %]">Cancel</a>
+</fieldset>
 <div class="noshow">
     [% FOREACH recycle_loo IN recycle_loop %]
     <input type="text" name="[% recycle_loo.param %]" value="[% recycle_loo.value |html %]" />