Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Laurent S
erp5
Commits
63544bb8
Commit
63544bb8
authored
May 21, 2015
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_eproject: change listbox widget to bt5-specific, jslint
parent
da65fb8a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
920 additions
and
23 deletions
+920
-23
bt5/erp5_web_eproject/PathTemplateItem/web_page_module/gadget_e5g_eproject_field_listbox_widget_html.xml
..._module/gadget_e5g_eproject_field_listbox_widget_html.xml
+404
-0
bt5/erp5_web_eproject/PathTemplateItem/web_page_module/gadget_e5g_eproject_field_listbox_widget_js.xml
...ge_module/gadget_e5g_eproject_field_listbox_widget_js.xml
+492
-0
bt5/erp5_web_eproject/PathTemplateItem/web_page_module/gadget_e5g_eproject_page_front_js.xml
...tem/web_page_module/gadget_e5g_eproject_page_front_js.xml
+11
-17
bt5/erp5_web_eproject/PathTemplateItem/web_page_module/gadget_e5g_eproject_panel_js.xml
...lateItem/web_page_module/gadget_e5g_eproject_panel_js.xml
+13
-6
No files found.
bt5/erp5_web_eproject/PathTemplateItem/web_page_module/gadget_e5g_eproject_field_listbox_widget_html.xml
0 → 100644
View file @
63544bb8
<?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>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<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>
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>
<string>
Owner
</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_e5g_eproject_field_listbox_widget.html
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
gadget_e5g_eproject_field_listbox_widget_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>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<!DOCTYPE html>
\n
<html>
\n
<head>
\n
<meta
charset=
"utf-8"
/>
\n
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no"
/>
\n
<title>
Listbox Compact Widget
</title>
\n
\n
<!-- renderjs -->
\n
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
\n
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
\n
<script
src=
"handlebars.js"
></script>
\n
\n
<script
id=
"listbox-widget-header"
type=
"text/x-handlebars-template"
>
\n
<div
class=
"ui-header ui-table-header ui-bar-c ui-corner-all"
>
\n
{{#if left_link_list}}\n
<div
class=
"ui-controlgroup ui-controlgroup-horizontal ui-btn-left"
>
\n
<div
class=
"ui-controlgroup-controls"
>
\n
{{#each left_link_list}}\n
<a
href=
"{{link_href}}"
data-i18n=
"{{link_title}} class="
ui-responsive
ui-btn
ui-btn-icon-right
ui-icon-carat-r
ui-first-child
ui-last-child"
>
{{link_title}}
</a>
\n
{{/each}}\n
</div>
\n
</div>
\n
{{/if}}\n
<h1
class=
"ui-title"
>
{{listbox_title}}
</h1>
\n
{{#if right_link_list}}\n
<div
class=
"ui-controlgroup ui-controlgroup-horizontal ui-btn-right"
>
\n
<div
class=
"ui-controlgroup-controls"
>
\n
{{#each right_link_list}}\n
<a
href=
"{{link_href}}"
data-i18n=
"{{link_title}}"
class=
"ui-responsive ui-btn ui-btn-icon-right ui-icon-carat-r ui-first-child ui-last-child"
>
{{link_title}}
</a>
\n
{{/each}}\n
</div>
\n
</div>
\n
{{/if}}\n
</div>
\n
</script>
\n
\n
<script
id=
"listbox-widget-table"
type=
"text/x-handlebars-template"
>
\n
<table
class=
"ui-responsive ui-body-c ui-table-inset custom-force-list"
>
\n
<thead
class=
"ui-bar-inherit"
>
\n
<tr>
\n
{{#each column_list}}\n
<th>
{{column_title}}
</th>
\n
{{/each}}\n
</tr>
\n
</thead>
\n
{{> listbox-widget-table-partial}}\n
<tfoot
class=
"ui-bar-inherit"
></tfoot>
\n
</table>
\n
</script>
\n
\n
<script
id=
"listbox-widget-table-partial"
type=
"text/x-handlebars-template"
>
\n
<tbody>
\n
{{#each table_row_list}}\n
<tr>
\n
{{#each table_cell_list}}\n
<td><a
class=
"ui-link"
href=
"{{cell_href}}"
>
{{cell_title}}
</a></td>
\n
{{/each}}\n
</tr>
\n
{{/each}}\n
</tbody>
\n
</script>
\n
\n
<!-- custom script -->
\n
<script
src=
"gadget_global.js"
></script>
\n
<script
src=
"gadget_e5g_eproject_field_listbox_widget.js"
type=
"text/javascript"
></script>
\n
\n
</head>
\n
<body>
\n
<div
class=
"custom-grid-wrap"
>
\n
<div
class=
"custom-grid ui-corner-all ui-body-inherit ui-shadow ui-corner-all"
>
\n
<div
class=
"ui-body-c ui-corner-all"
></div>
\n
</div>
\n
</div>
\n
</body>
\n
</html>
\n
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Gadget E5G Eproject Field Listbox Widget
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
001
</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.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
publish
</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>
1432213419.0
</float>
<string>
GMT
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
published
</string>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<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>
943.10893.40792.33262
</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>
1432213330.95
</float>
<string>
GMT
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<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>
1432213287.5
</float>
<string>
GMT
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_eproject/PathTemplateItem/web_page_module/gadget_e5g_eproject_field_listbox_widget_js.xml
0 → 100644
View file @
63544bb8
<?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>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<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>
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>
<string>
Owner
</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_e5g_eproject_field_listbox_widget.js
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
gadget_e5g_eproject_field_listbox_widget_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>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*global window, rJS, RSVP, Handlebars */\n
/*jslint nomen: true, indent: 2 */\n
(function (window, rJS, RSVP, Handlebars) {\n
"use strict";\n
\n
/////////////////////////////////////////////////////////////////\n
// api handlebars\n
/////////////////////////////////////////////////////////////////\n
\n
// listbox_widget_header = {\n
// "left_link_list": [\n
// {"link_title": [string], "link_href": [string]}\n
// ],\n
// "listbox_title": [string],\n
// "right_link_list": [\n
// {"link_title": [string], "link_href": [string]}\n
// ]\n
// }\n
// listbox_widget_search = {\n
// "search_title": [string]\n
// }\n
// listbox_widget_table = {\n
// "column_list": [\n
// {"column_title": [string]}\n
// ]\n
// }\n
// listbox_widget_table_partial = {\n
// "table_row_list": [{\n
// "table_cell_list": [\n
// {{"cell_title": [string], "cell_href": [string]}\n
// ]\n
// }]\n
// }\n
\n
/////////////////////////////////////////////////////////////////\n
// templates\n
/////////////////////////////////////////////////////////////////\n
var gadget_klass = rJS(window),\n
templater = gadget_klass.__template_element,\n
\n
listbox_widget_header = Handlebars.compile(\n
templater.getElementById("listbox-widget-header").innerHTML\n
),\n
listbox_widget_table = Handlebars.compile(\n
templater.getElementById("listbox-widget-table").innerHTML\n
),\n
listbox_widget_table_partial = Handlebars.registerPartial(\n
"listbox-widget-table-partial",\n
templater.getElementById("listbox-widget-table-partial").innerHTML\n
);\n
\n
/////////////////////////////////////////////////////////////////\n
// some methods\n
/////////////////////////////////////////////////////////////////\n
\n
gadget_klass\n
\n
/////////////////////////////////////////////////////////////////\n
// ready\n
/////////////////////////////////////////////////////////////////\n
.ready(function (my_gadget) {\n
my_gadget.property_dict = {};\n
})\n
\n
.ready(function (my_gadget) {\n
return my_gadget.getElement()\n
.push(function (my_element) {\n
my_gadget.property_dict.element = my_element;\n
});\n
})\n
\n
/////////////////////////////////////////////////////////////////\n
// published methods\n
/////////////////////////////////////////////////////////////////\n
\n
/////////////////////////////////////////////////////////////////\n
// acquired methods\n
/////////////////////////////////////////////////////////////////\n
.declareAcquiredMethod("jio_allDocs", "jio_allDocs")\n
.declareAcquiredMethod("jio_getAttachment", "jio_getAttachment")\n
.declareAcquiredMethod("whoWantToDisplayThis", "whoWantToDisplayThis")\n
.declareAcquiredMethod("translateHtml", "translateHtml")\n
\n
/////////////////////////////////////////////////////////////////\n
// declared methods\n
/////////////////////////////////////////////////////////////////\n
.declareMethod(\'render\', function (my_option_dict) {\n
var gadget = this,\n
content = \'\',\n
result;\n
\n
// store initial configuration and query\n
gadget.property_dict.initial_query\n
= gadget.property_dict.initial_query || my_option_dict.gadget_query;\n
gadget.property_dict.option_dict =\n
gadget.property_dict.option_dict || my_option_dict;\n
\n
return new RSVP.Queue()\n
.push(function () {\n
return gadget.jio_allDocs(my_option_dict.gadget_query);\n
})\n
.push(function (my_result) {\n
var link_list = [],\n
i_len,\n
i;\n
\n
result = my_result;\n
\n
for (i = 0, i_len = result.data.total_rows; i < i_len; i += 1) {\n
link_list.push(gadget.whoWantToDisplayThis(result.data.rows[i].id));\n
}\n
\n
return RSVP.all(link_list);\n
})\n
.push(function (my_link_list) {\n
var query = gadget.property_dict.option_dict.gadget_query,\n
column_list = [],\n
table_row_list = [],\n
table_cell_list,\n
i_len,\n
i,\n
j_len,\n
j;\n
\n
// build handlebars object\n
\n
// loop select_list to build columns\n
for (i = 0, i_len = query.select_list.length; i < i_len; i += 1) {\n
column_list.push({"column_title": query.select_list[i]});\n
}\n
\n
for (j = 0, j_len = result.data.total_rows; j < j_len; j += 1) {\n
table_cell_list = [];\n
for (i = 0, i_len = query.select_list.length; i < i_len; i += 1) {\n
table_cell_list.push({\n
"cell_href": my_link_list[j],\n
"cell_title": result.data.rows[j].value[query.select_list[i]]\n
});\n
}\n
table_row_list.push({"table_cell_list": table_cell_list});\n
}\n
content += listbox_widget_header({\n
"listbox_title": my_option_dict.gadget_title,\n
"right_link_list": [{\n
"link_title": "All",\n
"link_href": gadget.property_dict.option_dict.gadget_portal_link\n
}]\n
});\n
content += listbox_widget_table({\n
"column_list": column_list,\n
"table_row_list": table_row_list\n
});\n
\n
return gadget.translateHtml(content);\n
})\n
.push(function (my_translated_html) {\n
gadget.property_dict.element.querySelector(".custom-grid .ui-body-c")\n
.innerHTML = my_translated_html;\n
return gadget;\n
});\n
});\n
\n
/////////////////////////////////////////////////////////////////\n
// declared service\n
/////////////////////////////////////////////////////////////////\n
\n
}(window, rJS, RSVP, Handlebars));\n
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Gadget E5G Eproject Field Listbox Widget JS
</string>
</value>
</item>
<item>
<key>
<string>
version
</string>
</key>
<value>
<string>
001
</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.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<list>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
publish
</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>
1432213409.94
</float>
<string>
GMT
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
published
</string>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<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>
943.10893.44316.9966
</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>
1432213311.81
</float>
<string>
GMT
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
<record
id=
"5"
aka=
"AAAAAAAAAAU="
>
<pickle>
<global
name=
"WorkflowHistoryList"
module=
"Products.ERP5Type.patches.WorkflowTool"
/>
</pickle>
<pickle>
<tuple>
<none/>
<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>
1432213300.55
</float>
<string>
GMT
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_eproject/PathTemplateItem/web_page_module/gadget_e5g_eproject_page_front_js.xml
View file @
63544bb8
...
...
@@ -98,11 +98,10 @@
<key>
<string>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*global window, rJS */\n
/*global window, rJS
, RSVP
*/\n
/*jslint nomen: true, indent: 2, maxerr: 3 */\n
(function (window, rJS, RSVP) {\n
"use strict";\n
\n
\n
/////////////////////////////////////////////////////////////////\n
// api\n
...
...
@@ -117,7 +116,7 @@
\n
var HARDCODED_GRID_LIST = [\n
[{\n
"gadget_href": "gadget_e
rp5
_field_listbox_widget.html",\n
"gadget_href": "gadget_e
5g_eproject
_field_listbox_widget.html",\n
"gadget_portal_link": "#jio_key=project_module&view=view",\n
"gadget_title": "Projects",\n
"gadget_portal": "Project",\n
...
...
@@ -127,7 +126,7 @@
"limit": [0, 5]\n
}\n
}, {\n
"gadget_href": "gadget_e
rp5
_field_listbox_widget.html",\n
"gadget_href": "gadget_e
5g_eproject
_field_listbox_widget.html",\n
"gadget_portal_link": "#jio_key=task_module&view=view",\n
"gadget_title": "Tasks",\n
"gadget_portal": "Task",\n
...
...
@@ -148,17 +147,14 @@
/////////////////////////////////////////////////////////////////\n
\n
rJS(window)\n
\n
/////////////////////////////////////////////////////////////////\n
// ready\n
/////////////////////////////////////////////////////////////////\n
\n
/////////////////////////////////////////////////////////////////\n
// ready\n
/////////////////////////////////////////////////////////////////\n
.ready(function (my_gadget) {\n
my_gadget.property_dict = {};\n
})\n
\n
\n
.ready(function (my_gadget) {\n
return my_gadget.getElement()\n
.push(function (my_element) {\n
...
...
@@ -177,15 +173,15 @@
/////////////////////////////////////////////////////////////////\n
// published methods\n
/////////////////////////////////////////////////////////////////\n
\n
\n
/////////////////////////////////////////////////////////////////\n
// declared methods\n
/////////////////////////////////////////////////////////////////\n
\n
\n
/////////////////////////////////////////////////////////////////\n
// declared service\n
/////////////////////////////////////////////////////////////////\n
.declareMethod("render", function (
my_option_dict
) {\n
.declareMethod("render", function () {\n
var gadget = this;\n
return new RSVP.Queue()\n
.push(function () {\n
...
...
@@ -205,10 +201,8 @@
);\n
});\n
});\n
\n
\n
}(window, rJS, RSVP));\n
\n
]]>
</string>
</value>
...
...
@@ -332,7 +326,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
sven
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -346,7 +340,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
94
2.11653.29366.8516
</string>
</value>
<value>
<string>
94
3.10897.37416.8362
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -364,7 +358,7 @@
</tuple>
<state>
<tuple>
<float>
14
28413212.46
</float>
<float>
14
32213573.87
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
bt5/erp5_web_eproject/PathTemplateItem/web_page_module/gadget_e5g_eproject_panel_js.xml
View file @
63544bb8
...
...
@@ -118,6 +118,7 @@
panel_template_body = Handlebars.compile(source_body);\n
\n
gadget_klass\n
\n
/////////////////////////////////////////////////////////////////\n
// ready\n
/////////////////////////////////////////////////////////////////\n
...
...
@@ -212,7 +213,9 @@
\n
return
new
RSVP.Queue()\n
.push(function
()
{\n
return
panel_gadget.declareGadget("gadget_erp5_searchfield.html",
{"scope":
"search"});\n
return
panel_gadget.declareGadget("gadget_erp5_searchfield.html",
{\n
"scope":
"search"\n
});\n
})\n
.push(function
(my_search_gadget)
{\n
var
parent_node,
search_option_dict =
{};\n
...
...
@@ -225,7 +228,10 @@
search_option_dict.extended_search =
""
;\n
parent_node =
panel_gadget.__element.querySelector(".ui-content");\n
\n
parent_node.insertBefore(my_search_gadget.__element,
parent_node.firstChild);\n
parent_node.insertBefore(\n
my_search_gadget.__element,\n
parent_node.firstChild\n
);\n
return
my_search_gadget.render(search_option_dict);\n
})\n
.push(function
()
{\n
...
...
@@ -273,7 +279,8 @@
});\n
});\n
\n
}(window,
rJS,
Handlebars,
jQuery,
RSVP,
loopEventListener));
}(window,
rJS,
Handlebars,
jQuery,
RSVP,
loopEventListener));\n
]]
></string>
</value>
</item>
...
...
@@ -396,7 +403,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
sven
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -410,7 +417,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
94
2.12890.13377.61832
</string>
</value>
<value>
<string>
94
3.10881.65296.43776
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -428,7 +435,7 @@
</tuple>
<state>
<tuple>
<float>
14
28487366.64
</float>
<float>
14
32213723.7
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment