fix line indenting

This commit is contained in:
Uwe Steinmann 2023-10-15 17:29:28 +02:00
parent f56b500b9f
commit 889f49daca

View File

@ -70,8 +70,8 @@ $(document).ready( function() {
// Display the Workflow form.
$this->rowStart();
$this->columnStart(4);
$workflows = $dms->getAllWorkflows();
if($workflows) {
$workflows = $dms->getAllWorkflows();
if($workflows) {
?>
<form class="form-horizontal" action="../op/op.SetWorkflow.php" method="post" name="form1">
<?php echo createHiddenFieldWithKey('setworkflow'); ?>
@ -80,34 +80,34 @@ $(document).ready( function() {
<input type="hidden" name="showtree" value="<?php echo showtree();?>">
<?php
$this->contentContainerStart();
$mandatoryworkflow = $user->getMandatoryWorkflow();
$workflows=$dms->getAllWorkflows();
$options = array();
foreach ($workflows as $workflow) {
$options[] = array($workflow->getID(), htmlspecialchars($workflow->getName()), $mandatoryworkflow && $mandatoryworkflow->getID() == $workflow->getID());
}
$this->formField(
getMLText("workflow"),
array(
'element'=>'select',
'id'=>'selector',
'name'=>'workflow',
'data-placeholder'=>getMLText('select_workflow'),
'options'=>$options
)
);
$this->contentContainerEnd();
$this->formSubmit(getMLText('set_workflow'));
$this->contentContainerStart();
$mandatoryworkflow = $user->getMandatoryWorkflow();
$workflows=$dms->getAllWorkflows();
$options = array();
foreach ($workflows as $workflow) {
$options[] = array($workflow->getID(), htmlspecialchars($workflow->getName()), $mandatoryworkflow && $mandatoryworkflow->getID() == $workflow->getID());
}
$this->formField(
getMLText("workflow"),
array(
'element'=>'select',
'id'=>'selector',
'name'=>'workflow',
'data-placeholder'=>getMLText('select_workflow'),
'options'=>$options
)
);
$this->contentContainerEnd();
$this->formSubmit(getMLText('set_workflow'));
?>
</form>
<?php
} else {
} else {
?>
<p><?php printMLText('no_workflow_available'); ?></p>
<?php
}
}
$this->columnEnd();
$this->columnStart(8);
?>