Bug 13501: Move "Required" and checkbox after input/select
authorJulian Maurice <julian.maurice@biblibre.com>
Fri, 30 Oct 2015 12:49:56 +0000 (13:49 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 2 Sep 2016 16:25:04 +0000 (16:25 +0000)
Signed-off-by: Aleisha <aleishaamohia@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt

index 662c35f..5eb138e 100644 (file)
@@ -197,12 +197,6 @@ $(document).ready(function(){
                 [% ite.subfield %] - [% ite.marc_lib %]
               </label>
 
-              [% UNLESS ( ite.mandatory ) %]
-                <input type="checkbox" id="row[% ite.tag %][% ite.subfield %][% ite.random %]" title="Check to delete subfield [% ite.subfield %]" name="disable_input" value="[% ite.subfield %]" />
-              [% ELSE %]
-                <span class="required">Required</span>
-              [% END %]
-
               [% SET mv = ite.marc_value %]
               [% IF ( mv.type == 'select' ) -%]
                 <select name="[%- mv.name -%]" id="[%- mv.id -%]" size="1" tabindex="1" class="input_marceditor">
@@ -233,6 +227,12 @@ $(document).ready(function(){
                 <textarea tabindex="1" id="[%- mv.id -%]" name="field_value" class="input_marceditor" size="50" maxlength="255">[%- mv.value -%]"</textarea>
               [%- END -%]
 
+              [% UNLESS ( ite.mandatory ) %]
+                <input type="checkbox" id="row[% ite.tag %][% ite.subfield %][% ite.random %]" title="Check to delete subfield [% ite.subfield %]" name="disable_input" value="[% ite.subfield %]" />
+              [% ELSE %]
+                <span class="required">Required</span>
+              [% END %]
+
               <input type="hidden" name="tag"       value="[% ite.tag %]" />
               <input type="hidden" name="subfield"       value="[% ite.subfield %]" />
               <input type="hidden" name="mandatory"       value="[% ite.mandatory %]" />