|
Lines 389-395
Link Here
|
| 389 |
<p> [% sritemstotal | html %] items are still attached to this rota, those items will remain at their current stage libraries.</p> |
389 |
<p> [% sritemstotal | html %] items are still attached to this rota, those items will remain at their current stage libraries.</p> |
| 390 |
[% END %] |
390 |
[% END %] |
| 391 |
[% END %] |
391 |
[% END %] |
| 392 |
<p> |
392 |
<div> |
| 393 |
<form id="delete_rota_[% rota_id | html %]" method="post" action="/cgi-bin/koha/tools/stockrotation.pl"> |
393 |
<form id="delete_rota_[% rota_id | html %]" method="post" action="/cgi-bin/koha/tools/stockrotation.pl"> |
| 394 |
[% INCLUDE 'csrf-token.inc' %] |
394 |
[% INCLUDE 'csrf-token.inc' %] |
| 395 |
<input type="hidden" name="op" value="cud-delete_rota" /> |
395 |
<input type="hidden" name="op" value="cud-delete_rota" /> |
|
Lines 397-403
Link Here
|
| 397 |
<button class="btn btn-default btn-xs approve" type="submit"><i class="fa fa-fw fa-check"></i> Yes</button> |
397 |
<button class="btn btn-default btn-xs approve" type="submit"><i class="fa fa-fw fa-check"></i> Yes</button> |
| 398 |
</form> |
398 |
</form> |
| 399 |
<a class="btn btn-default btn-xs deny" href="/cgi-bin/koha/tools/stockrotation.pl"><i class="fa fa-fw fa-times"></i> No</a> |
399 |
<a class="btn btn-default btn-xs deny" href="/cgi-bin/koha/tools/stockrotation.pl"><i class="fa fa-fw fa-times"></i> No</a> |
| 400 |
</p> |
400 |
</div> |
| 401 |
</div> |
401 |
</div> |
| 402 |
[% ELSIF (op == 'confirm_delete_stage') %] |
402 |
[% ELSIF (op == 'confirm_delete_stage') %] |
| 403 |
|
403 |
|
|
Lines 411-417
Link Here
|
| 411 |
[% END %] |
411 |
[% END %] |
| 412 |
</ul> |
412 |
</ul> |
| 413 |
[% END %] |
413 |
[% END %] |
| 414 |
<p> |
414 |
<div> |
| 415 |
<form id="delete_stage_[% stage.stage_id | html %]" method="post" action="/cgi-bin/koha/tools/stockrotation.pl"> |
415 |
<form id="delete_stage_[% stage.stage_id | html %]" method="post" action="/cgi-bin/koha/tools/stockrotation.pl"> |
| 416 |
[% INCLUDE 'csrf-token.inc' %] |
416 |
[% INCLUDE 'csrf-token.inc' %] |
| 417 |
<input type="hidden" name="op" value="cud-delete_stage" /> |
417 |
<input type="hidden" name="op" value="cud-delete_stage" /> |
|
Lines 419-425
Link Here
|
| 419 |
<button class="btn btn-default btn-xs approve" type="submit"><i class="fa fa-fw fa-check"></i> Yes</button> |
419 |
<button class="btn btn-default btn-xs approve" type="submit"><i class="fa fa-fw fa-check"></i> Yes</button> |
| 420 |
</form> |
420 |
</form> |
| 421 |
<a class="btn btn-default btn-xs deny" href="?op=manage_stages&rota_id=[% stage.rota.rota_id | uri %]"><i class="fa fa-fw fa-times"></i> No</a> |
421 |
<a class="btn btn-default btn-xs deny" href="?op=manage_stages&rota_id=[% stage.rota.rota_id | uri %]"><i class="fa fa-fw fa-times"></i> No</a> |
| 422 |
</p> |
422 |
</div> |
| 423 |
</div> |
423 |
</div> |
| 424 |
[% ELSIF (op == 'manage_items') %] |
424 |
[% ELSIF (op == 'manage_items') %] |
| 425 |
|
425 |
|
|
Lines 514-525
Link Here
|
| 514 |
</td> |
514 |
</td> |
| 515 |
<td> |
515 |
<td> |
| 516 |
[%- FOREACH this_stage IN stages -%] |
516 |
[%- FOREACH this_stage IN stages -%] |
|
|
517 |
[% SET stage_class = "stage" %] |
| 517 |
[%- IF this_stage.stage_id == sritem.stage.stage_id -%] |
518 |
[%- IF this_stage.stage_id == sritem.stage.stage_id -%] |
| 518 |
<span class="stage highlight_stage"> |
519 |
[% stage_class = stage_class _ " highlight_stage" %] |
| 519 |
[%- ELSE -%] |
|
|
| 520 |
<span class="stage"> |
| 521 |
[%- END -%] |
520 |
[%- END -%] |
| 522 |
[%- Branches.GetName(this_stage.branchcode_id) | html -%] ([%- this_stage.duration | html -%]) |
521 |
<span class="[% stage_class | html %]"> |
|
|
522 |
[%- Branches.GetName(this_stage.branchcode_id) | html -%] ([%- this_stage.duration | html -%]) |
| 523 |
</span>» |
523 |
</span>» |
| 524 |
[%- END -%] |
524 |
[%- END -%] |
| 525 |
[%- IF stages.size > 0 -%] |
525 |
[%- IF stages.size > 0 -%] |
|
Lines 530-559
Link Here
|
| 530 |
[%- IF stages.size < 2 -%] |
530 |
[%- IF stages.size < 2 -%] |
| 531 |
<a class="btn btn-default btn-xs" title="Rota has a single stage, advancing will have no effect" disabled> |
531 |
<a class="btn btn-default btn-xs" title="Rota has a single stage, advancing will have no effect" disabled> |
| 532 |
[%- ELSE -%] |
532 |
[%- ELSE -%] |
| 533 |
[%- IF !transfer -%] |
533 |
[% SET button_title = "" %] |
| 534 |
<a id="move_to_next_stage_[% sritem.id | html %]_[% rota.id | html %]" class="btn btn-default btn-xs submit-form-link" href="#" data-item_id="[% sritem.id | html %]" data-rota_id="[% rota.id | html %]" date-stage_id="[% sritem.stage.stage_id | html %]" data-action="/cgi-bin/koha/tools/stockrotation.pl" data-method="post" data-op="cud-move_to_next_stage"> |
534 |
[% IF transfer %] |
| 535 |
[%- ELSE -%] |
535 |
[% button_title = "Item is in transit, it will be directed to new stage when checked in" %] |
| 536 |
<a id="move_to_next_stage_[% sritem.id | html %]_[% rota.id | html %]" class="btn btn-default btn-xs submit-form-link" href="#" data-item_id="[% sritem.id | html %]" data-rota_id="[% rota.id | html %]" date-stage_id="[% sritem.stage.stage_id | html %]" data-action="/cgi-bin/koha/tools/stockrotation.pl" data-method="post" data-op="cud-move_to_next_stage" title="Item is in transit, it will be directed to new stage when checked in"> |
536 |
[% END %] |
| 537 |
[%- END -%] |
537 |
<a id="move_to_next_stage_[% sritem.id | html %]_[% rota.id | html %]" class="btn btn-default btn-xs submit-form-link" href="#" data-item_id="[% sritem.id | html %]" data-rota_id="[% rota.id | html %]" date-stage_id="[% sritem.stage.stage_id | html %]" data-action="/cgi-bin/koha/tools/stockrotation.pl" data-method="post" data-op="cud-move_to_next_stage" title="[% button_title | html %]"> |
| 538 |
<i class="fa fa-arrow-right"></i> Move to next stage</a> |
538 |
<i class="fa fa-arrow-right"></i> Move to next stage</a> |
| 539 |
[%- END -%] |
539 |
[%- END -%] |
| 540 |
|
540 |
|
| 541 |
[%- IF !transfer -%] |
541 |
[%- IF !transfer -%] |
| 542 |
<a id="toggle_in_demand_[% sritem.id | html %]_[% rota.id | html %]" class="btn btn-default btn-xs submit-form-link" href="#" data-item_id="[% sritem.id | html %]" data-rota_id="[% rota.id | html %]" date-stage_id="[% sritem.stage.stage_id | html %]" data-action="/cgi-bin/koha/tools/stockrotation.pl" data-method="post" data-op="cud-toggle_in_demand" title="Item is in transit, it will be directed to new stage when checked in"> |
542 |
<a id="toggle_in_demand_[% sritem.id | html %]_[% rota.id | html %]" class="btn btn-default btn-xs submit-form-link" href="#" data-item_id="[% sritem.id | html %]" data-rota_id="[% rota.id | html %]" date-stage_id="[% sritem.stage.stage_id | html %]" data-action="/cgi-bin/koha/tools/stockrotation.pl" data-method="post" data-op="cud-toggle_in_demand" title="Item is in transit, it will be directed to new stage when checked in"> |
| 543 |
[%- IF sritem.indemand -%] |
543 |
[%- IF sritem.indemand -%] |
| 544 |
<i class="fa fa-fire"></i> Remove "In demand"</button> |
544 |
<i class="fa fa-fire"></i> Remove "In demand" |
| 545 |
[%- ELSE -%] |
545 |
[%- ELSE -%] |
| 546 |
<i class="fa fa-fire"></i> Add "In demand"</button> |
546 |
<i class="fa fa-fire"></i> Add "In demand" |
| 547 |
[%- END -%] |
547 |
[%- END -%] |
| 548 |
</a> |
548 |
</a> |
| 549 |
[%- END -%] |
549 |
[%- END -%] |
| 550 |
|
550 |
|
| 551 |
[%- IF !transfer -%] |
551 |
[%- IF !transfer -%] |
| 552 |
<a id="remove_item_from_stage_[% item_id | html %]_[% rota.id | html %]" class="btn btn-default btn-xs submit-form-link" action="/cgi-bin/koha/tools/stockrotation.pl" data-op="cud-remove_item_from_stage" data-item_id="[% sritem.id | html %]" data-stage_id="[% sritem.stage.stage_id | html %]" data-rota_id="[% rota.id | html %]" data-method="post" data-confirmation-msg="[% t('Are you sure you wish to remove this item from its rota?') | html %]"> |
552 |
<a id="remove_item_from_stage_[% item_id | html %]_[% rota.id | html %]" class="btn btn-default btn-xs submit-form-link" action="/cgi-bin/koha/tools/stockrotation.pl" data-op="cud-remove_item_from_stage" data-item_id="[% sritem.id | html %]" data-stage_id="[% sritem.stage.stage_id | html %]" data-rota_id="[% rota.id | html %]" data-method="post" data-confirmation-msg="[% t('Are you sure you wish to remove this item from its rota?') | html %]"> |
|
|
553 |
<i class="fa fa-trash-can"></i> Remove from rota</a> |
| 553 |
[%- ELSE -%] |
554 |
[%- ELSE -%] |
| 554 |
<a class="btn btn-default btn-xs" disabled="disabled"> |
555 |
<a class="btn btn-default btn-xs" disabled="disabled"><i class="fa fa-trash-can"></i> Remove from rota</a> |
| 555 |
[%- END -%] |
556 |
[%- END -%] |
| 556 |
<i class="fa fa-trash-can"></i>Remove from rota</a> |
|
|
| 557 |
</td> |
557 |
</td> |
| 558 |
</tr> |
558 |
</tr> |
| 559 |
[% END %] |
559 |
[% END %] |
|
Lines 640-658
Link Here
|
| 640 |
[% IF ( op == 'manage_stages' || op == 'manage_items' ) %] |
640 |
[% IF ( op == 'manage_stages' || op == 'manage_items' ) %] |
| 641 |
<div id="menu"> |
641 |
<div id="menu"> |
| 642 |
<ul> |
642 |
<ul> |
|
|
643 |
[% SET item_class = "" %] |
| 643 |
[% IF op == 'manage_stages' %] |
644 |
[% IF op == 'manage_stages' %] |
| 644 |
<li class="active"> |
645 |
[% item_class = "active" %] |
| 645 |
[% ELSE %] |
|
|
| 646 |
<li> |
| 647 |
[% END %] |
646 |
[% END %] |
| 648 |
<a href="/cgi-bin/koha/tools/stockrotation.pl?op=manage_stages&rota_id=[% rota_id | uri %]">Manage stages</a> |
647 |
<li class="[% item_class | html %]"> |
| 649 |
</li> |
648 |
<a href="/cgi-bin/koha/tools/stockrotation.pl?op=manage_stages&rota_id=[% rota_id | uri %]">Manage stages</a> |
|
|
649 |
</li> |
| 650 |
[% SET item_class = "" %] |
| 650 |
[% IF op == 'manage_items' %] |
651 |
[% IF op == 'manage_items' %] |
| 651 |
<li class="active"> |
652 |
[% item_class = "active" %] |
| 652 |
[% ELSE %] |
|
|
| 653 |
<li> |
| 654 |
[% END %] |
653 |
[% END %] |
| 655 |
<a href="/cgi-bin/koha/tools/stockrotation.pl?op=manage_items&rota_id=[% rota_id | uri %]">Manage items</a> |
654 |
<li class="[% item_class | html %]"> |
|
|
655 |
<a href="/cgi-bin/koha/tools/stockrotation.pl?op=manage_items&rota_id=[% rota_id | uri %]">Manage items</a> |
| 656 |
</li> |
656 |
</li> |
| 657 |
</ul> |
657 |
</ul> |
| 658 |
</div> |
658 |
</div> |