Bug 29935: Archived suggestions filter always visible
authorFrédéric Demians <f.demians@tamil.fr>
Sat, 24 Dec 2022 09:52:05 +0000 (10:52 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 10 Mar 2023 14:15:37 +0000 (11:15 -0300)
In suggestion sidebar menu, make visible 'Include archived' checkbox
without having to develop a filter.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt

index 93d6cac..1363134 100644 (file)
                                     <fieldset class="brief" id="suggestion_information">
                                         <ol>
                                             <li>
-                                                <label for="archived" style="display: inline;">Include archived:</label>
-                                                [% IF filter_archived %]
-                                                    <input type="checkbox" id="archived" value="1" name="filter_archived" checked="checked" title="Include archived suggestions in the search" />
-                                                [% ELSE %]
-                                                    <input type="checkbox" id="archived" value="1" name="filter_archived" title="Include archived suggestions in the search" />
-                                                [% END %]
-                                            </li>
-                                            <li>
                                                 <label for="STATUS[% loop.index | html %]"> Status:</label>
                                                 <select name="STATUS" id="STATUS[% loop.index | html %]">
                                                     <option value="">Any</option>
                                             <input type="submit" value="Go" />
                                         </fieldset>
                                     </fieldset> <!-- /#acquisition_information -->
+                                    <div id="filter_archived_information">
+                                        <ol>
+                                            <li>
+                                                <label for="archived" style="display: inline;">Include archived:</label>
+                                                [% IF filter_archived %]
+                                                    <input type="checkbox" id="archived" value="1" name="filter_archived" checked="checked" title="Include archived suggestions in the search" />
+                                                [% ELSE %]
+                                                    <input type="checkbox" id="archived" value="1" name="filter_archived" title="Include archived suggestions in the search" />
+                                                [% END %]
+                                            </li>
+                                        </ol>
+                                    </div>
                                 </div> <!-- /#limits -->
                             </fieldset> <!-- /.brief -->
                         </form> <!-- /suggestionsfilter -->