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
1
Issues
1
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
Roque
erp5
Commits
05210e87
Commit
05210e87
authored
May 26, 2020
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: add LabelField support
parent
5b93b30f
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
880 additions
and
151 deletions
+880
-151
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_label_field_js.js
...ateItem/web_page_module/rjs_gadget_erp5_label_field_js.js
+2
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_label_field_js.xml
...teItem/web_page_module/rjs_gadget_erp5_label_field_js.xml
+163
-151
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_labelfield_html.html
...Item/web_page_module/rjs_gadget_erp5_labelfield_html.html
+19
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_labelfield_html.xml
...eItem/web_page_module/rjs_gadget_erp5_labelfield_html.xml
+334
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_labelfield_js.js
...lateItem/web_page_module/rjs_gadget_erp5_labelfield_js.js
+30
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_labelfield_js.xml
...ateItem/web_page_module/rjs_gadget_erp5_labelfield_js.xml
+330
-0
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs/WebSection_getPrecacheManifest.py
...skins/erp5_web_renderjs/WebSection_getPrecacheManifest.py
+2
-0
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_label_field_js.js
View file @
05210e87
...
@@ -47,6 +47,8 @@
...
@@ -47,6 +47,8 @@
field_url
=
'
gadget_erp5_field_file.html
'
;
field_url
=
'
gadget_erp5_field_file.html
'
;
}
else
if
(
field_type
===
'
IntegerField
'
)
{
}
else
if
(
field_type
===
'
IntegerField
'
)
{
field_url
=
'
gadget_erp5_field_integer.html
'
;
field_url
=
'
gadget_erp5_field_integer.html
'
;
}
else
if
(
field_type
===
'
LabelField
'
)
{
field_url
=
'
gadget_erp5_field_label.html
'
;
}
else
if
(
field_type
===
'
ListBox
'
)
{
}
else
if
(
field_type
===
'
ListBox
'
)
{
field_url
=
'
gadget_erp5_field_listbox.html
'
;
field_url
=
'
gadget_erp5_field_listbox.html
'
;
}
else
if
(
field_type
===
'
EditorField
'
)
{
}
else
if
(
field_type
===
'
EditorField
'
)
{
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_label_field_js.xml
View file @
05210e87
This diff is collapsed.
Click to expand it.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_labelfield_html.html
0 → 100644
View file @
05210e87
<!DOCTYPE html>
<html>
<head>
<meta
http-equiv=
"Content-type"
content=
"text/html; charset=utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width"
/>
<title>
ERP5 Labelfield
</title>
<link
rel=
"http://www.renderjs.org/rel/interface"
href=
"interface_erp5_field.html"
>
<link
rel=
"http://www.renderjs.org/rel/interface"
href=
"interface_erp5_form_content_provider.html"
>
<!-- renderjs -->
<script
src=
"rsvp.js"
type=
"text/javascript"
></script>
<script
src=
"renderjs.js"
type=
"text/javascript"
></script>
<!-- custom script -->
<script
src=
"gadget_erp5_field_label.js"
type=
"text/javascript"
></script>
</head>
<body>
</body>
</html>
\ No newline at end of file
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_labelfield_html.xml
0 → 100644
View file @
05210e87
This diff is collapsed.
Click to expand it.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_labelfield_js.js
0 → 100644
View file @
05210e87
/*global window, rJS */
/*jslint indent: 2, maxerr: 3 */
(
function
(
window
,
rJS
)
{
"
use strict
"
;
rJS
(
window
)
.
setState
({
tag
:
'
p
'
})
.
declareMethod
(
'
render
'
,
function
(
options
)
{
var
field_json
=
options
.
field_json
||
{};
return
this
.
changeState
({
value
:
field_json
.
value
||
field_json
.
default
||
""
});
})
.
onStateChange
(
function
()
{
this
.
element
.
innerHTML
=
this
.
state
.
value
;
})
.
declareMethod
(
'
getContent
'
,
function
()
{
return
{};
})
.
declareMethod
(
'
checkValidity
'
,
function
()
{
return
true
;
});
}(
window
,
rJS
));
\ No newline at end of file
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_labelfield_js.xml
0 → 100644
View file @
05210e87
This diff is collapsed.
Click to expand it.
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs/WebSection_getPrecacheManifest.py
View file @
05210e87
...
@@ -46,6 +46,8 @@ url_list = [
...
@@ -46,6 +46,8 @@ url_list = [
'gadget_erp5_field_image.js'
,
'gadget_erp5_field_image.js'
,
'gadget_erp5_field_integer.html'
,
'gadget_erp5_field_integer.html'
,
'gadget_erp5_field_integer.js'
,
'gadget_erp5_field_integer.js'
,
'gadget_erp5_field_label.html'
,
'gadget_erp5_field_label.js'
,
'gadget_erp5_field_list.html'
,
'gadget_erp5_field_list.html'
,
'gadget_erp5_field_list.js'
,
'gadget_erp5_field_list.js'
,
'gadget_erp5_field_lines.html'
,
'gadget_erp5_field_lines.html'
,
...
...
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