diff --git a/views/bootstrap/class.UpdateDocument.php b/views/bootstrap/class.UpdateDocument.php index 270392f7e..a4b7e6628 100644 --- a/views/bootstrap/class.UpdateDocument.php +++ b/views/bootstrap/class.UpdateDocument.php @@ -39,6 +39,7 @@ class LetoDMS_View_UpdateDocument extends LetoDMS_Bootstrap_Style { $strictformcheck = $this->params['strictformcheck']; $enablelargefileupload = $this->params['enablelargefileupload']; $dropfolderdir = $this->params['dropfolderdir']; + $workflowmode = $this->params['workflowmode']; $documentid = $document->getId(); $this->htmlStartPage(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName())))); @@ -152,13 +153,14 @@ function checkForm() if($attrdefs) { foreach($attrdefs as $attrdef) { ?> - - getName()); ?>: - printAttributeEditField($attrdef, '') ?> - + + getName()); ?>: + printAttributeEditField($attrdef, '') ?> + @@ -170,19 +172,6 @@ function checkForm()
:
-getMandatoryReviewers(); - foreach ($docAccess["users"] as $usr) { - if ($usr->getID()==$user->getID()) continue; - $mandatory=false; - foreach ($res as $r) if ($r['reviewerUserID']==$usr->getID()) $mandatory=true; - - if ($mandatory) print ""; - else print ""; - } -*/ -?> +getMandatoryWorkflow(); + $workflows=$dms->getAllWorkflows(); + print ""; + foreach ($workflows as $workflow) { + print ""; + } +?> + + + + + + warningMsg(getMLText("add_doc_workflow_warning")); ?> + + + ">