Commit 2480da44 authored by Nicolas Delaby's avatar Nicolas Delaby

Add new property on Forms to choose button title displayed

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27258 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 38de4ad8
# -*- coding: utf-8 -*-
#############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
......@@ -452,6 +453,10 @@ def create_settings_form():
title='Form update action',
required=0,
default="")
update_action_title = fields.StringField('update_action_title',
title="Update Action Title",
required=0,
default="")
method = fields.ListField('method',
title='Form method',
items=[('POST', 'POST'),
......@@ -485,8 +490,8 @@ 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, method,
enctype, encoding, stored_encoding, unicode_mode, edit_order])
form.add_fields([title, description, row_length, name, pt, action, update_action, update_action_title,
method, enctype, encoding, stored_encoding, unicode_mode, edit_order])
return form
class ERP5Form(ZMIForm, ZopePageTemplate):
......@@ -529,6 +534,7 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
# Default Attributes
pt = 'form_view'
update_action = ''
update_action_title = ''
edit_order = []
# Special Settings
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment