From 417643cf570b8a0dafa2b6ac188156f64f905496 Mon Sep 17 00:00:00 2001 From: Sebastian Kreisel Date: Tue, 10 Oct 2017 18:40:14 +0200 Subject: [PATCH 1/7] Add: Web JSON portal type --- .../portal_types/Web%20JSON.xml | 58 +++++++++++++++++++ bt5/erp5_web/bt/template_portal_type_id_list | 1 + 2 files changed, 59 insertions(+) create mode 100644 bt5/erp5_web/PortalTypeTemplateItem/portal_types/Web%20JSON.xml diff --git a/bt5/erp5_web/PortalTypeTemplateItem/portal_types/Web%20JSON.xml b/bt5/erp5_web/PortalTypeTemplateItem/portal_types/Web%20JSON.xml new file mode 100644 index 00000000000..516dc8c70f0 --- /dev/null +++ b/bt5/erp5_web/PortalTypeTemplateItem/portal_types/Web%20JSON.xml @@ -0,0 +1,58 @@ + + + + + + + + + + content_icon + + + + + + description + Storage for Data Notebooks + + + id + Web JSON + + + init_script + + + + + + permission + + + + + + portal_type + JSON Type + + + type_class + TextDocument + + + type_interface + + + + + + type_mixin + + + + + + + + diff --git a/bt5/erp5_web/bt/template_portal_type_id_list b/bt5/erp5_web/bt/template_portal_type_id_list index aad031e2032..faa5298f262 100644 --- a/bt5/erp5_web/bt/template_portal_type_id_list +++ b/bt5/erp5_web/bt/template_portal_type_id_list @@ -1,4 +1,5 @@ Static Web Section +Web JSON Web Page Web Page Module Web Section -- 2.30.9 From eee8a2309d6383651dfbdaf1f15bb23ae2de0af2 Mon Sep 17 00:00:00 2001 From: Sebastian Kreisel Date: Mon, 23 Oct 2017 15:11:22 +0200 Subject: [PATCH 2/7] Add: Web JSON views --- .../portal_types/Web%20Page%20Module.xml | 20 +- .../portal_skins/erp5_web/WebJSON_view.xml | 131 ++++++++ .../erp5_web/WebJSON_view/my_text_content.xml | 280 ++++++++++++++++++ 3 files changed, 429 insertions(+), 2 deletions(-) create mode 100644 bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view.xml create mode 100644 bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view/my_text_content.xml diff --git a/bt5/erp5_web/PortalTypeTemplateItem/portal_types/Web%20Page%20Module.xml b/bt5/erp5_web/PortalTypeTemplateItem/portal_types/Web%20Page%20Module.xml index be739e3f79b..5e032977787 100644 --- a/bt5/erp5_web/PortalTypeTemplateItem/portal_types/Web%20Page%20Module.xml +++ b/bt5/erp5_web/PortalTypeTemplateItem/portal_types/Web%20Page%20Module.xml @@ -64,11 +64,15 @@ be a problem). init_script - + + + permission - + + + title @@ -78,6 +82,18 @@ be a problem). type_class Folder + + type_interface + + + + + + type_mixin + + + + diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view.xml new file mode 100644 index 00000000000..3c3cc4b8767 --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view.xml @@ -0,0 +1,131 @@ + + + + + + + + + + _objects + + + + + + action + Base_edit + + + description + + + + edit_order + + + + + + encoding + UTF-8 + + + enctype + + + + group_list + + + left + right + center + bottom + hidden + + + + + groups + + + + bottom + + + + + + center + + + + + + hidden + + + + + + left + + + my_text_content + + + + + right + + + + + + + + + id + WebJSON_view + + + method + POST + + + name + WebJSON_view + + + pt + form_view + + + row_length + 4 + + + stored_encoding + UTF-8 + + + title + Web JSON + + + unicode_mode + 0 + + + update_action + + + + update_action_title + + + + + + diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view/my_text_content.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view/my_text_content.xml new file mode 100644 index 00000000000..4338e810dca --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view/my_text_content.xml @@ -0,0 +1,280 @@ + + + + + + + + + + id + my_text_content + + + message_values + + + + external_validator_failed + The input failed the external validator. + + + line_too_long + A line was too long. + + + required_not_found + Input is required but no input given. + + + too_long + You entered too many characters. + + + too_many_lines + You entered too many lines. + + + + + + overrides + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + editable + + + + enabled + + + + external_validator + + + + extra + + + + height + + + + hidden + + + + max_length + + + + max_linelength + + + + max_lines + + + + required + + + + title + + + + unicode + + + + whitespace_preserve + + + + width + + + + + + + tales + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + editable + + + + enabled + + + + external_validator + + + + extra + + + + height + + + + hidden + + + + max_length + + + + max_linelength + + + + max_lines + + + + required + + + + title + + + + unicode + + + + whitespace_preserve + + + + width + + + + + + + values + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + editable + 1 + + + enabled + 1 + + + external_validator + + + + extra + + + + height + 5 + + + hidden + 0 + + + max_length + + + + max_linelength + + + + max_lines + + + + required + 0 + + + title + JSON Content + + + unicode + 0 + + + whitespace_preserve + 0 + + + width + 40 + + + + + + + + -- 2.30.9 From 6bd4720c0646bc5f1a7c9a6f429037ceab04da1a Mon Sep 17 00:00:00 2001 From: Sebastian Kreisel Date: Tue, 28 Nov 2017 14:16:08 +0100 Subject: [PATCH 3/7] erp5_web: Update Web JSON related views and portal types --- .../portal_types/Web%20JSON.xml | 2 +- .../erp5_web/WebJSON_notebookJioView.xml | 135 ++++++++ .../my_creation_date.xml | 272 +++++++++++++++ .../my_modification_date.xml | 272 +++++++++++++++ .../WebJSON_notebookJioView/my_reference.xml | 272 +++++++++++++++ .../my_text_content.xml | 280 ++++++++++++++++ .../WebJSON_notebookJioView/my_title.xml | 272 +++++++++++++++ .../portal_skins/erp5_web/WebJSON_view.xml | 4 + .../WebJSON_view/my_creation_date.xml | 272 +++++++++++++++ .../WebJSON_view/my_modification_date.xml | 272 +++++++++++++++ .../erp5_web/WebJSON_view/my_reference.xml | 272 +++++++++++++++ .../erp5_web/WebJSON_view/my_title.xml | 272 +++++++++++++++ .../WebPageModule_notebookJioView.xml | 125 +++++++ .../WebPageModule_notebookJioView/listbox.xml | 270 +++++++++++++++ .../listbox_effective_date.xml | 101 ++++++ .../listbox_modification_date.xml | 101 ++++++ .../listbox_subject.xml | 314 ++++++++++++++++++ 17 files changed, 3507 insertions(+), 1 deletion(-) create mode 100644 bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView.xml create mode 100644 bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_creation_date.xml create mode 100644 bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_modification_date.xml create mode 100644 bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_reference.xml create mode 100644 bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_text_content.xml create mode 100644 bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_title.xml create mode 100644 bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view/my_creation_date.xml create mode 100644 bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view/my_modification_date.xml create mode 100644 bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view/my_reference.xml create mode 100644 bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view/my_title.xml create mode 100644 bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPageModule_notebookJioView.xml create mode 100644 bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPageModule_notebookJioView/listbox.xml create mode 100644 bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPageModule_notebookJioView/listbox_effective_date.xml create mode 100644 bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPageModule_notebookJioView/listbox_modification_date.xml create mode 100644 bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPageModule_notebookJioView/listbox_subject.xml diff --git a/bt5/erp5_web/PortalTypeTemplateItem/portal_types/Web%20JSON.xml b/bt5/erp5_web/PortalTypeTemplateItem/portal_types/Web%20JSON.xml index 516dc8c70f0..3617b4b3b36 100644 --- a/bt5/erp5_web/PortalTypeTemplateItem/portal_types/Web%20JSON.xml +++ b/bt5/erp5_web/PortalTypeTemplateItem/portal_types/Web%20JSON.xml @@ -38,7 +38,7 @@ type_class - TextDocument + XMLObject type_interface diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView.xml new file mode 100644 index 00000000000..5419486e450 --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView.xml @@ -0,0 +1,135 @@ + + + + + + + + + + _objects + + + + + + action + Base_edit + + + description + + + + edit_order + + + + + + encoding + UTF-8 + + + enctype + + + + group_list + + + left + right + center + bottom + hidden + + + + + groups + + + + bottom + + + + + + center + + + + + + hidden + + + + + + left + + + my_text_content + my_title + my_reference + my_creation_date + my_modification_date + + + + + right + + + + + + + + + id + WebJSON_notebookJioView + + + method + POST + + + name + WebJson_notebookJioView + + + pt + form_view + + + row_length + 4 + + + stored_encoding + UTF-8 + + + title + Notebook Jio View + + + unicode_mode + 0 + + + update_action + + + + update_action_title + + + + + + diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_creation_date.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_creation_date.xml new file mode 100644 index 00000000000..eab03444fcd --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_creation_date.xml @@ -0,0 +1,272 @@ + + + + + + + + + + id + my_creation_date + + + message_values + + + + external_validator_failed + The input failed the external validator. + + + required_not_found + Input is required but no input given. + + + too_long + Too much input was given. + + + + + + overrides + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + + + + editable + + + + enabled + + + + external_validator + + + + extra + + + + hidden + + + + input_type + + + + max_length + + + + required + + + + title + + + + truncate + + + + unicode + + + + whitespace_preserve + + + + + + + tales + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + + + + editable + + + + enabled + + + + external_validator + + + + extra + + + + hidden + + + + input_type + + + + max_length + + + + required + + + + title + + + + truncate + + + + unicode + + + + whitespace_preserve + + + + + + + values + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + 20 + + + editable + 0 + + + enabled + 1 + + + external_validator + + + + extra + + + + hidden + 0 + + + input_type + text + + + max_length + + + + required + 0 + + + title + Creation Date + + + truncate + 0 + + + unicode + 0 + + + whitespace_preserve + 0 + + + + + + + + diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_modification_date.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_modification_date.xml new file mode 100644 index 00000000000..0f4df1aba7d --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_modification_date.xml @@ -0,0 +1,272 @@ + + + + + + + + + + id + my_modification_date + + + message_values + + + + external_validator_failed + The input failed the external validator. + + + required_not_found + Input is required but no input given. + + + too_long + Too much input was given. + + + + + + overrides + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + + + + editable + + + + enabled + + + + external_validator + + + + extra + + + + hidden + + + + input_type + + + + max_length + + + + required + + + + title + + + + truncate + + + + unicode + + + + whitespace_preserve + + + + + + + tales + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + + + + editable + + + + enabled + + + + external_validator + + + + extra + + + + hidden + + + + input_type + + + + max_length + + + + required + + + + title + + + + truncate + + + + unicode + + + + whitespace_preserve + + + + + + + values + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + 20 + + + editable + 0 + + + enabled + 1 + + + external_validator + + + + extra + + + + hidden + 0 + + + input_type + text + + + max_length + + + + required + 0 + + + title + Modification Date + + + truncate + 0 + + + unicode + 0 + + + whitespace_preserve + 0 + + + + + + + + diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_reference.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_reference.xml new file mode 100644 index 00000000000..758ff8086c5 --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_reference.xml @@ -0,0 +1,272 @@ + + + + + + + + + + id + my_reference + + + message_values + + + + external_validator_failed + The input failed the external validator. + + + required_not_found + Input is required but no input given. + + + too_long + Too much input was given. + + + + + + overrides + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + + + + editable + + + + enabled + + + + external_validator + + + + extra + + + + hidden + + + + input_type + + + + max_length + + + + required + + + + title + + + + truncate + + + + unicode + + + + whitespace_preserve + + + + + + + tales + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + + + + editable + + + + enabled + + + + external_validator + + + + extra + + + + hidden + + + + input_type + + + + max_length + + + + required + + + + title + + + + truncate + + + + unicode + + + + whitespace_preserve + + + + + + + values + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + 20 + + + editable + 1 + + + enabled + 1 + + + external_validator + + + + extra + + + + hidden + 0 + + + input_type + text + + + max_length + + + + required + 0 + + + title + Reference + + + truncate + 0 + + + unicode + 0 + + + whitespace_preserve + 0 + + + + + + + + diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_text_content.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_text_content.xml new file mode 100644 index 00000000000..4338e810dca --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_text_content.xml @@ -0,0 +1,280 @@ + + + + + + + + + + id + my_text_content + + + message_values + + + + external_validator_failed + The input failed the external validator. + + + line_too_long + A line was too long. + + + required_not_found + Input is required but no input given. + + + too_long + You entered too many characters. + + + too_many_lines + You entered too many lines. + + + + + + overrides + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + editable + + + + enabled + + + + external_validator + + + + extra + + + + height + + + + hidden + + + + max_length + + + + max_linelength + + + + max_lines + + + + required + + + + title + + + + unicode + + + + whitespace_preserve + + + + width + + + + + + + tales + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + editable + + + + enabled + + + + external_validator + + + + extra + + + + height + + + + hidden + + + + max_length + + + + max_linelength + + + + max_lines + + + + required + + + + title + + + + unicode + + + + whitespace_preserve + + + + width + + + + + + + values + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + editable + 1 + + + enabled + 1 + + + external_validator + + + + extra + + + + height + 5 + + + hidden + 0 + + + max_length + + + + max_linelength + + + + max_lines + + + + required + 0 + + + title + JSON Content + + + unicode + 0 + + + whitespace_preserve + 0 + + + width + 40 + + + + + + + + diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_title.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_title.xml new file mode 100644 index 00000000000..4cc7d2e889b --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_title.xml @@ -0,0 +1,272 @@ + + + + + + + + + + id + my_title + + + message_values + + + + external_validator_failed + The input failed the external validator. + + + required_not_found + Input is required but no input given. + + + too_long + Too much input was given. + + + + + + overrides + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + + + + editable + + + + enabled + + + + external_validator + + + + extra + + + + hidden + + + + input_type + + + + max_length + + + + required + + + + title + + + + truncate + + + + unicode + + + + whitespace_preserve + + + + + + + tales + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + + + + editable + + + + enabled + + + + external_validator + + + + extra + + + + hidden + + + + input_type + + + + max_length + + + + required + + + + title + + + + truncate + + + + unicode + + + + whitespace_preserve + + + + + + + values + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + 20 + + + editable + 1 + + + enabled + 1 + + + external_validator + + + + extra + + + + hidden + 0 + + + input_type + text + + + max_length + + + + required + 0 + + + title + Title + + + truncate + 0 + + + unicode + 0 + + + whitespace_preserve + 0 + + + + + + + + diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view.xml index 3c3cc4b8767..ad3efac5b72 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view.xml @@ -73,6 +73,10 @@ my_text_content + my_title + my_reference + my_creation_date + my_modification_date diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view/my_creation_date.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view/my_creation_date.xml new file mode 100644 index 00000000000..eab03444fcd --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view/my_creation_date.xml @@ -0,0 +1,272 @@ + + + + + + + + + + id + my_creation_date + + + message_values + + + + external_validator_failed + The input failed the external validator. + + + required_not_found + Input is required but no input given. + + + too_long + Too much input was given. + + + + + + overrides + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + + + + editable + + + + enabled + + + + external_validator + + + + extra + + + + hidden + + + + input_type + + + + max_length + + + + required + + + + title + + + + truncate + + + + unicode + + + + whitespace_preserve + + + + + + + tales + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + + + + editable + + + + enabled + + + + external_validator + + + + extra + + + + hidden + + + + input_type + + + + max_length + + + + required + + + + title + + + + truncate + + + + unicode + + + + whitespace_preserve + + + + + + + values + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + 20 + + + editable + 0 + + + enabled + 1 + + + external_validator + + + + extra + + + + hidden + 0 + + + input_type + text + + + max_length + + + + required + 0 + + + title + Creation Date + + + truncate + 0 + + + unicode + 0 + + + whitespace_preserve + 0 + + + + + + + + diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view/my_modification_date.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view/my_modification_date.xml new file mode 100644 index 00000000000..0f4df1aba7d --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view/my_modification_date.xml @@ -0,0 +1,272 @@ + + + + + + + + + + id + my_modification_date + + + message_values + + + + external_validator_failed + The input failed the external validator. + + + required_not_found + Input is required but no input given. + + + too_long + Too much input was given. + + + + + + overrides + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + + + + editable + + + + enabled + + + + external_validator + + + + extra + + + + hidden + + + + input_type + + + + max_length + + + + required + + + + title + + + + truncate + + + + unicode + + + + whitespace_preserve + + + + + + + tales + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + + + + editable + + + + enabled + + + + external_validator + + + + extra + + + + hidden + + + + input_type + + + + max_length + + + + required + + + + title + + + + truncate + + + + unicode + + + + whitespace_preserve + + + + + + + values + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + 20 + + + editable + 0 + + + enabled + 1 + + + external_validator + + + + extra + + + + hidden + 0 + + + input_type + text + + + max_length + + + + required + 0 + + + title + Modification Date + + + truncate + 0 + + + unicode + 0 + + + whitespace_preserve + 0 + + + + + + + + diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view/my_reference.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view/my_reference.xml new file mode 100644 index 00000000000..758ff8086c5 --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view/my_reference.xml @@ -0,0 +1,272 @@ + + + + + + + + + + id + my_reference + + + message_values + + + + external_validator_failed + The input failed the external validator. + + + required_not_found + Input is required but no input given. + + + too_long + Too much input was given. + + + + + + overrides + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + + + + editable + + + + enabled + + + + external_validator + + + + extra + + + + hidden + + + + input_type + + + + max_length + + + + required + + + + title + + + + truncate + + + + unicode + + + + whitespace_preserve + + + + + + + tales + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + + + + editable + + + + enabled + + + + external_validator + + + + extra + + + + hidden + + + + input_type + + + + max_length + + + + required + + + + title + + + + truncate + + + + unicode + + + + whitespace_preserve + + + + + + + values + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + 20 + + + editable + 1 + + + enabled + 1 + + + external_validator + + + + extra + + + + hidden + 0 + + + input_type + text + + + max_length + + + + required + 0 + + + title + Reference + + + truncate + 0 + + + unicode + 0 + + + whitespace_preserve + 0 + + + + + + + + diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view/my_title.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view/my_title.xml new file mode 100644 index 00000000000..4cc7d2e889b --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_view/my_title.xml @@ -0,0 +1,272 @@ + + + + + + + + + + id + my_title + + + message_values + + + + external_validator_failed + The input failed the external validator. + + + required_not_found + Input is required but no input given. + + + too_long + Too much input was given. + + + + + + overrides + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + + + + editable + + + + enabled + + + + external_validator + + + + extra + + + + hidden + + + + input_type + + + + max_length + + + + required + + + + title + + + + truncate + + + + unicode + + + + whitespace_preserve + + + + + + + tales + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + + + + editable + + + + enabled + + + + external_validator + + + + extra + + + + hidden + + + + input_type + + + + max_length + + + + required + + + + title + + + + truncate + + + + unicode + + + + whitespace_preserve + + + + + + + values + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + display_maxwidth + + + + display_width + 20 + + + editable + 1 + + + enabled + 1 + + + external_validator + + + + extra + + + + hidden + 0 + + + input_type + text + + + max_length + + + + required + 0 + + + title + Title + + + truncate + 0 + + + unicode + 0 + + + whitespace_preserve + 0 + + + + + + + + diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPageModule_notebookJioView.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPageModule_notebookJioView.xml new file mode 100644 index 00000000000..6355f64fb40 --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPageModule_notebookJioView.xml @@ -0,0 +1,125 @@ + + + + + + + + + + _bind_names + + + + + + + + + + _asgns + + + + + + + + + + + _objects + + + + + + action + Base_doSelect + + + encoding + UTF-8 + + + enctype + + + + group_list + + + bottom + hidden + + + + + groups + + + + bottom + + + listbox + + + + + hidden + + + listbox_effective_date + listbox_subject + listbox_modification_date + + + + + + + + id + WebPageModule_notebookJioView + + + method + POST + + + name + WebPageModule_viewWebPageList + + + pt + form_list + + + rid + -1722436574 + + + row_length + 4 + + + stored_encoding + UTF-8 + + + title + Web Pages + + + unicode_mode + 0 + + + update_action + + + + + + diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPageModule_notebookJioView/listbox.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPageModule_notebookJioView/listbox.xml new file mode 100644 index 00000000000..c8d0ddf99fe --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPageModule_notebookJioView/listbox.xml @@ -0,0 +1,270 @@ + + + + + + + + + + delegated_list + + + all_columns + columns + domain_root_list + domain_tree + editable_columns + selection_name + title + + + + + id + listbox + + + message_values + + + + external_validator_failed + The input failed the external validator. + + + + + + overrides + + + + field_id + + + + form_id + + + + target + + + + + + + tales + + + + field_id + + + + form_id + + + + target + + + + + + + values + + + + all_columns + + + + id + ID + + + reference + Reference + + + short_title + Short Title + + + title + Long Title + + + description + Description + + + version + Version + + + language + Language + + + int_index + Index + + + translated_validation_state_title + State + + + follow_up_title + Follow-up + + + publication_section_translated_title + Publication Section + + + group_translated_title + Group + + + site_translated_title + Site + + + function_translated_title + Function + + + subject + Keywords + + + contributor_title + Contributors + + + effective_date + Publication Date + + + description + Description + + + translated_portal_type + Type + + + owner_title + Owner + + + creation_date + Creation Date + + + modification_date + Modification Date + + + + + + columns + + + + reference + Reference + + + short_title + Short Title + + + title + Long Title + + + description + Description + + + version + Version + + + language + Language + + + modification_date + Modification Date + + + translated_validation_state_title + State + + + + + + domain_root_list + + + + publication_section + Publication Section + + + + + + domain_tree + 1 + + + editable_columns + + + + creation_date + Creation Date + + + modification_date + Modification Date + + + + + + field_id + my_list_mode_listbox + + + form_id + Base_viewWebFieldLibrary + + + selection_name + web_page_module_view_web_page_list_selection + + + target + Click to edit the target + + + title + Web Pages + + + + + + + + diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPageModule_notebookJioView/listbox_effective_date.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPageModule_notebookJioView/listbox_effective_date.xml new file mode 100644 index 00000000000..fff69cc567a --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPageModule_notebookJioView/listbox_effective_date.xml @@ -0,0 +1,101 @@ + + + + + + + + + + delegated_list + + + title + editable + + + + + id + listbox_effective_date + + + message_values + + + + external_validator_failed + The input failed the external validator. + + + + + + overrides + + + + field_id + + + + form_id + + + + target + + + + + + + tales + + + + field_id + + + + form_id + + + + target + + + + + + + values + + + + editable + 0 + + + field_id + my_date + + + form_id + Base_viewWebFieldLibrary + + + target + Click to edit the target + + + title + Modification Date + + + + + + + + diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPageModule_notebookJioView/listbox_modification_date.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPageModule_notebookJioView/listbox_modification_date.xml new file mode 100644 index 00000000000..a9cc9570059 --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPageModule_notebookJioView/listbox_modification_date.xml @@ -0,0 +1,101 @@ + + + + + + + + + + delegated_list + + + title + editable + + + + + id + listbox_modification_date + + + message_values + + + + external_validator_failed + The input failed the external validator. + + + + + + overrides + + + + field_id + + + + form_id + + + + target + + + + + + + tales + + + + field_id + + + + form_id + + + + target + + + + + + + values + + + + editable + 0 + + + field_id + my_date + + + form_id + Base_viewWebFieldLibrary + + + target + Click to edit the target + + + title + Modification Date + + + + + + + + diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPageModule_notebookJioView/listbox_subject.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPageModule_notebookJioView/listbox_subject.xml new file mode 100644 index 00000000000..fd0ecff9da5 --- /dev/null +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPageModule_notebookJioView/listbox_subject.xml @@ -0,0 +1,314 @@ + + + + + + + + + + id + listbox_subject + + + message_values + + + + external_validator_failed + The input failed the external validator. + + + line_too_long + A line was too long. + + + required_not_found + Input is required but no input given. + + + too_long + You entered too many characters. + + + too_many_lines + You entered too many lines. + + + + + + overrides + + + + alternate_name + + + + css_class + + + + default + + + + description + + + + editable + + + + enabled + + + + external_validator + + + + extra + + + + height + + + + hidden + + + + max_length + + + + max_linelength + + + + max_lines + + + + required + + + + title + + + + unicode + + + + view_separator + + + + whitespace_preserve + + + + width + + + + + + + tales + + + + alternate_name + + + + css_class + + + + default + + AAAAAAAAAAI= + + + + description + + + + editable + + + + enabled + + + + external_validator + + + + extra + + + + height + + + + hidden + + + + max_length + + + + max_linelength + + + + max_lines + + + + required + + + + title + + + + unicode + + + + view_separator + + + + whitespace_preserve + + + + width + + + + + + + values + + + + alternate_name + + + + css_class + + + + default + + + + + + description + + + + editable + 1 + + + enabled + 1 + + + external_validator + + + + extra + + + + height + 5 + + + hidden + 0 + + + max_length + + + + max_linelength + + + + max_lines + + + + required + 0 + + + title + Keywords + + + unicode + 0 + + + view_separator + \n + + +]]> + + + whitespace_preserve + 0 + + + width + 40 + + + + + + + + + + + + + + + _text + cell/getSubjectList + + + + + -- 2.30.9 From a84c7c7fd10ea006543081ceb4838feaa76515b5 Mon Sep 17 00:00:00 2001 From: Sebastian Kreisel Date: Thu, 30 Nov 2017 13:55:40 +0100 Subject: [PATCH 4/7] erp5_web: Add erp5_json_type to dependency list --- bt5/erp5_web/bt/dependency_list | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bt5/erp5_web/bt/dependency_list b/bt5/erp5_web/bt/dependency_list index 750584dd7d0..85a09643494 100644 --- a/bt5/erp5_web/bt/dependency_list +++ b/bt5/erp5_web/bt/dependency_list @@ -2,4 +2,5 @@ erp5_core (>= 5.4.3) erp5_xhtml_style erp5_base erp5_jquery -erp5_knowledge_pad \ No newline at end of file +erp5_knowledge_pad +erp5_json_type \ No newline at end of file -- 2.30.9 From e90074206227db156f25384ef137afdecccac684 Mon Sep 17 00:00:00 2001 From: Sebastian Kreisel Date: Thu, 30 Nov 2017 13:57:49 +0100 Subject: [PATCH 5/7] erp5_web: Update jio view date fields to avoid JSON date parsing error --- .../my_creation_date.xml | 17 ++++++++++++++++- .../my_modification_date.xml | 17 ++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_creation_date.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_creation_date.xml index eab03444fcd..9b6a3d6d128 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_creation_date.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_creation_date.xml @@ -122,7 +122,9 @@ default - + + AAAAAAAAAAI= + description @@ -269,4 +271,17 @@ + + + + + + + + _text + python: getattr(here.getStartDate(), \\\'rfc822\\\', lambda x=None: \\\'\\\')() + + + + diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_modification_date.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_modification_date.xml index 0f4df1aba7d..ae944993a14 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_modification_date.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebJSON_notebookJioView/my_modification_date.xml @@ -122,7 +122,9 @@ default - + + AAAAAAAAAAI= + description @@ -269,4 +271,17 @@ + + + + + + + + _text + python: getattr(here.getStartDate(), \\\'rfc822\\\', lambda x=None: \\\'\\\')() + + + + -- 2.30.9 From 5bf2bc18604dea0bf288ee288e4b8524a6d5caca Mon Sep 17 00:00:00 2001 From: Sebastian Kreisel Date: Thu, 30 Nov 2017 17:19:26 +0100 Subject: [PATCH 6/7] erp5_web: Add missing BT configuration, such as actions, allow content type, etc --- .../Web%20JSON/notebook_jio_view.xml | 85 +++++++++++++++++++ .../portal_types/Web%20JSON/view.xml | 85 +++++++++++++++++++ .../portal_types/Web%20JSON/view_editor.xml | 85 +++++++++++++++++++ .../allowed_content_types.xml | 1 + .../property_sheet_list.xml | 3 + bt5/erp5_web/bt/template_action_path_list | 3 + ...late_portal_type_allowed_content_type_list | 1 + .../template_portal_type_property_sheet_list | 1 + 8 files changed, 264 insertions(+) create mode 100644 bt5/erp5_web/ActionTemplateItem/portal_types/Web%20JSON/notebook_jio_view.xml create mode 100644 bt5/erp5_web/ActionTemplateItem/portal_types/Web%20JSON/view.xml create mode 100644 bt5/erp5_web/ActionTemplateItem/portal_types/Web%20JSON/view_editor.xml diff --git a/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20JSON/notebook_jio_view.xml b/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20JSON/notebook_jio_view.xml new file mode 100644 index 00000000000..9258f3da692 --- /dev/null +++ b/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20JSON/notebook_jio_view.xml @@ -0,0 +1,85 @@ + + + + + + + + + + action + + AAAAAAAAAAI= + + + + categories + + + action_type/object_view + + + + + category + object_view + + + condition + + + + description + + + + + + icon + + + + id + notebook_jio_view + + + permissions + + + View + + + + + portal_type + Action Information + + + priority + 4.0 + + + title + Notebook Jio View + + + visible + 1 + + + + + + + + + + + + text + string:${object_url}/WebJSON_notebookJioView + + + + + diff --git a/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20JSON/view.xml b/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20JSON/view.xml new file mode 100644 index 00000000000..7e8b75fbe71 --- /dev/null +++ b/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20JSON/view.xml @@ -0,0 +1,85 @@ + + + + + + + + + + action + + AAAAAAAAAAI= + + + + categories + + + action_type/object_view + + + + + category + object_view + + + condition + + + + description + + + + + + icon + + + + id + view + + + permissions + + + View + + + + + portal_type + Action Information + + + priority + 1.0 + + + title + View + + + visible + 1 + + + + + + + + + + + + text + string:${object_url}/WebJSON_view + + + + + diff --git a/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20JSON/view_editor.xml b/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20JSON/view_editor.xml new file mode 100644 index 00000000000..e069012015e --- /dev/null +++ b/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20JSON/view_editor.xml @@ -0,0 +1,85 @@ + + + + + + + + + + action + + AAAAAAAAAAI= + + + + categories + + + action_type/object_view + + + + + category + object_view + + + condition + + + + description + + + + + + icon + + + + id + view_editor + + + permissions + + + Modify portal content + + + + + portal_type + Action Information + + + priority + 1.1 + + + title + Edit + + + visible + 1 + + + + + + + + + + + + text + string:${object_url}/WebPage_viewEditor + + + + + diff --git a/bt5/erp5_web/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_web/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml index daa3bf30a36..082093e6416 100644 --- a/bt5/erp5_web/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml +++ b/bt5/erp5_web/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml @@ -8,6 +8,7 @@ Embedded File + Web JSON Web Page diff --git a/bt5/erp5_web/PortalTypePropertySheetTemplateItem/property_sheet_list.xml b/bt5/erp5_web/PortalTypePropertySheetTemplateItem/property_sheet_list.xml index 1861db94efc..1cde60fb2a7 100644 --- a/bt5/erp5_web/PortalTypePropertySheetTemplateItem/property_sheet_list.xml +++ b/bt5/erp5_web/PortalTypePropertySheetTemplateItem/property_sheet_list.xml @@ -2,6 +2,9 @@ SortIndex + + TextDocument + Reference SortIndex diff --git a/bt5/erp5_web/bt/template_action_path_list b/bt5/erp5_web/bt/template_action_path_list index a9039059a64..4e672bb17cb 100644 --- a/bt5/erp5_web/bt/template_action_path_list +++ b/bt5/erp5_web/bt/template_action_path_list @@ -9,6 +9,9 @@ Static Web Section | predicate Static Web Section | section_content Static Web Section | view Static Web Section | web_view +Web JSON | notebook_jio_view +Web JSON | view +Web JSON | view_editor Web Page Module | list_ui Web Page Module | sort_on Web Page Module | view diff --git a/bt5/erp5_web/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_web/bt/template_portal_type_allowed_content_type_list index 6bfda5960f6..7eed6c86d05 100644 --- a/bt5/erp5_web/bt/template_portal_type_allowed_content_type_list +++ b/bt5/erp5_web/bt/template_portal_type_allowed_content_type_list @@ -1,6 +1,7 @@ Static Web Section | File Static Web Section | Image Static Web Section | Role Definition +Web Page Module | Web JSON Web Page Module | Web Page Web Page | Embedded File Web Section | File diff --git a/bt5/erp5_web/bt/template_portal_type_property_sheet_list b/bt5/erp5_web/bt/template_portal_type_property_sheet_list index f1abe3fd402..52a96e1a5ce 100644 --- a/bt5/erp5_web/bt/template_portal_type_property_sheet_list +++ b/bt5/erp5_web/bt/template_portal_type_property_sheet_list @@ -1,4 +1,5 @@ Static Web Section | SortIndex +Web JSON | TextDocument Web Page | Reference Web Page | SortIndex Web Section | SortIndex -- 2.30.9 From cf9e869648ad7c0165c216208ded9e88a41c45b7 Mon Sep 17 00:00:00 2001 From: Sebastian Kreisel Date: Thu, 30 Nov 2017 17:46:26 +0100 Subject: [PATCH 7/7] erp5_web: Add yet another missing bt5 config entry --- .../Web%20Page%20Module/notebook_jio_view.xml | 85 +++++++++++++++++++ bt5/erp5_web/bt/template_action_path_list | 1 + 2 files changed, 86 insertions(+) create mode 100644 bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Page%20Module/notebook_jio_view.xml diff --git a/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Page%20Module/notebook_jio_view.xml b/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Page%20Module/notebook_jio_view.xml new file mode 100644 index 00000000000..11cca5110f5 --- /dev/null +++ b/bt5/erp5_web/ActionTemplateItem/portal_types/Web%20Page%20Module/notebook_jio_view.xml @@ -0,0 +1,85 @@ + + + + + + + + + + action + + AAAAAAAAAAI= + + + + categories + + + action_type/object_view + + + + + category + object_view + + + condition + + + + description + + + + + + icon + + + + id + notebook_jio_view + + + permissions + + + View + + + + + portal_type + Action Information + + + priority + 20.0 + + + title + Notebook Jio View + + + visible + 1 + + + + + + + + + + + + text + string:${object_url}/WebPageModule_viewSupportRequestList + + + + + diff --git a/bt5/erp5_web/bt/template_action_path_list b/bt5/erp5_web/bt/template_action_path_list index 4e672bb17cb..4e9c3a42aa5 100644 --- a/bt5/erp5_web/bt/template_action_path_list +++ b/bt5/erp5_web/bt/template_action_path_list @@ -13,6 +13,7 @@ Web JSON | notebook_jio_view Web JSON | view Web JSON | view_editor Web Page Module | list_ui +Web Page Module | notebook_jio_view Web Page Module | sort_on Web Page Module | view Web Page | list -- 2.30.9