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
Tatuya Kamada
erp5
Commits
636ecab1
Commit
636ecab1
authored
Nov 17, 2016
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui] Add support for the field hidden property
parent
cbe50b0f
Changes
45
Hide whitespace changes
Inline
Side-by-side
Showing
45 changed files
with
131 additions
and
76 deletions
+131
-76
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_appcache.xml
...TemplateItem/web_page_module/rjs_gadget_erp5_appcache.xml
+3
-3
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_checkboxfield_js.js
...eItem/web_page_module/rjs_gadget_erp5_checkboxfield_js.js
+2
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_checkboxfield_js.xml
...Item/web_page_module/rjs_gadget_erp5_checkboxfield_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_datetimefield_js.js
...eItem/web_page_module/rjs_gadget_erp5_datetimefield_js.js
+6
-3
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_datetimefield_js.xml
...Item/web_page_module/rjs_gadget_erp5_datetimefield_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_editorfield_js.js
...ateItem/web_page_module/rjs_gadget_erp5_editorfield_js.js
+2
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_editorfield_js.xml
...teItem/web_page_module/rjs_gadget_erp5_editorfield_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_emailfield_js.js
...lateItem/web_page_module/rjs_gadget_erp5_emailfield_js.js
+2
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_emailfield_js.xml
...ateItem/web_page_module/rjs_gadget_erp5_emailfield_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_filefield_js.js
...plateItem/web_page_module/rjs_gadget_erp5_filefield_js.js
+2
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_filefield_js.xml
...lateItem/web_page_module/rjs_gadget_erp5_filefield_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_floatfield_js.js
...lateItem/web_page_module/rjs_gadget_erp5_floatfield_js.js
+2
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_floatfield_js.xml
...ateItem/web_page_module/rjs_gadget_erp5_floatfield_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_gadgetfield_js.js
...ateItem/web_page_module/rjs_gadget_erp5_gadgetfield_js.js
+4
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_gadgetfield_js.xml
...teItem/web_page_module/rjs_gadget_erp5_gadgetfield_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_integerfield_js.js
...teItem/web_page_module/rjs_gadget_erp5_integerfield_js.js
+2
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_integerfield_js.xml
...eItem/web_page_module/rjs_gadget_erp5_integerfield_js.xml
+2
-2
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
+9
-1
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
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listfield_js.js
...plateItem/web_page_module/rjs_gadget_erp5_listfield_js.js
+2
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listfield_js.xml
...lateItem/web_page_module/rjs_gadget_erp5_listfield_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_multicheckboxfield_js.js
.../web_page_module/rjs_gadget_erp5_multicheckboxfield_js.js
+4
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_multicheckboxfield_js.xml
...web_page_module/rjs_gadget_erp5_multicheckboxfield_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_multilistfield_js.js
...Item/web_page_module/rjs_gadget_erp5_multilistfield_js.js
+4
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_multilistfield_js.xml
...tem/web_page_module/rjs_gadget_erp5_multilistfield_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_multirelationstringfield_js.js
...age_module/rjs_gadget_erp5_multirelationstringfield_js.js
+4
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_multirelationstringfield_js.xml
...ge_module/rjs_gadget_erp5_multirelationstringfield_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_passwordfield_js.js
...eItem/web_page_module/rjs_gadget_erp5_passwordfield_js.js
+2
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_passwordfield_js.xml
...Item/web_page_module/rjs_gadget_erp5_passwordfield_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_radiofield_js.js
...lateItem/web_page_module/rjs_gadget_erp5_radiofield_js.js
+4
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_radiofield_js.xml
...ateItem/web_page_module/rjs_gadget_erp5_radiofield_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_readonlyfield_js.js
...eItem/web_page_module/rjs_gadget_erp5_readonlyfield_js.js
+2
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_readonlyfield_js.xml
...Item/web_page_module/rjs_gadget_erp5_readonlyfield_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_relationstringfield_js.js
...web_page_module/rjs_gadget_erp5_relationstringfield_js.js
+2
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_relationstringfield_js.xml
...eb_page_module/rjs_gadget_erp5_relationstringfield_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_stringfield_js.js
...ateItem/web_page_module/rjs_gadget_erp5_stringfield_js.js
+2
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_stringfield_js.xml
...teItem/web_page_module/rjs_gadget_erp5_stringfield_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_textareafield_js.js
...eItem/web_page_module/rjs_gadget_erp5_textareafield_js.js
+2
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_textareafield_js.xml
...Item/web_page_module/rjs_gadget_erp5_textareafield_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_input_js.js
...TemplateItem/web_page_module/rjs_gadget_html5_input_js.js
+8
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_input_js.xml
...emplateItem/web_page_module/rjs_gadget_html5_input_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_select_js.js
...emplateItem/web_page_module/rjs_gadget_html5_select_js.js
+8
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_select_js.xml
...mplateItem/web_page_module/rjs_gadget_html5_select_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_textarea_js.js
...plateItem/web_page_module/rjs_gadget_html5_textarea_js.js
+9
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_textarea_js.xml
...lateItem/web_page_module/rjs_gadget_html5_textarea_js.xml
+2
-2
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_appcache.xml
View file @
636ecab1
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<value>
<string
encoding=
"cdata"
>
<![CDATA[
CACHE MANIFEST\n
CACHE MANIFEST\n
# generated on
Mon, 14 Nov 2016 13
:00:00 GMT\n
# generated on
Thu, 17 Nov 2016 09
:00:00 GMT\n
# XXX + fonts\n
# XXX + fonts\n
# images/ajax-loader.gif\n
# images/ajax-loader.gif\n
CACHE:\n
CACHE:\n
...
@@ -366,7 +366,7 @@ NETWORK:\n
...
@@ -366,7 +366,7 @@ NETWORK:\n
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
955.
17979.44859.41147
</string>
</value>
<value>
<string>
955.
22033.47737.64221
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -384,7 +384,7 @@ NETWORK:\n
...
@@ -384,7 +384,7 @@ NETWORK:\n
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1479
133193.61
</float>
<float>
1479
376430.07
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_checkboxfield_js.js
View file @
636ecab1
...
@@ -15,7 +15,8 @@
...
@@ -15,7 +15,8 @@
checked
:
field_json
.
value
||
field_json
.
default
,
checked
:
field_json
.
value
||
field_json
.
default
,
editable
:
field_json
.
editable
,
editable
:
field_json
.
editable
,
name
:
field_json
.
key
,
name
:
field_json
.
key
,
title
:
field_json
.
title
title
:
field_json
.
title
,
hidden
:
field_json
.
hidden
};
};
state_dict
.
text_content
=
state_dict
.
checked
?
'
✓
'
:
''
;
state_dict
.
text_content
=
state_dict
.
checked
?
'
✓
'
:
''
;
return
this
.
changeState
(
state_dict
);
return
this
.
changeState
(
state_dict
);
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_checkboxfield_js.xml
View file @
636ecab1
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
954.
35867.63296.32580
</string>
</value>
<value>
<string>
954.
45675.44850.53452
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
147
6274434.41
</float>
<float>
147
9375799.46
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_datetimefield_js.js
View file @
636ecab1
...
@@ -56,7 +56,8 @@
...
@@ -56,7 +56,8 @@
subfield_day_key
:
field_json
.
subfield_day_key
,
subfield_day_key
:
field_json
.
subfield_day_key
,
subfield_timezone_key
:
field_json
.
subfield_timezone_key
,
subfield_timezone_key
:
field_json
.
subfield_timezone_key
,
start_datetime
:
field_json
.
start_datetime
,
start_datetime
:
field_json
.
start_datetime
,
end_datetime
:
field_json
.
end_datetime
end_datetime
:
field_json
.
end_datetime
,
hidden
:
field_json
.
hidden
};
};
return
this
.
changeState
(
state_dict
);
return
this
.
changeState
(
state_dict
);
})
})
...
@@ -84,14 +85,16 @@
...
@@ -84,14 +85,16 @@
name
:
gadget
.
state
.
key
+
'
_input
'
,
name
:
gadget
.
state
.
key
+
'
_input
'
,
editable
:
gadget
.
state
.
editable
,
editable
:
gadget
.
state
.
editable
,
required
:
gadget
.
state
.
required
,
required
:
gadget
.
state
.
required
,
type
:
gadget
.
state
.
date_only
?
"
date
"
:
"
datetime-local
"
type
:
gadget
.
state
.
date_only
?
"
date
"
:
"
datetime-local
"
,
hidden
:
gadget
.
state
.
hidden
},
},
select_state
=
{
select_state
=
{
name
:
gadget
.
state
.
key
+
'
_select
'
,
name
:
gadget
.
state
.
key
+
'
_select
'
,
value
:
"
+0000
"
,
value
:
"
+0000
"
,
item_list
:
ZONE_LIST
,
item_list
:
ZONE_LIST
,
editable
:
gadget
.
state
.
editable
,
editable
:
gadget
.
state
.
editable
,
required
:
gadget
.
state
.
required
required
:
gadget
.
state
.
required
,
hidden
:
gadget
.
state
.
hidden
// name: field_json.key,
// name: field_json.key,
// title: field_json.title
// title: field_json.title
},
},
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_datetimefield_js.xml
View file @
636ecab1
...
@@ -224,7 +224,7 @@
...
@@ -224,7 +224,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
954.4
4614.5572.28040
</string>
</value>
<value>
<string>
954.4
5772.6944.63351
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
147
6799333.29
</float>
<float>
147
9375786.87
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_editorfield_js.js
View file @
636ecab1
...
@@ -13,7 +13,8 @@
...
@@ -13,7 +13,8 @@
value
:
field_json
.
value
||
field_json
.
default
||
""
,
value
:
field_json
.
value
||
field_json
.
default
||
""
,
editable
:
field_json
.
editable
,
editable
:
field_json
.
editable
,
name
:
field_json
.
key
,
name
:
field_json
.
key
,
title
:
field_json
.
title
title
:
field_json
.
title
,
hidden
:
field_json
.
hidden
};
};
state_dict
.
inner_html
=
state_dict
.
value
;
state_dict
.
inner_html
=
state_dict
.
value
;
return
this
.
changeState
(
state_dict
);
return
this
.
changeState
(
state_dict
);
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_editorfield_js.xml
View file @
636ecab1
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
955.22
48.62859.20377
</string>
</value>
<value>
<string>
955.22
52.33079.47462
</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>
147
8189550.24
</float>
<float>
147
9375938.91
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_emailfield_js.js
View file @
636ecab1
...
@@ -16,7 +16,8 @@
...
@@ -16,7 +16,8 @@
required
:
field_json
.
required
,
required
:
field_json
.
required
,
name
:
field_json
.
key
,
name
:
field_json
.
key
,
title
:
field_json
.
title
,
title
:
field_json
.
title
,
type
:
'
email
'
type
:
'
email
'
,
hidden
:
field_json
.
hidden
};
};
state_dict
.
text_content
=
state_dict
.
value
;
state_dict
.
text_content
=
state_dict
.
value
;
return
this
.
changeState
(
state_dict
);
return
this
.
changeState
(
state_dict
);
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_emailfield_js.xml
View file @
636ecab1
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
954.4
2781.26559.24780
</string>
</value>
<value>
<string>
954.4
5675.44850.53452
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
147
6689142.53
</float>
<float>
147
9375741.07
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_filefield_js.js
View file @
636ecab1
...
@@ -15,7 +15,8 @@
...
@@ -15,7 +15,8 @@
editable
:
field_json
.
editable
,
editable
:
field_json
.
editable
,
required
:
field_json
.
required
,
required
:
field_json
.
required
,
name
:
field_json
.
key
,
name
:
field_json
.
key
,
title
:
field_json
.
title
title
:
field_json
.
title
,
hidden
:
field_json
.
hidden
};
};
return
this
.
changeState
(
state_dict
);
return
this
.
changeState
(
state_dict
);
})
})
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_filefield_js.xml
View file @
636ecab1
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
954.471
26.41874.54613
</string>
</value>
<value>
<string>
954.471
31.47054.46694
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
147
6950143.07
</float>
<float>
147
9375829.11
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_floatfield_js.js
View file @
636ecab1
...
@@ -18,7 +18,8 @@
...
@@ -18,7 +18,8 @@
required
:
field_json
.
required
,
required
:
field_json
.
required
,
name
:
field_json
.
key
,
name
:
field_json
.
key
,
title
:
field_json
.
title
,
title
:
field_json
.
title
,
precision
:
field_json
.
precision
precision
:
field_json
.
precision
,
hidden
:
field_json
.
hidden
};
};
state_dict
.
text_content
=
state_dict
.
value
;
state_dict
.
text_content
=
state_dict
.
value
;
if
(
field_json
.
precision
)
{
if
(
field_json
.
precision
)
{
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_floatfield_js.xml
View file @
636ecab1
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
954.
34618.13218.720
2
</string>
</value>
<value>
<string>
954.
45675.44850.5345
2
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
147
6698259.52
</float>
<float>
147
9375725.91
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_gadgetfield_js.js
View file @
636ecab1
...
@@ -11,7 +11,8 @@
...
@@ -11,7 +11,8 @@
value
:
options
.
field_json
.
default
,
value
:
options
.
field_json
.
default
,
editable
:
options
.
field_json
.
editable
,
editable
:
options
.
field_json
.
editable
,
url
:
options
.
field_json
.
url
,
url
:
options
.
field_json
.
url
,
sandbox
:
options
.
field_json
.
sandbox
||
undefined
sandbox
:
options
.
field_json
.
sandbox
||
undefined
,
hidden
:
options
.
field_json
.
hidden
});
});
})
})
...
@@ -57,7 +58,8 @@
...
@@ -57,7 +58,8 @@
return
result
.
render
({
return
result
.
render
({
key
:
gadget
.
state
.
key
,
key
:
gadget
.
state
.
key
,
value
:
gadget
.
state
.
value
,
value
:
gadget
.
state
.
value
,
editable
:
gadget
.
state
.
editable
editable
:
gadget
.
state
.
editable
,
hidden
:
gadget
.
state
.
hidden
});
});
});
});
})
})
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_gadgetfield_js.xml
View file @
636ecab1
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
954.5903
7.54566.52462
</string>
</value>
<value>
<string>
954.5903
8.25329.7150
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
147
7664543.13
</float>
<float>
147
9375711.35
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_integerfield_js.js
View file @
636ecab1
...
@@ -17,7 +17,8 @@
...
@@ -17,7 +17,8 @@
editable
:
field_json
.
editable
,
editable
:
field_json
.
editable
,
required
:
field_json
.
required
,
required
:
field_json
.
required
,
name
:
field_json
.
key
,
name
:
field_json
.
key
,
title
:
field_json
.
title
title
:
field_json
.
title
,
hidden
:
field_json
.
hidden
};
};
state_dict
.
text_content
=
state_dict
.
value
;
state_dict
.
text_content
=
state_dict
.
value
;
return
this
.
changeState
(
state_dict
);
return
this
.
changeState
(
state_dict
);
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_integerfield_js.xml
View file @
636ecab1
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
954.4
2915.19295.27187
</string>
</value>
<value>
<string>
954.4
5675.44850.53452
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
147
6697168.98
</float>
<float>
147
9375649.91
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_label_field_js.js
View file @
636ecab1
...
@@ -27,13 +27,21 @@
...
@@ -27,13 +27,21 @@
field_url
:
options
.
field_url
,
field_url
:
options
.
field_url
,
error_text
:
options
.
field_json
.
error_text
||
''
,
error_text
:
options
.
field_json
.
error_text
||
''
,
options
:
options
,
options
:
options
,
scope
:
options
.
field_json
.
key
scope
:
options
.
field_json
.
key
,
hidden
:
options
.
field_json
.
hidden
};
};
return
this
.
changeState
(
state_dict
);
return
this
.
changeState
(
state_dict
);
})
})
.
onStateChange
(
function
(
modification_dict
)
{
.
onStateChange
(
function
(
modification_dict
)
{
var
gadget
=
this
;
var
gadget
=
this
;
if
(
gadget
.
state
.
hidden
)
{
this
.
element
.
hidden
=
true
;
}
else
{
this
.
element
.
hidden
=
false
;
}
if
(
modification_dict
.
hasOwnProperty
(
'
label_text
'
))
{
if
(
modification_dict
.
hasOwnProperty
(
'
label_text
'
))
{
this
.
state
.
label_text_element
.
textContent
=
this
.
state
.
label_text
;
this
.
state
.
label_text_element
.
textContent
=
this
.
state
.
label_text
;
}
}
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_label_field_js.xml
View file @
636ecab1
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
4.44486.54507.19541
</string>
</value>
<value>
<string>
95
5.22025.27821.47377
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
147
6793988.08
</float>
<float>
147
9376095.96
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listfield_js.js
View file @
636ecab1
...
@@ -17,7 +17,8 @@
...
@@ -17,7 +17,8 @@
required
:
field_json
.
required
,
required
:
field_json
.
required
,
name
:
field_json
.
key
,
name
:
field_json
.
key
,
title
:
field_json
.
title
,
title
:
field_json
.
title
,
first_item
:
field_json
.
first_item
first_item
:
field_json
.
first_item
,
hidden
:
field_json
.
hidden
};
};
if
((
!
state_dict
.
value
)
&&
(
state_dict
.
first_item
))
{
if
((
!
state_dict
.
value
)
&&
(
state_dict
.
first_item
))
{
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listfield_js.xml
View file @
636ecab1
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
954.4
5675.44850.53452
</string>
</value>
<value>
<string>
954.4
7274.43639.56354
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
147
6958719.91
</float>
<float>
147
9375598.52
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_multicheckboxfield_js.js
View file @
636ecab1
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
name
:
gadget
.
state
.
name
,
name
:
gadget
.
state
.
name
,
value
:
item
[
1
],
value
:
item
[
1
],
checked
:
checked
,
checked
:
checked
,
editable
:
true
editable
:
true
,
hidden
:
gadget
.
state
.
hidden
};
};
return
result
.
render
(
state_dict
);
return
result
.
render
(
state_dict
);
...
@@ -65,7 +66,8 @@
...
@@ -65,7 +66,8 @@
editable
:
field_json
.
editable
,
editable
:
field_json
.
editable
,
name
:
field_json
.
key
,
name
:
field_json
.
key
,
item_list
:
field_json
.
items
,
item_list
:
field_json
.
items
,
value_list
:
field_json
.
value
||
field_json
.
default
value_list
:
field_json
.
value
||
field_json
.
default
,
hidden
:
field_json
.
hidden
};
};
return
this
.
changeState
(
state_dict
);
return
this
.
changeState
(
state_dict
);
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_multicheckboxfield_js.xml
View file @
636ecab1
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
954.5893
4.61981.16162
</string>
</value>
<value>
<string>
954.5893
5.16621.30429
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
147
7658355.17
</float>
<float>
147
9375555.86
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_multilistfield_js.js
View file @
636ecab1
...
@@ -20,7 +20,8 @@
...
@@ -20,7 +20,8 @@
// Check requirement globally instead
// Check requirement globally instead
required
:
0
,
required
:
0
,
key
:
'
sub
'
,
key
:
'
sub
'
,
title
:
gadget
.
state
.
title
title
:
gadget
.
state
.
title
,
hidden
:
gadget
.
state
.
hidden
};
};
return
result
.
render
({
field_json
:
state
});
return
result
.
render
({
field_json
:
state
});
});
});
...
@@ -38,7 +39,8 @@
...
@@ -38,7 +39,8 @@
name
:
field_json
.
key
,
name
:
field_json
.
key
,
title
:
field_json
.
title
,
title
:
field_json
.
title
,
sub_select_key
:
field_json
.
sub_select_key
,
sub_select_key
:
field_json
.
sub_select_key
,
sub_input_key
:
field_json
.
sub_input_key
sub_input_key
:
field_json
.
sub_input_key
,
hidden
:
field_json
.
hidden
};
};
if
((
item_list
.
length
===
0
)
||
(
item_list
[
0
][
0
]
!==
""
))
{
if
((
item_list
.
length
===
0
)
||
(
item_list
[
0
][
0
]
!==
""
))
{
item_list
.
unshift
([
""
,
""
]);
item_list
.
unshift
([
""
,
""
]);
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_multilistfield_js.xml
View file @
636ecab1
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
954.
38966.23297.54869
</string>
</value>
<value>
<string>
954.
45675.44850.53452
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
147
6460241.48
</float>
<float>
147
9375515.85
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_multirelationstringfield_js.js
View file @
636ecab1
...
@@ -27,7 +27,8 @@
...
@@ -27,7 +27,8 @@
value_text
:
value_text
,
value_text
:
value_text
,
value_uid
:
value_uid
,
value_uid
:
value_uid
,
value_portal_type
:
value_portal_type
,
value_portal_type
:
value_portal_type
,
relation_index
:
index
relation_index
:
index
,
hidden
:
gadget
.
state
.
hidden
});
});
})
})
.
push
(
function
()
{
.
push
(
function
()
{
...
@@ -54,7 +55,8 @@
...
@@ -54,7 +55,8 @@
url
:
field_json
.
url
,
url
:
field_json
.
url
,
allow_creation
:
field_json
.
allow_creation
,
allow_creation
:
field_json
.
allow_creation
,
portal_types
:
field_json
.
portal_types
,
portal_types
:
field_json
.
portal_types
,
relation_field_id
:
field_json
.
relation_field_id
relation_field_id
:
field_json
.
relation_field_id
,
hidden
:
field_json
.
hidden
};
};
if
(
field_json
.
default
.
hasOwnProperty
(
'
value_text_list
'
))
{
if
(
field_json
.
default
.
hasOwnProperty
(
'
value_text_list
'
))
{
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_multirelationstringfield_js.xml
View file @
636ecab1
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
4.57699.3960.12356
</string>
</value>
<value>
<string>
95
5.7644.28099.443
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
147
8513065.6
8
</float>
<float>
147
9375486.5
8
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_passwordfield_js.js
View file @
636ecab1
...
@@ -16,7 +16,8 @@
...
@@ -16,7 +16,8 @@
required
:
field_json
.
required
,
required
:
field_json
.
required
,
name
:
field_json
.
key
,
name
:
field_json
.
key
,
title
:
field_json
.
title
,
title
:
field_json
.
title
,
type
:
'
password
'
type
:
'
password
'
,
hidden
:
field_json
.
hidden
};
};
state_dict
.
text_content
=
state_dict
.
value
;
state_dict
.
text_content
=
state_dict
.
value
;
return
this
.
changeState
(
state_dict
);
return
this
.
changeState
(
state_dict
);
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_passwordfield_js.xml
View file @
636ecab1
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
954.4
2836.22978.32768
</string>
</value>
<value>
<string>
954.4
5675.44850.53452
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
147
6692631.72
</float>
<float>
147
9375816.46
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_radiofield_js.js
View file @
636ecab1
...
@@ -16,7 +16,8 @@
...
@@ -16,7 +16,8 @@
type
:
'
radio
'
,
type
:
'
radio
'
,
name
:
gadget
.
state
.
name
,
name
:
gadget
.
state
.
name
,
value
:
item
[
1
],
value
:
item
[
1
],
editable
:
true
editable
:
true
,
hidden
:
gadget
.
state
.
hidden
};
};
if
(
item
[
1
]
===
gadget
.
state
.
value
)
{
if
(
item
[
1
]
===
gadget
.
state
.
value
)
{
state_dict
.
checked
=
1
;
state_dict
.
checked
=
1
;
...
@@ -53,7 +54,8 @@
...
@@ -53,7 +54,8 @@
editable
:
field_json
.
editable
,
editable
:
field_json
.
editable
,
name
:
field_json
.
key
,
name
:
field_json
.
key
,
title
:
field_json
.
title
,
title
:
field_json
.
title
,
item_list
:
field_json
.
items
item_list
:
field_json
.
items
,
hidden
:
field_json
.
hidden
};
};
//the first item will always be selected if no initial default value is supplied.
//the first item will always be selected if no initial default value is supplied.
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_radiofield_js.xml
View file @
636ecab1
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
954.58788.
20793.64136
</string>
</value>
<value>
<string>
954.58788.
30707.10649
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
147
7649548.1
</float>
<float>
147
9375435.94
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_readonlyfield_js.js
View file @
636ecab1
...
@@ -11,7 +11,8 @@
...
@@ -11,7 +11,8 @@
.
declareMethod
(
'
render
'
,
function
(
options
)
{
.
declareMethod
(
'
render
'
,
function
(
options
)
{
var
field_json
=
options
.
field_json
||
{},
var
field_json
=
options
.
field_json
||
{},
state_dict
=
{
state_dict
=
{
text_content
:
field_json
.
value
||
field_json
.
default
||
""
text_content
:
field_json
.
value
||
field_json
.
default
||
""
,
hidden
:
field_json
.
hidden
};
};
return
this
.
changeState
(
state_dict
);
return
this
.
changeState
(
state_dict
);
})
})
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_readonlyfield_js.xml
View file @
636ecab1
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
954.4
2865.16049.14216
</string>
</value>
<value>
<string>
954.4
5675.44850.53452
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
147
6694564.13
</float>
<float>
147
9375342.52
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_relationstringfield_js.js
View file @
636ecab1
...
@@ -25,7 +25,8 @@
...
@@ -25,7 +25,8 @@
allow_creation
:
field_json
.
allow_creation
,
allow_creation
:
field_json
.
allow_creation
,
portal_types
:
field_json
.
portal_types
,
portal_types
:
field_json
.
portal_types
,
value_relative_url
:
field_json
.
relation_item_relative_url
[
0
],
value_relative_url
:
field_json
.
relation_item_relative_url
[
0
],
relation_index
:
0
relation_index
:
0
,
hidden
:
field_json
.
hidden
};
};
if
(
field_json
.
default
.
hasOwnProperty
(
'
value_text_list
'
))
{
if
(
field_json
.
default
.
hasOwnProperty
(
'
value_text_list
'
))
{
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_relationstringfield_js.xml
View file @
636ecab1
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
955.764
0.34748.48025
</string>
</value>
<value>
<string>
955.764
3.7350.21333
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
147
8512986.6
8
</float>
<float>
147
9375314.4
8
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_stringfield_js.js
View file @
636ecab1
...
@@ -15,7 +15,8 @@
...
@@ -15,7 +15,8 @@
editable
:
field_json
.
editable
,
editable
:
field_json
.
editable
,
required
:
field_json
.
required
,
required
:
field_json
.
required
,
name
:
field_json
.
key
,
name
:
field_json
.
key
,
title
:
field_json
.
title
title
:
field_json
.
title
,
hidden
:
field_json
.
hidden
};
};
state_dict
.
text_content
=
state_dict
.
value
;
state_dict
.
text_content
=
state_dict
.
value
;
return
this
.
changeState
(
state_dict
);
return
this
.
changeState
(
state_dict
);
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_stringfield_js.xml
View file @
636ecab1
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
4.35858.57287.35225
</string>
</value>
<value>
<string>
95
5.22003.16805.3003
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
147
6273908.28
</float>
<float>
147
9375148.32
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_textareafield_js.js
View file @
636ecab1
...
@@ -13,7 +13,8 @@
...
@@ -13,7 +13,8 @@
value
:
field_json
.
value
||
field_json
.
default
||
""
,
value
:
field_json
.
value
||
field_json
.
default
||
""
,
editable
:
field_json
.
editable
,
editable
:
field_json
.
editable
,
name
:
field_json
.
key
,
name
:
field_json
.
key
,
title
:
field_json
.
title
title
:
field_json
.
title
,
hidden
:
field_json
.
hidden
};
};
state_dict
.
text_content
=
state_dict
.
value
;
state_dict
.
text_content
=
state_dict
.
value
;
return
this
.
changeState
(
state_dict
);
return
this
.
changeState
(
state_dict
);
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_textareafield_js.xml
View file @
636ecab1
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
954.
34595.10317.3037
</string>
</value>
<value>
<string>
954.
45675.44850.53452
</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>
147
6198249.72
</float>
<float>
147
9375229.95
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_input_js.js
View file @
636ecab1
...
@@ -23,7 +23,8 @@
...
@@ -23,7 +23,8 @@
type
:
options
.
type
||
'
text
'
,
type
:
options
.
type
||
'
text
'
,
title
:
options
.
title
,
title
:
options
.
title
,
focus
:
options
.
focus
,
focus
:
options
.
focus
,
step
:
options
.
step
step
:
options
.
step
,
hidden
:
options
.
hidden
};
};
return
this
.
changeState
(
state_dict
);
return
this
.
changeState
(
state_dict
);
})
})
...
@@ -60,6 +61,12 @@
...
@@ -60,6 +61,12 @@
textarea
.
readonly
=
false
;
textarea
.
readonly
=
false
;
}
}
if
(
this
.
state
.
hidden
)
{
textarea
.
hidden
=
true
;
}
else
{
textarea
.
hidden
=
false
;
}
if
(
this
.
state
.
focus
===
true
)
{
if
(
this
.
state
.
focus
===
true
)
{
textarea
.
autofocus
=
true
;
textarea
.
autofocus
=
true
;
textarea
.
focus
();
textarea
.
focus
();
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_input_js.xml
View file @
636ecab1
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
4.58784.35206.25787
</string>
</value>
<value>
<string>
95
5.22004.39620.55808
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
147
7649395.
4
</float>
<float>
147
9376608.9
4
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_select_js.js
View file @
636ecab1
...
@@ -37,7 +37,8 @@
...
@@ -37,7 +37,8 @@
editable
:
options
.
editable
,
editable
:
options
.
editable
,
required
:
options
.
required
,
required
:
options
.
required
,
name
:
options
.
name
,
name
:
options
.
name
,
title
:
options
.
title
title
:
options
.
title
,
hidden
:
options
.
hidden
};
};
return
this
.
changeState
(
state_dict
);
return
this
.
changeState
(
state_dict
);
})
})
...
@@ -67,6 +68,12 @@
...
@@ -67,6 +68,12 @@
select
.
readonly
=
false
;
select
.
readonly
=
false
;
}
}
if
(
this
.
state
.
hidden
)
{
select
.
hidden
=
true
;
}
else
{
select
.
hidden
=
false
;
}
if
(
modification_dict
.
hasOwnProperty
(
'
value
'
)
||
if
(
modification_dict
.
hasOwnProperty
(
'
value
'
)
||
modification_dict
.
hasOwnProperty
(
'
item_list
'
))
{
modification_dict
.
hasOwnProperty
(
'
item_list
'
))
{
for
(
i
=
0
;
i
<
item_list
.
length
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
item_list
.
length
;
i
+=
1
)
{
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_select_js.xml
View file @
636ecab1
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
954.
38576.23571.27630
</string>
</value>
<value>
<string>
954.
45675.44850.53452
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
147
6437054.93
</float>
<float>
147
9374875.05
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_textarea_js.js
View file @
636ecab1
...
@@ -25,7 +25,8 @@
...
@@ -25,7 +25,8 @@
value
:
options
.
value
,
value
:
options
.
value
,
editable
:
options
.
editable
,
editable
:
options
.
editable
,
name
:
options
.
name
,
name
:
options
.
name
,
title
:
options
.
title
title
:
options
.
title
,
hidden
:
options
.
hidden
};
};
return
this
.
changeState
(
state_dict
);
return
this
.
changeState
(
state_dict
);
})
})
...
@@ -48,6 +49,13 @@
...
@@ -48,6 +49,13 @@
}
else
{
}
else
{
textarea
.
setAttribute
(
'
readonly
'
,
'
readonly
'
);
textarea
.
setAttribute
(
'
readonly
'
,
'
readonly
'
);
}
}
if
(
this
.
state
.
hidden
)
{
textarea
.
hidden
=
true
;
}
else
{
textarea
.
hidden
=
false
;
}
})
})
.
declareMethod
(
'
getContent
'
,
function
()
{
.
declareMethod
(
'
getContent
'
,
function
()
{
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_html5_textarea_js.xml
View file @
636ecab1
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
955.1800
1.28212.40413
</string>
</value>
<value>
<string>
955.1800
3.19903.19131
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1479
134598.21
</float>
<float>
1479
374797.29
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
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