Started creating workflow
This commit is contained in:
21
Layout/default/Workflow/items/enum.php
Normal file
21
Layout/default/Workflow/items/enum.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
$options = [];
|
||||
$options = explode(";", $item->typedata);
|
||||
?>
|
||||
|
||||
<select class="form-control" name="wfitem_<?=$item->name?>" id="wfitem_<?=$item->name?>">
|
||||
<option></option>
|
||||
<?php foreach($options as $opt): ?>
|
||||
<?php
|
||||
$key = $opt;
|
||||
$label = $opt;
|
||||
if(strpos($opt, "=") !== false) {
|
||||
$opt_parts = explode('=', $opt);
|
||||
$key = $opt_parts[0];
|
||||
$label = $opt_parts[1];
|
||||
}
|
||||
?>
|
||||
|
||||
<option value="<?=$key?>"><?=$label?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
Reference in New Issue
Block a user