Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
12ef5b29
Commit
12ef5b29
authored
Apr 12, 2017
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui] Allow to surcharge the default page used to display a jio document
parent
8a278cbd
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
116 additions
and
14 deletions
+116
-14
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_launcher_html.html
...teItem/web_page_module/rjs_gadget_erp5_launcher_html.html
+1
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_launcher_html.xml
...ateItem/web_page_module/rjs_gadget_erp5_launcher_html.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_router_js.js
...TemplateItem/web_page_module/rjs_gadget_erp5_router_js.js
+13
-10
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_router_js.xml
...emplateItem/web_page_module/rjs_gadget_erp5_router_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs/WebSection_viewRenderJSPreference.xml
...s/erp5_web_renderjs/WebSection_viewRenderJSPreference.xml
+1
-0
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs/WebSection_viewRenderJSPreference/my_configuration_default_jio_document_page_gadget_url.xml
...my_configuration_default_jio_document_page_gadget_url.xml
+96
-0
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebSection_renderDefaultPageAsGadget.py
...5_web_renderjs_ui/WebSection_renderDefaultPageAsGadget.py
+1
-0
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_launcher_html.html
View file @
12ef5b29
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
<script
data-renderjs-configuration=
"default_view_reference"
type=
"text/x-renderjs-configuration"
>
$
{
default_view_reference
}
</script>
<script
data-renderjs-configuration=
"default_view_reference"
type=
"text/x-renderjs-configuration"
>
$
{
default_view_reference
}
</script>
<script
data-renderjs-configuration=
"hateoas_url"
type=
"text/x-renderjs-configuration"
>
$
{
hateoas_url
}
</script>
<script
data-renderjs-configuration=
"hateoas_url"
type=
"text/x-renderjs-configuration"
>
$
{
hateoas_url
}
</script>
<script
data-renderjs-configuration=
"frontpage_gadget"
type=
"text/x-renderjs-configuration"
>
$
{
frontpage_gadget
}
</script>
<script
data-renderjs-configuration=
"frontpage_gadget"
type=
"text/x-renderjs-configuration"
>
$
{
frontpage_gadget
}
</script>
<script
data-renderjs-configuration=
"jio_document_page_gadget"
type=
"text/x-renderjs-configuration"
>
$
{
jio_document_page_gadget
}
</script>
<script
data-renderjs-configuration=
"language_map"
type=
"text/x-renderjs-configuration"
>
$
{
language_map
}
</script>
<script
data-renderjs-configuration=
"language_map"
type=
"text/x-renderjs-configuration"
>
$
{
language_map
}
</script>
<script
data-renderjs-configuration=
"default_selected_language"
type=
"text/x-renderjs-configuration"
>
$
{
default_selected_language
}
</script>
<script
data-renderjs-configuration=
"default_selected_language"
type=
"text/x-renderjs-configuration"
>
$
{
default_selected_language
}
</script>
<script
data-renderjs-configuration=
"website_url_set"
type=
"text/x-renderjs-configuration"
>
$
{
website_url_set
}
</script>
<script
data-renderjs-configuration=
"website_url_set"
type=
"text/x-renderjs-configuration"
>
$
{
website_url_set
}
</script>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_launcher_html.xml
View file @
12ef5b29
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
958.3
2778.10430.62549
</string>
</value>
<value>
<string>
958.3
3121.48203.5614
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -254,7 +254,7 @@
...
@@ -254,7 +254,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1491
475425.69
</float>
<float>
1491
989001.6
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_router_js.js
View file @
12ef5b29
...
@@ -619,9 +619,11 @@
...
@@ -619,9 +619,11 @@
function
routeDisplay
(
gadget
,
command_options
)
{
function
routeDisplay
(
gadget
,
command_options
)
{
if
(
command_options
.
path
)
{
if
(
command_options
.
path
)
{
if
(
command_options
.
args
.
page
===
undefined
)
{
if
(
command_options
.
args
.
page
===
undefined
)
{
return
gadget
.
getSetting
(
"
jio_document_page_gadget
"
,
"
form
"
)
.
push
(
function
(
jio_document_page_gadget
)
{
return
synchronousChangeState
(
return
synchronousChangeState
(
getDisplayUrlFor
(
command_options
.
path
,
{
getDisplayUrlFor
(
command_options
.
path
,
{
page
:
'
form
'
,
page
:
jio_document_page_gadget
,
editable
:
command_options
.
args
.
editable
,
editable
:
command_options
.
args
.
editable
,
view
:
command_options
.
args
.
view
||
'
view
'
,
view
:
command_options
.
args
.
view
||
'
view
'
,
selection
:
command_options
.
args
.
selection
,
selection
:
command_options
.
args
.
selection
,
...
@@ -629,6 +631,7 @@
...
@@ -629,6 +631,7 @@
history
:
command_options
.
args
.
history
history
:
command_options
.
args
.
history
})
})
);
);
});
}
}
}
}
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_router_js.xml
View file @
12ef5b29
...
@@ -232,7 +232,7 @@
...
@@ -232,7 +232,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
958.
31324.24990.32187
</string>
</value>
<value>
<string>
958.
41403.15830.7458
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -250,7 +250,7 @@
...
@@ -250,7 +250,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1491
384797.89
</float>
<float>
1491
991472.33
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs/WebSection_viewRenderJSPreference.xml
View file @
12ef5b29
...
@@ -87,6 +87,7 @@
...
@@ -87,6 +87,7 @@
<string>
my_configuration_application_title
</string>
<string>
my_configuration_application_title
</string>
<string>
my_configuration_hateoas_url
</string>
<string>
my_configuration_hateoas_url
</string>
<string>
my_configuration_frontpage_gadget_url
</string>
<string>
my_configuration_frontpage_gadget_url
</string>
<string>
my_configuration_default_jio_document_page_gadget_url
</string>
</list>
</list>
</value>
</value>
</item>
</item>
...
...
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs/WebSection_viewRenderJSPreference/my_configuration_default_jio_document_page_gadget_url.xml
0 → 100644
View file @
12ef5b29
<?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_default_jio_document_page_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>
Default Jio Document Page Gadget
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebSection_renderDefaultPageAsGadget.py
View file @
12ef5b29
...
@@ -32,6 +32,7 @@ view_as_web_method = default_web_page.getTypeBasedMethod(
...
@@ -32,6 +32,7 @@ view_as_web_method = default_web_page.getTypeBasedMethod(
)
)
return
view_as_web_method
(
mapping_dict
=
{
return
view_as_web_method
(
mapping_dict
=
{
"frontpage_gadget"
:
web_section
.
getLayoutProperty
(
"configuration_frontpage_gadget_url"
,
default
=
"worklist"
),
"frontpage_gadget"
:
web_section
.
getLayoutProperty
(
"configuration_frontpage_gadget_url"
,
default
=
"worklist"
),
"jio_document_page_gadget"
:
web_section
.
getLayoutProperty
(
"configuration_default_jio_document_page_gadget_url"
,
default
=
"form"
),
"application_title"
:
web_section
.
getLayoutProperty
(
"configuration_application_title"
,
default
=
"ERP5"
),
"application_title"
:
web_section
.
getLayoutProperty
(
"configuration_application_title"
,
default
=
"ERP5"
),
"action_view"
:
web_section
.
getLayoutProperty
(
"configuration_view_action_category"
,
default
=
"object_view"
),
"action_view"
:
web_section
.
getLayoutProperty
(
"configuration_view_action_category"
,
default
=
"object_view"
),
"default_view_reference"
:
web_section
.
getLayoutProperty
(
"configuration_default_view_action_reference"
,
default
=
"view"
),
"default_view_reference"
:
web_section
.
getLayoutProperty
(
"configuration_default_view_action_reference"
,
default
=
"view"
),
...
...
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