place mandatory reviewers/approvers into own box

This commit is contained in:
Uwe Steinmann 2024-10-22 10:18:30 +02:00
parent 886a79119e
commit ec04ed665e

View File

@ -177,6 +177,10 @@ $(document).ready( function() {
$session = array_shift($sessions);
echo "<tr><td>".getMLText('lastaccess')."</td><td>".getLongReadableDate($session->getLastAccess())."</td></tr>\n";
}
$item = $this->callHook('addInfoItem', $seluser);
if($item) {
echo "<tr><td>".$item[0]."</td><td>".$item[1]."</td></tr>\n";
}
echo "</table>";
}
@ -420,9 +424,11 @@ $(document).ready( function() {
);
}
}
$this->contentContainerEnd();
if($workflowmode == "traditional" || $workflowmode == 'traditional_only_approval') {
if($workflowmode == "traditional") {
$this->contentSubHeading(getMLText("mandatory_reviewers"));
$this->contentContainerStart();
$options = array();
if($currUser)
$res=$currUser->getMandatoryReviewers();
@ -468,8 +474,10 @@ $(document).ready( function() {
)
);
}
$this->contentContainerEnd();
$this->contentSubHeading(getMLText("mandatory_approvers"));
$this->contentContainerStart();
$options = array();
if($currUser)
$res=$currUser->getMandatoryApprovers();
@ -514,10 +522,12 @@ $(document).ready( function() {
'options'=>$options
)
);
$this->contentContainerEnd();
} elseif($workflowmode == 'advanced') {
$workflows = $dms->getAllWorkflows();
if($workflows) {
$this->contentSubHeading(getMLText("workflow"));
$this->contentContainerStart();
$options = array();
$mandatoryworkflows = $currUser ? $currUser->getMandatoryWorkflows() : array();
foreach ($workflows as $workflow) {
@ -536,9 +546,9 @@ $(document).ready( function() {
'options'=>$options
)
);
$this->contentContainerEnd();
}
}
$this->contentContainerEnd();
$this->formSubmit("<i class=\"fa fa-save\"></i> ".getMLText($currUser ? "save" : "add_user"));
?>
</form>