Bugzilla – Attachment 142120 Details for
Bug 31771
Add 'page-section' to stock rotation pages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31771: Add page-section to stock rotation pages
Bug-31771-Add-page-section-to-stock-rotation-pages.patch (text/plain), 8.16 KB, created by
David Nind
on 2022-10-18 23:17:13 UTC
(
hide
)
Description:
Bug 31771: Add page-section to stock rotation pages
Filename:
MIME Type:
Creator:
David Nind
Created:
2022-10-18 23:17:13 UTC
Size:
8.16 KB
patch
obsolete
>From a9c6f327f193e44efc50cb3270930c423ef7c73d 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> >--- > .../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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31771
:
142111
|
142120
|
142393