mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-10 19:12:42 +00:00
move workflow protocol on workflow tab
This commit is contained in:
parent
38ea04c20d
commit
1e0172dd8f
|
@ -960,26 +960,6 @@ $(document).ready( function() {
|
||||||
}
|
}
|
||||||
print "</tbody>\n</table>\n";
|
print "</tbody>\n</table>\n";
|
||||||
$this->contentContainerEnd();
|
$this->contentContainerEnd();
|
||||||
|
|
||||||
$wkflogs = $latestContent->getWorkflowLog();
|
|
||||||
if($wkflogs) {
|
|
||||||
$this->contentHeading(getMLText("workflow_log"));
|
|
||||||
$this->contentContainerStart();
|
|
||||||
echo "<table class=\"table table-condensed table-sm\"><thead>";
|
|
||||||
echo "<th>".getMLText('date')."</th><th>".getMLText('action')."</th><th>".getMLText('user')."</th><th>".getMLText('comment')."</th></tr>\n";
|
|
||||||
echo "</thead><tbody>";
|
|
||||||
foreach($wkflogs as $wkflog) {
|
|
||||||
echo "<tr>";
|
|
||||||
echo "<td>".getLongReadableDate($wkflog->getDate())."</td>";
|
|
||||||
echo "<td>".htmlspecialchars(getMLText('action_'.strtolower($wkflog->getTransition()->getAction()->getName()), array(), $wkflog->getTransition()->getAction()->getName()))."</td>";
|
|
||||||
$loguser = $wkflog->getUser();
|
|
||||||
echo "<td>".htmlspecialchars($loguser->getFullName())."</td>";
|
|
||||||
echo "<td>".htmlspecialchars($wkflog->getComment())."</td>";
|
|
||||||
echo "</tr>";
|
|
||||||
}
|
|
||||||
print "</tbody>\n</table>\n";
|
|
||||||
$this->contentContainerEnd();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1444,6 +1424,30 @@ $(document).ready( function() {
|
||||||
$this->columnEnd();
|
$this->columnEnd();
|
||||||
}
|
}
|
||||||
$this->rowEnd();
|
$this->rowEnd();
|
||||||
|
|
||||||
|
$wkflogs = $latestContent->getWorkflowLog();
|
||||||
|
if($wkflogs) {
|
||||||
|
$this->rowStart();
|
||||||
|
$this->columnStart(12);
|
||||||
|
$this->contentHeading(getMLText("workflow_log"));
|
||||||
|
$this->contentContainerStart();
|
||||||
|
echo "<table class=\"table table-condensed table-sm\"><thead>";
|
||||||
|
echo "<th>".getMLText('date')."</th><th>".getMLText('action')."</th><th>".getMLText('user')."</th><th>".getMLText('comment')."</th></tr>\n";
|
||||||
|
echo "</thead><tbody>";
|
||||||
|
foreach($wkflogs as $wkflog) {
|
||||||
|
echo "<tr>";
|
||||||
|
echo "<td>".getLongReadableDate($wkflog->getDate())."</td>";
|
||||||
|
echo "<td>".htmlspecialchars(getMLText('action_'.strtolower($wkflog->getTransition()->getAction()->getName()), array(), $wkflog->getTransition()->getAction()->getName()))."</td>";
|
||||||
|
$loguser = $wkflog->getUser();
|
||||||
|
echo "<td>".htmlspecialchars($loguser->getFullName())."</td>";
|
||||||
|
echo "<td>".htmlspecialchars($wkflog->getComment())."</td>";
|
||||||
|
echo "</tr>";
|
||||||
|
}
|
||||||
|
print "</tbody>\n</table>\n";
|
||||||
|
$this->contentContainerEnd();
|
||||||
|
$this->columnEnd();
|
||||||
|
$this->rowEnd();
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Reference in New Issue
Block a user