move workflow protocol on workflow tab

This commit is contained in:
Uwe Steinmann 2022-04-02 11:07:31 +02:00
parent 38ea04c20d
commit 1e0172dd8f

View File

@ -960,26 +960,6 @@ $(document).ready( function() {
}
print "</tbody>\n</table>\n";
$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>
@ -1444,6 +1424,30 @@ $(document).ready( function() {
$this->columnEnd();
}
$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>
<?php