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

@@ -37,6 +37,13 @@ ob_start();
'value' => $this -> topic['temat'],
'inline' => true
] );?>
<?= \Html::input_switch( [
'label' => 'Wygeneruj temat',
'name' => 'wygeneruj_temat',
'id' => 'wygeneruj_temat',
'checked' => $this -> topic['wygeneruj_temat'] == 1 ? true : false,
'inline' => true
] );?>
<?= \Html::input( [
'label' => 'Data publikacji',
'name' => 'data_publikacji',
@@ -65,7 +72,7 @@ $grid = new \gridEdit;
$grid -> id = 'client-edit';
$grid -> gdb_opt = $gdb;
$grid -> include_plugins = true;
$grid -> title = 'Edycja <strong>tematu zbiorowego</strong>';
$grid -> title = 'Edycja <strong>tematu</strong>';
$grid -> fields = [
[
'db' => 'id',