Lauout tweaks for Pipe- and Linework

This commit is contained in:
Frank Schubert
2025-04-15 18:52:32 +02:00
parent e2351d1f3d
commit b90f4a2454
12 changed files with 69 additions and 15 deletions

View File

@@ -40,8 +40,8 @@ if(strpos($item->typedata, "=Model=") !== false) {
?>
<select class="form-control" name="wfitem_<?=$item->name?>" id="wfitem_<?=$item->name?>_<?=$$wftype->id?>">
<option></option>
<select class="form-control" name="wfitem_<?=$item->name?>" id="wfitem_<?=$item->name?>_<?=$$wftype->id?>" <?=($item->style) ? "style='".$item->style."'" : ""?>>
<option <?=($item->style) ? "style='".$item->style."'" : ""?>></option>
<?php foreach($options as $opt): ?>
<?php
$key = $opt;
@@ -53,6 +53,9 @@ if(strpos($item->typedata, "=Model=") !== false) {
}
?>
<option value="<?=$key?>" <?=($key == $item->value->value_string) ? "selected='selected'" : ""?>><?=$label?></option>
<option
value="<?=$key?>"
<?=($key == $item->value->value_string) ? "selected='selected'" : ""?>
><?=$label?></option>
<?php endforeach; ?>
</select>