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
amrani
erp5
Commits
7aafa7d0
Commit
7aafa7d0
authored
Oct 08, 2014
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a panel gadget.
Activate it on the frontpage and list view.
parent
a6ff03df
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
819 additions
and
29 deletions
+819
-29
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_appcache.xml
...TemplateItem/web_page_module/rjs_gadget_erp5_appcache.xml
+5
-3
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_form_js.xml
...hTemplateItem/web_page_module/rjs_gadget_erp5_form_js.xml
+4
-4
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_header_html.xml
...plateItem/web_page_module/rjs_gadget_erp5_header_html.xml
+3
-3
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_header_js.xml
...emplateItem/web_page_module/rjs_gadget_erp5_header_js.xml
+39
-10
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_html.xml
...PathTemplateItem/web_page_module/rjs_gadget_erp5_html.xml
+6
-4
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml
...i/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml
+11
-3
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_panel_html.xml
...mplateItem/web_page_module/rjs_gadget_erp5_panel_html.xml
+368
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_panel_js.xml
...TemplateItem/web_page_module/rjs_gadget_erp5_panel_js.xml
+380
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.xml
...eItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.xml
+3
-2
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_appcache.xml
View file @
7aafa7d0
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<value>
<string
encoding=
"cdata"
>
<![CDATA[
CACHE MANIFEST\n
CACHE MANIFEST\n
# generated on
Thu, 02 Oct 2014 12:06:38
+0000\n
# generated on
Mon, 06 Oct 2014 15:03:33
+0000\n
# XXX + fonts\n
# XXX + fonts\n
# images/ajax-loader.gif\n
# images/ajax-loader.gif\n
CACHE:\n
CACHE:\n
...
@@ -165,6 +165,8 @@ gadget_erp5_page_login.html\n
...
@@ -165,6 +165,8 @@ gadget_erp5_page_login.html\n
gadget_erp5_page_login.js\n
gadget_erp5_page_login.js\n
gadget_erp5_page_tab.html\n
gadget_erp5_page_tab.html\n
gadget_erp5_page_tab.js\n
gadget_erp5_page_tab.js\n
gadget_erp5_panel.html\n
gadget_erp5_panel.js\n
gadget_erp5_pt_form_dialog.html\n
gadget_erp5_pt_form_dialog.html\n
gadget_erp5_pt_form_dialog.js\n
gadget_erp5_pt_form_dialog.js\n
gadget_erp5_pt_form_list.html\n
gadget_erp5_pt_form_list.html\n
...
@@ -322,7 +324,7 @@ NETWORK:\n
...
@@ -322,7 +324,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
7.64214.42636.62720
</string>
</value>
<value>
<string>
93
8.4615.36506.28108
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -340,7 +342,7 @@ NETWORK:\n
...
@@ -340,7 +342,7 @@ NETWORK:\n
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1412
254043.5
</float>
<float>
1412
758909.58
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_form_js.xml
View file @
7aafa7d0
...
@@ -221,8 +221,8 @@
...
@@ -221,8 +221,8 @@
field_url = \'gadget_erp5_field_list.html\';\n
field_url = \'gadget_erp5_field_list.html\';\n
} else if (renderered_field.type === \'StringField\') {\n
} else if (renderered_field.type === \'StringField\') {\n
field_url = \'gadget_erp5_field_string.html\';\n
field_url = \'gadget_erp5_field_string.html\';\n
} else if (renderered_field.type === \'RelationStringField\') {\n
//
} else if (renderered_field.type === \'RelationStringField\') {\n
field_url = \'gadget_erp5_field_relation_string.html\';\n
//
field_url = \'gadget_erp5_field_relation_string.html\';\n
} else if (renderered_field.type === \'TextAreaField\') {\n
} else if (renderered_field.type === \'TextAreaField\') {\n
field_url = \'gadget_erp5_field_textarea.html\';\n
field_url = \'gadget_erp5_field_textarea.html\';\n
} else if (renderered_field.type === \'FloatField\') {\n
} else if (renderered_field.type === \'FloatField\') {\n
...
@@ -479,7 +479,7 @@
...
@@ -479,7 +479,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
937.64
263.33357.15633
</string>
</value>
<value>
<string>
937.64
346.57999.39918
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -497,7 +497,7 @@
...
@@ -497,7 +497,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1412
254860.94
</float>
<float>
1412
339249.91
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_header_html.xml
View file @
7aafa7d0
...
@@ -128,7 +128,7 @@
...
@@ -128,7 +128,7 @@
<a
role=
"button"
href=
"{{url}}"
class=
"responsive ui-btn ui-icon-{{icon}} ui-btn-icon-left ui-first-child ui-last-child {{class}}"
>
{{title}}
</a>
\n
<a
role=
"button"
href=
"{{url}}"
class=
"responsive ui-btn ui-icon-{{icon}} ui-btn-icon-left ui-first-child ui-last-child {{class}}"
>
{{title}}
</a>
\n
</script>
\n
</script>
\n
<script
id=
"header-button-template"
type=
"text/x-handlebars-template"
>
\n
<script
id=
"header-button-template"
type=
"text/x-handlebars-template"
>
\n
<form><button
type=
\'submit\'
class=
\'responsive
ui-btn
ui-icon-{{icon}}
ui-btn-icon-left
ui-first-child
ui-last-child
{{class}}\'
>
{{title}}
</button></form>
\n
<form><button
name=
\'{{name}}\'
type=
\'submit\'
class=
\'responsive
ui-btn
ui-icon-{{icon}}
ui-btn-icon-left
ui-first-child
ui-last-child
{{class}}\'
>
{{title}}
</button></form>
\n
</script>
\n
</script>
\n
\n
\n
<script
id=
"sub-header-template"
type=
"text/x-handlebars-template"
>
\n
<script
id=
"sub-header-template"
type=
"text/x-handlebars-template"
>
\n
...
@@ -310,7 +310,7 @@
...
@@ -310,7 +310,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
7.65430.11917.20872
</string>
</value>
<value>
<string>
93
8.4401.55907.17169
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -328,7 +328,7 @@
...
@@ -328,7 +328,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1412
326537.12
</float>
<float>
1412
595274.24
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_header_js.xml
View file @
7aafa7d0
...
@@ -172,6 +172,7 @@
...
@@ -172,6 +172,7 @@
.declareAcquiredMethod("whoWantToDisplayThis", "whoWantToDisplayThis")\n
.declareAcquiredMethod("whoWantToDisplayThis", "whoWantToDisplayThis")\n
.declareAcquiredMethod("jio_get", "jio_get")\n
.declareAcquiredMethod("jio_get", "jio_get")\n
.declareAcquiredMethod("triggerSubmit", "triggerSubmit")\n
.declareAcquiredMethod("triggerSubmit", "triggerSubmit")\n
.declareAcquiredMethod("triggerPanel", "triggerPanel")\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
// declared methods\n
// declared methods\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
...
@@ -226,12 +227,15 @@
...
@@ -226,12 +227,15 @@
[\'cancel_url\', \'Cancel\', \'times\'],\n
[\'cancel_url\', \'Cancel\', \'times\'],\n
[\'back_url\', \'Back\', \'arrow-left\']\n
[\'back_url\', \'Back\', \'arrow-left\']\n
],\n
],\n
possible_left_button_list = [\n
[\'panel_action\', \'Menu\', \'bars\', \'panel\']\n
],\n
possible_right_link_list = [\n
possible_right_link_list = [\n
[\'edit_url\', \'Edit\', \'edit\']\n
[\'edit_url\', \'Edit\', \'edit\']\n
],\n
],\n
possible_right_button_list = [\n
possible_right_button_list = [\n
[\'save_action\', \'Save\', \'check\'],\n
[\'save_action\', \'Save\', \'check\'
, \'submit\'
],\n
[\'submit_action\', \'Proceed\', \'share\']\n
[\'submit_action\', \'Proceed\', \'share\'
, \'submit\'
]\n
],\n
],\n
possible_sub_header_list = [\n
possible_sub_header_list = [\n
[\'tab_url\', \'Tabs\', \'eye\'],\n
[\'tab_url\', \'Tabs\', \'eye\'],\n
...
@@ -247,7 +251,14 @@
...
@@ -247,7 +251,14 @@
i,\n
i,\n
klass,\n
klass,\n
count = 0,\n
count = 0,\n
//left_link = {\n
// title: "Menu",\n
// icon: "bars",\n
// url: "#leftpanel",\n
// class: "ui-disabled"\n
// },\n
left_link,\n
left_link,\n
left_button,\n
right_link,\n
right_link,\n
right_button,\n
right_button,\n
default_right_icon = "",\n
default_right_icon = "",\n
...
@@ -281,10 +292,20 @@
...
@@ -281,10 +292,20 @@
url:
options[possible_left_link_list[i][0]],\n
url:
options[possible_left_link_list[i][0]],\n
class:
klass\n
class:
klass\n
};\n
};\n
count
+=
1;\n
}\n
}\n
}\n
}\n
if
(
left_link =
==
undefined)
{\n
for
(
i =
0;
i
<
possible_left_button_list.length;
i
+=
1)
{\n
if
(options.hasOwnProperty(possible_left_button_list[i][0]))
{\n
left_button =
{\n
title:
possible_left_button_list[i][1],\n
icon:
possible_left_button_list[i][2],\n
name:
possible_left_button_list[i][3]\n
};\n
}\n
}\n
if
(left_button
!==
undefined)
{\n
gadget.props.left_link.innerHTML =
header_button_template(left_button);\n
}
else
if
(
left_link =
==
undefined)
{\n
gadget.props.left_link.innerHTML =
""
;\n
gadget.props.left_link.innerHTML =
""
;\n
}
else
{\n
}
else
{\n
gadget.props.left_link.innerHTML =
header_link_template(left_link);\n
gadget.props.left_link.innerHTML =
header_link_template(left_link);\n
...
@@ -319,14 +340,14 @@
...
@@ -319,14 +340,14 @@
url:
options[possible_right_link_list[i][0]],\n
url:
options[possible_right_link_list[i][0]],\n
class:
klass\n
class:
klass\n
};\n
};\n
count
+=
1;\n
}\n
}\n
}\n
}\n
for
(
i =
0;
i
<
possible_right_button_list.length;
i
+=
1)
{\n
for
(
i =
0;
i
<
possible_right_button_list.length;
i
+=
1)
{\n
if
(options.hasOwnProperty(possible_right_button_list[i][0]))
{\n
if
(options.hasOwnProperty(possible_right_button_list[i][0]))
{\n
right_button =
{\n
right_button =
{\n
title:
possible_right_button_list[i][1],\n
title:
possible_right_button_list[i][1],\n
icon:
default_right_icon
||
possible_right_button_list[i][2]\n
icon:
default_right_icon
||
possible_right_button_list[i][2],\n
name:
possible_right_button_list[i][3]\n
};\n
};\n
if
(gadget.stats.error)
{\n
if
(gadget.stats.error)
{\n
right_button.class =
"ui-disabled"
;\n
right_button.class =
"ui-disabled"
;\n
...
@@ -375,8 +396,16 @@
...
@@ -375,8 +396,16 @@
.declareService(function
()
{\n
.declareService(function
()
{\n
var
form_gadget =
this;\n
var
form_gadget =
this;\n
\n
\n
function
formSubmit()
{\n
function
formSubmit(evt)
{\n
return
form_gadget.triggerSubmit();\n
var
button =
evt.target[0],\n
name =
button.getAttribute("name");\n
if
(
name =
==
"panel")
{\n
return
form_gadget.triggerPanel();\n
}\n
if
(
name =
==
"submit")
{\n
return
form_gadget.triggerSubmit();\n
}\n
throw
new
Error("Unsupported
button
"
+
name);\n
}\n
}\n
\n
\n
//
Listen
to
form
submit\n
//
Listen
to
form
submit\n
...
@@ -525,7 +554,7 @@
...
@@ -525,7 +554,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
938.
142.63057.34594
</string>
</value>
<value>
<string>
938.
4424.15337.59562
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -543,7 +572,7 @@
...
@@ -543,7 +572,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1412
343494.43
</float>
<float>
1412
596556.28
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_html.xml
View file @
7aafa7d0
...
@@ -134,12 +134,14 @@
...
@@ -134,12 +134,14 @@
\n
\n
</head>
\n
</head>
\n
<body>
\n
<body>
\n
\n
<div
data-role=
"panel"
id=
"leftpanel"
data-display=
"overlay"
></div>
\n
\n
\n
<div
data-gadget-url=
"gadget_erp5_header.html"
\n
<div
data-gadget-url=
"gadget_erp5_header.html"
\n
data-gadget-scope=
"header"
\n
data-gadget-scope=
"header"
\n
data-gadget-sandbox=
"public"
></div>
\n
data-gadget-sandbox=
"public"
></div>
\n
\n
<div
data-gadget-url=
"gadget_erp5_panel.html"
\n
data-gadget-scope=
"panel"
\n
data-gadget-sandbox=
"public"
></div>
\n
\n
\n
<article
class=
"ui-content"
></article>
\n
<article
class=
"ui-content"
></article>
\n
\n
\n
...
@@ -284,7 +286,7 @@
...
@@ -284,7 +286,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
7.64343.1806.54016
</string>
</value>
<value>
<string>
93
8.4433.7668.55722
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -302,7 +304,7 @@
...
@@ -302,7 +304,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1412
343671.79
</float>
<float>
1412
596999.08
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml
View file @
7aafa7d0
...
@@ -340,6 +340,12 @@
...
@@ -340,6 +340,12 @@
return page_gadget.triggerSubmit();\n
return page_gadget.triggerSubmit();\n
});\n
});\n
})\n
})\n
.allowPublicAcquisition(\'triggerPanel\', function () {\n
return this.getDeclaredGadget("panel")\n
.push(function (panel_gadget) {\n
return panel_gadget.toggle();\n
});\n
})\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
// declared methods\n
// declared methods\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
...
@@ -367,7 +373,9 @@
...
@@ -367,7 +373,9 @@
.push(function () {\n
.push(function () {\n
\n
\n
// By default, init the header options to be empty (ERP5 title by default + sidebar)\n
// By default, init the header options to be empty (ERP5 title by default + sidebar)\n
gadget.props.header_argument_list = [{}];\n
gadget.props.header_argument_list = [{\n
panel_action: true\n
}];\n
\n
\n
options.action_view = gadget.props.action_view;\n
options.action_view = gadget.props.action_view;\n
gadget.state_parameter_dict = {\n
gadget.state_parameter_dict = {\n
...
@@ -575,7 +583,7 @@
...
@@ -575,7 +583,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
938.
5954.37249.58333
</string>
</value>
<value>
<string>
938.
7130.7783.39850
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -593,7 +601,7 @@
...
@@ -593,7 +601,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1412758
687.11
</float>
<float>
1412758
828.97
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_panel_html.xml
0 → 100644
View file @
7aafa7d0
<?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>
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>
<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_erp5_panel.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_panel_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
http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
/>
\n
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no"
/>
\n
<title>
ERP5 Panel
</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"
type=
"text/javascript"
></script>
\n
<script
src=
"gadget_global.js"
type=
"text/javascript"
></script>
\n
<script
src=
"jquery.js"
type=
"text/javascript"
></script>
\n
<script
src=
"jquerymobile.js"
>
type="text/javascript">
</script>
\n
\n
<script
id=
"panel-template"
type=
"text/x-handlebars-template"
>
\n
<p>
ERP5
</p>
\n
<ul
data-role=
"listview"
>
\n
<li><a
href=
"{{module_href}}"
class=
"ui-btn"
>
Modules
</a></li>
\n
<li><a
class=
"ui-btn"
>
Worklists
</a></li>
\n
<li><a
class=
"ui-btn"
>
History
</a></li>
\n
<li><a
class=
"ui-btn"
>
Preferences
</a></li>
\n
<li><a
class=
"ui-btn"
>
Language
</a></li>
\n
<li><a
class=
"ui-btn"
>
Logout
</a></li>
\n
</ul>
\n
</script>
\n
\n
<!-- custom script -->
\n
<script
src=
"gadget_erp5_panel.js"
type=
"text/javascript"
></script>
\n
\n
</head>
\n
<body>
\n
\n
<div
class=
"jqm-navmenu-panel"
></div>
\n
\n
</body>
\n
</html>
]]>
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Gadget ERP5 Panel
</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_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
romain
</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>
1412350039.78
</float>
<string>
GMT
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
published_alive
</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>
romain
</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>
938.4475.15340.20019
</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>
1412599426.41
</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>
romain
</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>
1412350001.26
</float>
<string>
GMT
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_panel_js.xml
0 → 100644
View file @
7aafa7d0
<?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>
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>
<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_erp5_panel.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_panel_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>
/*jslint nomen: true, indent: 2, maxerr: 3 */\n
/*global window, rJS, Handlebars, jQuery */\n
(function (window, rJS, Handlebars, $) {\n
"use strict";\n
\n
/////////////////////////////////////////////////////////////////\n
// Handlebars\n
/////////////////////////////////////////////////////////////////\n
// Precompile the templates while loading the first gadget instance\n
var gadget_klass = rJS(window),\n
source = gadget_klass.__template_element\n
.getElementById("panel-template")\n
.innerHTML,\n
panel_template = Handlebars.compile(source);\n
\n
gadget_klass\n
/////////////////////////////////////////////////////////////////\n
// ready\n
/////////////////////////////////////////////////////////////////\n
// Init local properties\n
.ready(function (g) {\n
g.props = {};\n
})\n
\n
// Assign the element to a variable\n
.ready(function (g) {\n
return g.getElement()\n
.push(function (element) {\n
g.props.element = element;\n
g.props.jelement = $(element.querySelector("div"));\n
});\n
})\n
\n
.ready(function (g) {\n
g.props.jelement.panel({\n
display: "overlay",\n
position: "left",\n
theme: "b"\n
// animate: false\n
});\n
})\n
\n
.ready(function (g) {\n
g.props.jelement.html(panel_template({\n
module_href: "#"\n
}));\n
g.props.jelement.trigger("create");\n
})\n
\n
/////////////////////////////////////////////////////////////////\n
// declared methods\n
/////////////////////////////////////////////////////////////////\n
.declareMethod(\'toggle\', function () {\n
this.props.jelement.panel("toggle");\n
});\n
\n
}(window, rJS, Handlebars, jQuery));
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Gadget ERP5 Panel 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_alive
</string>
</value>
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
romain
</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>
1412350102.01
</float>
<string>
GMT
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
validation_state
</string>
</key>
<value>
<string>
published_alive
</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>
romain
</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>
938.4544.32819.35584
</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>
1412607722.67
</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>
romain
</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>
1412350078.95
</float>
<string>
GMT
</string>
</tuple>
</state>
</object>
</value>
</item>
</dictionary>
</list>
</tuple>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.xml
View file @
7aafa7d0
...
@@ -151,6 +151,7 @@
...
@@ -151,6 +151,7 @@
all_gadget[0].render(search_options),\n
all_gadget[0].render(search_options),\n
all_gadget[1].render(form_options),\n
all_gadget[1].render(form_options),\n
gadget.renderPageHeader({\n
gadget.renderPageHeader({\n
panel_action: true,\n
jump_url: "",\n
jump_url: "",\n
cut_url: "",\n
cut_url: "",\n
actions_url: all_gadget[4],\n
actions_url: all_gadget[4],\n
...
@@ -300,7 +301,7 @@
...
@@ -300,7 +301,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
937.6
4343.1806.54016
</string>
</value>
<value>
<string>
937.6
5471.52542.37171
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -318,7 +319,7 @@
...
@@ -318,7 +319,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1412
327028.09
</float>
<float>
1412
596633.53
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</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