Use a more uniform 'Save' for most form submits, fixes #523

master
Pierre Jaury 6 years ago
parent b6e4b0e557
commit 5ad02ae2e5

@ -50,7 +50,7 @@ class DomainForm(flask_wtf.FlaskForm):
max_quota_bytes = fields_.IntegerSliderField(_('Maximum user quota'), default=0) max_quota_bytes = fields_.IntegerSliderField(_('Maximum user quota'), default=0)
signup_enabled = fields.BooleanField(_('Enable sign-up'), default=False) signup_enabled = fields.BooleanField(_('Enable sign-up'), default=False)
comment = fields.StringField(_('Comment')) comment = fields.StringField(_('Comment'))
submit = fields.SubmitField(_('Create')) submit = fields.SubmitField(_('Save'))
class DomainSignupForm(flask_wtf.FlaskForm): class DomainSignupForm(flask_wtf.FlaskForm):
@ -64,14 +64,14 @@ class DomainSignupForm(flask_wtf.FlaskForm):
class AlternativeForm(flask_wtf.FlaskForm): class AlternativeForm(flask_wtf.FlaskForm):
name = fields.StringField(_('Alternative name'), [validators.DataRequired()]) name = fields.StringField(_('Alternative name'), [validators.DataRequired()])
submit = fields.SubmitField(_('Create')) submit = fields.SubmitField(_('Save'))
class RelayForm(flask_wtf.FlaskForm): class RelayForm(flask_wtf.FlaskForm):
name = fields.StringField(_('Relayed domain name'), [validators.DataRequired()]) name = fields.StringField(_('Relayed domain name'), [validators.DataRequired()])
smtp = fields.StringField(_('Remote host')) smtp = fields.StringField(_('Remote host'))
comment = fields.StringField(_('Comment')) comment = fields.StringField(_('Comment'))
submit = fields.SubmitField(_('Create')) submit = fields.SubmitField(_('Save'))
class UserForm(flask_wtf.FlaskForm): class UserForm(flask_wtf.FlaskForm):
@ -130,7 +130,7 @@ class TokenForm(flask_wtf.FlaskForm):
ip = fields.StringField( ip = fields.StringField(
_('Authorized IP'), [validators.Optional(), validators.IPAddress()] _('Authorized IP'), [validators.Optional(), validators.IPAddress()]
) )
submit = fields.SubmitField(_('Create')) submit = fields.SubmitField(_('Save'))
class AliasForm(flask_wtf.FlaskForm): class AliasForm(flask_wtf.FlaskForm):
@ -139,7 +139,7 @@ class AliasForm(flask_wtf.FlaskForm):
_('Use SQL LIKE Syntax (e.g. for catch-all aliases)')) _('Use SQL LIKE Syntax (e.g. for catch-all aliases)'))
destination = DestinationField(_('Destination')) destination = DestinationField(_('Destination'))
comment = fields.StringField(_('Comment')) comment = fields.StringField(_('Comment'))
submit = fields.SubmitField(_('Create')) submit = fields.SubmitField(_('Save'))
class AdminForm(flask_wtf.FlaskForm): class AdminForm(flask_wtf.FlaskForm):

Loading…
Cancel
Save