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 "State | Action | Next state | ".getMLText('user')."/".getMLText('group')." |
---|
State | Action | Next state | ".getMLText('user')."/".getMLText('group')." | Document status | ||
---|---|---|---|---|---|---|
".$state->getName()." | ".$action->getName()." | ".$nextstate->getName()." | "; + echo "||||
".$state->getName()." | ".$action->getName()." | "; + echo "".$nextstate->getName();
+ $docstatus = $nextstate->getDocumentStatus();
+ if($docstatus == S_RELEASED || $docstatus == S_REJECTED) {
+ echo " ".getOverallStatusText($docstatus); + } + echo " | ";
echo "";
$transusers = $transition->getUsers();
foreach($transusers as $transuser) {
@@ -223,12 +235,6 @@ function showWorkflow(selectObj) {
echo " "; } echo " | ";
- $docstatus = $nextstate->getDocumentStatus();
- if($docstatus == S_RELEASED || $docstatus == S_REJECTED) {
- echo "".getOverallStatusText($docstatus)." | "; - } else { - echo ""; - } echo " | "; ?> | "; echo "