Lines 478-487
Link Here
|
478 |
</td> |
478 |
</td> |
479 |
<td class="actions"> |
479 |
<td class="actions"> |
480 |
[% in_transit = sritem.item.get_transfer %] |
480 |
[% in_transit = sritem.item.get_transfer %] |
481 |
[% IF !in_transit && stages.size > 1 %] |
481 |
[% IF stages.size < 2 %] |
|
|
482 |
<a class="btn btn-default btn-xs" title="Rota has a single stage, advancing will have no effect" disabled> |
483 |
[% ELSIF !in_transit %] |
482 |
<a class="btn btn-default btn-xs" href="?op=move_to_next_stage&rota_id=[% rota.id | uri %]&item_id=[% sritem.id | uri %]&stage_id=[% sritem.stage.stage_id | uri %]"> |
484 |
<a class="btn btn-default btn-xs" href="?op=move_to_next_stage&rota_id=[% rota.id | uri %]&item_id=[% sritem.id | uri %]&stage_id=[% sritem.stage.stage_id | uri %]"> |
483 |
[% ELSE %] |
485 |
[% ELSE %] |
484 |
<a class="btn btn-default btn-xs" disabled> |
486 |
<a class="btn btn-default btn-xs" href="?op=move_to_next_stage&rota_id=[% rota.id | uri %]&item_id=[% sritem.id | uri %]&stage_id=[% sritem.stage.stage_id | uri %]" title="Item is in transit, it will be directed to new stage when checked in"> |
485 |
[% END %] |
487 |
[% END %] |
486 |
<i class="fa fa-arrow-right"></i> |
488 |
<i class="fa fa-arrow-right"></i> |
487 |
Move to next stage |
489 |
Move to next stage |
488 |
- |
|
|