ver 0.262 - pages module refactor and admin UX fixes

This commit is contained in:
2026-02-13 21:17:21 +01:00
parent 26ebf59849
commit 67705f1f56
44 changed files with 2235 additions and 1803 deletions

View File

@@ -92,9 +92,8 @@
{
type: 'POST',
cache: false,
url: '/admin/ajax.php',
url: '/admin/pages/cookieMenus/',
data: {
a: 'cookie_menus',
menu_id: menu_id
}
});
@@ -107,10 +106,9 @@
{
type: 'POST',
cache: false,
url: '/admin/ajax.php',
url: '/admin/pages/cookiePages/',
data: {
a: 'cookie_pages',
page_id: page_id
page_id: page_id.replace( 'list_', '' )
}
});
}
@@ -159,14 +157,14 @@ ob_start();
);?>
<?= \Html::input_switch(
array(
'label' => 'Szablon domyślny',
'label' => 'Szablon domy&#347;lny',
'name' => 'status',
'checked' => $this -> layout['status'] == 1 ? true : false
)
);?>
<?= \Html::input_switch(
array(
'label' => 'Szablon domyślny (kategorie)',
'label' => 'Szablon domy&#347;lny (kategorie)',
'name' => 'categories_default',
'checked' => $this -> layout['categories_default'] == 1 ? true : false
)
@@ -246,8 +244,8 @@ $grid -> fields = [
]
];
$grid -> actions = [
'save' => [ 'url' => '/admin/layouts/layout_save/', 'back_url' => '/admin/layouts/view_list/' ],
'cancel' => [ 'url' => '/admin/layouts/view_list/' ]
'save' => [ 'url' => '/admin/layouts/save/', 'back_url' => '/admin/layouts/list/' ],
'cancel' => [ 'url' => '/admin/layouts/list/' ]
];
$grid -> external_code = $out;
$grid -> persist_edit = true;
@@ -255,3 +253,4 @@ $grid -> id_param = 'id';
echo $grid -> draw();
?>