better html layout

This commit is contained in:
Uwe Steinmann 2021-05-06 14:49:10 +02:00
parent f48bdb1280
commit 8a2aa4bdda
2 changed files with 8 additions and 10 deletions

View File

@ -146,11 +146,10 @@ $(document).ready( function() {
<?php
$this->columnEnd();
$this->columnStart(6);
print "<table class=\"table-condensed\">\n";
if ((count($notifyList["users"]) == 0) && (count($notifyList["groups"]) == 0)) {
print "<tr><td>".getMLText("empty_notify_list")."</td></tr>";
}
else {
$this->infoMsg(getMLText("empty_notify_list"));
} else {
print "<table class=\"table table-condensed table-sm mt-4\">\n";
foreach ($notifyList["users"] as $userNotify) {
print "<tr>";
print "<td><i class=\"fa fa-user\"></i></td>";
@ -185,8 +184,8 @@ $(document).ready( function() {
}else print "<td></td>";
print "</tr>";
}
}
print "</table>\n";
}
$this->columnEnd();
$this->rowEnd();

View File

@ -146,11 +146,10 @@ $(document).ready(function() {
<?php
$this->columnEnd();
$this->columnStart(6);
print "<table class=\"table-condensed\">\n";
if (empty($notifyList["users"]) && empty($notifyList["groups"])) {
print "<tr><td>".getMLText("empty_notify_list")."</td></tr>";
}
else {
$this->infoMsg(getMLText("empty_notify_list"));
} else {
print "<table class=\"table table-condensed table-sm\">\n";
foreach ($notifyList["users"] as $userNotify) {
print "<tr>";
print "<td><i class=\"fa fa-user\"></i></td>";
@ -185,8 +184,8 @@ $(document).ready(function() {
}else print "<td></td>";
print "</tr>";
}
}
print "</table>\n";
}
$this->columnEnd();
$this->rowEnd();