fix: [UI] reverted ajax index tables not having the title/description
- messes with the paginationremotes/origin/main
parent
3f01b9ddb5
commit
7c9e44164c
|
@ -18,10 +18,10 @@
|
|||
*/
|
||||
$tableRandomValue = Cake\Utility\Security::randomString(8);
|
||||
echo '<div id="table-container-' . h($tableRandomValue) . '">';
|
||||
if (!$ajax && !empty($data['title'])) {
|
||||
if (!empty($data['title'])) {
|
||||
echo sprintf('<h2>%s</h2>', h($data['title']));
|
||||
}
|
||||
if (!$ajax && !empty($data['description'])) {
|
||||
if (!empty($data['description'])) {
|
||||
echo sprintf(
|
||||
'<div>%s</div>',
|
||||
empty($data['description']) ? '' : h($data['description'])
|
||||
|
@ -40,12 +40,10 @@
|
|||
'tableRandomValue' => $tableRandomValue
|
||||
]
|
||||
);
|
||||
if (!$ajax) {
|
||||
echo $this->element(
|
||||
'/genericElements/IndexTable/pagination_links'
|
||||
);
|
||||
}
|
||||
}
|
||||
if (!empty($data['top_bar'])) {
|
||||
echo $this->element(
|
||||
'/genericElements/ListTopBar/scaffold',
|
||||
|
|
Loading…
Reference in New Issue