From 8925be68a28171ca47b3d1e29c07fd55c45c0847 Mon Sep 17 00:00:00 2001 From: Nick Clemens <nick@bywatersolutions.com> Date: Fri, 22 Apr 2022 19:15:43 +0000 Subject: [PATCH] Bug 30599: Add an 'Archive selected' button This patch simply adds a new button on the suggestions interface to allow for archiving multiple suggestions. To test: 1 - Apply patch 2 - Create some purchase suggestions 3 - Select several suggestions 4 - Click 'Archive selected' 5 - Suggestions are archived 6 - You can view archived suggestions by selecting 'Suggestion information'->'Include archived' Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Felicity Brown <felicity.brown@montgomerycountymd.gov> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> --- .../prog/en/modules/suggestion/suggestion.tt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt index 22f161aea8..46aa8e83b4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -956,6 +956,16 @@ </fieldset> </fieldset> </div> <!-- /.col-sm-2 --> + <div class="col-sm-2"> + <fieldset> + <span class="label">Archive selected</span> + <input type="hidden" name="branchcode" value="[% branchfilter | html %]" /> + <input type="hidden" name="filter_archived" value="[% filter_archived | html %]" /> + <fieldset class="action"> + <button type="submit" class="btn btn-default btn-xs" value="archive">Archive</button> + </fieldset> + </fieldset> + </div> <!-- /.col-sm-2 --> </div> <!-- /.row --> [% ELSE %] -- 2.30.2