|
Lines 95-101
Link Here
|
| 95 |
|
95 |
|
| 96 |
[% INCLUDE 'stockrotation-toolbar.inc' %] |
96 |
[% INCLUDE 'stockrotation-toolbar.inc' %] |
| 97 |
|
97 |
|
| 98 |
<h2>Stock rotation</h2> |
98 |
<h1>Stock rotation</h1> |
| 99 |
|
99 |
|
| 100 |
[% IF existing_rotas.size > 0 %] |
100 |
[% IF existing_rotas.size > 0 %] |
| 101 |
<table id="stock_rotation" class="rotas_table" role="grid"> |
101 |
<table id="stock_rotation" class="rotas_table" role="grid"> |
|
Lines 152-160
Link Here
|
| 152 |
[% ELSIF (op == 'create_edit_rota') %] |
152 |
[% ELSIF (op == 'create_edit_rota') %] |
| 153 |
|
153 |
|
| 154 |
[% IF rota.rota_id %] |
154 |
[% IF rota.rota_id %] |
| 155 |
<h2>Edit "[% rota.title | html %]"</h2> |
155 |
<h1>Edit "[% rota.title | html %]"</h1> |
| 156 |
[% ELSE %] |
156 |
[% ELSE %] |
| 157 |
<h2>Create new rota</h2> |
157 |
<h1>Create new rota</h1> |
| 158 |
[% END %] |
158 |
[% END %] |
| 159 |
|
159 |
|
| 160 |
[% IF error == 'invalid_form' %] |
160 |
[% IF error == 'invalid_form' %] |
|
Lines 209-215
Link Here
|
| 209 |
</div> |
209 |
</div> |
| 210 |
[% END %] |
210 |
[% END %] |
| 211 |
|
211 |
|
| 212 |
<h2>Manage <em>[% rota.title | html %]</em> stages</h2> |
212 |
<h1>Manage <em>[% rota.title | html %]</em> stages</h1> |
| 213 |
<div id="ajax_status" |
213 |
<div id="ajax_status" |
| 214 |
data-saving-msg="Saving changes..." |
214 |
data-saving-msg="Saving changes..." |
| 215 |
data-success-msg="" |
215 |
data-success-msg="" |
|
Lines 312-320
Link Here
|
| 312 |
[% ELSIF (op == 'create_edit_stage') %] |
312 |
[% ELSIF (op == 'create_edit_stage') %] |
| 313 |
|
313 |
|
| 314 |
[% IF stage.id %] |
314 |
[% IF stage.id %] |
| 315 |
<h2>Edit "[% Branches.GetName(stage.branchcode_id) | html %]"</h2> |
315 |
<h1>Edit "[% Branches.GetName(stage.branchcode_id) | html %]"</h1> |
| 316 |
[% ELSE %] |
316 |
[% ELSE %] |
| 317 |
<h2>Create new stage</h2> |
317 |
<h1>Create new stage</h1> |
| 318 |
[% END %] |
318 |
[% END %] |
| 319 |
|
319 |
|
| 320 |
[% IF error == 'invalid_form' %] |
320 |
[% IF error == 'invalid_form' %] |
|
Lines 357-363
Link Here
|
| 357 |
[% ELSIF (op == 'confirm_remove_from_rota') %] |
357 |
[% ELSIF (op == 'confirm_remove_from_rota') %] |
| 358 |
|
358 |
|
| 359 |
<div class="dialog alert"> |
359 |
<div class="dialog alert"> |
| 360 |
<h3>Are you sure you wish to remove this item from it's rota</h3> |
360 |
<h1>Are you sure you wish to remove this item from it's rota</h1> |
| 361 |
<p> |
361 |
<p> |
| 362 |
<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> |
362 |
<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> |
| 363 |
<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> |
363 |
<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 366-372
Link Here
|
| 366 |
[% ELSIF (op == 'confirm_delete_stage') %] |
366 |
[% ELSIF (op == 'confirm_delete_stage') %] |
| 367 |
|
367 |
|
| 368 |
<div class="dialog alert"> |
368 |
<div class="dialog alert"> |
| 369 |
<h3>Are you sure you want to delete this stage?</h3> |
369 |
<h1>Are you sure you want to delete this stage?</h1> |
| 370 |
[% IF stage.stockrotationitems.count > 0 %] |
370 |
[% IF stage.stockrotationitems.count > 0 %] |
| 371 |
<p>This stage contains the following item(s):</p> |
371 |
<p>This stage contains the following item(s):</p> |
| 372 |
<ul> |
372 |
<ul> |
|
Lines 394-400
Link Here
|
| 394 |
</div> |
394 |
</div> |
| 395 |
[% END %] |
395 |
[% END %] |
| 396 |
|
396 |
|
| 397 |
<h2>Manage items assigned to <em>[% rota.title | html %]</em></h2> |
397 |
<h1>Manage items assigned to <em>[% rota.title | html %]</em></h1> |
| 398 |
|
398 |
|
| 399 |
<!-- Add items modal --> |
399 |
<!-- Add items modal --> |
| 400 |
<div class="modal" id="addItemsModal" tabindex="-1" role="dialog" aria-labelledby="addItemsLabel"> |
400 |
<div class="modal" id="addItemsModal" tabindex="-1" role="dialog" aria-labelledby="addItemsLabel"> |
|
Lines 521-527
Link Here
|
| 521 |
[% ELSIF op == 'add_items_to_rota' %] |
521 |
[% ELSIF op == 'add_items_to_rota' %] |
| 522 |
|
522 |
|
| 523 |
<div class="dialog message"> |
523 |
<div class="dialog message"> |
| 524 |
<h3>Add items to rota report</h3> |
524 |
<h1>Add items to rota report</h1> |
| 525 |
</div> |
525 |
</div> |
| 526 |
|
526 |
|
| 527 |
<div> |
527 |
<div> |