Added colspan attribute to workflow items

This commit is contained in:
Frank Schubert
2021-09-09 23:37:24 +02:00
parent 235c8bc15b
commit 7ee687c201
4 changed files with 7 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
<?php include(realpath(dirname(__FILE__)."/../")."/header.php"); ?>
<?php $wftype = "termination"; ?>
<?php $wftype = "term"; ?>
<!-- start page title -->
@@ -141,7 +141,7 @@
<td>
<form method="post" name="wf-termination-<?=$term->id?>" id="wf-termination-<?=$term->id?>" action="<?=self::getUrl("Linework","save", ["filter" => $filter])?>" enctype="multipart/form-data" >
<input type="hidden" name="id" value="<?=$term->id?>" />
<table class="table workflow-table">
<table class="table ">
<?php $i = 0; foreach($term->workflowitems as $item): ?>
<?php if($i==0): ?>
<?php if($item->type == "delimiter"): ?>

View File

@@ -1,4 +1,4 @@
<td class="workflow-item">
<td class="workflow-item" <?=($item->width > 1) ? "colspan='".$item->width."'" : ""?>>
<?php if($item->type != "gps"): ?>
<label class="form-label" for="wfitem_<?=$item->name?>_<?=$$wftype->id?>">
<?=($item->label) ? $item->label : "&nbsp;"?>

View File

@@ -109,7 +109,7 @@ class LineworkController extends mfBaseController {
break;
}
$i++;
$i += ($wfitem->width) ? $wfitem->width : 1;
}
}
//var_dump($item_colspan);exit;

View File

@@ -61,7 +61,7 @@
padding-bottom: 4px;
border-top: none;
min-width: 138px;
max-width: 138px;
}
.workflow-header {
@@ -76,13 +76,13 @@
.workflow-table .workflow-item select {
padding-left: 4px;
width:100%;
min-width:138px;
/*max-width: 138px;*/
}
.workflow-item input[type=text] {
max-width:100%;
/*width: 128px;*/
0width: 138px;
}
.padding-left-2 {