From bcb12524dea25118b0400cb69a4e3274517b8164 Mon Sep 17 00:00:00 2001 From: Lucas Gass <lucas@bywatersolutions.com> 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 <david@davidnind.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> --- .../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 @@ <h1>Stock rotation</h1> [% IF existing_rotas.size > 0 %] - <table id="stock_rotation" class="rotas_table" role="grid"> - <thead> - <tr> - <th class="anti-the">Name</th> - <th>Cyclical</th> - <th>Active</th> - <th>Description</th> - <th>Number of items</th> - <th class="NoSort noExport"> </th> - </tr> - </thead> - <tbody> - [% FOREACH rota IN existing_rotas %] + <div class="page-section"> + <table id="stock_rotation" class="rotas_table" role="grid"> + <thead> <tr> - <td>[% rota.title | html %]</td> - <td>[% rota.cyclical ? 'Yes' : 'No' | html %]</td> - <td>[% rota.active ? 'Yes' : 'No' | html %]</td> - <td>[% rota.description | html %]</td> - <td>[% rota.stockrotationitems.count | html %]</td> - <td class="actions"> - <a class="btn btn-default btn-xs" href="?op=create_edit_rota&rota_id=[% rota.rota_id | uri %]"> - <i class="fa fa-pencil"></i> - Edit - </a> - <div class="btn-group dropup" role="group"> - <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> - Manage - <i class="fa fa-caret-down"></i> - </button> - <ul class="dropdown-menu pull-right"> - <li><a href="?op=manage_stages&rota_id=[% rota.rota_id | uri %]">Stages</a></li> - [% IF CAN_user_stockrotation_manage_rota_items && rota.stockrotationstages.count > 0 %] - <li><a href="?op=manage_items&rota_id=[% rota.rota_id | uri %]">Items</a></li> - [% END %] - </ul> - </div> - <a class="btn btn-default btn-xs" href="?op=toggle_rota&rota_id=[% rota.rota_id | uri %]"> - <i class="fa fa-power-off"></i> - [% IF !rota.active %] - Activate - [% ELSE %] - Deactivate - [% END %] - </a> - </td> + <th class="anti-the">Name</th> + <th>Cyclical</th> + <th>Active</th> + <th>Description</th> + <th>Number of items</th> + <th class="NoSort noExport"> </th> </tr> - [% END %] - </tbody> - </table> + </thead> + <tbody> + [% FOREACH rota IN existing_rotas %] + <tr> + <td>[% rota.title | html %]</td> + <td>[% rota.cyclical ? 'Yes' : 'No' | html %]</td> + <td>[% rota.active ? 'Yes' : 'No' | html %]</td> + <td>[% rota.description | html %]</td> + <td>[% rota.stockrotationitems.count | html %]</td> + <td class="actions"> + <a class="btn btn-default btn-xs" href="?op=create_edit_rota&rota_id=[% rota.rota_id | uri %]"> + <i class="fa fa-pencil"></i> + Edit + </a> + <div class="btn-group dropup" role="group"> + <button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> + Manage + <i class="fa fa-caret-down"></i> + </button> + <ul class="dropdown-menu pull-right"> + <li><a href="?op=manage_stages&rota_id=[% rota.rota_id | uri %]">Stages</a></li> + [% IF CAN_user_stockrotation_manage_rota_items && rota.stockrotationstages.count > 0 %] + <li><a href="?op=manage_items&rota_id=[% rota.rota_id | uri %]">Items</a></li> + [% END %] + </ul> + </div> + <a class="btn btn-default btn-xs" href="?op=toggle_rota&rota_id=[% rota.rota_id | uri %]"> + <i class="fa fa-power-off"></i> + [% IF !rota.active %] + Activate + [% ELSE %] + Deactivate + [% END %] + </a> + </td> + </tr> + [% END %] + </tbody> + </table> + </div><!-- /.page-section --> [% END %] [% ELSIF (op == 'create_edit_rota') %] -- 2.30.2