diableding linework when customer finished

This commit is contained in:
Frank Schubert
2021-12-21 20:27:08 +01:00
parent 68b275dc8f
commit 6aa10f0d29

View File

@@ -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>