@@ -24,7 +24,9 @@ INSERT INTO `permission` (`permission_key`, `module`, `label`, `nav_label`, `nav
2424(' edit' , ' OnePlace\\ Task\\ Controller\\ TaskController' , ' Edit' , ' ' , ' ' , 0 ),
2525(' index' , ' OnePlace\\ Task\\ Controller\\ TaskController' , ' Index' , ' Tasks' , ' /task' , 1 ),
2626(' list' , ' OnePlace\\ Task\\ Controller\\ ApiController' , ' List' , ' ' , ' ' , 1 ),
27- (' view' , ' OnePlace\\ Task\\ Controller\\ TaskController' , ' View' , ' ' , ' ' , 0 );
27+ (' view' , ' OnePlace\\ Task\\ Controller\\ TaskController' , ' View' , ' ' , ' ' , 0 ),
28+ (' dump' , ' OnePlace\\ Task\\ Controller\\ ExportController' , ' Excel Dump' , ' ' , ' ' , 0 ),
29+ (' index' , ' OnePlace\\ Task\\ Controller\\ SearchController' , ' Search' , ' ' , ' ' , 0 );
2830
2931--
3032-- Form
@@ -49,12 +51,16 @@ INSERT INTO `core_form_tab` (`Tab_ID`, `form`, `title`, `subtitle`, `icon`, `cou
4951INSERT INTO ` core_form_button` (` Button_ID` , ` label` , ` icon` , ` title` , ` href` , ` class` , ` append` , ` form` , ` mode` , ` filter_check` , ` filter_value` ) VALUES
5052(NULL , ' Save Task' , ' fas fa-save' , ' Save Task' , ' #' , ' primary saveForm' , ' ' , ' task-single' , ' link' , ' ' , ' ' ),
5153(NULL , ' Edit Task' , ' fas fa-edit' , ' Edit Task' , ' /task/edit/##ID##' , ' primary' , ' ' , ' task-view' , ' link' , ' ' , ' ' ),
52- (NULL , ' Add Task' , ' fas fa-plus' , ' Add Task' , ' /task/add' , ' primary' , ' ' , ' task-index' , ' link' , ' ' , ' ' );
54+ (NULL , ' Add Task' , ' fas fa-plus' , ' Add Task' , ' /task/add' , ' primary' , ' ' , ' task-index' , ' link' , ' ' , ' ' ),
55+ (NULL , ' Export Tasks' , ' fas fa-file-excel' , ' Export Tasks' , ' /task/export' , ' primary' , ' ' , ' task-index' , ' link' , ' ' , ' ' ),
56+ (NULL , ' Find Tasks' , ' fas fa-searh' , ' Find Tasks' , ' /task/search' , ' primary' , ' ' , ' task-index' , ' link' , ' ' , ' ' ),
57+ (NULL , ' Export Tasks' , ' fas fa-file-excel' , ' Export Tasks' , ' #' , ' primary initExcelDump' , ' ' , ' task-search' , ' link' , ' ' , ' ' ),
58+ (NULL , ' New Search' , ' fas fa-searh' , ' New Search' , ' /task/search' , ' primary' , ' ' , ' task-search' , ' link' , ' ' , ' ' );
5359
5460--
5561-- Fields
5662--
57- 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
63+ 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
5864(NULL , ' text' , ' Name' , ' label' , ' task-base' , ' task-single' , ' col-md-3' , ' /task/view/##ID##' , ' ' , 0 , 1 , 0 , ' ' , ' ' , ' ' );
5965
6066--
@@ -64,4 +70,12 @@ INSERT INTO `core_widget` (`Widget_ID`, `widget_name`, `label`, `permission`) VA
6470(NULL , ' task_dailystats' , ' Task - Daily Stats' , ' index-Task\\ Controller\\ TaskController' ),
6571(NULL , ' task_taginfo' , ' Task - Tag Info' , ' index-Task\\ Controller\\ TaskController' );
6672
73+ --
74+ -- User XP Activity
75+ --
76+ INSERT INTO ` user_xp_activity` (` Activity_ID` , ` xp_key` , ` label` , ` xp_base` ) VALUES
77+ (NULL , ' task-add' , ' Add New Task' , ' 50' ),
78+ (NULL , ' task-edit' , ' Edit Task' , ' 5' ),
79+ (NULL , ' task-export' , ' Edit Task' , ' 5' );
80+
6781COMMIT ;
0 commit comments