put reviewer and approver into own content container

This commit is contained in:
Uwe Steinmann 2023-03-30 12:26:35 +02:00
parent 476c726a45
commit 23a94f8ac8
2 changed files with 11 additions and 2 deletions

View File

@ -446,7 +446,6 @@ console.log(params);
echo $arrs;
}
$this->contentContainerEnd();
if($workflowmode == 'advanced') {
$mandatoryworkflows = $user->getMandatoryWorkflows();
if($mandatoryworkflows) {
@ -494,6 +493,7 @@ console.log(params);
$this->warningMsg(getMLText("add_doc_workflow_warning"));
} elseif($workflowmode == 'traditional' || $workflowmode == 'traditional_only_approval') {
if($workflowmode == 'traditional') {
$this->contentContainerEnd();
$this->contentSubHeading(getMLText("assign_reviewers"));
$this->contentContainerStart();
@ -699,6 +699,8 @@ console.log(params);
}
$this->contentContainerEnd();
$this->warningMsg(getMLText("add_doc_reviewer_approver_warning"));
} else {
$this->contentContainerEnd();
}
$this->columnEnd();
$this->rowEnd();

View File

@ -329,10 +329,13 @@ console.log(element);
)
);
}
$this->contentContainerEnd();
$this->warningMsg(getMLText("add_doc_workflow_warning"));
} elseif($workflowmode == 'traditional' || $workflowmode == 'traditional_only_approval') {
if($workflowmode == 'traditional') {
$this->contentContainerEnd();
$this->contentSubHeading(getMLText("assign_reviewers"));
$this->contentContainerStart();
$res=$user->getMandatoryReviewers();
$options = array();
foreach ($docAccess["users"] as $usr) {
@ -480,9 +483,11 @@ console.log(element);
}
}
}
$this->contentContainerEnd();
}
$this->contentSubHeading(getMLText("assign_approvers"));
$this->contentContainerStart();
$options = array();
$res=$user->getMandatoryApprovers();
foreach ($docAccess["users"] as $usr) {
@ -631,9 +636,11 @@ console.log(element);
}
}
}
$this->contentContainerEnd();
$this->warningMsg(getMLText("add_doc_reviewer_approver_warning"));
} else {
$this->contentContainerEnd();
}
$this->contentContainerEnd();
$this->formSubmit(getMLText('update_document'));
?>
</form>