diableding linework when customer finished
This commit is contained in:
@@ -234,9 +234,24 @@
|
||||
</tr><tr class="workflow-header"><th colspan='<?=$wfColspan?>'><?=$item->label?></th></tr><tr>
|
||||
<?php else: ?>
|
||||
<?php include(realpath(dirname(__FILE__)."/../")."/Workflow/form.php"); ?>
|
||||
<?php if(!$me->is("Admin") && $item->required == 1 && $term->workflowitems['customer_passive_finished']->value->id && $term->workflowitems['customer_passive_finished']->value->value_int == 1): ?>
|
||||
<script type="text/javascript">
|
||||
<?php if($item->type == "bool"): ?>
|
||||
document.getElementById("wfitemplaceholder_<?=$item->name?>_<?=$term->id?>").disabled = true;
|
||||
<?php elseif($item->type != "empty"): ?>
|
||||
document.getElementById("wfitem_<?=$item->name?>_<?=$term->id?>").disabled = true;
|
||||
<?php endif; ?>
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php $i++; endforeach; ?>
|
||||
<?php if(!$me->is("Admin")): ?>
|
||||
<script type="text/javascript">
|
||||
document.getElementById("wfitem_backbone_setup_date_<?=$$wftype->id?>").disabled = true;
|
||||
document.getElementById("wfitem_customer_setup_date_<?=$$wftype->id?>").disabled = true;
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user