From e314375d77106a996f4645d3bf2e6c00bb9bb60d Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 18 Oct 2022 22:22:55 +0000 Subject: [PATCH] Bug 31771: Add page-section to stock rotation pages To test: 1. Apply patch 2. Set the system preference 'StockRotation' to enable. 3. Go to Cataloging / Stock rotation 4. Add some new rotas 5. Make sure the page looks good with the new page-section div Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../prog/en/modules/tools/stockrotation.tt | 96 ++++++++++--------- 1 file changed, 49 insertions(+), 47 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt index 296ca5145f..3280e66b44 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt @@ -101,55 +101,57 @@

Stock rotation

[% IF existing_rotas.size > 0 %] - - - - - - - - - - - - - [% FOREACH rota IN existing_rotas %] +
+
NameCyclicalActiveDescriptionNumber of items 
+ - - - - - - + + + + + + - [% END %] - -
[% rota.title | html %][% rota.cyclical ? 'Yes' : 'No' | html %][% rota.active ? 'Yes' : 'No' | html %][% rota.description | html %][% rota.stockrotationitems.count | html %] - - - Edit - -
- - -
- - - [% IF !rota.active %] - Activate - [% ELSE %] - Deactivate - [% END %] - -
NameCyclicalActiveDescriptionNumber of items 
+ + + [% FOREACH rota IN existing_rotas %] + + [% rota.title | html %] + [% rota.cyclical ? 'Yes' : 'No' | html %] + [% rota.active ? 'Yes' : 'No' | html %] + [% rota.description | html %] + [% rota.stockrotationitems.count | html %] + + + + Edit + +
+ + +
+ + + [% IF !rota.active %] + Activate + [% ELSE %] + Deactivate + [% END %] + + + + [% END %] + + + [% END %] [% ELSIF (op == 'create_edit_rota') %]