mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 07:22:11 +00:00
place mandatory reviewers/approvers into own box
This commit is contained in:
parent
886a79119e
commit
ec04ed665e
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user