mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-08 06:09:22 +00:00
check if workflow graph may be shown
This commit is contained in:
parent
f768ad63f0
commit
75ce06c128
|
@ -833,7 +833,10 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
<div class="tab-pane <?php if($currenttab == 'workflow') echo 'active'; ?>" id="workflow">
|
<div class="tab-pane <?php if($currenttab == 'workflow') echo 'active'; ?>" id="workflow">
|
||||||
<?php
|
<?php
|
||||||
echo "<div class=\"row-fluid\">";
|
echo "<div class=\"row-fluid\">";
|
||||||
|
if ($this->check_access('WorkflowGraph'))
|
||||||
echo "<div class=\"span6\">";
|
echo "<div class=\"span6\">";
|
||||||
|
else
|
||||||
|
echo "<div class=\"span12\">";
|
||||||
$this->contentContainerStart();
|
$this->contentContainerStart();
|
||||||
if($user->isAdmin()) {
|
if($user->isAdmin()) {
|
||||||
if(SeedDMS_Core_DMS::checkIfEqual($workflow->getInitState(), $latestContent->getWorkflowState())) {
|
if(SeedDMS_Core_DMS::checkIfEqual($workflow->getInitState(), $latestContent->getWorkflowState())) {
|
||||||
|
@ -1007,11 +1010,13 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
||||||
}
|
}
|
||||||
$this->contentContainerEnd();
|
$this->contentContainerEnd();
|
||||||
echo "</div>";
|
echo "</div>";
|
||||||
|
if ($this->check_access('WorkflowGraph')) {
|
||||||
echo "<div class=\"span6\">";
|
echo "<div class=\"span6\">";
|
||||||
?>
|
?>
|
||||||
<iframe src="out.WorkflowGraph.php?workflow=<?php echo $workflow->getID(); ?><?php if($allowedtransitions) foreach($allowedtransitions as $tr) {echo "&transitions[]=".$tr->getID();} ?>" width="99%" height="661" style="border: 1px solid #AAA;"></iframe>
|
<iframe src="out.WorkflowGraph.php?workflow=<?php echo $workflow->getID(); ?><?php if($allowedtransitions) foreach($allowedtransitions as $tr) {echo "&transitions[]=".$tr->getID();} ?>" width="99%" height="661" style="border: 1px solid #AAA;"></iframe>
|
||||||
<?php
|
<?php
|
||||||
echo "</div>";
|
echo "</div>";
|
||||||
|
}
|
||||||
echo "</div>";
|
echo "</div>";
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user