Changed workflow to compact tables
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-2 col-form-label" for="wfitem_<?=$item->name?>">
|
||||
<?=$item->label?>
|
||||
<?=($item->required == 1) ? "*" : ""?>
|
||||
</label>
|
||||
<div class="col-lg-10">
|
||||
<?php
|
||||
|
||||
<td>
|
||||
<?php if($item->type != "gps"): ?>
|
||||
<label class="form-label" for="wfitem_<?=$item->name?>">
|
||||
<?=$item->label?>
|
||||
<?=($item->required == 1) ? "*" : ""?>
|
||||
</label>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
|
||||
switch($item->type) {
|
||||
case "string":
|
||||
include(realpath(dirname(__FILE__)."/items/")."/string.php");
|
||||
@@ -34,8 +36,12 @@
|
||||
case "delimiter":
|
||||
include(realpath(dirname(__FILE__)."/items/")."/delimiter.php");
|
||||
break;
|
||||
case "date":
|
||||
include(realpath(dirname(__FILE__)."/items/")."/date.php");
|
||||
break;
|
||||
default:
|
||||
include(realpath(dirname(__FILE__)."/items/")."/string.php");
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
?>
|
||||
|
||||
</td>
|
||||
@@ -1 +1 @@
|
||||
<input type="text" class="form-control" name="wfitem_<?=$item->name?>" id="wfitem_<?=$item->name?>" value="<?=$item->value->value_string?>">
|
||||
<input type="checkbox" class="form-control" name="wfitem_<?=$item->name?>_<?=$item->object_id?>" id="wfitem_<?=$item->name?>_<?=$item->object_id?>" value="<?=$item->value->value_string?>">
|
||||
@@ -0,0 +1,11 @@
|
||||
<input type="text" class="form-control" name="wfitem_<?=$item->name?>" id="wfitem_<?=$item->name?>_<?=$building->id?>" value="<?=$item->value->value_string?>" placeholder="<?=$item->placeholder?>" />
|
||||
|
||||
<script type="text/javascript">
|
||||
$('#wfitem_<?=$item->name?>_<?=$building->id?>').datepicker({
|
||||
language: 'de',
|
||||
format: "dd.mm.yyyy",
|
||||
showWeekDays: true,
|
||||
todayBtn: 'linked',
|
||||
autoclose: true
|
||||
});
|
||||
</script>
|
||||
@@ -7,19 +7,18 @@
|
||||
$long = $gps_parts[1];
|
||||
}
|
||||
?>
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-1 col-form-label" for="wfitem_<?=$item->name?>_lat_<?=$building->id?>">GPS Breite:</label>
|
||||
<div class="col-lg-6">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<label class="form-label" for="wfitem_<?=$item->name?>_lat_<?=$building->id?>">GPS Breite <?=($item->required == 1) ? "*" : ""?></label>
|
||||
<input type="text" class="form-control" name="wfitem_<?=$item->name?>_lat" id="wfitem_<?=$item->name?>_lat_<?=$building->id?>" value="<?=$lat?>" placeholder="<?=str_replace(",", ".", TT_PLACEHOLDER_GPS_LAT)?>">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label" for="wfitem_<?=$item->name?>_long_<?=$building->id?>">GPS Länge <?=($item->required == 1) ? "*" : ""?></label>
|
||||
<input type="text" class="form-control" name="wfitem_<?=$item->name?>_long" id="wfitem_<?=$item->name?>_long_<?=$building->id?>" value="<?=$long?>" placeholder="<?=str_replace(",", ".", TT_PLACEHOLDER_GPS_LONG)?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-lg-1 col-form-label" for="wfitem_<?=$item->name?>_long_<?=$building->id?>">GPS Länge:</label>
|
||||
<div class="col-lg-6">
|
||||
<input type="text" class="form-control" name="wfitem_<?=$item->name?>_lat" id="wfitem_<?=$item->name?>_long_<?=$building->id?>" value="<?=$long?>" placeholder="<?=str_replace(",", ".", TT_PLACEHOLDER_GPS_LONG)?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if($lat && $long): ?>
|
||||
<a href="https://www.google.com/maps/search/?api=1&query=<?=$lat?>,<?=$long?>" target="_blank"><i class="fas fa-external-link-alt"></i> Auf Google Maps öffnen</a>
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user