global $db;
ob_start();
?>
= \Html::input( [
'label' => 'Strona',
'name' => 'strona',
'id' => 'strona',
'value' => $this -> collective_topic['strona'],
'inline' => true
] );?>
= \Html::input( [
'label' => 'Kategoria',
'name' => 'kategoria',
'id' => 'kategoria',
'value' => $this -> collective_topic['kategoria'],
'inline' => true
] );?>
= \Html::input( [
'label' => 'Kategoria ID',
'name' => 'kategoria_id',
'id' => 'kategoria_id',
'value' => $this -> collective_topic['kategoria_id'],
'inline' => true
] );?>
= \Html::input( [
'label' => 'Temat',
'name' => 'temat_ogolny',
'id' => 'temat_ogolny',
'value' => $this -> collective_topic['temat_ogolny'],
'inline' => true
] );?>
= \Html::input( [
'label' => 'Data przetworzenia',
'name' => 'data_przetworzenia',
'id' => 'data_przetworzenia',
'value' => $this -> collective_topic['data_przetworzenia'],
'inline' => true
] );?>
= \Html::input_switch( [
'label' => 'Przetworzony',
'name' => 'przetworzony',
'id' => 'przetworzony',
'checked' => $this -> collective_topic['przetworzony'] == 1 ? true : false,
'inline' => true
] );?>
$out = ob_get_clean();
$grid = new \gridEdit;
$grid -> id = 'client-edit';
$grid -> gdb_opt = $gdb;
$grid -> include_plugins = true;
$grid -> title = 'Edycja tematu zbiorowego';
$grid -> fields = [
[
'db' => 'id',
'type' => 'hidden',
'value' => $this -> collective_topic['id']
]
];
$grid -> external_code = $out;
$grid -> actions = [
'save' => [ 'url' => '/backend_sites/collective_topic_save/', 'back_url' => '/backend_sites/collective_topics/' ],
'cancel' => [ 'url' => '/backend_sites/collective_topics/' ]
];
$grid -> persist_edit = true;
$grid -> id_param = 'id';
echo $grid -> draw();
?>