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
Łukasz Nowak
erp5
Commits
41b9dcf2
Commit
41b9dcf2
authored
May 25, 2020
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: Implement pagehelp gadget
parent
b8a5f439
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1018 additions
and
0 deletions
+1018
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_pagehelp_css.css
...hTemplateItem/web_page_module/rjs_gadget_pagehelp_css.css
+6
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_pagehelp_css.xml
...hTemplateItem/web_page_module/rjs_gadget_pagehelp_css.xml
+327
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_pagehelp_html.html
...emplateItem/web_page_module/rjs_gadget_pagehelp_html.html
+21
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_pagehelp_html.xml
...TemplateItem/web_page_module/rjs_gadget_pagehelp_html.xml
+325
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_pagehelp_js.js
...athTemplateItem/web_page_module/rjs_gadget_pagehelp_js.js
+18
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_pagehelp_js.xml
...thTemplateItem/web_page_module/rjs_gadget_pagehelp_js.xml
+321
-0
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_pagehelp_css.css
0 → 100644
View file @
41b9dcf2
.pagehelp
{
background-color
:
#ffffd5
;
}
p
.pagehelp
{
display
:
none
;
}
\ No newline at end of file
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_pagehelp_css.xml
0 → 100644
View file @
41b9dcf2
This diff is collapsed.
Click to expand it.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_pagehelp_html.html
0 → 100644
View file @
41b9dcf2
<!DOCTYPE html>
<html>
<head>
<meta
http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no"
/>
<title>
Pagehelp
</title>
<!-- renderjs -->
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<script
src=
"gadget_pagehelp.js"
type=
"text/javascript"
></script>
<link
href=
"gadget_pagehelp.css"
rel=
"stylesheet"
>
</head>
<body>
<div
class=
"ui-btn ui-btn-icon-left ui-icon-info pagehelp"
>
<p
class=
"pagehelp"
>
Page help placeholder.
</p>
</div>
</body>
</html>
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_pagehelp_html.xml
0 → 100644
View file @
41b9dcf2
This diff is collapsed.
Click to expand it.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_pagehelp_js.js
0 → 100644
View file @
41b9dcf2
(
function
(
window
,
rJS
)
{
rJS
(
window
)
.
onStateChange
(
function
(
modification_dict
)
{
if
(
modification_dict
.
hasOwnProperty
(
'
helptext
'
))
{
var
x
=
this
.
element
.
getElementsByTagName
(
"
P
"
)[
0
];
x
.
innerText
=
modification_dict
.
helptext
.
trim
();
}
})
.
onEvent
(
'
click
'
,
function
(
evt
)
{
var
x
=
this
.
element
.
getElementsByTagName
(
"
P
"
)[
0
];
if
(
x
.
style
.
display
===
"
none
"
)
{
x
.
style
.
display
=
"
block
"
;
}
else
{
x
.
style
.
display
=
"
none
"
;
}
},
false
,
false
);
}(
window
,
rJS
));
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_pagehelp_js.xml
0 → 100644
View file @
41b9dcf2
This diff is collapsed.
Click to expand it.
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