feat: Add 'wygeneruj_temat' parameter to topic_save method and update related templates for enhanced topic management
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user