mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 08:55:54 +00:00
add output of workflow log
This commit is contained in:
parent
7a0d35e927
commit
d2c0148c7f
|
@ -381,6 +381,25 @@ class SeedDMS_View_DocumentVersionDetail extends SeedDMS_Bootstrap_Style {
|
|||
print "</tbody>\n</table>\n";
|
||||
$this->contentContainerEnd();
|
||||
|
||||
$wkflogs = $version->getWorkflowLog();
|
||||
if($wkflogs) {
|
||||
$this->contentHeading(getMLText("workflow_summary"));
|
||||
$this->contentContainerStart();
|
||||
echo "<table class=\"table table-condensed\"><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>".$wkflog->getDate()."</td>";
|
||||
echo "<td>".$wkflog->getTransition()->getAction()->getName()."</td>";
|
||||
$loguser = $wkflog->getUser();
|
||||
echo "<td>".$loguser->getFullName()."</td>";
|
||||
echo "<td>".$wkflog->getComment()."</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
print "</tbody>\n</table>\n";
|
||||
$this->contentContainerEnd();
|
||||
}
|
||||
?>
|
||||
<div class="row-fluid">
|
||||
<?php
|
||||
|
|
Loading…
Reference in New Issue
Block a user