ver 0.262 - pages module refactor and admin UX fixes
This commit is contained in:
@@ -71,18 +71,18 @@ class ScontainersController
|
||||
|
||||
$rows[] = [
|
||||
'lp' => $lp++ . '.',
|
||||
'title' => '<a href="/admin/scontainers/container_edit/id=' . $id . '">' . htmlspecialchars($title, ENT_QUOTES, 'UTF-8') . '</a>',
|
||||
'title' => '<a href="/admin/scontainers/edit/id=' . $id . '">' . htmlspecialchars($title, ENT_QUOTES, 'UTF-8') . '</a>',
|
||||
'code' => '[KONTENER:' . $id . ']',
|
||||
'status' => ((int)($item['status'] ?? 0) === 1) ? 'tak' : '<span style="color: #FF0000;">nie</span>',
|
||||
'_actions' => [
|
||||
[
|
||||
'label' => 'Edytuj',
|
||||
'url' => '/admin/scontainers/container_edit/id=' . $id,
|
||||
'url' => '/admin/scontainers/edit/id=' . $id,
|
||||
'class' => 'btn btn-xs btn-primary',
|
||||
],
|
||||
[
|
||||
'label' => 'Usun',
|
||||
'url' => '/admin/scontainers/container_delete/id=' . $id,
|
||||
'url' => '/admin/scontainers/delete/id=' . $id,
|
||||
'class' => 'btn btn-xs btn-danger',
|
||||
'confirm' => 'Na pewno chcesz usunac wybrany kontener?',
|
||||
],
|
||||
@@ -119,9 +119,9 @@ class ScontainersController
|
||||
]),
|
||||
$listRequest['perPageOptions'],
|
||||
$sortableColumns,
|
||||
'/admin/scontainers/view_list/',
|
||||
'/admin/scontainers/list/',
|
||||
'Brak danych w tabeli.',
|
||||
'/admin/scontainers/container_edit/',
|
||||
'/admin/scontainers/edit/',
|
||||
'Dodaj kontener'
|
||||
);
|
||||
|
||||
@@ -218,7 +218,7 @@ class ScontainersController
|
||||
\S::alert('Kontener zostal usuniety.');
|
||||
}
|
||||
|
||||
header('Location: /admin/scontainers/view_list/');
|
||||
header('Location: /admin/scontainers/list/');
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -266,10 +266,10 @@ class ScontainersController
|
||||
new FormTab('settings', 'Ustawienia', 'fa-wrench'),
|
||||
];
|
||||
|
||||
$actionUrl = '/admin/scontainers/container_save/' . ($isNew ? '' : ('id=' . $id));
|
||||
$actionUrl = '/admin/scontainers/save/' . ($isNew ? '' : ('id=' . $id));
|
||||
$actions = [
|
||||
FormAction::save($actionUrl, '/admin/scontainers/view_list/'),
|
||||
FormAction::cancel('/admin/scontainers/view_list/'),
|
||||
FormAction::save($actionUrl, '/admin/scontainers/list/'),
|
||||
FormAction::cancel('/admin/scontainers/list/'),
|
||||
];
|
||||
|
||||
return new FormEditViewModel(
|
||||
@@ -281,7 +281,7 @@ class ScontainersController
|
||||
$actions,
|
||||
'POST',
|
||||
$actionUrl,
|
||||
'/admin/scontainers/view_list/',
|
||||
'/admin/scontainers/list/',
|
||||
true,
|
||||
[],
|
||||
$languages,
|
||||
|
||||
Reference in New Issue
Block a user