. */ include_once __DIR__.'/../../../core.php'; $manager_id = filter('manager_id'); $checklists = $structure->checklists()->orderBy('created_at')->get(); $list = []; foreach ($checklists as $checklist) { $list[] = [ 'id' => $checklist->id, 'text' => $checklist->name, ]; } echo '
{[ "type": "select", "label": "'.tr('Checklist').'", "name": "checklist", "values": '.json_encode($list).', "required": 1 ]}
{[ "type": "select", "label": "'.tr('Utente assegnato').'", "name": "assigned_users", "ajax-source": "utenti", "multiple": 1 ]}
{[ "type": "select", "label": "'.tr('Gruppo assegnato').'", "name": "group_id", "values": "query=SELECT `zz_groups`.`id`, `title` 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).')" ]}
';