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
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
Laurent S
erp5
Commits
0c188f1d
Commit
0c188f1d
authored
Mar 26, 2018
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Form: InputButtonField: src attribute is not allowed for submit type element
parent
0c011964
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
product/ERP5Form/InputButtonField.py
product/ERP5Form/InputButtonField.py
+8
-5
No files found.
product/ERP5Form/InputButtonField.py
View file @
0c188f1d
...
...
@@ -71,18 +71,21 @@ class InputButtonWidget(Widget.Widget):
def
render
(
self
,
field
,
key
,
value
,
REQUEST
,
render_prefix
=
None
):
"""Render input button.
"""
render_kw
=
{
'name'
:
field
.
get_value
(
'name'
),
'css_class'
:
field
.
get_value
(
'css_class'
),
'value'
:
field
.
get_value
(
'default'
),
'extra'
:
field
.
get_value
(
'extra'
)
}
image
=
field
.
get_value
(
'image'
)
if
image
:
html_type
=
"image"
render_kw
[
'src'
]
=
image
else
:
html_type
=
"submit"
return
Widget
.
render_element
(
'input'
,
type
=
html_type
,
src
=
image
,
name
=
field
.
get_value
(
'name'
),
css_class
=
field
.
get_value
(
'css_class'
),
value
=
field
.
get_value
(
'default'
),
extra
=
field
.
get_value
(
'extra'
))
**
render_kw
)
InputButtonWidgetInstance
=
InputButtonWidget
()
...
...
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