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
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
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():
title
=
'Form action'
,
required
=
0
,
default
=
""
)
action_title
=
fields
.
StringField
(
'action_title'
,
title
=
"Action Title"
,
required
=
0
,
default
=
""
)
update_action
=
fields
.
StringField
(
'update_action'
,
title
=
'Form update action'
,
required
=
0
,
...
...
@@ -558,7 +562,7 @@ def create_settings_form():
title
=
'Setters for these properties should be'
'<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
])
return
form
...
...
@@ -620,6 +624,7 @@ class ERP5Form(Base, ZMIForm, ZopePageTemplate):
# Default Attributes
pt
=
'form_view'
action_title
=
''
update_action
=
''
update_action_title
=
''
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