. */ include_once __DIR__.'/../../../core.php'; $manager_id = filter('manager_id'); $checks = $structure->recordChecks($id_record); $list = []; foreach ($checks as $check) { $list[] = [ 'id' => $check->id, 'text' => $check->content, ]; } echo '
'.input([ 'type' => 'ckeditor', 'label' => tr('Contenuto'), 'name' => 'content', 'required' => 1, 'value' => '', ]).'
{[ "type": "select", "label": "'.tr('Collega a').'", "name": "parent", "values": '.json_encode($list).' ]}
{[ "type": "checkbox", "label": "'.tr('Utilizza come titolo').'", "name": "is_titolo" ]}
{[ "type": "select", "label": "'.tr('Gruppo assegnato').'", "name": "group_id", "values": "query=SELECT `zz_groups`.`id`, `name` AS text FROM `zz_groups` LEFT JOIN `zz_groups_lang` ON (`zz_groups`.`id` = `zz_groups_lang`.`id_record` AND `zz_groups_lang`.`id_lang` = '.prepare(Models\Locale::getDefault()->id).')" ]}
{[ "type": "select", "label": "'.tr('Utente assegnato').'", "name": "assigned_users", "ajax-source": "utenti", "multiple": 1 ]}


';