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
+1
View File
@@ -5,6 +5,7 @@
name="wfitemplaceholder_<?=$item->name?>"
id="wfitemplaceholder_<?=$item->name?>_<?=$$wftype->id?>"
value="1"
<?=($item->style) ? $item->style : ""?>
<?=($item->value->value_int == 1) ? "checked='checked'" : ""?>
onchange="$('#wfitem_<?=$item->name?>_<?=$$wftype->id?>').val((this.checked) ? 1 : 0)"
>
+9 -1
View File
@@ -1,4 +1,12 @@
<input type="text" class="form-control" name="wfitem_<?=$item->name?>" id="wfitem_<?=$item->name?>_<?=$$wftype->id?>" value="<?=$item->value->value_string?>" placeholder="<?=$item->placeholder?>" />
<input
type="text"
class="form-control"
name="wfitem_<?=$item->name?>"
id="wfitem_<?=$item->name?>_<?=$$wftype->id?>"
value="<?=$item->value->value_string?>"
placeholder="<?=$item->placeholder?>"
<?=($item->style) ? "style='".$item->style."'" : ""?>
/>
<script type="text/javascript">
$('#wfitem_<?=$item->name?>_<?=$$wftype->id?>').datepicker({
+6 -3
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>
+1 -1
View File
@@ -1 +1 @@
<input type="text" class="form-control" name="wfitem_<?=$item->name?>" id="wfitem_<?=$item->name?>_<?=$$wftype->id?>" value="<?=$item->value->value_string?>">
<input type="text" class="form-control" name="wfitem_<?=$item->name?>" id="wfitem_<?=$item->name?>_<?=$$wftype->id?>" value="<?=$item->value->value_string?>" <?=($item->style) ? "style='".$item->style."'" : ""?>>
+2 -2
View File
@@ -10,11 +10,11 @@
<div class="row">
<div class="col-md-5 padding-right-2">
<label class="form-label" for="wfitem_<?=$item->name?>_lat_<?=$$wftype->id?>">GPS Breite <?=($item->required == 1) ? "*" : ""?></label>
<input type="text" class="form-control" name="wfitem_<?=$item->name?>[lat]" id="wfitem_<?=$item->name?>_lat_<?=$$wftype->id?>" value="<?=$lat?>" placeholder="<?=str_replace(",", ".", TT_PLACEHOLDER_GPS_LAT)?>">
<input type="text" class="form-control" name="wfitem_<?=$item->name?>[lat]" id="wfitem_<?=$item->name?>_lat_<?=$$wftype->id?>" value="<?=$lat?>" placeholder="<?=str_replace(",", ".", TT_PLACEHOLDER_GPS_LAT)?>" <?=($item->style) ? "style='".$item->style."'" : ""?>>
</div>
<div class="col-md-5 padding-left-2">
<label class="form-label" for="wfitem_<?=$item->name?>_long_<?=$$wftype->id?>">GPS Länge <?=($item->required == 1) ? "*" : ""?></label>
<input type="text" class="form-control" name="wfitem_<?=$item->name?>[long]" id="wfitem_<?=$item->name?>_long_<?=$$wftype->id?>" value="<?=$long?>" placeholder="<?=str_replace(",", ".", TT_PLACEHOLDER_GPS_LONG)?>">
<input type="text" class="form-control" name="wfitem_<?=$item->name?>[long]" id="wfitem_<?=$item->name?>_long_<?=$$wftype->id?>" value="<?=$long?>" placeholder="<?=str_replace(",", ".", TT_PLACEHOLDER_GPS_LONG)?>" <?=($item->style) ? "style='".$item->style."'" : ""?>>
</div>
<div class="col-md-2 padding-left-2">
<label class="form-label">&nbsp;</label>
+1 -1
View File
@@ -1 +1 @@
<input type="text" class="form-control" name="wfitem_<?=$item->name?>" id="wfitem_<?=$item->name?>_<?=$$wftype->id?>" value="<?=$item->value->value_string?>">
<input type="text" class="form-control" name="wfitem_<?=$item->name?>" id="wfitem_<?=$item->name?>_<?=$$wftype->id?>" value="<?=$item->value->value_string?>" <?=($item->style) ? "style='".$item->style."'" : ""?>>
+9 -1
View File
@@ -1 +1,9 @@
<input type="text" class="form-control" name="wfitem_<?=$item->name?>" id="wfitem_<?=$item->name?>_<?=$$wftype->id?>" value="<?=$item->value->value_string?>" placeholder="<?=$item->placeholder?>">
<input
type="text"
class="form-control"
name="wfitem_<?=$item->name?>"
id="wfitem_<?=$item->name?>_<?=$$wftype->id?>"
value="<?=$item->value->value_string?>"
placeholder="<?=$item->placeholder?>"
<?=($item->style) ? "style='".$item->style."'" : ""?>
>
+1 -1
View File
@@ -1 +1 @@
<input type="text" class="form-control" name="wfitem_<?=$item->name?>" id="wfitem_<?=$item->name?>_<?=$$wftype->id?>" value="<?=$item->value->value_string?>">
<input type="text" class="form-control" name="wfitem_<?=$item->name?>" id="wfitem_<?=$item->name?>_<?=$$wftype->id?>" value="<?=$item->value->value_string?>" <?=($item->style) ? "style='".$item->style."'" : ""?>>