Lines 53-59
Link Here
|
53 |
|
53 |
|
54 |
[% INCLUDE 'stockrotation-toolbar.inc' %] |
54 |
[% INCLUDE 'stockrotation-toolbar.inc' %] |
55 |
|
55 |
|
56 |
<h2>Stock rotation</h2> |
56 |
<h1>Stock rotation</h1> |
57 |
|
57 |
|
58 |
[% IF existing_rotas.size > 0 %] |
58 |
[% IF existing_rotas.size > 0 %] |
59 |
<table id="stock_rotation" class="rotas_table" role="grid"> |
59 |
<table id="stock_rotation" class="rotas_table" role="grid"> |
Lines 110-118
Link Here
|
110 |
[% ELSIF (op == 'create_edit_rota') %] |
110 |
[% ELSIF (op == 'create_edit_rota') %] |
111 |
|
111 |
|
112 |
[% IF rota.rota_id %] |
112 |
[% IF rota.rota_id %] |
113 |
<h2>Edit "[% rota.title | html %]"</h2> |
113 |
<h1>Edit "[% rota.title | html %]"</h1> |
114 |
[% ELSE %] |
114 |
[% ELSE %] |
115 |
<h2>Create new rota</h2> |
115 |
<h1>Create new rota</h1> |
116 |
[% END %] |
116 |
[% END %] |
117 |
|
117 |
|
118 |
[% IF error == 'invalid_form' %] |
118 |
[% IF error == 'invalid_form' %] |
Lines 167-173
Link Here
|
167 |
</div> |
167 |
</div> |
168 |
[% END %] |
168 |
[% END %] |
169 |
|
169 |
|
170 |
<h2>Manage <em>[% rota.title | html %]</em> stages</h2> |
170 |
<h1>Manage <em>[% rota.title | html %]</em> stages</h1> |
171 |
<div id="ajax_status" |
171 |
<div id="ajax_status" |
172 |
data-saving-msg="Saving changes..." |
172 |
data-saving-msg="Saving changes..." |
173 |
data-success-msg="" |
173 |
data-success-msg="" |
Lines 270-278
Link Here
|
270 |
[% ELSIF (op == 'create_edit_stage') %] |
270 |
[% ELSIF (op == 'create_edit_stage') %] |
271 |
|
271 |
|
272 |
[% IF stage.id %] |
272 |
[% IF stage.id %] |
273 |
<h2>Edit "[% Branches.GetName(stage.branchcode_id) | html %]"</h2> |
273 |
<h1>Edit "[% Branches.GetName(stage.branchcode_id) | html %]"</h1> |
274 |
[% ELSE %] |
274 |
[% ELSE %] |
275 |
<h2>Create new stage</h2> |
275 |
<h1>Create new stage</h1> |
276 |
[% END %] |
276 |
[% END %] |
277 |
|
277 |
|
278 |
[% IF error == 'invalid_form' %] |
278 |
[% IF error == 'invalid_form' %] |
Lines 315-321
Link Here
|
315 |
[% ELSIF (op == 'confirm_remove_from_rota') %] |
315 |
[% ELSIF (op == 'confirm_remove_from_rota') %] |
316 |
|
316 |
|
317 |
<div class="dialog alert"> |
317 |
<div class="dialog alert"> |
318 |
<h3>Are you sure you wish to remove this item from it's rota</h3> |
318 |
<h1>Are you sure you wish to remove this item from it's rota</h1> |
319 |
<p> |
319 |
<p> |
320 |
<a class="btn btn-default btn-xs approve" href="?op=remove_item_from_stage&item_id=[% item_id | uri %]&stage_id=[% stage_id | uri %]&rota_id=[% rota_id | uri %]"><i class="fa fa-fw fa-check"></i>Yes</a> |
320 |
<a class="btn btn-default btn-xs approve" href="?op=remove_item_from_stage&item_id=[% item_id | uri %]&stage_id=[% stage_id | uri %]&rota_id=[% rota_id | uri %]"><i class="fa fa-fw fa-check"></i>Yes</a> |
321 |
<a class="btn btn-default btn-xs deny" href="?op=manage_items&rota_id=[% rota_id | uri %]"><i class="fa fa-fw fa-remove"></i>No</a> |
321 |
<a class="btn btn-default btn-xs deny" href="?op=manage_items&rota_id=[% rota_id | uri %]"><i class="fa fa-fw fa-remove"></i>No</a> |
Lines 324-330
Link Here
|
324 |
[% ELSIF (op == 'confirm_delete_stage') %] |
324 |
[% ELSIF (op == 'confirm_delete_stage') %] |
325 |
|
325 |
|
326 |
<div class="dialog alert"> |
326 |
<div class="dialog alert"> |
327 |
<h3>Are you sure you want to delete this stage?</h3> |
327 |
<h1>Are you sure you want to delete this stage?</h1> |
328 |
[% IF stage.stockrotationitems.count > 0 %] |
328 |
[% IF stage.stockrotationitems.count > 0 %] |
329 |
<p>This stage contains the following item(s):</p> |
329 |
<p>This stage contains the following item(s):</p> |
330 |
<ul> |
330 |
<ul> |
Lines 352-358
Link Here
|
352 |
</div> |
352 |
</div> |
353 |
[% END %] |
353 |
[% END %] |
354 |
|
354 |
|
355 |
<h2>Manage items assigned to <em>[% rota.title | html %]</em></h2> |
355 |
<h1>Manage items assigned to <em>[% rota.title | html %]</em></h1> |
356 |
|
356 |
|
357 |
<!-- Add items modal --> |
357 |
<!-- Add items modal --> |
358 |
<div class="modal" id="addItemsModal" tabindex="-1" role="dialog" aria-labelledby="addItemsLabel"> |
358 |
<div class="modal" id="addItemsModal" tabindex="-1" role="dialog" aria-labelledby="addItemsLabel"> |
Lines 479-485
Link Here
|
479 |
[% ELSIF op == 'add_items_to_rota' %] |
479 |
[% ELSIF op == 'add_items_to_rota' %] |
480 |
|
480 |
|
481 |
<div class="dialog message"> |
481 |
<div class="dialog message"> |
482 |
<h3>Add items to rota report</h3> |
482 |
<h1>Add items to rota report</h1> |
483 |
</div> |
483 |
</div> |
484 |
|
484 |
|
485 |
<div> |
485 |
<div> |