Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
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
Paul Graydon
slapos.core
Commits
824d41bc
Commit
824d41bc
authored
Oct 28, 2022
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio: Support Required on textarea (Editor)
parent
dacfeb78
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_parameter_form_js.js
...age_module/rjs_gadget_erp5_page_slap_parameter_form_js.js
+7
-7
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_parameter_form_js.xml
...ge_module/rjs_gadget_erp5_page_slap_parameter_form_js.xml
+1
-1
No files found.
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_parameter_form_js.js
View file @
824d41bc
...
@@ -150,18 +150,18 @@
...
@@ -150,18 +150,18 @@
}
}
function
render_textarea
(
json_field
,
default_value
,
data_format
,
is_required
)
{
function
render_textarea
(
json_field
,
default_value
,
data_format
,
is_required
)
{
var
value
=
''
;
var
property_dict
=
{
"
data-format
"
:
data_format
}
;
if
(
default_value
!==
undefined
)
{
if
(
default_value
!==
undefined
)
{
if
(
default_value
instanceof
Array
)
{
if
(
default_value
instanceof
Array
)
{
value
=
default_value
.
join
(
"
\n
"
);
property_dict
.
value
=
default_value
.
join
(
"
\n
"
);
}
else
{
}
else
{
value
=
default_value
;
property_dict
.
value
=
default_value
;
}
}
}
}
return
domsugar
(
'
textarea
'
,
{
if
(
is_required
)
{
value
:
value
,
property_dict
.
required
=
true
;
"
data-format
"
:
data_format
}
}
);
return
domsugar
(
'
textarea
'
,
property_dict
);
}
}
function
render_field
(
json_field
,
default_value
,
is_required
)
{
function
render_field
(
json_field
,
default_value
,
is_required
)
{
...
...
master/bt5/slapos_jio/PathTemplateItem/web_page_module/rjs_gadget_erp5_page_slap_parameter_form_js.xml
View file @
824d41bc
...
@@ -298,7 +298,7 @@
...
@@ -298,7 +298,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16669
65524.99
</float>
<float>
16669
75592.36
</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