Started cpe shipping

This commit is contained in:
Frank Schubert
2021-10-19 23:48:34 +02:00
parent 40be8b1d51
commit 40b32b63ec
8 changed files with 241 additions and 7 deletions

View File

@@ -1,6 +1,15 @@
<?php
$wfLabelClass = "";
$m = [];
if(preg_match('/<!--class:\s*([^>]+)-->/',$item->label, $m)) {
if($m[1]) {
$wfLabelClass = $m[1];
}
}
?>
<td class="workflow-item wfitem-<?=$item->type?> wfitem-width-<?=$item->width?>" <?=($item->width > 1) ? "colspan='".$item->width."'" : ""?> style="width: <?=$this->commaToDot(round(100 / $wfColspan, 2) * $item->width)?>%">
<?php if($item->type != "gps"): ?>
<label class="form-label" for="wfitem_<?=$item->name?>_<?=$$wftype->id?>">
<label class="form-label <?=$wfLabelClass?>" for="wfitem_<?=$item->name?>_<?=$$wftype->id?>">
<?=($item->label) ? $item->label : "&nbsp;"?>
<?=($item->label && $item->required == 1) ? "*" : ""?>
</label>