|
|
@@ -7,6 +7,9 @@ CREATE TABLE IF NOT EXISTS `bx_tasks_tasks` (
|
|
|
`published` int(11) NOT NULL,
|
|
|
`thumb` int(11) NOT NULL,
|
|
|
`title` varchar(255) NOT NULL,
|
|
|
+ `type` int(11) NOT NULL default '0',
|
|
|
+ `priority` int(11) NOT NULL default '0',
|
|
|
+ `state` int(11) NOT NULL default '0',
|
|
|
`cat` int(11) NOT NULL,
|
|
|
`multicat` text NOT NULL,
|
|
|
`text` mediumtext NOT NULL,
|
|
|
@@ -377,6 +380,7 @@ INSERT INTO `sys_form_displays`(`object`, `display_name`, `module`, `view_mode`,
|
|
|
('bx_tasks', 'bx_tasks_entry_add', 'bx_tasks', 0, '_bx_tasks_form_entry_display_add'),
|
|
|
('bx_tasks', 'bx_tasks_entry_delete', 'bx_tasks', 0, '_bx_tasks_form_entry_display_delete'),
|
|
|
('bx_tasks', 'bx_tasks_entry_edit', 'bx_tasks', 0, '_bx_tasks_form_entry_display_edit'),
|
|
|
+('bx_tasks', 'bx_tasks_entry_edit_state', 'bx_tasks', 0, '_bx_tasks_form_entry_display_edit_state'),
|
|
|
('bx_tasks', 'bx_tasks_entry_view', 'bx_tasks', 1, '_bx_tasks_form_entry_display_view');
|
|
|
|
|
|
INSERT INTO `sys_form_inputs`(`object`, `module`, `name`, `value`, `values`, `checked`, `type`, `caption_system`, `caption`, `info`, `required`, `collapsed`, `html`, `attrs`, `attrs_tr`, `attrs_wrapper`, `checker_func`, `checker_params`, `checker_error`, `db_pass`, `db_params`, `editable`, `deletable`) VALUES
|
|
|
@@ -389,12 +393,16 @@ INSERT INTO `sys_form_inputs`(`object`, `module`, `name`, `value`, `values`, `ch
|
|
|
('bx_tasks', 'bx_tasks', 'do_cancel_edit', '_bx_tasks_form_entry_input_do_cancel_edit', '', 0, 'button', '_bx_tasks_form_entry_input_sys_do_cancel_edit', '', '', 0, 0, 0, 'a:2:{s:7:"onclick";s:41:"window.open(''{edit_cancel_url}'', ''_self'')";s:5:"class";s:22:"bx-def-margin-sec-left";}', '', '', '', '', '', '', '', 0, 0),
|
|
|
('bx_tasks', 'bx_tasks', 'controls', '', 'do_publish,do_cancel', 0, 'input_set', '_bx_tasks_form_entry_input_sys_controls', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
('bx_tasks', 'bx_tasks', 'controls_edit', '', 'do_submit,do_cancel_edit', 0, 'input_set', '_bx_tasks_form_entry_input_sys_controls_edit', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
+('bx_tasks', 'bx_tasks', 'controls_edit_popup', '', 'do_submit,do_cancel', 0, 'input_set', '_bx_tasks_form_entry_input_sys_controls_edit_popup', '', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
('bx_tasks', 'bx_tasks', 'covers', 'a:1:{i:0;s:14:"bx_tasks_html5";}', 'a:1:{s:14:"bx_tasks_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_bx_tasks_form_entry_input_sys_covers', '_bx_tasks_form_entry_input_covers', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
('bx_tasks', 'bx_tasks', 'pictures', 'a:1:{i:0;s:21:"bx_tasks_photos_html5";}', 'a:1:{s:21:"bx_tasks_photos_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_bx_tasks_form_entry_input_sys_pictures', '_bx_tasks_form_entry_input_pictures', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
('bx_tasks', 'bx_tasks', 'videos', 'a:2:{i:0;s:21:"bx_tasks_videos_html5";i:1;s:28:"bx_tasks_videos_record_video";}', 'a:2:{s:21:"bx_tasks_videos_html5";s:25:"_sys_uploader_html5_title";s:28:"bx_tasks_videos_record_video";s:32:"_sys_uploader_record_video_title";}', 0, 'files', '_bx_tasks_form_entry_input_sys_videos', '_bx_tasks_form_entry_input_videos', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
('bx_tasks', 'bx_tasks', 'files', 'a:1:{i:0;s:20:"bx_tasks_files_html5";}', 'a:1:{s:20:"bx_tasks_files_html5";s:25:"_sys_uploader_html5_title";}', 0, 'files', '_bx_tasks_form_entry_input_sys_files', '_bx_tasks_form_entry_input_files', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
('bx_tasks', 'bx_tasks', 'text', '', '', 0, 'textarea', '_bx_tasks_form_entry_input_sys_text', '_bx_tasks_form_entry_input_text', '', 0, 0, 2, '', '', '', '', '', '', 'XssHtml', '', 1, 0),
|
|
|
('bx_tasks', 'bx_tasks', 'title', '', '', 0, 'text', '_bx_tasks_form_entry_input_sys_title', '_bx_tasks_form_entry_input_title', '', 1, 0, 0, '', '', '', 'Avail', '', '_bx_tasks_form_entry_input_title_err', 'Xss', '', 1, 0),
|
|
|
+('bx_tasks', 'bx_tasks', 'type', '', '#!bx_tasks_types', 0, 'select', '_bx_tasks_form_entry_input_sys_type', '_bx_tasks_form_entry_input_type', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
|
|
|
+('bx_tasks', 'bx_tasks', 'priority', '', '#!bx_tasks_priorities', 0, 'select', '_bx_tasks_form_entry_input_sys_priority', '_bx_tasks_form_entry_input_priority', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
|
|
|
+('bx_tasks', 'bx_tasks', 'state', '', '#!bx_tasks_states', 0, 'select', '_bx_tasks_form_entry_input_sys_state', '_bx_tasks_form_entry_input_state', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0),
|
|
|
('bx_tasks', 'bx_tasks', 'cat', '', '#!bx_tasks_cats', 0, 'select', '_bx_tasks_form_entry_input_sys_cat', '_bx_tasks_form_entry_input_cat', '', 1, 0, 0, '', '', '', 'avail', '', '_bx_tasks_form_entry_input_cat_err', 'Xss', '', 1, 0),
|
|
|
('bx_tasks', 'bx_tasks', 'multicat', '', '', 0, 'custom', '_bx_tasks_form_entry_input_sys_multicat', '_bx_tasks_form_entry_input_multicat', '', 1, 0, 0, '', '', '', 'avail', '', '_bx_tasks_form_entry_input_multicat_err', 'Xss', '', 1, 0),
|
|
|
('bx_tasks', 'bx_tasks', 'added', '', '', 0, 'datetime', '_bx_tasks_form_entry_input_sys_date_added', '_bx_tasks_form_entry_input_date_added', '', 0, 0, 0, '', '', '', '', '', '', '', '', 1, 0),
|
|
|
@@ -408,39 +416,47 @@ INSERT INTO `sys_form_inputs`(`object`, `module`, `name`, `value`, `values`, `ch
|
|
|
('bx_tasks', 'bx_tasks', 'allow_comments', '1', '', 1, 'switcher', '_bx_tasks_form_entry_input_sys_allow_comments', '_bx_tasks_form_entry_input_allow_comments', '', 0, 0, 0, '', '', '', '', '', '', 'Int', '', 1, 0);
|
|
|
|
|
|
INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for_levels`, `active`, `order`) VALUES
|
|
|
-('bx_tasks_entry_add', 'delete_confirm', 2147483647, 0, 1),
|
|
|
-('bx_tasks_entry_add', 'title', 2147483647, 1, 2),
|
|
|
-('bx_tasks_entry_add', 'text', 2147483647, 1, 3),
|
|
|
-('bx_tasks_entry_add', 'initial_members', 192, 1, 4),
|
|
|
-('bx_tasks_entry_add', 'due_date', 192, 1, 5),
|
|
|
-('bx_tasks_entry_add', 'controls', 2147483647, 1, 6),
|
|
|
-('bx_tasks_entry_add', 'do_publish', 2147483647, 1, 7),
|
|
|
-('bx_tasks_entry_add', 'do_cancel', 2147483647, 1, 8),
|
|
|
+('bx_tasks_entry_add', 'title', 2147483647, 1, 1),
|
|
|
+('bx_tasks_entry_add', 'text', 2147483647, 1, 2),
|
|
|
+('bx_tasks_entry_add', 'initial_members', 192, 1, 3),
|
|
|
+('bx_tasks_entry_add', 'due_date', 192, 1, 4),
|
|
|
+('bx_tasks_entry_add', 'type', 2147483647, 1, 5),
|
|
|
+('bx_tasks_entry_add', 'priority', 2147483647, 1, 6),
|
|
|
+('bx_tasks_entry_add', 'controls', 2147483647, 1, 7),
|
|
|
+('bx_tasks_entry_add', 'do_publish', 2147483647, 1, 8),
|
|
|
+('bx_tasks_entry_add', 'do_cancel', 2147483647, 1, 9),
|
|
|
|
|
|
('bx_tasks_entry_delete', 'delete_confirm', 2147483647, 1, 1),
|
|
|
('bx_tasks_entry_delete', 'do_submit', 2147483647, 1, 2),
|
|
|
|
|
|
-('bx_tasks_entry_edit', 'do_publish', 2147483647, 0, 1),
|
|
|
-('bx_tasks_entry_edit', 'delete_confirm', 2147483647, 0, 2),
|
|
|
-('bx_tasks_entry_edit', 'title', 2147483647, 1, 3),
|
|
|
-('bx_tasks_entry_edit', 'text', 2147483647, 1, 4),
|
|
|
-('bx_tasks_entry_edit', 'attachments', 2147483647, 1, 5),
|
|
|
-('bx_tasks_entry_edit', 'pictures', 2147483647, 1, 6),
|
|
|
-('bx_tasks_entry_edit', 'videos', 2147483647, 1, 7),
|
|
|
-('bx_tasks_entry_edit', 'files', 2147483647, 1, 8),
|
|
|
-('bx_tasks_entry_edit', 'allow_view_to', 2147483647, 1, 9),
|
|
|
-('bx_tasks_entry_edit', 'cf', 2147483647, 1, 10),
|
|
|
-('bx_tasks_entry_edit', 'tasks_list', 192, 1, 11),
|
|
|
-('bx_tasks_entry_edit', 'initial_members', 192, 1, 12),
|
|
|
-('bx_tasks_entry_edit', 'due_date', 192, 1, 13),
|
|
|
-('bx_tasks_entry_edit', 'controls_edit', 2147483647, 1, 14),
|
|
|
-('bx_tasks_entry_edit', 'do_submit', 2147483647, 1, 15),
|
|
|
-('bx_tasks_entry_edit', 'do_cancel_edit', 2147483647, 1, 16),
|
|
|
-
|
|
|
-('bx_tasks_entry_view', 'cat', 2147483647, 1, 1),
|
|
|
-('bx_tasks_entry_view', 'added', 2147483647, 1, 2),
|
|
|
-('bx_tasks_entry_view', 'changed', 2147483647, 1, 3),
|
|
|
-('bx_tasks_entry_view', 'due_date', 192, 1, 4);
|
|
|
+('bx_tasks_entry_edit', 'title', 2147483647, 1, 1),
|
|
|
+('bx_tasks_entry_edit', 'text', 2147483647, 1, 2),
|
|
|
+('bx_tasks_entry_edit', 'attachments', 2147483647, 1, 3),
|
|
|
+('bx_tasks_entry_edit', 'pictures', 2147483647, 1, 4),
|
|
|
+('bx_tasks_entry_edit', 'videos', 2147483647, 1, 5),
|
|
|
+('bx_tasks_entry_edit', 'files', 2147483647, 1, 6),
|
|
|
+('bx_tasks_entry_edit', 'allow_view_to', 2147483647, 1, 7),
|
|
|
+('bx_tasks_entry_edit', 'cf', 2147483647, 1, 8),
|
|
|
+('bx_tasks_entry_edit', 'initial_members', 192, 1, 8),
|
|
|
+('bx_tasks_entry_edit', 'due_date', 192, 1, 10),
|
|
|
+('bx_tasks_entry_edit', 'type', 2147483647, 1, 11),
|
|
|
+('bx_tasks_entry_edit', 'priority', 2147483647, 1, 12),
|
|
|
+('bx_tasks_entry_edit', 'controls_edit', 2147483647, 1, 13),
|
|
|
+('bx_tasks_entry_edit', 'do_submit', 2147483647, 1, 14),
|
|
|
+('bx_tasks_entry_edit', 'do_cancel_edit', 2147483647, 1, 15),
|
|
|
+
|
|
|
+('bx_tasks_entry_edit_state', 'state', 2147483647, 1, 1),
|
|
|
+('bx_tasks_entry_edit_state', 'controls_edit_popup', 2147483647, 1, 2),
|
|
|
+('bx_tasks_entry_edit_state', 'do_submit', 2147483647, 1, 3),
|
|
|
+('bx_tasks_entry_edit_state', 'do_cancel', 2147483647, 1, 4),
|
|
|
+
|
|
|
+('bx_tasks_entry_view', 'type', 2147483647, 1, 1),
|
|
|
+('bx_tasks_entry_view', 'priority', 2147483647, 1, 2),
|
|
|
+('bx_tasks_entry_view', 'cat', 2147483647, 1, 3),
|
|
|
+('bx_tasks_entry_view', 'added', 2147483647, 1, 4),
|
|
|
+('bx_tasks_entry_view', 'changed', 2147483647, 1, 5),
|
|
|
+('bx_tasks_entry_view', 'due_date', 192, 1, 6),
|
|
|
+('bx_tasks_entry_view', 'state', 2147483647, 1, 7);
|
|
|
|
|
|
|
|
|
-- FORMS: entry (tasklist)
|
|
|
@@ -471,6 +487,39 @@ INSERT INTO `sys_form_display_inputs`(`display_name`, `input_name`, `visible_for
|
|
|
|
|
|
|
|
|
-- PRE-VALUES
|
|
|
+INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
|
|
|
+('bx_tasks_types', '_bx_tasks_pre_lists_types', 'bx_tasks', '0');
|
|
|
+
|
|
|
+INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
|
|
|
+('bx_tasks_types', '', 0, '_sys_please_select', ''),
|
|
|
+('bx_tasks_types', '1', 1, '_bx_tasks_type_1', ''),
|
|
|
+('bx_tasks_types', '2', 2, '_bx_tasks_type_2', ''),
|
|
|
+('bx_tasks_types', '3', 3, '_bx_tasks_type_3', '');
|
|
|
+
|
|
|
+INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
|
|
|
+('bx_tasks_priorities', '_bx_tasks_pre_lists_priorities', 'bx_tasks', '0');
|
|
|
+
|
|
|
+INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
|
|
|
+('bx_tasks_priorities', '', 0, '_sys_please_select', ''),
|
|
|
+('bx_tasks_priorities', '1', 1, '_bx_tasks_priority_1', ''),
|
|
|
+('bx_tasks_priorities', '2', 2, '_bx_tasks_priority_2', ''),
|
|
|
+('bx_tasks_priorities', '3', 3, '_bx_tasks_priority_3', ''),
|
|
|
+('bx_tasks_priorities', '4', 4, '_bx_tasks_priority_4', ''),
|
|
|
+('bx_tasks_priorities', '5', 5, '_bx_tasks_priority_5', '');
|
|
|
+
|
|
|
+INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
|
|
|
+('bx_tasks_states', '_bx_tasks_pre_lists_states', 'bx_tasks', '0');
|
|
|
+
|
|
|
+INSERT INTO `sys_form_pre_values`(`Key`, `Value`, `Order`, `LKey`, `LKey2`) VALUES
|
|
|
+('bx_tasks_states', '', 0, '_sys_please_select', ''),
|
|
|
+('bx_tasks_states', '1', 1, '_bx_tasks_state_1', ''),
|
|
|
+('bx_tasks_states', '2', 2, '_bx_tasks_state_2', ''),
|
|
|
+('bx_tasks_states', '3', 3, '_bx_tasks_state_3', ''),
|
|
|
+('bx_tasks_states', '4', 4, '_bx_tasks_state_4', ''),
|
|
|
+('bx_tasks_states', '5', 5, '_bx_tasks_state_5', ''),
|
|
|
+('bx_tasks_states', '6', 6, '_bx_tasks_state_6', ''),
|
|
|
+('bx_tasks_states', '7', 7, '_bx_tasks_state_7', '');
|
|
|
+
|
|
|
INSERT INTO `sys_form_pre_lists`(`key`, `title`, `module`, `use_for_sets`) VALUES
|
|
|
('bx_tasks_cats', '_bx_tasks_pre_lists_cats', 'bx_tasks', '0');
|
|
|
|