BasketController: change NV-table style

fixes #2225
This commit is contained in:
Thomas Gelf 2020-11-24 09:51:18 +01:00
parent 4dc69118d8
commit f77de7992b
2 changed files with 18 additions and 3 deletions

View File

@ -2,9 +2,9 @@
namespace Icinga\Module\Director\Controllers;
use gipfl\IcingaWeb2\Link;
use gipfl\IcingaWeb2\Widget\NameValueTable;
use Exception;
use gipfl\IcingaWeb2\Link;
use gipfl\Web\Table\NameValueTable;
use gipfl\Web\Widget\Hint;
use Icinga\Date\DateFormatter;
use Icinga\Module\Director\ConfigDiff;
@ -255,7 +255,10 @@ class BasketController extends ActionController
continue;
}
$table = new NameValueTable();
$table->setAttribute('data-base-target', '_next');
$table->addAttributes([
'class' => ['table-basket-changes', 'table-row-selectable'],
'data-base-target' => '_next',
]);
foreach ($objects as $key => $object) {
$linkParams = [
'name' => $basket->get('basket_name'),

View File

@ -1892,3 +1892,15 @@ h2.action-delete::before {
text-decoration: none;
}
}
/* Special components */
table.table-basket-changes {
min-width: 18em;
max-width: 100%;
th {
width: 80%;
font-weight: normal;
text-align: left;
min-width: 10em;
}
}