diff --git a/bt5/erp5_officejs_ooffice/PathTemplateItem/portal_types/Presentation/ooffice_clone_document.xml b/bt5/erp5_officejs_ooffice/PathTemplateItem/portal_types/Presentation/ooffice_clone_document.xml new file mode 100644 index 0000000000000000000000000000000000000000..200f474897bcc7c83281c7a127a670c4a6e04289 --- /dev/null +++ b/bt5/erp5_officejs_ooffice/PathTemplateItem/portal_types/Presentation/ooffice_clone_document.xml @@ -0,0 +1,75 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Action Information" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>action_permission</string> </key> + <value> + <tuple> + <string>Add portal content</string> + </tuple> + </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>action_type/object_jio_js_script</string> + </tuple> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>ooffice_clone_document</string> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Action Information</string> </value> + </item> + <item> + <key> <string>reference</string> </key> + <value> <string>ooffice_clone_document</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Clone</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="Expression" module="Products.CMFCore.Expression"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/Base_cloneDocumentForOofficeEditor</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_officejs_ooffice/PathTemplateItem/portal_types/Spreadsheet/ooffice_clone_document.xml b/bt5/erp5_officejs_ooffice/PathTemplateItem/portal_types/Spreadsheet/ooffice_clone_document.xml new file mode 100644 index 0000000000000000000000000000000000000000..200f474897bcc7c83281c7a127a670c4a6e04289 --- /dev/null +++ b/bt5/erp5_officejs_ooffice/PathTemplateItem/portal_types/Spreadsheet/ooffice_clone_document.xml @@ -0,0 +1,75 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Action Information" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>action_permission</string> </key> + <value> + <tuple> + <string>Add portal content</string> + </tuple> + </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>action_type/object_jio_js_script</string> + </tuple> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>ooffice_clone_document</string> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Action Information</string> </value> + </item> + <item> + <key> <string>reference</string> </key> + <value> <string>ooffice_clone_document</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Clone</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="Expression" module="Products.CMFCore.Expression"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/Base_cloneDocumentForOofficeEditor</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_officejs_ooffice/PathTemplateItem/portal_types/Text/ooffice_clone_document.xml b/bt5/erp5_officejs_ooffice/PathTemplateItem/portal_types/Text/ooffice_clone_document.xml new file mode 100644 index 0000000000000000000000000000000000000000..200f474897bcc7c83281c7a127a670c4a6e04289 --- /dev/null +++ b/bt5/erp5_officejs_ooffice/PathTemplateItem/portal_types/Text/ooffice_clone_document.xml @@ -0,0 +1,75 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Action Information" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>action_permission</string> </key> + <value> + <tuple> + <string>Add portal content</string> + </tuple> + </value> + </item> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>action_type/object_jio_js_script</string> + </tuple> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>ooffice_clone_document</string> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Action Information</string> </value> + </item> + <item> + <key> <string>reference</string> </key> + <value> <string>ooffice_clone_document</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Clone</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="Expression" module="Products.CMFCore.Expression"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>text</string> </key> + <value> <string>string:${object_url}/Base_cloneDocumentForOofficeEditor</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_presentation_configuration.xml b/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_presentation_configuration.xml index 7919bfd79df33f8b629edfa811a0a3392fdd1a8e..01bf11ea2b758ce8579d4e03b6afe192c986d9a6 100644 --- a/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_presentation_configuration.xml +++ b/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_presentation_configuration.xml @@ -110,7 +110,7 @@ <item> <key> <string>text_content</string> </key> <value> <string>CONFIGURATION MANIFEST\n -# generated on Fri Dec 13 14:45:53 2019\n +# generated on Wed Sep 16 14:57:47 2020\n CACHE:\n \n hateoas_appcache/definition_view/cG9ydGFsX3R5cGVzL0RvY3VtZW50IE1vZHVsZQ==\n @@ -123,6 +123,8 @@ hateoas_appcache/definition_view/cG9ydGFsX3R5cGVzL1ByZXNlbnRhdGlvbi9vb2ZmaWNlX3B hateoas_appcache/definition_view/cG9ydGFsX3NraW5zL2VycDVfb29mZmljZV9wcmVzZW50YXRpb25fZWRpdG9yL1ByZXNlbnRhdGlvbkRvY3VtZW50X3ZpZXdBc0ppb0Zvck9vZmZpY2VQcmVzZW50YXRpb25FZGl0b3I=\n hateoas_appcache/definition_view/cG9ydGFsX3R5cGVzL1ByZXNlbnRhdGlvbi9vb2ZmaWNlX2Rvd25sb2FkX2RvY3VtZW50\n hateoas_appcache/definition_view/cG9ydGFsX3NraW5zL2VycDVfb29mZmljZV9wcmVzZW50YXRpb25fZWRpdG9yL0Jhc2VfZG93bmxvYWREaWFsb2dGb3JPb2ZmaWNlRWRpdG9y\n +hateoas_appcache/definition_view/cG9ydGFsX3R5cGVzL1ByZXNlbnRhdGlvbi9vb2ZmaWNlX2Nsb25lX2RvY3VtZW50\n +hateoas_appcache/definition_view/cG9ydGFsX3NraW5zL2VycDVfb29mZmljZV9wcmVzZW50YXRpb25fZWRpdG9yL0Jhc2VfY2xvbmVEb2N1bWVudEZvck9vZmZpY2VFZGl0b3I=\n \n NETWORK:\n *</string> </value> diff --git a/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_presentation_router_html.html b/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_presentation_router_html.html index f66e4f1d66f3e5bfece376841fe28b16d3dd48a0..2c8d82f5185428bf7728ed74dfbfcf062a6aff5f 100644 --- a/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_presentation_router_html.html +++ b/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_presentation_router_html.html @@ -20,7 +20,7 @@ <script data-renderjs-configuration="erp5_attachment_synchro" type="text/x-renderjs-configuration">/{+id}/Document_downloadForOnlyOfficeApp</script> <script data-renderjs-configuration="parent_portal_type" type="text/x-renderjs-configuration">Document Module</script> <script data-renderjs-configuration="portal_skin_folder" type="text/x-renderjs-configuration">erp5_ooffice_presentation_editor</script> - <script data-renderjs-configuration="app_actions" type="text/x-renderjs-configuration">('Presentation | ooffice_presentation_view', 'Document Module | ooffice_presentation_view', 'Document Module | ooffice_upload_document', 'Presentation | ooffice_download_document')</script> + <script data-renderjs-configuration="app_actions" type="text/x-renderjs-configuration">('Presentation | ooffice_presentation_view', 'Document Module | ooffice_presentation_view', 'Document Module | ooffice_upload_document', 'Presentation | ooffice_download_document', 'Presentation | ooffice_clone_document')</script> <script data-renderjs-configuration="app_allowed_sub_types" type="text/x-renderjs-configuration">('Document Module | Presentation',)</script> <script data-renderjs-configuration="app_view_reference" type="text/x-renderjs-configuration">ooffice_presentation_view</script> <script data-renderjs-configuration="document_module_dict" type="text/x-renderjs-configuration">{"front_page": 1, "editable": 0, "hide_add_button": 0, "jump_button": 0, "fast_input_button": 0, "export_button": 0, "filter_action": 1, "panel_action": 1, "previous_next_button": 0, "history_previous_link": 0, "title": "Presentations", "hide_listbox_buttons": 1, "blob_type": "", "blob_create_object_url": 0, "file_extension": "ppty"}</script> diff --git a/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_presentation_router_html.xml b/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_presentation_router_html.xml index 1d0f64fe4eaf7a8a12bddf7a95df380e2e68371d..a99e6124f86560d42cc9cca00963410b4d209701 100644 --- a/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_presentation_router_html.xml +++ b/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_presentation_router_html.xml @@ -247,7 +247,7 @@ </item> <item> <key> <string>serial</string> </key> - <value> <string>978.47147.36512.64972</string> </value> + <value> <string>985.55190.40762.13994</string> </value> </item> <item> <key> <string>state</string> </key> @@ -265,7 +265,7 @@ </tuple> <state> <tuple> - <float>1569594956.42</float> + <float>1600265054.22</float> <string>UTC</string> </tuple> </state> diff --git a/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_spreadsheet_configuration.xml b/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_spreadsheet_configuration.xml index f509530427a9db184429bd674f9437e3bb37ed81..fa00f82bf3162823ef24f127d8ba103ff54a9e2c 100644 --- a/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_spreadsheet_configuration.xml +++ b/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_spreadsheet_configuration.xml @@ -110,7 +110,7 @@ <item> <key> <string>text_content</string> </key> <value> <string>CONFIGURATION MANIFEST\n -# generated on Fri Dec 13 14:45:53 2019\n +# generated on Wed Sep 16 14:57:27 2020\n CACHE:\n \n hateoas_appcache/definition_view/cG9ydGFsX3R5cGVzL0RvY3VtZW50IE1vZHVsZQ==\n @@ -123,6 +123,8 @@ hateoas_appcache/definition_view/cG9ydGFsX3R5cGVzL1NwcmVhZHNoZWV0L29vZmZpY2Vfc3B hateoas_appcache/definition_view/cG9ydGFsX3NraW5zL2VycDVfb29mZmljZV9zcHJlYWRzaGVldF9lZGl0b3IvU3ByZWFkc2hlZXREb2N1bWVudF92aWV3QXNKaW9Gb3JPb2ZmaWNlU3ByZWFkc2hlZXRFZGl0b3I=\n hateoas_appcache/definition_view/cG9ydGFsX3R5cGVzL1NwcmVhZHNoZWV0L29vZmZpY2VfZG93bmxvYWRfZG9jdW1lbnQ=\n hateoas_appcache/definition_view/cG9ydGFsX3NraW5zL2VycDVfb29mZmljZV9zcHJlYWRzaGVldF9lZGl0b3IvQmFzZV9kb3dubG9hZERpYWxvZ0Zvck9vZmZpY2VFZGl0b3I=\n +hateoas_appcache/definition_view/cG9ydGFsX3R5cGVzL1NwcmVhZHNoZWV0L29vZmZpY2VfY2xvbmVfZG9jdW1lbnQ=\n +hateoas_appcache/definition_view/cG9ydGFsX3NraW5zL2VycDVfb29mZmljZV9zcHJlYWRzaGVldF9lZGl0b3IvQmFzZV9jbG9uZURvY3VtZW50Rm9yT29mZmljZUVkaXRvcg==\n \n NETWORK:\n *</string> </value> diff --git a/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_spreadsheet_router_html.html b/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_spreadsheet_router_html.html index cb889382b02b487ea67b790f656c5b7557f7c0ec..51d533015338568ac1ffd6e53dccf8cc765c27bc 100644 --- a/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_spreadsheet_router_html.html +++ b/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_spreadsheet_router_html.html @@ -19,7 +19,7 @@ <script data-renderjs-configuration="parent_relative_url" type="text/x-renderjs-configuration">document_module</script> <script data-renderjs-configuration="parent_portal_type" type="text/x-renderjs-configuration">Document Module</script> <script data-renderjs-configuration="portal_skin_folder" type="text/x-renderjs-configuration">erp5_ooffice_spreadsheet_editor</script> - <script data-renderjs-configuration="app_actions" type="text/x-renderjs-configuration">('Spreadsheet | ooffice_spreadsheet_view', 'Document Module | ooffice_spreadsheet_view', 'Document Module | ooffice_upload_document', 'Spreadsheet | ooffice_download_document')</script> + <script data-renderjs-configuration="app_actions" type="text/x-renderjs-configuration">('Spreadsheet | ooffice_spreadsheet_view', 'Document Module | ooffice_spreadsheet_view', 'Document Module | ooffice_upload_document', 'Spreadsheet | ooffice_download_document', 'Spreadsheet | ooffice_clone_document')</script> <script data-renderjs-configuration="app_allowed_sub_types" type="text/x-renderjs-configuration">('Document Module | Spreadsheet',)</script> <script data-renderjs-configuration="app_view_reference" type="text/x-renderjs-configuration">ooffice_spreadsheet_view</script> <script data-renderjs-configuration="document_module_dict" type="text/x-renderjs-configuration">{"front_page": 1, "editable": 0, "hide_add_button": 0, "jump_button": 0, "fast_input_button": 0, "export_button": 0, "filter_action": 1, "panel_action": 1, "previous_next_button": 0, "history_previous_link": 0, "title": "Spreadsheets", "hide_listbox_buttons": 1, "blob_type": "", "blob_create_object_url": 0, "file_extension": "xlsy"}</script> diff --git a/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_spreadsheet_router_html.xml b/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_spreadsheet_router_html.xml index 92bb31bf453eca385f4da7295c9a332db30a47cc..cac0cc667ed644c70c613e8cd1376187988b4a74 100644 --- a/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_spreadsheet_router_html.xml +++ b/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_spreadsheet_router_html.xml @@ -247,7 +247,7 @@ </item> <item> <key> <string>serial</string> </key> - <value> <string>978.54003.36064.54033</string> </value> + <value> <string>985.55190.40762.13994</string> </value> </item> <item> <key> <string>state</string> </key> @@ -265,7 +265,7 @@ </tuple> <state> <tuple> - <float>1569922449.65</float> + <float>1600265032.78</float> <string>UTC</string> </tuple> </state> diff --git a/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_text_configuration.xml b/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_text_configuration.xml index 10c5d3bcdb896794d32c6ab0f9bf2322937b50ee..36475deeb439db02aa2ded8b760230a8d40c29e1 100644 --- a/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_text_configuration.xml +++ b/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_text_configuration.xml @@ -110,7 +110,7 @@ <item> <key> <string>text_content</string> </key> <value> <string>CONFIGURATION MANIFEST\n -# generated on Fri Dec 13 14:45:53 2019\n +# generated on Wed Sep 16 14:57:17 2020\n CACHE:\n \n hateoas_appcache/definition_view/cG9ydGFsX3R5cGVzL1RleHQ=\n @@ -118,6 +118,8 @@ hateoas_appcache/definition_view/cG9ydGFsX3R5cGVzL1RleHQvb29mZmljZV90ZXh0X3ZpZXc hateoas_appcache/definition_view/cG9ydGFsX3NraW5zL2VycDVfb29mZmljZV90ZXh0X2VkaXRvci9UZXh0RG9jdW1lbnRfdmlld0FzSmlvRm9yT29mZmljZVRleHRFZGl0b3I=\n hateoas_appcache/definition_view/cG9ydGFsX3R5cGVzL1RleHQvb29mZmljZV9kb3dubG9hZF9kb2N1bWVudA==\n hateoas_appcache/definition_view/cG9ydGFsX3NraW5zL2VycDVfb29mZmljZV90ZXh0X2VkaXRvci9CYXNlX2Rvd25sb2FkRGlhbG9nRm9yT29mZmljZUVkaXRvcg==\n +hateoas_appcache/definition_view/cG9ydGFsX3R5cGVzL1RleHQvb29mZmljZV9jbG9uZV9kb2N1bWVudA==\n +hateoas_appcache/definition_view/cG9ydGFsX3NraW5zL2VycDVfb29mZmljZV90ZXh0X2VkaXRvci9CYXNlX2Nsb25lRG9jdW1lbnRGb3JPb2ZmaWNlRWRpdG9y\n hateoas_appcache/definition_view/cG9ydGFsX3R5cGVzL0RvY3VtZW50IE1vZHVsZQ==\n hateoas_appcache/definition_view/cG9ydGFsX3R5cGVzL0RvY3VtZW50IE1vZHVsZS9vb2ZmaWNlX3RleHRfdmlldw==\n hateoas_appcache/definition_view/cG9ydGFsX3NraW5zL2VycDVfb29mZmljZV90ZXh0X2VkaXRvci9Eb2N1bWVudE1vZHVsZV92aWV3RG9jdW1lbnRMaXN0QXNKaW9Gb3JPb2ZmaWNlVGV4dEVkaXRvcg==\n diff --git a/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_text_router.html.html b/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_text_router.html.html index 9f342b23b371f67d025ba180b1a25bd61b1ffebb..ef51bb8486e8e458714e21186a0292ccf7c16b51 100644 --- a/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_text_router.html.html +++ b/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_text_router.html.html @@ -22,7 +22,7 @@ <script data-renderjs-configuration="content_type" type="text/x-renderjs-configuration">application/x-asc-text</script> <script data-renderjs-configuration="parent_portal_type" type="text/x-renderjs-configuration">Document Module</script> <script data-renderjs-configuration="portal_skin_folder" type="text/x-renderjs-configuration">erp5_ooffice_text_editor</script> - <script data-renderjs-configuration="app_actions" type="text/x-renderjs-configuration">('Text | ooffice_text_view', 'Document Module | ooffice_text_view', 'Document Module | ooffice_upload_document', 'Text | ooffice_download_document')</script> + <script data-renderjs-configuration="app_actions" type="text/x-renderjs-configuration">('Text | ooffice_text_view', 'Document Module | ooffice_text_view', 'Document Module | ooffice_upload_document', 'Text | ooffice_download_document', 'Text | ooffice_clone_document')</script> <script data-renderjs-configuration="app_allowed_sub_types" type="text/x-renderjs-configuration">('Document Module | Text',)</script> <script data-renderjs-configuration="app_view_reference" type="text/x-renderjs-configuration">ooffice_text_view</script> <script data-renderjs-configuration="document_module_dict" type="text/x-renderjs-configuration">{"front_page": 1, "editable": 0, "hide_add_button": 0, "jump_button": 0, "fast_input_button": 0, "export_button": 0, "filter_action": 1, "panel_action": 1, "previous_next_button": 0, "history_previous_link": 0, "title": "Text Documents", "hide_listbox_buttons": 1, "blob_type": "", "blob_create_object_url": 0, "file_extension": "docy"}</script> diff --git a/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_text_router.html.xml b/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_text_router.html.xml index 64a087f95f17af1d9a53c174514f270a57476930..ca9e1bd48f5bacdb274434b0330fc3b408d2aabd 100644 --- a/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_text_router.html.xml +++ b/bt5/erp5_officejs_ooffice/PathTemplateItem/web_page_module/gadget_ooffice_text_router.html.xml @@ -247,7 +247,7 @@ </item> <item> <key> <string>serial</string> </key> - <value> <string>978.46962.63675.39185</string> </value> + <value> <string>985.55190.40762.13994</string> </value> </item> <item> <key> <string>state</string> </key> @@ -265,7 +265,7 @@ </tuple> <state> <tuple> - <float>1569592995.31</float> + <float>1600265042.71</float> <string>UTC</string> </tuple> </state> diff --git a/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_common/only_office_document_view.js.js b/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_common/only_office_document_view.js.js index 69add1eea81341da139543da6756e4824a4401df..4013e9b6ccdd51020564919db1cb29b9efbb427d 100644 --- a/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_common/only_office_document_view.js.js +++ b/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_common/only_office_document_view.js.js @@ -11,6 +11,8 @@ .declareAcquiredMethod("getSetting", "getSetting") .declareAcquiredMethod("notifySubmitted", "notifySubmitted") .declareAcquiredMethod("notifySubmitting", "notifySubmitting") + .declareAcquiredMethod("jio_put", "jio_put") + .declareAcquiredMethod("jio_get", "jio_get") .declareAcquiredMethod("jio_getAttachment", "jio_getAttachment") .declareAcquiredMethod("jio_putAttachment", "jio_putAttachment") @@ -119,9 +121,16 @@ name_list.push(view_gadget.state.mime_type); content_dict.filename = name_list.join('.'); } - return child_gadget.submitContent( - child_gadget.state.jio_key, undefined, content_dict - ); + return gadget.jio_get(child_gadget.state.jio_key); + }) + .push(function (doc) { + var property; + for (property in content_dict) { + if (content_dict.hasOwnProperty(property)) { + doc[property] = content_dict[property]; + } + } + return gadget.jio_put(child_gadget.state.jio_key, doc); }) .push(function () { if (view_gadget.state.content_editable) { @@ -137,6 +146,12 @@ format: view_gadget.state.mime_type, jio_key: child_gadget.state.jio_key }); + }) + .push(function () { + return gadget.notifySubmitted({ + message: "Data Updated", + status: "success" + }); }); } }, function (error) { diff --git a/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_presentation_editor/Base_cloneDocumentForOofficeEditor.xml b/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_presentation_editor/Base_cloneDocumentForOofficeEditor.xml new file mode 100644 index 0000000000000000000000000000000000000000..574f453f33e07ed54bdec5f800b2565dd89a4a0c --- /dev/null +++ b/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_presentation_editor/Base_cloneDocumentForOofficeEditor.xml @@ -0,0 +1,135 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ERP5 Form" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>action_title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>edit_order</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>enctype</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <list> + <string>left</string> + <string>right</string> + <string>center</string> + <string>bottom</string> + <string>hidden</string> + </list> + </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <dictionary> + <item> + <key> <string>bottom</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>center</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>left</string> </key> + <value> + <list> + <string>gadget_field_action_js_script</string> + </list> + </value> + </item> + <item> + <key> <string>right</string> </key> + <value> + <list/> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Base_cloneDocumentForOofficeEditor</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>OnlyOfficeEditor_cloneDocument</string> </value> + </item> + <item> + <key> <string>pt</string> </key> + <value> <string>form_dialog</string> </value> + </item> + <item> + <key> <string>row_length</string> </key> + <value> <int>4</int> </value> + </item> + <item> + <key> <string>stored_encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Clone</string> </value> + </item> + <item> + <key> <string>unicode_mode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_action</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>update_action_title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_presentation_editor/Base_cloneDocumentForOofficeEditor/gadget_field_action_js_script.xml b/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_presentation_editor/Base_cloneDocumentForOofficeEditor/gadget_field_action_js_script.xml new file mode 100644 index 0000000000000000000000000000000000000000..3927c487a5f8bd74e660a0ec38a2b997535623a3 --- /dev/null +++ b/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_presentation_editor/Base_cloneDocumentForOofficeEditor/gadget_field_action_js_script.xml @@ -0,0 +1,246 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="GadgetField" module="Products.ERP5Form.GadgetField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>gadget_field_action_js_script</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>no_validator</string> </key> + <value> <string>Does not support this operation.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>data_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>gadget_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>js_sandbox</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>renderjs_extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>validator_field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>validator_form_id</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>data_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>gadget_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>js_sandbox</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>renderjs_extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>validator_field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>validator_form_id</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>data_url</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>gadget_url</string> </key> + <value> <string>action_clone.html</string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>js_sandbox</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>renderjs_extra</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>gadget_field_action_js_script</string> </value> + </item> + <item> + <key> <string>validator_field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>validator_form_id</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_spreadsheet_editor/Base_cloneDocumentForOofficeEditor.xml b/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_spreadsheet_editor/Base_cloneDocumentForOofficeEditor.xml new file mode 100644 index 0000000000000000000000000000000000000000..574f453f33e07ed54bdec5f800b2565dd89a4a0c --- /dev/null +++ b/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_spreadsheet_editor/Base_cloneDocumentForOofficeEditor.xml @@ -0,0 +1,135 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ERP5 Form" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>action_title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>edit_order</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>enctype</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <list> + <string>left</string> + <string>right</string> + <string>center</string> + <string>bottom</string> + <string>hidden</string> + </list> + </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <dictionary> + <item> + <key> <string>bottom</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>center</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>left</string> </key> + <value> + <list> + <string>gadget_field_action_js_script</string> + </list> + </value> + </item> + <item> + <key> <string>right</string> </key> + <value> + <list/> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Base_cloneDocumentForOofficeEditor</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>OnlyOfficeEditor_cloneDocument</string> </value> + </item> + <item> + <key> <string>pt</string> </key> + <value> <string>form_dialog</string> </value> + </item> + <item> + <key> <string>row_length</string> </key> + <value> <int>4</int> </value> + </item> + <item> + <key> <string>stored_encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Clone</string> </value> + </item> + <item> + <key> <string>unicode_mode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_action</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>update_action_title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_spreadsheet_editor/Base_cloneDocumentForOofficeEditor/gadget_field_action_js_script.xml b/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_spreadsheet_editor/Base_cloneDocumentForOofficeEditor/gadget_field_action_js_script.xml new file mode 100644 index 0000000000000000000000000000000000000000..3927c487a5f8bd74e660a0ec38a2b997535623a3 --- /dev/null +++ b/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_spreadsheet_editor/Base_cloneDocumentForOofficeEditor/gadget_field_action_js_script.xml @@ -0,0 +1,246 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="GadgetField" module="Products.ERP5Form.GadgetField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>gadget_field_action_js_script</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>no_validator</string> </key> + <value> <string>Does not support this operation.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>data_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>gadget_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>js_sandbox</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>renderjs_extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>validator_field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>validator_form_id</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>data_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>gadget_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>js_sandbox</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>renderjs_extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>validator_field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>validator_form_id</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>data_url</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>gadget_url</string> </key> + <value> <string>action_clone.html</string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>js_sandbox</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>renderjs_extra</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>gadget_field_action_js_script</string> </value> + </item> + <item> + <key> <string>validator_field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>validator_form_id</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_text_editor/Base_cloneDocumentForOofficeEditor.xml b/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_text_editor/Base_cloneDocumentForOofficeEditor.xml new file mode 100644 index 0000000000000000000000000000000000000000..574f453f33e07ed54bdec5f800b2565dd89a4a0c --- /dev/null +++ b/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_text_editor/Base_cloneDocumentForOofficeEditor.xml @@ -0,0 +1,135 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ERP5 Form" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_objects</string> </key> + <value> + <tuple/> + </value> + </item> + <item> + <key> <string>action</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>action_title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>edit_order</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>enctype</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>group_list</string> </key> + <value> + <list> + <string>left</string> + <string>right</string> + <string>center</string> + <string>bottom</string> + <string>hidden</string> + </list> + </value> + </item> + <item> + <key> <string>groups</string> </key> + <value> + <dictionary> + <item> + <key> <string>bottom</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>center</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>left</string> </key> + <value> + <list> + <string>gadget_field_action_js_script</string> + </list> + </value> + </item> + <item> + <key> <string>right</string> </key> + <value> + <list/> + </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>Base_cloneDocumentForOofficeEditor</string> </value> + </item> + <item> + <key> <string>method</string> </key> + <value> <string>POST</string> </value> + </item> + <item> + <key> <string>name</string> </key> + <value> <string>OnlyOfficeEditor_cloneDocument</string> </value> + </item> + <item> + <key> <string>pt</string> </key> + <value> <string>form_dialog</string> </value> + </item> + <item> + <key> <string>row_length</string> </key> + <value> <int>4</int> </value> + </item> + <item> + <key> <string>stored_encoding</string> </key> + <value> <string>UTF-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Clone</string> </value> + </item> + <item> + <key> <string>unicode_mode</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>update_action</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>update_action_title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_text_editor/Base_cloneDocumentForOofficeEditor/gadget_field_action_js_script.xml b/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_text_editor/Base_cloneDocumentForOofficeEditor/gadget_field_action_js_script.xml new file mode 100644 index 0000000000000000000000000000000000000000..3927c487a5f8bd74e660a0ec38a2b997535623a3 --- /dev/null +++ b/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_text_editor/Base_cloneDocumentForOofficeEditor/gadget_field_action_js_script.xml @@ -0,0 +1,246 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="GadgetField" module="Products.ERP5Form.GadgetField"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>gadget_field_action_js_script</string> </value> + </item> + <item> + <key> <string>message_values</string> </key> + <value> + <dictionary> + <item> + <key> <string>external_validator_failed</string> </key> + <value> <string>The input failed the external validator.</string> </value> + </item> + <item> + <key> <string>no_validator</string> </key> + <value> <string>Does not support this operation.</string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>overrides</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>data_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>gadget_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>js_sandbox</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>renderjs_extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>validator_field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>validator_form_id</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>tales</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>data_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>gadget_url</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>js_sandbox</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>renderjs_extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>validator_field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>validator_form_id</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + <item> + <key> <string>values</string> </key> + <value> + <dictionary> + <item> + <key> <string>alternate_name</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>css_class</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>data_url</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>default</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>editable</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>enabled</string> </key> + <value> <int>1</int> </value> + </item> + <item> + <key> <string>external_validator</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>extra</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>gadget_url</string> </key> + <value> <string>action_clone.html</string> </value> + </item> + <item> + <key> <string>hidden</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>js_sandbox</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>renderjs_extra</string> </key> + <value> + <list/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>gadget_field_action_js_script</string> </value> + </item> + <item> + <key> <string>validator_field_id</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>validator_form_id</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_text_editor/Base_downloadDialogForOofficeEditor.xml b/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_text_editor/Base_downloadDialogForOofficeEditor.xml index aa43b9560d4e0b63cd7a25b3df76591f51181308..c07efb15d2542618faa6e555e7da03615c7c3b6e 100644 --- a/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_text_editor/Base_downloadDialogForOofficeEditor.xml +++ b/bt5/erp5_officejs_ooffice/SkinTemplateItem/portal_skins/erp5_ooffice_text_editor/Base_downloadDialogForOofficeEditor.xml @@ -16,6 +16,10 @@ <key> <string>action</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>action_title</string> </key> + <value> <string></string> </value> + </item> <item> <key> <string>description</string> </key> <value> <string></string> </value> diff --git a/bt5/erp5_officejs_ooffice/bt/template_path_list b/bt5/erp5_officejs_ooffice/bt/template_path_list index c694739d909b45ebef3856b475cebd10ca2de32c..7895712ac200262f88df144638d54d906f0e91da 100644 --- a/bt5/erp5_officejs_ooffice/bt/template_path_list +++ b/bt5/erp5_officejs_ooffice/bt/template_path_list @@ -3,10 +3,13 @@ portal_types/Document Module/ooffice_presentation_view portal_types/Document Module/ooffice_spreadsheet_view portal_types/Document Module/ooffice_text_view portal_types/Document Module/ooffice_upload_document +portal_types/Presentation/ooffice_clone_document portal_types/Presentation/ooffice_download_document portal_types/Presentation/ooffice_presentation_view +portal_types/Spreadsheet/ooffice_clone_document portal_types/Spreadsheet/ooffice_download_document portal_types/Spreadsheet/ooffice_spreadsheet_view +portal_types/Text/ooffice_clone_document portal_types/Text/ooffice_download_document portal_types/Text/ooffice_text_view web_page_module/gadget_ooffice_* @@ -15,4 +18,4 @@ web_site_module/ooffice_presentation/** web_site_module/ooffice_spreadsheet web_site_module/ooffice_spreadsheet/** web_site_module/ooffice_text -web_site_module/ooffice_text/** +web_site_module/ooffice_text/** \ No newline at end of file diff --git a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_ooo_presentation_zuite/testOnlyOfficePresentationClone.xml b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_ooo_presentation_zuite/testOnlyOfficePresentationClone.xml new file mode 100644 index 0000000000000000000000000000000000000000..d3621b15e3008f5391afbdf578c8e06e861d3066 --- /dev/null +++ b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_ooo_presentation_zuite/testOnlyOfficePresentationClone.xml @@ -0,0 +1,58 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>expand</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>testOnlyOfficePresentationClone</string> </value> + </item> + <item> + <key> <string>output_encoding</string> </key> + <value> <string>utf-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <unicode></unicode> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_ooo_presentation_zuite/testOnlyOfficePresentationClone.zpt b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_ooo_presentation_zuite/testOnlyOfficePresentationClone.zpt new file mode 100644 index 0000000000000000000000000000000000000000..1558e7ebdf6bab7a01845ea0f3cb532624f9fc6e --- /dev/null +++ b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_ooo_presentation_zuite/testOnlyOfficePresentationClone.zpt @@ -0,0 +1,541 @@ +<html xmlns:tal="http://xml.zope.org/namespaces/tal" + xmlns:metal="http://xml.zope.org/namespaces/metal"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>Test OfficeJS UI</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">Test OfficeJS UI</td></tr> +</thead><tbody> +<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" /> +<!-- Clean Up --> +<tr> + <td>open</td> + <td>${base_url}/bar_module/ListBoxZuite_reset</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>Reset Successfully.</td> + <td></td> +</tr> +<tr> + <td>store</td> + <td>ooffice_presentation</td> + <td>install_url</td> +</tr> +<tal:block metal:use-macro="here/Zuite_CommonTemplateForOfficejsUi/macros/wait_install" /> +<tr> + <td>waitForElementPresent</td> + <td>link=Storages</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=Storages</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=Erp5</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=Erp5</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>name=erp5_url</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>name=erp5_url</td> + <td>${base_url}/web_site_module/</td> +</tr> +<tr> + <td>click</td> + <td>//button[@data-i18n='Proceed']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//div[contains(@data-gadget-url, 'gadget_erp5_header.html')]//a[@data-i18n="Add"]</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//div[contains(@data-gadget-url, 'gadget_erp5_header.html')]//a[@data-i18n="Add"]</td> + <td></td> +</tr> +<!-- As all resources are now in indexedDB, is faster than before and sometimes the header spinner icon doesn't apprear + Wait for spinner was removed, but a minimum pause is needed before continue --> +<tr> + <td>pause</td> + <td>100</td> + <td></td> +</tr> +<tr> + <td>store</td> + <td tal:content="python: 'Test Base %s' % DateTime()">Title</td> + <td>title</td> +</tr> +<tr> + <td>store</td> + <td tal:content="python: 'Test Reference %s' % DateTime()">Reference</td> + <td>reference</td> +</tr> +<tr> + <td>store</td> + <td tal:content="python: 'Test Language %s' % DateTime()">Language</td> + <td>language</td> +</tr> +<tr> + <td>store</td> + <td tal:content="python: 'Test Version %s' % DateTime()">Version</td> + <td>version</td> +</tr> +<tr> + <td>store</td> + <td tal:content="python: 'Test Description %s' % DateTime()">Description</td> + <td>description</td> +</tr> +<tr> + <td>store</td> + <td tal:content="python: '[CLONE] Test Base %s' % DateTime()">Title</td> + <td>cloned_title</td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@title='Title']</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>//input[@title='Title']</td> + <td>${title}</td> +</tr> +<tr> + <td>type</td> + <td>//input[@title='Reference']</td> + <td>${reference}</td> +</tr> +<tr> + <td>type</td> + <td>//input[@title='Version']</td> + <td>${version}</td> +</tr> +<tr> + <td>type</td> + <td>//input[@title='Language']</td> + <td>${language}</td> +</tr> +<tr> + <td>type</td> + <td>//textarea[@title='Description']</td> + <td>${description}</td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//div[contains(@data-gadget-url, 'gadget_editor.html')]</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//div[contains(@data-gadget-scope, 'text_content')]</td> + <td></td> +</tr> +<tal:block metal:use-macro="here/Zuite_CommonTemplateForOnlyOffice/macros/wait_for_load_presentation"/> +<tr> + <td>click</td> + <td>//button[@data-i18n='Save']</td> + <td></td> +</tr> +<tr> + <td>pause</td> + <td>100</td> + <td></td> +</tr> +<tal:block tal:define="notification_configuration python: {'class': 'success', + 'text': 'Data Updated'}"> + <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification" /> +</tal:block> + +<tr> + <td>click</td> + <td>//a[@data-i18n='Document']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//div[contains(@data-gadget-url, 'gadget_erp5_header.html')]//a[@data-i18n="Add"]</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${title}</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>pause</td> + <td>100</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>identifier=title</td> + <td></td> +</tr> +<!-- Clone document --> +<tr> + <td>click</td> + <td>//button[@data-i18n='Menu']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=Clone</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=Actions</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=Actions</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//a[@data-i18n='Clone']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//a[@data-i18n='Clone']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@value='Clone']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//input[@value='Clone']</td> + <td></td> +</tr> +<tr> + <td>pause</td> + <td>100</td> + <td></td> +</tr> +<tal:block tal:define="notification_configuration python: {'class': 'success', + 'text': 'Clone Document Created'}"> + <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification" /> +</tal:block> +<tr> + <td>waitForElementPresent</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//div[contains(@data-gadget-url, 'gadget_editor.html')]</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//div[contains(@data-gadget-scope, 'text_content')]</td> + <td></td> +</tr> +<tal:block metal:use-macro="here/Zuite_CommonTemplateForOnlyOffice/macros/wait_for_load_presentation"/> +<tr> + <td>assertTextPresent</td> + <td>${title}</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>name=title</td> + <td>${cloned_title}</td> +</tr> +<tr> + <td>click</td> + <td>//button[@data-i18n='Save']</td> + <td></td> +</tr> +<tr> + <td>pause</td> + <td>100</td> + <td></td> +</tr> +<tal:block tal:define="notification_configuration python: {'class': 'success', + 'text': 'Data Updated'}"> + <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification" /> +</tal:block> +<tr> + <td>click</td> + <td>//a[@data-i18n='Document']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//div[contains(@data-gadget-url, 'gadget_erp5_header.html')]//a[@data-i18n="Add"]</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=${cloned_title}</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=${cloned_title}</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>identifier=title</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@name='title']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@value='${cloned_title}']</td> + <td></td> +</tr> +<tr> + <td>verifyValue</td> + <td>title</td> + <td>${cloned_title}</td> +</tr> +<tr> + <td>verifyValue</td> + <td>reference</td> + <td>${reference}</td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>identifier=description</td> + <td></td> +</tr> +<tr> + <td>verifyValue</td> + <td>description</td> + <td>${description}</td> +</tr> +<tr> + <td>verifyValue</td> + <td>language</td> + <td>${language}</td> +</tr> +<tr> + <td>verifyValue</td> + <td>version</td> + <td>${version}</td> +</tr> +<tr> + <td>click</td> + <td>//button[@data-i18n='Menu']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//a[@data-i18n='Synchronize']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>name=search</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>name=search</td> + <td>${title}</td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//button[@data-i18n='Filter']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//button[@data-i18n='Filter']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//button[@data-i18n='Filter']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${title}</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>identifier=title</td> + <td></td> +</tr> +<tr> + <td>verifyValue</td> + <td>title</td> + <td>${title}</td> +</tr> +<tr> + <td>verifyValue</td> + <td>reference</td> + <td>${reference}</td> +</tr> +<tr> + <td>verifyValue</td> + <td>description</td> + <td>${description}</td> +</tr> + +<tr> + <td>open</td> + <td>${base_url}/document_module/Zuite_waitForActivities</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//pre</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>Done.</td> + <td></td> +</tr> +<tr> + <td>open</td> + <td>${base_url}/document_module/</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//button[@title="Show All"]</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//button[@title="Show All"]</td> + <td></td> +</tr> +<tr> + <td>pause</td> + <td>1000</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@name="listbox_title"]</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>name=listbox_title</td> + <td>${title}</td> +</tr> +<tr> + <td>clickAndWait</td> + <td>Base_doSelect:method</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${title}</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${reference}</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${description}</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//button[@title="Show All"]</td> + <td></td> +</tr> +<tr> + <td>pause</td> + <td>1000</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@name="listbox_title"]</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>name=listbox_title</td> + <td>${cloned_title}</td> +</tr> +<tr> + <td>clickAndWait</td> + <td>Base_doSelect:method</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${cloned_title}</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${reference}</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${description}</td> + <td></td> +</tr> +</tbody></table> +</body> +</html> \ No newline at end of file diff --git a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_ooo_spreadsheet_zuite/testOnlyOfficeSpreadsheetClone.xml b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_ooo_spreadsheet_zuite/testOnlyOfficeSpreadsheetClone.xml new file mode 100644 index 0000000000000000000000000000000000000000..16960ddb4abefb611aece49ac735e7628cd9882f --- /dev/null +++ b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_ooo_spreadsheet_zuite/testOnlyOfficeSpreadsheetClone.xml @@ -0,0 +1,58 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>expand</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>testOnlyOfficeSpreadsheetClone</string> </value> + </item> + <item> + <key> <string>output_encoding</string> </key> + <value> <string>utf-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <unicode></unicode> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_ooo_spreadsheet_zuite/testOnlyOfficeSpreadsheetClone.zpt b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_ooo_spreadsheet_zuite/testOnlyOfficeSpreadsheetClone.zpt new file mode 100644 index 0000000000000000000000000000000000000000..520f4b33cf095d2df84c0d6d10bc3b68fd1096cb --- /dev/null +++ b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_ooo_spreadsheet_zuite/testOnlyOfficeSpreadsheetClone.zpt @@ -0,0 +1,531 @@ +<html xmlns:tal="http://xml.zope.org/namespaces/tal" + xmlns:metal="http://xml.zope.org/namespaces/metal"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>Test OfficeJS UI</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">Test OfficeJS UI</td></tr> +</thead><tbody> +<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" /> +<!-- Clean Up --> +<tr> + <td>open</td> + <td>${base_url}/bar_module/ListBoxZuite_reset</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>Reset Successfully.</td> + <td></td> +</tr> +<tr> + <td>store</td> + <td>ooffice_spreadsheet</td> + <td>install_url</td> +</tr> +<tal:block metal:use-macro="here/Zuite_CommonTemplateForOfficejsUi/macros/wait_install" /> +<tr> + <td>waitForElementPresent</td> + <td>link=Storages</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=Storages</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=Erp5</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=Erp5</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>name=erp5_url</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>name=erp5_url</td> + <td>${base_url}/web_site_module/</td> +</tr> +<tr> + <td>click</td> + <td>//button[@data-i18n='Proceed']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//div[contains(@data-gadget-url, 'gadget_erp5_header.html')]//a[@data-i18n="Add"]</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//div[contains(@data-gadget-url, 'gadget_erp5_header.html')]//a[@data-i18n="Add"]</td> + <td></td> +</tr> +<!-- As all resources are now in indexedDB, is faster than before and sometimes the header spinner icon doesn't apprear + Wait for spinner was removed, but a minimum pause is needed before continue --> +<tr> + <td>pause</td> + <td>100</td> + <td></td> +</tr> +<tr> + <td>store</td> + <td tal:content="python: 'Test Base %s' % DateTime()">Title</td> + <td>title</td> +</tr> +<tr> + <td>store</td> + <td tal:content="python: 'Test Reference %s' % DateTime()">Reference</td> + <td>reference</td> +</tr> +<tr> + <td>store</td> + <td tal:content="python: 'Test Language %s' % DateTime()">Language</td> + <td>language</td> +</tr> +<tr> + <td>store</td> + <td tal:content="python: 'Test Version %s' % DateTime()">Version</td> + <td>version</td> +</tr> +<tr> + <td>store</td> + <td tal:content="python: 'Test Description %s' % DateTime()">Description</td> + <td>description</td> +</tr> +<tr> + <td>store</td> + <td tal:content="python: '[CLONE] Test Base %s' % DateTime()">Title</td> + <td>cloned_title</td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@title='Title']</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>//input[@title='Title']</td> + <td>${title}</td> +</tr> +<tr> + <td>type</td> + <td>//input[@title='Reference']</td> + <td>${reference}</td> +</tr> +<tr> + <td>type</td> + <td>//input[@title='Version']</td> + <td>${version}</td> +</tr> +<tr> + <td>type</td> + <td>//input[@title='Language']</td> + <td>${language}</td> +</tr> +<tr> + <td>type</td> + <td>//textarea[@title='Description']</td> + <td>${description}</td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//div[contains(@data-gadget-url, 'gadget_editor.html')]</td> + <td></td> +</tr> + <tal:block metal:use-macro="here/Zuite_CommonTemplateForOnlyOffice/macros/wait_for_load_spreadsheet"/> +<tr> + <td>click</td> + <td>//button[@data-i18n='Save']</td> + <td></td> +</tr> +<tr> + <td>pause</td> + <td>100</td> + <td></td> +</tr> +<tal:block tal:define="notification_configuration python: {'class': 'success', + 'text': 'Data Updated'}"> + <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification" /> +</tal:block> + +<tr> + <td>click</td> + <td>//a[@data-i18n='Document']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//div[contains(@data-gadget-url, 'gadget_erp5_header.html')]//a[@data-i18n="Add"]</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${title}</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>pause</td> + <td>100</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>identifier=title</td> + <td></td> +</tr> +<!-- Clone document --> +<tr> + <td>click</td> + <td>//button[@data-i18n='Menu']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=Clone</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=Actions</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=Actions</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//a[@data-i18n='Clone']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//a[@data-i18n='Clone']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@value='Clone']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//input[@value='Clone']</td> + <td></td> +</tr> +<tr> + <td>pause</td> + <td>100</td> + <td></td> +</tr> +<tal:block tal:define="notification_configuration python: {'class': 'success', + 'text': 'Clone Document Created'}"> + <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification" /> +</tal:block> +<tr> + <td>waitForElementPresent</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//div[contains(@data-gadget-url, 'gadget_editor.html')]</td> + <td></td> +</tr> + <tal:block metal:use-macro="here/Zuite_CommonTemplateForOnlyOffice/macros/wait_for_load_spreadsheet"/> +<tr> + <td>assertTextPresent</td> + <td>${title}</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>name=title</td> + <td>${cloned_title}</td> +</tr> +<tr> + <td>click</td> + <td>//button[@data-i18n='Save']</td> + <td></td> +</tr> +<tr> + <td>pause</td> + <td>100</td> + <td></td> +</tr> +<tal:block tal:define="notification_configuration python: {'class': 'success', + 'text': 'Data Updated'}"> + <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification" /> +</tal:block> +<tr> + <td>click</td> + <td>//a[@data-i18n='Document']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//div[contains(@data-gadget-url, 'gadget_erp5_header.html')]//a[@data-i18n="Add"]</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=${cloned_title}</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=${cloned_title}</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>identifier=title</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@name='title']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@value='${cloned_title}']</td> + <td></td> +</tr> +<tr> + <td>verifyValue</td> + <td>title</td> + <td>${cloned_title}</td> +</tr> +<tr> + <td>verifyValue</td> + <td>reference</td> + <td>${reference}</td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>identifier=description</td> + <td></td> +</tr> +<tr> + <td>verifyValue</td> + <td>description</td> + <td>${description}</td> +</tr> +<tr> + <td>verifyValue</td> + <td>language</td> + <td>${language}</td> +</tr> +<tr> + <td>verifyValue</td> + <td>version</td> + <td>${version}</td> +</tr> +<tr> + <td>click</td> + <td>//button[@data-i18n='Menu']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//a[@data-i18n='Synchronize']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>name=search</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>name=search</td> + <td>${title}</td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//button[@data-i18n='Filter']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//button[@data-i18n='Filter']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//button[@data-i18n='Filter']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${title}</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>identifier=title</td> + <td></td> +</tr> +<tr> + <td>verifyValue</td> + <td>title</td> + <td>${title}</td> +</tr> +<tr> + <td>verifyValue</td> + <td>reference</td> + <td>${reference}</td> +</tr> +<tr> + <td>verifyValue</td> + <td>description</td> + <td>${description}</td> +</tr> + +<tr> + <td>open</td> + <td>${base_url}/document_module/Zuite_waitForActivities</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//pre</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>Done.</td> + <td></td> +</tr> +<tr> + <td>open</td> + <td>${base_url}/document_module/</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//button[@title="Show All"]</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//button[@title="Show All"]</td> + <td></td> +</tr> +<tr> + <td>pause</td> + <td>1000</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@name="listbox_title"]</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>name=listbox_title</td> + <td>${title}</td> +</tr> +<tr> + <td>clickAndWait</td> + <td>Base_doSelect:method</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${title}</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${reference}</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${description}</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//button[@title="Show All"]</td> + <td></td> +</tr> +<tr> + <td>pause</td> + <td>1000</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@name="listbox_title"]</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>name=listbox_title</td> + <td>${cloned_title}</td> +</tr> +<tr> + <td>clickAndWait</td> + <td>Base_doSelect:method</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${cloned_title}</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${reference}</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${description}</td> + <td></td> +</tr> +</tbody></table> +</body> +</html> \ No newline at end of file diff --git a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_ooo_text_zuite/testOnlyfficeTextClone.xml b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_ooo_text_zuite/testOnlyfficeTextClone.xml new file mode 100644 index 0000000000000000000000000000000000000000..369c44b0a50cf33987acba5598192d14292996d5 --- /dev/null +++ b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_ooo_text_zuite/testOnlyfficeTextClone.xml @@ -0,0 +1,58 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>expand</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>testOnlyfficeTextClone</string> </value> + </item> + <item> + <key> <string>output_encoding</string> </key> + <value> <string>utf-8</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <unicode></unicode> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_ooo_text_zuite/testOnlyfficeTextClone.zpt b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_ooo_text_zuite/testOnlyfficeTextClone.zpt new file mode 100644 index 0000000000000000000000000000000000000000..c624d3198d917d084620b8f1c7d677d7e7435ade --- /dev/null +++ b/bt5/erp5_officejs_ui_test/PathTemplateItem/portal_tests/officejs_ui_ooo_text_zuite/testOnlyfficeTextClone.zpt @@ -0,0 +1,541 @@ +<html xmlns:tal="http://xml.zope.org/namespaces/tal" + xmlns:metal="http://xml.zope.org/namespaces/metal"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>Test OfficeJS UI</title> +</head> +<body> +<table cellpadding="1" cellspacing="1" border="1"> +<thead> +<tr><td rowspan="1" colspan="3">Test OfficeJS UI</td></tr> +</thead><tbody> +<tal:block metal:use-macro="here/Zuite_CommonTemplate/macros/init" /> +<!-- Clean Up --> +<tr> + <td>open</td> + <td>${base_url}/bar_module/ListBoxZuite_reset</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>Reset Successfully.</td> + <td></td> +</tr> +<tr> + <td>store</td> + <td>ooffice_text</td> + <td>install_url</td> +</tr> +<tal:block metal:use-macro="here/Zuite_CommonTemplateForOfficejsUi/macros/wait_install" /> +<tr> + <td>waitForElementPresent</td> + <td>link=Storages</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=Storages</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=Erp5</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=Erp5</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>name=erp5_url</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>name=erp5_url</td> + <td>${base_url}/web_site_module/</td> +</tr> +<tr> + <td>click</td> + <td>//button[@data-i18n='Proceed']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//div[contains(@data-gadget-url, 'gadget_erp5_header.html')]//a[@data-i18n="Add"]</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//div[contains(@data-gadget-url, 'gadget_erp5_header.html')]//a[@data-i18n="Add"]</td> + <td></td> +</tr> +<!-- As all resources are now in indexedDB, is faster than before and sometimes the header spinner icon doesn't apprear + Wait for spinner was removed, but a minimum pause is needed before continue --> +<tr> + <td>pause</td> + <td>100</td> + <td></td> +</tr> +<tr> + <td>store</td> + <td tal:content="python: 'Test Base %s' % DateTime()">Title</td> + <td>title</td> +</tr> +<tr> + <td>store</td> + <td tal:content="python: 'Test Reference %s' % DateTime()">Reference</td> + <td>reference</td> +</tr> +<tr> + <td>store</td> + <td tal:content="python: 'Test Language %s' % DateTime()">Language</td> + <td>language</td> +</tr> +<tr> + <td>store</td> + <td tal:content="python: 'Test Version %s' % DateTime()">Version</td> + <td>version</td> +</tr> +<tr> + <td>store</td> + <td tal:content="python: 'Test Description %s' % DateTime()">Description</td> + <td>description</td> +</tr> +<tr> + <td>store</td> + <td tal:content="python: '[CLONE] Test Base %s' % DateTime()">Title</td> + <td>cloned_title</td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@title='Title']</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>//input[@title='Title']</td> + <td>${title}</td> +</tr> +<tr> + <td>type</td> + <td>//input[@title='Reference']</td> + <td>${reference}</td> +</tr> +<tr> + <td>type</td> + <td>//input[@title='Version']</td> + <td>${version}</td> +</tr> +<tr> + <td>type</td> + <td>//input[@title='Language']</td> + <td>${language}</td> +</tr> +<tr> + <td>type</td> + <td>//textarea[@title='Description']</td> + <td>${description}</td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//div[contains(@data-gadget-url, 'gadget_editor.html')]</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//div[contains(@data-gadget-scope, 'text_content')]</td> + <td></td> +</tr> +<tal:block metal:use-macro="here/Zuite_CommonTemplateForOnlyOffice/macros/wait_for_load"/> +<tr> + <td>click</td> + <td>//button[@data-i18n='Save']</td> + <td></td> +</tr> +<tr> + <td>pause</td> + <td>100</td> + <td></td> +</tr> +<tal:block tal:define="notification_configuration python: {'class': 'success', + 'text': 'Data Updated'}"> + <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification" /> +</tal:block> + +<tr> + <td>click</td> + <td>//a[@data-i18n='Document']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//div[contains(@data-gadget-url, 'gadget_erp5_header.html')]//a[@data-i18n="Add"]</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${title}</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>pause</td> + <td>100</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>identifier=title</td> + <td></td> +</tr> +<!-- Clone document --> +<tr> + <td>click</td> + <td>//button[@data-i18n='Menu']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=Clone</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=Actions</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=Actions</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//a[@data-i18n='Clone']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//a[@data-i18n='Clone']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@value='Clone']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//input[@value='Clone']</td> + <td></td> +</tr> +<tr> + <td>pause</td> + <td>100</td> + <td></td> +</tr> +<tal:block tal:define="notification_configuration python: {'class': 'success', + 'text': 'Clone Document Created'}"> + <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification" /> +</tal:block> +<tr> + <td>waitForElementPresent</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//div[contains(@data-gadget-url, 'gadget_editor.html')]</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//div[contains(@data-gadget-scope, 'text_content')]</td> + <td></td> +</tr> +<tal:block metal:use-macro="here/Zuite_CommonTemplateForOnlyOffice/macros/wait_for_load"/> +<tr> + <td>assertTextPresent</td> + <td>${title}</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>name=title</td> + <td>${cloned_title}</td> +</tr> +<tr> + <td>click</td> + <td>//button[@data-i18n='Save']</td> + <td></td> +</tr> +<tr> + <td>pause</td> + <td>100</td> + <td></td> +</tr> +<tal:block tal:define="notification_configuration python: {'class': 'success', + 'text': 'Data Updated'}"> + <tal:block metal:use-macro="here/Zuite_CommonTemplateForRenderjsUi/macros/wait_for_notification" /> +</tal:block> +<tr> + <td>click</td> + <td>//a[@data-i18n='Document']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//div[contains(@data-gadget-url, 'gadget_erp5_header.html')]//a[@data-i18n="Add"]</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=${cloned_title}</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=${cloned_title}</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>identifier=title</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@name='title']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@value='${cloned_title}']</td> + <td></td> +</tr> +<tr> + <td>verifyValue</td> + <td>title</td> + <td>${cloned_title}</td> +</tr> +<tr> + <td>verifyValue</td> + <td>reference</td> + <td>${reference}</td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>identifier=description</td> + <td></td> +</tr> +<tr> + <td>verifyValue</td> + <td>description</td> + <td>${description}</td> +</tr> +<tr> + <td>verifyValue</td> + <td>language</td> + <td>${language}</td> +</tr> +<tr> + <td>verifyValue</td> + <td>version</td> + <td>${version}</td> +</tr> +<tr> + <td>click</td> + <td>//button[@data-i18n='Menu']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//a[@data-i18n='Synchronize']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>name=search</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>name=search</td> + <td>${title}</td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//button[@data-i18n='Filter']</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//button[@data-i18n='Filter']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//button[@data-i18n='Filter']</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${title}</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>link=${title}</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>identifier=title</td> + <td></td> +</tr> +<tr> + <td>verifyValue</td> + <td>title</td> + <td>${title}</td> +</tr> +<tr> + <td>verifyValue</td> + <td>reference</td> + <td>${reference}</td> +</tr> +<tr> + <td>verifyValue</td> + <td>description</td> + <td>${description}</td> +</tr> + +<tr> + <td>open</td> + <td>${base_url}/document_module/Zuite_waitForActivities</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//pre</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>Done.</td> + <td></td> +</tr> +<tr> + <td>open</td> + <td>${base_url}/document_module/</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//button[@title="Show All"]</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//button[@title="Show All"]</td> + <td></td> +</tr> +<tr> + <td>pause</td> + <td>1000</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@name="listbox_title"]</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>name=listbox_title</td> + <td>${title}</td> +</tr> +<tr> + <td>clickAndWait</td> + <td>Base_doSelect:method</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${title}</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${reference}</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${description}</td> + <td></td> +</tr> +<tr> + <td>click</td> + <td>//button[@title="Show All"]</td> + <td></td> +</tr> +<tr> + <td>pause</td> + <td>1000</td> + <td></td> +</tr> +<tr> + <td>waitForElementPresent</td> + <td>//input[@name="listbox_title"]</td> + <td></td> +</tr> +<tr> + <td>type</td> + <td>name=listbox_title</td> + <td>${cloned_title}</td> +</tr> +<tr> + <td>clickAndWait</td> + <td>Base_doSelect:method</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${cloned_title}</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${reference}</td> + <td></td> +</tr> +<tr> + <td>assertTextPresent</td> + <td>${description}</td> + <td></td> +</tr> +</tbody></table> +</body> +</html> \ No newline at end of file