diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index 565b48f87..91c9adb71 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -725,6 +725,8 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { ?>
"; + echo "
"; $this->contentContainerStart(); if($user->isAdmin()) { if(SeedDMS_Core_DMS::checkIfEqual($workflow->getInitState(), $latestContent->getWorkflowState())) { @@ -738,15 +740,14 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { if($parentworkflow = $latestContent->getParentWorkflow()) { echo "

Sub workflow of '".$parentworkflow->getName()."'

"; } - echo "
"; - echo "
"; echo "
".getMLText('current_state').": ".$workflowstate->getName()."
"; echo "\n"; echo ""; echo ""; foreach($transitions as $transition) { $nextstate = $transition->getNextState(); - echo ""; + $docstatus = $nextstate->getDocumentStatus(); + echo ""; } echo ""; echo ""; @@ -815,11 +816,13 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { echo ""; echo ""; echo ""; + $allowedtransitions = array(); foreach($transitions as $transition) { echo ""; } @@ -895,9 +898,14 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { } } } - echo ""; - echo ""; $this->contentContainerEnd(); + echo ""; + echo "
"; +?> + +"; + echo "
"; ?>
".getMLText('next_state').":".$nextstate->getName()." ".$nextstate->getName()."
"; if($latestContent->triggerWorkflowTransitionIsAllowed($user, $transition)) { $action = $transition->getAction(); print "
".createHiddenFieldWithKey('triggerworkflow')."getVersion()."\" />getID()."\" />getName()), array(), $action->getName())."\" />
"; + $allowedtransitions[] = $transition; } echo "