11--
22-- Core Form - Task Base Fields
33--
4- INSERT INTO ` core_form_field` (` Field_ID` , ` type` , ` label` , ` fieldkey` , ` tab` , ` form` , ` class` , ` url_view` , ` url_ist ` , ` show_widget_left` , ` allow_clear` , ` readonly` , ` tbl_cached_name` , ` tbl_class` , ` tbl_permission` ) VALUES
4+ INSERT INTO ` core_form_field` (` Field_ID` , ` type` , ` label` , ` fieldkey` , ` tab` , ` form` , ` class` , ` url_view` , ` url_list ` , ` show_widget_left` , ` allow_clear` , ` readonly` , ` tbl_cached_name` , ` tbl_class` , ` tbl_permission` ) VALUES
55(NULL , ' textarea' , ' Description' , ' description' , ' task-base' , ' task-single' , ' col-md-12' , ' ' , ' ' , 0 , 1 , 0 , ' ' , ' ' , ' ' ),
66(NULL , ' text' , ' Version' , ' version' , ' task-base' , ' task-single' , ' col-md-1' , ' ' , ' ' , 0 , 1 , 0 , ' ' , ' ' , ' ' ),
77(NULL , ' currency' , ' Budget' , ' budget' , ' task-base' , ' task-single' , ' col-md-1' , ' ' , ' ' , 0 , 1 , 0 , ' ' , ' ' , ' ' ),
88(NULL , ' currency' , ' Escalation Cost' , ' escalation_cost' , ' task-base' , ' task-single' , ' col-md-1' , ' ' , ' ' , 0 , 1 , 0 , ' ' , ' ' , ' ' ),
99(NULL , ' text' , ' Escalation Time' , ' escalation_time' , ' task-base' , ' task-single' , ' col-md-1' , ' ' , ' ' , 0 , 1 , 0 , ' ' , ' ' , ' ' ),
1010(NULL , ' date' , ' planned Release' , ' planned_release' , ' task-base' , ' task-single' , ' col-md-2' , ' ' , ' ' , 0 , 1 , 0 , ' ' , ' ' , ' ' ),
11- (NULL , ' multiselect' , ' Categories' , ' category_idfs' , ' task-base' , ' task-single' , ' col-md-3' , ' ' , ' /tag/api/list/task-single_1' , 1 , 1 , 0 , ' entitytag-single' , ' OnePlace\\ Tag\\ Model\\ EntityTagTable' , ' add-OnePlace\\ Task\\ Controller\\ CategoryController' ),
12- (NULL , ' select' , ' Customer' , ' customer_idfs' , ' task-base' , ' task-single' , ' col-md-3' , ' ' , ' /api/contact/list' , 0 , 1 , 0 , ' contact-single' , ' OnePlace\\ Contact\\ Model\\ ContactTable' ,' add-OnePlace\\ Contact\\ Controller\\ ContactController' ),
13- (NULL , ' select' , ' Assigned to' , ' assigned_idfs' , ' task-base' , ' task-single' , ' col-md-3' , ' ' , ' /api/user/list' , 0 , 1 , 0 , ' user-single' , ' OnePlace\\ User\\ Model\\ UserTable' ,' add-OnePlace\\ User\\ Controller\\ UserController' ),
14- (NULL , ' select' , ' Reported By' , ' reported_by_idfs' , ' task-base' , ' task-single' , ' col-md-3' , ' ' , ' /api/contact/list' , 0 , 1 , 0 , ' contact-single' , ' OnePlace\\ Contact\\ Model\\ ContactTable' ,' add-OnePlace\\ Contact\\ Controller\\ ContactController' ),
15- (NULL , ' select' , ' Priority' , ' priority_idfs' , ' task-base' , ' task-single' , ' col-md-3' , ' ' , ' ' , 0 , 1 , 0 , ' entitytag-single' , ' OnePlace\\ Tag\\ Model\\ EntityTagTable' , ' add-OnePlace\\ Task\\ Controller\\ PriorityController' ),
16- (NULL , ' select' , ' Project' , ' project_idfs' , ' task-base' , ' task-single' , ' col-md-3' , ' ' , ' /api/project/list' , 0 , 1 , 0 , ' project-single' , ' OnePlace\\ Project\\ Model\\ ProjectTable' ,' add-OnePlace\\ Project\\ Controller\\ ProjectController' ),
11+ (NULL , ' multiselect' , ' Categories' , ' category_idfs' , ' task-base' , ' task-single' , ' col-md-3' , ' ' , ' /tag/api/list/task-single/category' , 1 , 1 , 0 , ' entitytag-single' , ' OnePlace\\ Tag\\ Model\\ EntityTagTable' , ' add-OnePlace\\ Task\\ Controller\\ CategoryController' ),
12+ (NULL , ' select' , ' State' , ' state_idfs' , ' task-base' , ' task-single' , ' col-md-3' , ' ' , ' /tag/api/list/task-single/state' , 1 , 1 , 0 , ' entitytag-single' , ' OnePlace\\ Tag\\ Model\\ EntityTagTable' ,' add-OnePlace\\ Task\\ Controller\\ StateController' ),
13+ (NULL , ' select' , ' Customer' , ' customer_idfs' , ' task-base' , ' task-single' , ' col-md-3' , ' ' , ' /api/contact/list/0' , 0 , 1 , 0 , ' contact-single' , ' OnePlace\\ Contact\\ Model\\ ContactTable' ,' add-OnePlace\\ Contact\\ Controller\\ ContactController' ),
14+ (NULL , ' select' , ' Assigned to' , ' assigned_idfs' , ' task-base' , ' task-single' , ' col-md-3' , ' ' , ' /api/user/list/0' , 0 , 1 , 0 , ' user-single' , ' OnePlace\\ User\\ Model\\ UserTable' ,' add-OnePlace\\ User\\ Controller\\ UserController' ),
15+ (NULL , ' select' , ' Reported By' , ' reported_by_idfs' , ' task-base' , ' task-single' , ' col-md-3' , ' ' , ' /api/contact/list/0' , 0 , 1 , 0 , ' contact-single' , ' OnePlace\\ Contact\\ Model\\ ContactTable' ,' add-OnePlace\\ Contact\\ Controller\\ ContactController' ),
16+ (NULL , ' select' , ' Priority' , ' priority_idfs' , ' task-base' , ' task-single' , ' col-md-3' , ' ' , ' /tag/api/list/task-single/priority' , 0 , 1 , 0 , ' entitytag-single' , ' OnePlace\\ Tag\\ Model\\ EntityTagTable' , ' add-OnePlace\\ Task\\ Controller\\ PriorityController' ),
17+ (NULL , ' select' , ' Project' , ' project_idfs' , ' task-base' , ' task-single' , ' col-md-3' , ' ' , ' /api/project/list/0' , 0 , 1 , 0 , ' project-single' , ' OnePlace\\ Project\\ Model\\ ProjectTable' ,' add-OnePlace\\ Project\\ Controller\\ ProjectController' ),
1718(NULL , ' featuredimage' , ' Featured Image' , ' featured_image' , ' task-base' , ' task-single' , ' col-md-3' , ' ' , ' ' , 0 , 1 , 0 , ' ' , ' ' , ' ' );
1819
19- (NULL , ' select' , ' Test Tag' , ' testtag_idfs' , ' skeleton-base' , ' skeleton-single' , ' col-md-3' , ' ' , ' /tag/api/list/skeleton-single_1' , 0 , 1 , 0 , ' entitytag-single' , ' OnePlace\\ Tag\\ Model\\ EntityTagTable' , ' add-OnePlace\\ Tag\\ Controller\\ TagController' );
20+
21+
2022--
2123-- Core Form - Task Gallery Tab Fields
2224--
23- INSERT INTO ` core_form_field` (` Field_ID` , ` type` , ` label` , ` fieldkey` , ` tab` , ` form` , ` class` , ` url_view` , ` url_ist ` , ` show_widget_left` , ` allow_clear` , ` readonly` , ` tbl_cached_name` , ` tbl_class` , ` tbl_permission` ) VALUES
24- (NULL , ' gallery' , ' Images Upload' , ' task_images' , ' task-gallery ' , ' task-single' , ' col-md-12' , ' ' , ' ' , 0 , 1 , 0 , ' ' , ' ' , ' ' );
25+ INSERT INTO ` core_form_field` (` Field_ID` , ` type` , ` label` , ` fieldkey` , ` tab` , ` form` , ` class` , ` url_view` , ` url_list ` , ` show_widget_left` , ` allow_clear` , ` readonly` , ` tbl_cached_name` , ` tbl_class` , ` tbl_permission` ) VALUES
26+ (NULL , ' gallery' , ' Images Upload' , ' task_images' , ' task-images ' , ' task-single' , ' col-md-12' , ' ' , ' ' , 0 , 1 , 0 , ' ' , ' ' , ' ' );
2527
2628--
27- -- book Form Tabs
29+ -- core Form Tabs
30+ -- core Form Tabs
2831--
2932INSERT INTO ` core_form_tab` (` Tab_ID` , ` form` , ` title` , ` subtitle` , ` icon` , ` counter` , ` sort_id` , ` filter_check` , ` filter_value` ) VALUES
30- (' task-gallery ' , ' task-single' , ' File ' , ' upload' , ' fas fa-upload' , ' ' , 1 , ' ' , ' ' );
33+ (' task-images ' , ' task-single' , ' Images ' , ' upload files ' , ' fas fa-upload' , ' ' , 1 , ' ' , ' ' );
3134
35+ --
36+ -- permissions
37+ --
3238INSERT INTO ` permission` (` permission_key` , ` module` , ` label` , ` nav_label` , ` nav_href` , ` show_in_menu` ) VALUES
3339(' add' , ' OnePlace\\ Task\\ Controller\\ CategoryController' , ' Add Category' , ' ' , ' ' , 0 ),
34- (' add' , ' OnePlace\\ Task\\ Controller\\ PriorityController' , ' Add Priority' , ' ' , ' ' , 0 );
40+ (' add' , ' OnePlace\\ Task\\ Controller\\ StateController' , ' Add State' , ' ' , ' ' , 0 ),
41+ (' add' , ' OnePlace\\ Task\\ Controller\\ PriorityController' , ' Add Priority' , ' ' , ' ' , 0 );
42+
43+
44+ --
45+ -- Custom Tags
46+ --
47+ -- todo: add select before and check if tag exists
48+ --
49+ INSERT INTO ` core_tag` (` Tag_ID` , ` tag_key` , ` tag_label` , ` created_by` , ` created_date` , ` modified_by` , ` modified_date` ) VALUES
50+ (NULL , ' priority' , ' Priority' , ' 1' , ' 0000-00-00 00:00:00' , ' 1' , ' 0000-00-00 00:00:00' );
0 commit comments