diff --git a/master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_base/WebSection_getHostingJSPrecacheManifestList.py b/master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_base/WebSection_getHostingJSPrecacheManifestList.py index e06f38462d35c0713c2269324a91d5a1044fa31d..807a70253c791c929c0490f8d4a707a7986a358f 100644 --- a/master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_base/WebSection_getHostingJSPrecacheManifestList.py +++ b/master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_base/WebSection_getHostingJSPrecacheManifestList.py @@ -133,6 +133,8 @@ url_list = [ "gadget_erp5_page_slap_stop_instance_tree.html", "gadget_erp5_page_slap_stop_instance_tree.js", "gadget_erp5_page_slap_support_request_view.html", + "gadget_erp5_page_slap_all_ticket_list.html", + "gadget_erp5_page_slap_all_ticket_list.js", "gadget_erp5_page_slap_ticket_list.html", "gadget_erp5_page_slap_ticket_list.js", "gadget_erp5_page_slap_ticket_view.js", diff --git a/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_all_ticket_list_html.html b/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_all_ticket_list_html.html new file mode 100644 index 0000000000000000000000000000000000000000..f6919553e47c753ff7c184045210dd328e2224d4 --- /dev/null +++ b/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_all_ticket_list_html.html @@ -0,0 +1,27 @@ +<!DOCTYPE html> +<html> +<!-- + data-i18n=Title + data-i18n=Reference + data-i18n=State + data-i18n=Tickets +--> + <head> + <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> + <meta name="viewport" content="width=device-width, user-scalable=no" /> + <title>Site List</title> + + <!-- renderjs --> + <script src="rsvp.js" type="text/javascript"></script> + <script src="renderjs.js" type="text/javascript"></script> + + <!-- custom script --> + <script src="gadget_slapos_utils.js" type="text/javascript"></script> + <script src="gadget_erp5_page_slap_all_ticket_list.js" type="text/javascript"></script> + + </head> + <body> + <div data-gadget-url="gadget_erp5_pt_form_list.html" data-gadget-scope="form_list"></div> + </body> +</html> + diff --git a/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_all_ticket_list_html.xml b/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_all_ticket_list_html.xml new file mode 100644 index 0000000000000000000000000000000000000000..17f1bb6d373be5731537ceee874765004a59f9a9 --- /dev/null +++ b/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_all_ticket_list_html.xml @@ -0,0 +1,334 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Web Page" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_Access_contents_information_Permission</string> </key> + <value> + <tuple> + <string>Anonymous</string> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Add_portal_content_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Change_local_roles_Permission</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Modify_portal_content_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_View_Permission</string> </key> + <value> + <tuple> + <string>Anonymous</string> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>content_md5</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>gadget_erp5_page_slap_all_ticket_list.html</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>rjs_gadget_erp5_page_slap_all_ticket_list_html</string> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> <string>en</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Web Page</string> </value> + </item> + <item> + <key> <string>short_title</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Gadget SlapOS All Ticket List</string> </value> + </item> + <item> + <key> <string>version</string> </key> + <value> <string>003</string> </value> + </item> + <item> + <key> <string>workflow_history</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>document_publication_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>edit_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + <item> + <key> <string>processing_status_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>publish_alive</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1668201889.89</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + <item> + <key> <string>validation_state</string> </key> + <value> <string>published_alive</string> </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>edit</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>serial</string> </key> + <value> <string>1004.16900.23828.10905</string> </value> + </item> + <item> + <key> <string>state</string> </key> + <value> <string>current</string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1668201885.15</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="5" aka="AAAAAAAAAAU="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>detect_converted_file</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_processing_state</string> </key> + <value> <string>converted</string> </value> + </item> + <item> + <key> <string>serial</string> </key> + <value> <string>0.0.0.0</string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1668193624.07</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_all_ticket_list_js.js b/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_all_ticket_list_js.js new file mode 100644 index 0000000000000000000000000000000000000000..434ca2170ab608080f5e934e5fcaf11edeaac3ba --- /dev/null +++ b/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_all_ticket_list_js.js @@ -0,0 +1,122 @@ +/*global window, rJS, RSVP */ +/*jslint nomen: true, indent: 2, maxerr: 3*/ +(function (window, rJS, RSVP) { + "use strict"; + + rJS(window) + .declareAcquiredMethod("updateHeader", "updateHeader") + .declareAcquiredMethod("updatePanel", "updatePanel") + .declareAcquiredMethod("redirect", "redirect") + .declareAcquiredMethod("reload", "reload") + .declareAcquiredMethod("getSetting", "getSetting") + .declareAcquiredMethod("setSetting", "setSetting") + .declareAcquiredMethod("getUrlFor", "getUrlFor") + .declareAcquiredMethod("jio_allDocs", "jio_allDocs") + .declareAcquiredMethod("jio_get", "jio_get") + .declareAcquiredMethod("jio_getAttachment", "jio_getAttachment") + .declareAcquiredMethod("getTranslationList", "getTranslationList") + + ///////////////////////////////////////////////////////////////// + // declared methods + ///////////////////////////////////////////////////////////////// + .declareMethod("triggerSubmit", function () { + var argument_list = arguments; + return this.getDeclaredGadget('form_list') + .push(function (gadget) { + return gadget.triggerSubmit.apply(gadget, argument_list); + }); + }) + .declareMethod("render", function () { + var gadget = this, + lines_limit, + tickets_translation, + translation_list = [ + "Title", + "Reference", + "State", + "Tickets" + ]; + + return new RSVP.Queue() + .push(function () { + return RSVP.all([ + gadget.getSetting("listbox_lines_limit", 20), + window.getSettingMe(gadget) + ]); + }) + .push(function (setting) { + lines_limit = setting[0]; + return RSVP.all([ + gadget.getDeclaredGadget('form_list'), + gadget.jio_get(setting[1]), + gadget.getTranslationList(translation_list) + ]); + }) + .push(function (result) { + var column_list = [ + ['title', result[2][0]], + ['reference', result[2][1]], + ['translated_simulation_state_title', result[2][2]] + ]; + tickets_translation = result[2][3]; + return result[0].render({ + erp5_document: { + "_embedded": {"_view": { + "listbox": { + "column_list": column_list, + "show_anchor": 0, + "default_params": {}, + "editable": 0, + "editable_column_list": [], + "key": "slap_site_listbox", + "lines": lines_limit, + "list_method": "portal_catalog", + "query": "urn:jio:allDocs?query=portal_type%3A%20%28%22Support%20Request%22%2C%20%22Upgrade%20Decision%22%2C%20%22Regularisation%20Request%22%29%20AND%20destination_decision_reference%3A" + result[1].reference, + "portal_type": [], + "search_column_list": column_list, + "sort_column_list": column_list, + "sort": [["modification_date", "Descending"]], + "title": tickets_translation, + "type": "ListBox" + } + }}, + "_links": { + "type": { + // form_list display portal_type in header + name: "" + } + } + }, + form_definition: { + group_list: [[ + "bottom", + [["listbox"]] + ]] + } + }); + }) + .push(function () { + return gadget.getSetting('frontpage_gadget'); + }) + .push(function (frontpage_gadget) { + return RSVP.all([ + gadget.getUrlFor({command: "change", options: {"page": "slap_add_ticket"}}), + gadget.getUrlFor({command: "change", options: {"page": "slap_rss_ticket"}}), + gadget.getUrlFor({command: "change", options: {"page": frontpage_gadget}}), + gadget.updatePanel({jio_key: "support_request_module"}), + gadget.getUrlFor({command: "change", options: {"page": "slap_ticket_list"}}) + + ]); + }) + .push(function (result) { + return gadget.updateHeader({ + page_title: tickets_translation, + filter_action: true, + selection_url: result[2], + tab_url: result[4], + add_url: result[0], + rss_url: result[1] + }); + }); + }); +}(window, rJS, RSVP)); diff --git a/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_all_ticket_list_js.xml b/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_all_ticket_list_js.xml new file mode 100644 index 0000000000000000000000000000000000000000..e494e9e470d07520ebdabd5ca5139e5585f14224 --- /dev/null +++ b/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_all_ticket_list_js.xml @@ -0,0 +1,330 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Web Script" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_Access_contents_information_Permission</string> </key> + <value> + <tuple> + <string>Anonymous</string> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Add_portal_content_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Change_local_roles_Permission</string> </key> + <value> + <tuple> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_Modify_portal_content_Permission</string> </key> + <value> + <tuple> + <string>Assignee</string> + <string>Assignor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>_View_Permission</string> </key> + <value> + <tuple> + <string>Anonymous</string> + <string>Assignee</string> + <string>Assignor</string> + <string>Associate</string> + <string>Auditor</string> + <string>Manager</string> + </tuple> + </value> + </item> + <item> + <key> <string>content_md5</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>gadget_erp5_page_slap_all_ticket_list.js</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>rjs_gadget_erp5_page_slap_all_ticket_list_js</string> </value> + </item> + <item> + <key> <string>language</string> </key> + <value> <string>en</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Web Script</string> </value> + </item> + <item> + <key> <string>short_title</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string>Gadget SlapOS All Ticket List</string> </value> + </item> + <item> + <key> <string>version</string> </key> + <value> <string>002</string> </value> + </item> + <item> + <key> <string>workflow_history</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="PersistentMapping" module="Persistence.mapping"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>data</string> </key> + <value> + <dictionary> + <item> + <key> <string>document_publication_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>edit_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + <item> + <key> <string>processing_status_workflow</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent> + </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>publish_alive</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1668194061.16</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + <item> + <key> <string>validation_state</string> </key> + <value> <string>published_alive</string> </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>edit</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>serial</string> </key> + <value> <string>1004.16796.34626.45038</string> </value> + </item> + <item> + <key> <string>state</string> </key> + <value> <string>current</string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1668202765.66</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> + <record id="5" aka="AAAAAAAAAAU="> + <pickle> + <global name="WorkflowHistoryList" module="Products.ERP5Type.Workflow"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_log</string> </key> + <value> + <list> + <dictionary> + <item> + <key> <string>action</string> </key> + <value> <string>detect_converted_file</string> </value> + </item> + <item> + <key> <string>actor</string> </key> + <value> <string>zope</string> </value> + </item> + <item> + <key> <string>comment</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>error_message</string> </key> + <value> <string></string> </value> + </item> + <item> + <key> <string>external_processing_state</string> </key> + <value> <string>converted</string> </value> + </item> + <item> + <key> <string>serial</string> </key> + <value> <string>0.0.0.0</string> </value> + </item> + <item> + <key> <string>time</string> </key> + <value> + <object> + <klass> + <global name="DateTime" module="DateTime.DateTime"/> + </klass> + <tuple> + <none/> + </tuple> + <state> + <tuple> + <float>1668193606.14</float> + <string>UTC</string> + </tuple> + </state> + </object> + </value> + </item> + </dictionary> + </list> + </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_ticket_list_html.xml b/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_ticket_list_html.xml index dce0a66339660080562b444ac12eaa464fe5f67b..2ec0130602f571e13ffaeb7909db7cd42d903054 100644 --- a/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_ticket_list_html.xml +++ b/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_ticket_list_html.xml @@ -16,7 +16,6 @@ <string>Associate</string> <string>Auditor</string> <string>Manager</string> - <string>Owner</string> </tuple> </value> </item> @@ -59,7 +58,6 @@ <string>Associate</string> <string>Auditor</string> <string>Manager</string> - <string>Owner</string> </tuple> </value> </item> @@ -191,7 +189,7 @@ </tuple> <state> <tuple> - <float>1508398078.97</float> + <float>1668201861.78</float> <string>UTC</string> </tuple> </state> diff --git a/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_ticket_list_js.js b/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_ticket_list_js.js index bb72fa1b8657e62eb00b2f7cfde89d89359c5217..6a49ce57c8e873ce70ba241ed271d3d15295afe9 100644 --- a/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_ticket_list_js.js +++ b/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_ticket_list_js.js @@ -71,7 +71,10 @@ "key": "slap_site_listbox", "lines": lines_limit, "list_method": "portal_catalog", - "query": "urn:jio:allDocs?query=portal_type%3A%20%28%22Support%20Request%22%2C%20%22Upgrade%20Decision%22%2C%20%22Regularisation%20Request%22%29%20AND%20destination_decision_reference%3A" + result[1].reference, + "query": "urn:jio:allDocs?query=portal_type%3A%20%28%22Support%20Request%22%2C%20%" + + "22Upgrade%20Decision%22%2C%20%22Regularisation%20Request%22%29%20AND%20" + + "simulation_state%3A%20%28%22suspended%22%2C%20%22validated%22%2C%20%22confirmed%22%2C%20%22started%22%29%20AND%20" + + "destination_decision_reference%3A" + result[1].reference, "portal_type": [], "search_column_list": column_list, "sort_column_list": column_list, @@ -103,7 +106,8 @@ gadget.getUrlFor({command: "change", options: {"page": "slap_add_ticket"}}), gadget.getUrlFor({command: "change", options: {"page": "slap_rss_ticket"}}), gadget.getUrlFor({command: "change", options: {"page": frontpage_gadget}}), - gadget.updatePanel({jio_key: "support_request_module"}) + gadget.updatePanel({jio_key: "support_request_module"}), + gadget.getUrlFor({command: "change", options: {"page": 'slap_all_ticket_list'}}) ]); }) .push(function (result) { @@ -113,6 +117,7 @@ selection_url: result[2], add_url: result[0], rss_url: result[1], + list_all_url: result[4] }); }); }); diff --git a/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_ticket_list_js.xml b/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_ticket_list_js.xml index b039f1b4e37f96b38f5524f1008b409054b032c8..3473423aa98ab31c7fcfadb77a1cb0935b26479f 100644 --- a/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_ticket_list_js.xml +++ b/master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_ticket_list_js.xml @@ -16,7 +16,6 @@ <string>Associate</string> <string>Auditor</string> <string>Manager</string> - <string>Owner</string> </tuple> </value> </item> @@ -59,7 +58,6 @@ <string>Associate</string> <string>Auditor</string> <string>Manager</string> - <string>Owner</string> </tuple> </value> </item> @@ -187,7 +185,7 @@ </tuple> <state> <tuple> - <float>1508398046.04</float> + <float>1668194508.48</float> <string>UTC</string> </tuple> </state> @@ -236,7 +234,7 @@ </item> <item> <key> <string>serial</string> </key> - <value> <string>1001.59377.44199.3498</string> </value> + <value> <string>1004.16914.46845.35908</string> </value> </item> <item> <key> <string>state</string> </key> @@ -254,7 +252,7 @@ </tuple> <state> <tuple> - <float>1659068844.09</float> + <float>1668203512.68</float> <string>UTC</string> </tuple> </state> diff --git a/master/bt5/slapos_jio/bt/template_keep_last_workflow_history_only_path_list b/master/bt5/slapos_jio/bt/template_keep_last_workflow_history_only_path_list index 40da83761f23bbb57ac4ac34b5e9efc477a1f9e7..a4260f4b54ebd4306c151dd92a5d640867cd3d54 100644 --- a/master/bt5/slapos_jio/bt/template_keep_last_workflow_history_only_path_list +++ b/master/bt5/slapos_jio/bt/template_keep_last_workflow_history_only_path_list @@ -39,6 +39,8 @@ web_page_module/rjs_gadget_erp5_page_slap_add_ticket_html web_page_module/rjs_gadget_erp5_page_slap_add_ticket_js web_page_module/rjs_gadget_erp5_page_slap_all_invoice_list_html web_page_module/rjs_gadget_erp5_page_slap_all_invoice_list_js +web_page_module/rjs_gadget_erp5_page_slap_all_ticket_list_html +web_page_module/rjs_gadget_erp5_page_slap_all_ticket_list_js web_page_module/rjs_gadget_erp5_page_slap_close_ticket_html web_page_module/rjs_gadget_erp5_page_slap_close_ticket_js web_page_module/rjs_gadget_erp5_page_slap_compute_node_get_token_html diff --git a/master/bt5/slapos_jio/bt/template_path_list b/master/bt5/slapos_jio/bt/template_path_list index dc396dd5ddcf62c2edfc556bcad8749775c7813f..be7eb033d0bf77bd99c7ae7dd96ccb35e2b1f1cf 100644 --- a/master/bt5/slapos_jio/bt/template_path_list +++ b/master/bt5/slapos_jio/bt/template_path_list @@ -36,6 +36,8 @@ web_page_module/rjs_gadget_erp5_page_slap_add_ticket_html web_page_module/rjs_gadget_erp5_page_slap_add_ticket_js web_page_module/rjs_gadget_erp5_page_slap_all_invoice_list_html web_page_module/rjs_gadget_erp5_page_slap_all_invoice_list_js +web_page_module/rjs_gadget_erp5_page_slap_all_ticket_list_html +web_page_module/rjs_gadget_erp5_page_slap_all_ticket_list_js web_page_module/rjs_gadget_erp5_page_slap_close_ticket_html web_page_module/rjs_gadget_erp5_page_slap_close_ticket_js web_page_module/rjs_gadget_erp5_page_slap_compute_node_get_token_html diff --git a/master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSServerUpgradeDecision.zpt b/master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSServerUpgradeDecision.zpt index 7ab54ffc7b11892fed2d63af384ce176785391b8..f9fbe44b1d938caf677a0355d6703f11d283f4a3 100644 --- a/master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSServerUpgradeDecision.zpt +++ b/master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSServerUpgradeDecision.zpt @@ -509,6 +509,18 @@ <tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/access_menu_item" /> </tal:block> + <tal:block tal:define="pagination_configuration python: {'header': '(0)', 'footer': 'No records'}"> + <tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text" /> + </tal:block> + + <tr> + <td colspan="3"><b tal:content="python: 'Click on Show all'"> Menu Item </b></td> + </tr> + + <tal:block define="menu_action python: 'Show all'"> + <tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action" /> + </tal:block> + <tal:block tal:define="pagination_configuration python: {'header': '(1)', 'footer': '${count} Records'}; dummy python: context.REQUEST.set('mapping', {'count': '1'})"> <tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text" /> diff --git a/master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSServiceUpgradeDecision.zpt b/master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSServiceUpgradeDecision.zpt index 475271fe0efda622737d496072f1f467c27386a5..8842257d99279350da1dbdf3fb2f2f957710781e 100644 --- a/master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSServiceUpgradeDecision.zpt +++ b/master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSServiceUpgradeDecision.zpt @@ -346,7 +346,19 @@ <tal:block define="menu_item python: 'Tickets'; header menu_item"> <tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/access_menu_item" /> </tal:block> - + + <tal:block tal:define="pagination_configuration python: {'header': '(0)', 'footer': 'No records'}"> + <tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text" /> + </tal:block> + + <tr> + <td colspan="3"><b tal:content="python: 'Click on Show all'"> Menu Item </b></td> + </tr> + + <tal:block define="menu_action python: 'Show all'"> + <tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action" /> + </tal:block> + <tal:block tal:define="pagination_configuration python: {'header': '(1)', 'footer': '${count} Records'}; dummy python: context.REQUEST.set('mapping', {'count': '1'})"> <tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text" /> diff --git a/master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSTicket.zpt b/master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSTicket.zpt index 3401d37f223fa6d785e3381f54be800a08174ca4..be561e7dec0a6cf21931f3dbacc9ad35038d47a0 100644 --- a/master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSTicket.zpt +++ b/master/bt5/slapos_jio_ui_test/PathTemplateItem/portal_tests/slaposjs_zuite/testSlapOSJSTicket.zpt @@ -284,8 +284,21 @@ <tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/access_menu_item" /> </tal:block> + + <tal:block tal:define="pagination_configuration python: {'header': '(0)', 'footer': 'No records'}"> + <tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text" /> + </tal:block> + + <tr> + <td colspan="3"><b tal:content="python: 'Click on Show all'"> Menu Item </b></td> + </tr> + + <tal:block define="menu_action python: 'Show all'"> + <tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/click_submenu_action" /> + </tal:block> + <tal:block tal:define="pagination_configuration python: {'header': '(1)', 'footer': '${count} Records'}; - dummy python: context.REQUEST.set('mapping', {'count': '1'})"> + dummy python: context.REQUEST.set('mapping', {'count': '1'})"> <tal:block metal:use-macro="here/Zuite_SlapOSCommonTemplate/macros/check_listbox_pagination_text" /> </tal:block>