feat: Add 'wygeneruj_temat' parameter to topic_save method and update related templates for enhanced topic management

This commit is contained in:
2025-05-17 23:54:47 +02:00
parent cce4ac8410
commit e0fcbabacf
5 changed files with 24 additions and 8 deletions

View File

@@ -28,9 +28,16 @@ $grid -> columns_view = [
], [
'name' => 'Link',
'db' => 'link',
'cut' => 50,
], [
'name' => 'Temat',
'db' => 'temat',
], [
'name' => 'Wygeneruj temat',
'db' => 'wygeneruj_temat',
'td' => [ 'class' => 'g-center' ],
'th' => [ 'class' => 'g-center', 'style' => 'width: 150px;' ],
'php' => 'echo ( (int)[wygeneruj_temat] == 1 ) ? "tak" : "<span class=\"text-danger\">nie</span>";',
], [
'name' => 'Data publikacji',
'db' => 'data_publikacji',
@@ -60,7 +67,7 @@ $grid -> columns_view = [
];
$grid -> buttons = [
[
'label' => 'Dodaj temat ogólny',
'label' => 'Dodaj temat',
'url' => '/backend_sites/topic_edit/',
'icon' => 'fa-plus-circle',
'class' => 'btn-success'