Skip to content

Commit

Permalink
Avoid duplication of ids on settings page
Browse files Browse the repository at this point in the history
Part of #32.
  • Loading branch information
lukegb committed Jul 29, 2017
1 parent a77b681 commit 3d852ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spongeauth/accounts/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

self.helper = FormHelper()
self.helper.add_input(Submit('save', _("Save changes"),
self.helper.add_input(Submit('profile-save', _("Save changes"),
css_class='pull-right'))
self.helper.add_input(Hidden('form', 'profile'))

Expand All @@ -246,7 +246,7 @@ def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

self.helper = FormHelper()
self.helper.add_input(Submit('save', _("Change password"),
self.helper.add_input(Submit('password-save', _("Change password"),
css_class='pull-right'))
self.helper.add_input(Hidden('form', 'password'))

Expand Down Expand Up @@ -282,7 +282,7 @@ def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

self.helper = FormHelper()
self.helper.add_input(Submit('save', _("Set avatar"),
self.helper.add_input(Submit('avatar-save', _("Set avatar"),
css_class='pull-right'))
self.helper.add_input(Hidden('form', 'avatar'))

Expand Down

0 comments on commit 3d852ad

Please sign in to comment.