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> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
d8deaa8620
commit
e314375d77
1 changed files with 49 additions and 47 deletions
|
@ -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') %]
|
||||
|
|
Loading…
Reference in a new issue