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>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Nick Clemens 2022-04-22 19:15:43 +00:00 committed by Fridolin Somers
parent 6ec8c3ec89
commit 56c4ab4ee1

View file

@ -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 %]