move filter field for recipients into head of table

This commit is contained in:
Uwe Steinmann 2021-04-30 11:48:03 +02:00
parent 1873d77958
commit 30eadac7cd

View File

@ -1317,15 +1317,11 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Theme_Style {
if(is_string($txt))
echo $txt;
if(count($receiptStatus) > 8) {
echo '<input type="text" id="filterRecipientsInput" placeholder="'.getMLText('type_to_filter').'">';
}
print "<table id=\"filterRecipientsTable\" class=\"table table-condensed table-sm\">\n";
print "<thead>\n";
print "<tr>\n";
print "<th width='20%'>".((count($receiptStatus) > 5) ? '<input type="text" id="filterRecipientsInput" placeholder="'.getMLText('type_to_filter').'">' : getMLText('name'))."</th>\n";
print "<th width='20%'>".((count($receiptStatus) > 10) ? '<input type="text" id="filterRecipientsInput" placeholder="'.getMLText('type_to_filter').'">' : getMLText('name'))."</th>\n";
print "<th width='20%'>".getMLText("last_update")."</th>\n";
print "<th width='25%'>".getMLText("comment")."</th>";
print "<th width='15%'>".getMLText("status")."</th>\n";