do not output header of section for reviewers if there is no reviewer

This commit is contained in:
Uwe Steinmann 2019-09-10 17:42:58 +02:00
parent 919757bbf3
commit e24e031b17

View File

@ -743,17 +743,17 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
<div class="tab-pane <?php if($currenttab == 'revapp') echo 'active'; ?>" id="revapp"> <div class="tab-pane <?php if($currenttab == 'revapp') echo 'active'; ?>" id="revapp">
<?php <?php
print "<div class=\"row-fluid\">"; print "<div class=\"row-fluid\">";
print "<div class=\"span6\">";
// $this->contentContainerStart();
print "<legend>".getMLText('reviewers')."</legend>";
print "<table class=\"table table-condensed\">\n";
/* Just check fo an exting reviewStatus, even workflow mode is set /* Just check fo an exting reviewStatus, even workflow mode is set
* to traditional_only_approval. There may be old documents which * to traditional_only_approval. There may be old documents which
* are still in S_DRAFT_REV. * are still in S_DRAFT_REV.
*/ */
if (/*$workflowmode != 'traditional_only_approval' &&*/ is_array($reviewStatus) && count($reviewStatus)>0) { if (/*$workflowmode != 'traditional_only_approval' &&*/ is_array($reviewStatus) && count($reviewStatus)>0) {
print "<div class=\"span6\">";
// $this->contentContainerStart();
print "<legend>".getMLText('reviewers')."</legend>";
print "<table class=\"table table-condensed\">\n";
print "<tr>\n"; print "<tr>\n";
print "<th>".getMLText("name")."</th>\n"; print "<th>".getMLText("name")."</th>\n";
print "<th>".getMLText("last_update").", ".getMLText("comment")."</th>\n"; print "<th>".getMLText("last_update").", ".getMLText("comment")."</th>\n";
@ -831,11 +831,11 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
print "</ul></td>\n"; print "</ul></td>\n";
print "</tr>\n"; print "</tr>\n";
} }
} print "</table>";
print "</table>";
// $this->contentContainerEnd(); // $this->contentContainerEnd();
print "</div>"; print "</div>";
}
print "<div class=\"span6\">"; print "<div class=\"span6\">";
// $this->contentContainerStart(); // $this->contentContainerStart();
print "<legend>".getMLText('approvers')."</legend>"; print "<legend>".getMLText('approvers')."</legend>";