Skip to content

Commit 2b6d997

Browse files
committed
fix sql config,
language files fix
1 parent 1a81549 commit 2b6d997

6 files changed

Lines changed: 65 additions & 24 deletions

File tree

data/data_simple.sql

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,50 @@
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
--
2932
INSERT 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+
--
3238
INSERT 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');

data/structure_simple.sql

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ ADD `version` VARCHAR(10) NOT NULL DEFAULT '' AFTER `description`,
33
ADD `budget` FLOAT NOT NULL DEFAULT 0 AFTER `version`,
44
ADD `escalation_cost` FLOAT NOT NULL DEFAULT 0 AFTER `budget`,
55
ADD `escalation_time` VARCHAR(255) NOT NULL DEFAULT '' AFTER `escalation_cost`,
6-
ADD `date_received` DATE NOT NULL DEFAULT '0000-00-00' AFTER `escalation_time`,
7-
ADD `state_idfs` INT(11) NOT NULL DEFAULT '0' AFTER `date_received`,
6+
ADD `planned_release` DATE NOT NULL DEFAULT '0000-00-00' AFTER `escalation_time`,
7+
ADD `state_idfs` INT(11) NOT NULL DEFAULT '0' AFTER `planned_release`,
88
ADD `customer_idfs` INT(11) NOT NULL DEFAULT '0' AFTER `state_idfs`,
9-
ADD `reported_by` INT(11) NOT NULL DEFAULT '0' AFTER `customer_idfs`,
10-
ADD `priority` INT(11) NOT NULL DEFAULT '0' AFTER `reported_by`,
11-
ADD `project` INT(11) NOT NULL DEFAULT '0' AFTER `priority`,
12-
ADD `featured_image` VARCHAR (255) NOT NULL DEFAULT '' AFTER `project`;
9+
ADD `assigned_idfs` INT(11) NOT NULL DEFAULT '0' AFTER `customer_idfs`,
10+
ADD `reported_by_idfs` INT(11) NOT NULL DEFAULT '0' AFTER `assigned_idfs`,
11+
ADD `priority_idfs` INT(11) NOT NULL DEFAULT '0' AFTER `reported_by_idfs`,
12+
ADD `project_idfs` INT(11) NOT NULL DEFAULT '0' AFTER `priority_idfs`,
13+
ADD `featured_image` VARCHAR (255) NOT NULL DEFAULT '' AFTER `project_idfs`;

language/de_DE.mo

336 Bytes
Binary file not shown.

language/de_DE.po

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ msgid ""
22
msgstr ""
33
"Project-Id-Version: \n"
44
"POT-Creation-Date: 2019-02-13 18:38+0100\n"
5-
"PO-Revision-Date: 2020-01-30 18:54+0100\n"
5+
"PO-Revision-Date: 2020-02-04 03:35+0100\n"
66
"Last-Translator: \n"
77
"Language-Team: \n"
88
"MIME-Version: 1.0\n"
@@ -16,9 +16,6 @@ msgstr ""
1616
msgid "Model"
1717
msgstr "Modell"
1818

19-
msgid "Coolant"
20-
msgstr "Kühlmittel"
21-
2219
msgid "Internal"
2320
msgstr "Intern"
2421

@@ -66,3 +63,30 @@ msgstr "Daten"
6663

6764
msgid "Images"
6865
msgstr "Bilder"
66+
67+
msgid "Tasks"
68+
msgstr "Aufgaben"
69+
70+
msgid "Task"
71+
msgstr "Aufgabe"
72+
73+
msgid "Escalation Cost"
74+
msgstr "Eskalationskosten"
75+
76+
msgid "Escalation Time"
77+
msgstr "Eskalationszeit"
78+
79+
msgid "planned Release"
80+
msgstr "geplante Veröffentlichung"
81+
82+
msgid "Project"
83+
msgstr "Projekt"
84+
85+
msgid "Priority"
86+
msgstr "Priorität"
87+
88+
msgid "Assigned to"
89+
msgstr "Zugewiesen an"
90+
91+
msgid "Customer"
92+
msgstr "Kunde"

language/en_US.mo

-13 Bytes
Binary file not shown.

language/en_US.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ msgid ""
22
msgstr ""
33
"Project-Id-Version: \n"
44
"POT-Creation-Date: 2019-02-13 18:38+0100\n"
5-
"PO-Revision-Date: 2020-01-30 18:55+0100\n"
5+
"PO-Revision-Date: 2020-02-04 02:58+0100\n"
66
"Last-Translator: \n"
77
"Language-Team: \n"
88
"MIME-Version: 1.0\n"

0 commit comments

Comments
 (0)