diff --git a/views/bootstrap/class.WorkflowMgr.php b/views/bootstrap/class.WorkflowMgr.php index 9e99170a9..53f10f67a 100644 --- a/views/bootstrap/class.WorkflowMgr.php +++ b/views/bootstrap/class.WorkflowMgr.php @@ -51,12 +51,7 @@ function checkForm(num) msg = ""; eval("var formObj = document.form" + num + ";"); - if (formObj.login.value == "") msg += "\n"; - if ((num == '0') && (formObj.pwd.value == "")) msg += "\n"; - if ((formObj.pwd.value != formObj.pwdconf.value)&&(formObj.pwd.value != "" )&&(formObj.pwd.value != "" )) msg += "\n"; if (formObj.name.value == "") msg += "\n"; - if (formObj.email.value == "") msg += "\n"; - //if (formObj.comment.value == "") msg += "\n"; if (msg != "") { alert(msg); @@ -121,7 +116,9 @@ function showWorkflow(selectObj) {
+ +

You must first define workflow states, before adding a workflow.

+ getAllWorkflowActions(); + if($actions) { $transitions = $currWorkflow->getTransitions(); + echo ""; + echo ""; if($transitions) { - echo "
StateActionNext state".getMLText('user')."/".getMLText('group')."
"; - echo ""; foreach($transitions as $transition) { $state = $transition->getState(); $nextstate = $transition->getNextState(); $action = $transition->getAction(); - echo ""; + echo ""; + echo ""; echo ""; - $docstatus = $nextstate->getDocumentStatus(); - if($docstatus == S_RELEASED || $docstatus == S_REJECTED) { - echo ""; - } else { - echo ""; - } echo ""; echo "\n"; } + } ?> "; echo ""; echo ""; echo ""; - echo "
StateActionNext state".getMLText('user')."/".getMLText('group')."Document status
".$state->getName()."".$action->getName()."".$nextstate->getName()."
".$state->getName()."".$action->getName()."".$nextstate->getName(); + $docstatus = $nextstate->getDocumentStatus(); + if($docstatus == S_RELEASED || $docstatus == S_REJECTED) { + echo "
".getOverallStatusText($docstatus); + } + echo "
"; $transusers = $transition->getUsers(); foreach($transusers as $transuser) { @@ -223,12 +235,6 @@ function showWorkflow(selectObj) { echo "
"; } echo "
".getOverallStatusText($docstatus).""; ?>
@@ -241,6 +247,7 @@ function showWorkflow(selectObj) { echo "
"; echo ""; echo ""; - echo ""; $allusers = $dms->getAllUsers(); foreach($allusers as $usr) { print ""; } echo ""; echo "
"; - echo ""; $allgroups = $dms->getAllGroups(); foreach($allgroups as $grp) { print ""; @@ -285,13 +291,6 @@ function showWorkflow(selectObj) { echo ""; echo "
"; - echo ""; - echo ""; ?> @@ -302,7 +301,7 @@ function showWorkflow(selectObj) { ?> "; + echo "
"; } ?>