Bug 26336: Add hint before and remove select after staging with no items
authorNick Clemens <nick@bywatersolutions.com>
Tue, 1 Sep 2020 16:36:43 +0000 (16:36 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 4 Dec 2020 14:40:58 +0000 (15:40 +0100)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/includes/tools-item-action.inc
koha-tmpl/intranet-tmpl/prog/en/modules/tools/stage-marc-import.tt

index b021b54..27fb6da 100644 (file)
@@ -1,8 +1,7 @@
         [% IF item_action_ignore AND num_items == 0 %]
-            <select name="item_action" id="item_action" disabled="disabled">
+            No items were found during staging
         [% ELSE %]
             <select name="item_action" id="item_action">
-        [% END %]
             [% IF ( item_action_always_add ) %]
                 <option value="always_add" selected="selected">
             [% ELSE %]
@@ -33,4 +32,5 @@
                 <option value="ignore">
             [% END %]
                 Ignore items</option>
-        </select>
+            </select>
+        [% END %]
index 61626ff..7c75829 100644 (file)
       </li>
       <li class="radio">
         <input type="radio" id="parse_itemsno" name="parse_items" value="0" />
-        <label for="parse_itemsno">No</label>
+        <label for="parse_itemsno">No (If you do not check for items while staging you may not change this option later)
+        </label>
       </li>
     </ol>
     <ol>