[% IF no_op_set %]
[% INCLUDE 'stockrotation-toolbar.inc' %]
Stock rotation
[% IF existing_rotas.size > 0 %]
Name |
Cyclical |
Active |
Description |
Number 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') %]
[% IF rota.rota_id %]
Edit "[% rota.title | html %]"
[% ELSE %]
Create new rota
[% END %]
[% IF error == 'invalid_form' %]
There was a problem with your form submission
[% END %]
[% ELSIF (op == 'manage_stages') %]
[% INCLUDE 'stockrotation-toolbar.inc' %]
[% IF error == 'invalid_form' %]
There was a problem with your form submission
[% END %]
Manage [% rota.title | html %] stages
[% IF existing_stages.size > 0 %]
Stages can be re-ordered by using the handle to drag and drop them to their new position
Library
Duration (days)
[% FOREACH stage IN existing_stages %]
-
[% IF existing_stages.size > 1 %]
[% END %]
[% Branches.GetName(stage.branchcode_id) | html %]
[% stage.duration | html %]
Edit
Delete
[% END %]
[% END %]
Return to rotas
[% ELSIF (op == 'create_edit_stage') %]
[% IF stage.id %]
Edit "[% Branches.GetName(stage.branchcode_id) | html %]"
[% ELSE %]
Create new stage
[% END %]
[% IF error == 'invalid_form' %]
There was a problem with your form submission
[% END %]
[% ELSIF (op == 'confirm_remove_from_rota') %]
Are you sure you wish to remove this item from it's rota
Yes
No
[% ELSIF (op == 'confirm_delete_stage') %]
Are you sure you want to delete this stage?
[% IF stage.stockrotationitems.count > 0 %]
This stage contains the following item(s):
[% FOREACH item IN stage.stockrotationitems %]
- [% item.itemnumber.biblio.title | html %] (Barcode: [% item.itemnumber.barcode | html %])
[% END %]
[% END %]
Yes
No
[% ELSIF (op == 'manage_items') %]
[% INCLUDE 'stockrotation-toolbar.inc' %]
[% IF error %]
[% IF error == "item_not_found" %]
The item was not found
[% ELSIF error == "already_on_rota" %]
This item is already on this rota
[% END %]
[% END %]
Manage [% rota.title | html %] items
[% IF items.count > 0 %]
Manage items assigned to "[% rota.title | html %]"
[% END %]
Return to rotas
[% ELSIF op == 'add_items_to_rota' %]
Add items to rota report
[% IF barcode_status.ok.size > 0 %]
Items added to rota:
[% FOREACH item_ok IN barcode_status.ok %]
- [% item_ok.biblio.title | html %]
[% END %]
[% END %]
[% IF barcode_status.on_this.size > 0 %]
Items already on this rota:
[% FOREACH item_on_this IN barcode_status.on_this %]
- [% item_on_this.biblio.title | html %]
[% END %]
[% END %]
[% IF barcode_status.not_found.size > 0 %]
Barcodes not found:
[% FOREACH barcode_not_found IN barcode_status.not_found %]
- [% barcode_not_found | html %]
[% END %]
[% END %]
[% IF barcode_status.on_other.size > 0 %]
Items found on other rotas:
[% FOREACH item_on_other IN barcode_status.on_other %]
- [% item_on_other.biblio.title | html %]
[% END %]
[% END %]
[% IF barcode_status.on_other.size > 0 %]
[% END %]
Return to rota
[% END %]