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
4bcdb943
Commit
4bcdb943
authored
Apr 08, 2015
by
Sven Franck
Committed by
Romain Courteaud
Apr 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: allow to define panel gadget on ERP5 side
parent
8239d658
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
110 additions
and
10 deletions
+110
-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
-5
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml
...i/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml
+5
-4
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebSection_renderDefaultPageAsGadget.xml
..._web_renderjs_ui/WebSection_renderDefaultPageAsGadget.xml
+2
-1
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebSection_viewHateoasPreference.xml
...erp5_web_renderjs_ui/WebSection_viewHateoasPreference.xml
+1
-0
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebSection_viewHateoasPreference/my_configuration_panel_gadget_url.xml
...ewHateoasPreference/my_configuration_panel_gadget_url.xml
+96
-0
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_html.xml
View file @
4bcdb943
...
@@ -117,10 +117,10 @@
...
@@ -117,10 +117,10 @@
\n
\n
<script
data-renderjs-configuration=
"application_title"
type=
"text/x-renderjs-configuration"
>
${application_title}
</script>
\n
<script
data-renderjs-configuration=
"application_title"
type=
"text/x-renderjs-configuration"
>
${application_title}
</script>
\n
<script
data-renderjs-configuration=
"frontpage_gadget"
type=
"text/x-renderjs-configuration"
>
${frontpage_gadget}
</script>
\n
<script
data-renderjs-configuration=
"frontpage_gadget"
type=
"text/x-renderjs-configuration"
>
${frontpage_gadget}
</script>
\n
<script
data-renderjs-configuration=
"panel_gadget"
type=
"text/x-renderjs-configuration"
>
${panel_gadget}
</script>
\n
<script
data-renderjs-configuration=
"action_view"
type=
"text/x-renderjs-configuration"
>
${action_view}
</script>
\n
<script
data-renderjs-configuration=
"action_view"
type=
"text/x-renderjs-configuration"
>
${action_view}
</script>
\n
<script
data-renderjs-configuration=
"default_view_reference"
type=
"text/x-renderjs-configuration"
>
${default_view_reference}
</script>
\n
<script
data-renderjs-configuration=
"default_view_reference"
type=
"text/x-renderjs-configuration"
>
${default_view_reference}
</script>
\n
<script
data-renderjs-configuration=
"hateoas_url"
type=
"text/x-renderjs-configuration"
>
${hateoas_url}
</script>
\n
<script
data-renderjs-configuration=
"hateoas_url"
type=
"text/x-renderjs-configuration"
>
${hateoas_url}
</script>
\n
\n
\n
\n
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
\n
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
\n
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
\n
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
\n
...
@@ -132,6 +132,7 @@
...
@@ -132,6 +132,7 @@
\n
\n
</head>
\n
</head>
\n
<body>
\n
<body>
\n
\n
<div
data-gadget-url=
"gadget_jio.html"
\n
<div
data-gadget-url=
"gadget_jio.html"
\n
data-gadget-scope=
"jio_gadget"
\n
data-gadget-scope=
"jio_gadget"
\n
data-gadget-sandbox=
"public"
></div>
\n
data-gadget-sandbox=
"public"
></div>
\n
...
@@ -140,7 +141,7 @@
...
@@ -140,7 +141,7 @@
data-gadget-scope=
"header"
\n
data-gadget-scope=
"header"
\n
data-gadget-sandbox=
"public"
></div>
\n
data-gadget-sandbox=
"public"
></div>
\n
\n
\n
<div
data-gadget-url=
"
gadget_erp5_panel.html
"
\n
<div
data-gadget-url=
"
${panel_gadget}
"
\n
data-gadget-scope=
"panel"
\n
data-gadget-scope=
"panel"
\n
data-gadget-sandbox=
"public"
></div>
\n
data-gadget-sandbox=
"public"
></div>
\n
\n
\n
...
@@ -274,7 +275,7 @@
...
@@ -274,7 +275,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
romai
n
</string>
</value>
<value>
<string>
sve
n
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -288,7 +289,7 @@
...
@@ -288,7 +289,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
94
1.31252.46674.14728
</string>
</value>
<value>
<string>
94
2.12881.1847.42734
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -306,7 +307,7 @@
...
@@ -306,7 +307,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
142
5659919.68
</float>
<float>
142
8487030.04
</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 @
4bcdb943
...
@@ -241,6 +241,7 @@
...
@@ -241,6 +241,7 @@
key,\n
key,\n
value,\n
value,\n
i;\n
i;\n
\n
for (i = 0; i
< len
;
i
+=
1)
{\n
for (i = 0; i
< len
;
i
+=
1)
{\n
key =
element_list[i].getAttribute(\'data-renderjs-configuration\');\n
key =
element_list[i].getAttribute(\'data-renderjs-configuration\');\n
value =
element_list[i].textContent;\n
value =
element_list[i].textContent;\n
...
@@ -489,7 +490,7 @@
...
@@ -489,7 +490,7 @@
return gadget.dropGadget("panel");\n
return gadget.dropGadget("panel");\n
})\n
})\n
.push(function () {\n
.push(function () {\n
return gadget.declareGadget(
"gadget_erp5_panel.html"
,\n
return gadget.declareGadget(
g.props.panel_gadget
,\n
{scope: "panel",\n
{scope: "panel",\n
element: div});\n
element: div});\n
})\n
})\n
...
@@ -731,7 +732,7 @@
...
@@ -731,7 +732,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
romai
n
</string>
</value>
<value>
<string>
sve
n
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -745,7 +746,7 @@
...
@@ -745,7 +746,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
94
1.39539.39866.22681
</string>
</value>
<value>
<string>
94
2.12884.35349.45585
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -763,7 +764,7 @@
...
@@ -763,7 +764,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
142
6155464.07
</float>
<float>
142
8487042.05
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebSection_renderDefaultPageAsGadget.xml
View file @
4bcdb943
...
@@ -63,7 +63,8 @@ return default_web_page.WebPage_viewAsWeb(mapping_dict={\n
...
@@ -63,7 +63,8 @@ return default_web_page.WebPage_viewAsWeb(mapping_dict={\n
"application_title": web_section.getLayoutProperty("configuration_application_title", default="ERP5"),\n
"application_title": web_section.getLayoutProperty("configuration_application_title", default="ERP5"),\n
"action_view": web_section.getLayoutProperty("configuration_view_action_category", default="object_view"),\n
"action_view": web_section.getLayoutProperty("configuration_view_action_category", default="object_view"),\n
"default_view_reference": web_section.getLayoutProperty("configuration_default_view_action_reference", default="view"),\n
"default_view_reference": web_section.getLayoutProperty("configuration_default_view_action_reference", default="view"),\n
"hateoas_url": web_section.getLayoutProperty("configuration_hateoas_url", default="hateoas/")\n
"hateoas_url": web_section.getLayoutProperty("configuration_hateoas_url", default="hateoas/"),\n
"panel_gadget": web_section.getLayoutProperty("configuration_panel_gadget_url", default="gadget_erp5_panel.html")\n
})\n
})\n
</string>
</value>
</string>
</value>
</item>
</item>
...
...
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebSection_viewHateoasPreference.xml
View file @
4bcdb943
...
@@ -75,6 +75,7 @@
...
@@ -75,6 +75,7 @@
<string>
my_configuration_default_view_action_reference
</string>
<string>
my_configuration_default_view_action_reference
</string>
<string>
my_configuration_view_action_category
</string>
<string>
my_configuration_view_action_category
</string>
<string>
my_configuration_frontpage_gadget_url
</string>
<string>
my_configuration_frontpage_gadget_url
</string>
<string>
my_configuration_panel_gadget_url
</string>
<string>
my_configuration_application_title
</string>
<string>
my_configuration_application_title
</string>
<string>
my_configuration_hateoas_url
</string>
<string>
my_configuration_hateoas_url
</string>
</list>
</list>
...
...
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebSection_viewHateoasPreference/my_configuration_panel_gadget_url.xml
0 → 100644
View file @
4bcdb943
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_configuration_panel_gadget_url
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_view_mode_reference
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Panel Gadget
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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