INSERT INTO core_permissions (code,permission_name,parent,permission_function,default_child,permission_namespace,"module",permission_description,permission_type,icon,ord,hidden,guest,meta) VALUES
	 ('BRFLFLT','registry_list_button_filters','SREGLW','','','registry/list','registry','Permission to filter lists button','BUT','fas fa-filter',1,false,false,NULL),
	 ('BRLSSRC','registry_list_button_search','SREGLW','','','registry/list','registry','Permission to search registry lists button','BUT','fas fa-search',1,false,false,NULL),
	 ('BRFREMV','registry_list_button_filters_remove','SREGLW','','','registry/list','registry','Permission to remove filters button','BUT','fas fa-times',1,false,false,NULL);

INSERT INTO core_assets (asset_type,asset_name,description,custom,asset_innerhtml,asset_parameters,asset_code,before_trigger,after_trigger,failure_rollback,exec_order,meta,role_id) VALUES
	 ('form','registry_list_filters_form','Form for registry list filters',false,NULL,'{"form": [[{"id": "entity_name", "cols": 3, "name": "entity_name", "type": "text", "label": "form_registry_list_filters_name", "mandatory": false, "onkeydown": "jivaCoreFunc.setFilter(event);", "filterType": "like"}, {"id": "entity_category", "cols": 3, "list": "/api/v1/misc/codelists/registry_categories", "name": "entity_category", "type": "dropdown", "label": "form_registry_list_filters_category", "onchange": "jivaCoreFunc.setFilter(event);", "mandatory": false}]]}',NULL,NULL,NULL,NULL,NULL,NULL,NULL);