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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
erp5
Commits
299a5d6e
Commit
299a5d6e
authored
Sep 04, 2019
by
Valentin Benozillo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Form: Add action title field
parent
fe06db19
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
product/ERP5Form/Form.py
product/ERP5Form/Form.py
+6
-1
No files found.
product/ERP5Form/Form.py
View file @
299a5d6e
...
@@ -517,6 +517,10 @@ def create_settings_form():
...
@@ -517,6 +517,10 @@ def create_settings_form():
title
=
'Form action'
,
title
=
'Form action'
,
required
=
0
,
required
=
0
,
default
=
""
)
default
=
""
)
action_title
=
fields
.
StringField
(
'action_title'
,
title
=
"Action Title"
,
required
=
0
,
default
=
""
)
update_action
=
fields
.
StringField
(
'update_action'
,
update_action
=
fields
.
StringField
(
'update_action'
,
title
=
'Form update action'
,
title
=
'Form update action'
,
required
=
0
,
required
=
0
,
...
@@ -558,7 +562,7 @@ def create_settings_form():
...
@@ -558,7 +562,7 @@ def create_settings_form():
title
=
'Setters for these properties should be'
title
=
'Setters for these properties should be'
'<br /> called by edit() in the defined order'
)
'<br /> called by edit() in the defined order'
)
form
.
add_fields
([
title
,
description
,
row_length
,
name
,
pt
,
action
,
update_action
,
update_action_title
,
form
.
add_fields
([
title
,
description
,
row_length
,
name
,
pt
,
action
,
action_title
,
update_action
,
update_action_title
,
method
,
enctype
,
encoding
,
stored_encoding
,
unicode_mode
,
edit_order
])
method
,
enctype
,
encoding
,
stored_encoding
,
unicode_mode
,
edit_order
])
return
form
return
form
...
@@ -620,6 +624,7 @@ class ERP5Form(Base, ZMIForm, ZopePageTemplate):
...
@@ -620,6 +624,7 @@ class ERP5Form(Base, ZMIForm, ZopePageTemplate):
# Default Attributes
# Default Attributes
pt
=
'form_view'
pt
=
'form_view'
action_title
=
''
update_action
=
''
update_action
=
''
update_action_title
=
''
update_action_title
=
''
edit_order
=
[]
edit_order
=
[]
...
...
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