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
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
Eteri
erp5
Commits
f11f3869
Commit
f11f3869
authored
Mar 25, 2016
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: Use configuration_frontpage_gadget_url property to define landing page gadget
parent
bb77c51a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
+12
-7
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_html.html
...athTemplateItem/web_page_module/rjs_gadget_erp5_html.html
+1
-0
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
+10
-6
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebSection_renderDefaultPageAsGadget.py
...5_web_renderjs_ui/WebSection_renderDefaultPageAsGadget.py
+1
-1
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_html.html
View file @
f11f3869
...
...
@@ -16,6 +16,7 @@
<script
data-renderjs-configuration=
"action_view"
type=
"text/x-renderjs-configuration"
>
$
{
action_view
}
</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=
"frontpage_gadget"
type=
"text/x-renderjs-configuration"
>
$
{
frontpage_gadget
}
</script>
<script
src=
"jquery.js"
></script>
<script
src=
"jquerymobile.js"
></script>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_router_js.js
View file @
f11f3869
...
...
@@ -498,11 +498,14 @@
//////////////////////////////////////////////////////////////////
// Command URL functions
//////////////////////////////////////////////////////////////////
function
routeMethodLess
()
{
function
routeMethodLess
(
gadget
)
{
// Nothing. Go to front page
return
synchronousChangeState
(
getDisplayUrlFor
(
undefined
,
{
page
:
'
worklist
'
})
);
return
gadget
.
getSetting
(
"
frontpage_gadget
"
)
.
push
(
function
(
result
)
{
return
synchronousChangeState
(
getDisplayUrlFor
(
undefined
,
{
page
:
result
})
);
});
}
function
routeDisplay
(
gadget
,
command_options
)
{
...
...
@@ -544,7 +547,7 @@
}
if
(
command_options
.
args
.
page
===
undefined
)
{
return
routeMethodLess
();
return
routeMethodLess
(
gadget
);
}
command_options
.
args
.
jio_key
=
command_options
.
path
||
undefined
;
...
...
@@ -788,7 +791,7 @@
if
(
command_options
.
method
)
{
throw
new
Error
(
'
Unsupported hash method:
'
+
command_options
.
method
);
}
return
routeMethodLess
();
return
routeMethodLess
(
gadget
);
})
.
declareMethod
(
'
start
'
,
function
()
{
...
...
@@ -799,6 +802,7 @@
.
declareAcquiredMethod
(
'
jio_allDocs
'
,
'
jio_allDocs
'
)
.
declareAcquiredMethod
(
'
jio_getAttachment
'
,
'
jio_getAttachment
'
)
.
declareAcquiredMethod
(
'
setSetting
'
,
'
setSetting
'
)
.
declareAcquiredMethod
(
'
getSetting
'
,
'
getSetting
'
)
.
declareService
(
function
()
{
var
gadget
=
this
;
...
...
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/WebSection_renderDefaultPageAsGadget.py
View file @
f11f3869
...
...
@@ -8,7 +8,7 @@ web_section = REQUEST.get("current_web_section")
return
default_web_page
.
WebPage_viewAsWeb
(
mapping_dict
=
{
"frontpage_gadget"
:
web_section
.
getLayoutProperty
(
"configuration_frontpage_gadget_url"
,
default
=
""
),
"frontpage_gadget"
:
web_section
.
getLayoutProperty
(
"configuration_frontpage_gadget_url"
,
default
=
"
worklist
"
),
"application_title"
:
web_section
.
getLayoutProperty
(
"configuration_application_title"
,
default
=
"ERP5"
),
"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"
),
...
...
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