Remove explicit put
action in settings forms (#32176)
This commit is contained in:
parent
8ae381fd04
commit
7e35bef97e
7 changed files with 7 additions and 7 deletions
|
@ -4,7 +4,7 @@
|
|||
- content_for :heading_actions do
|
||||
= button_tag t('generic.save_changes'), class: 'button', form: 'edit_user'
|
||||
|
||||
= simple_form_for current_user, url: settings_preferences_appearance_path, html: { method: :put, id: 'edit_user' } do |f|
|
||||
= simple_form_for current_user, url: settings_preferences_appearance_path, html: { id: :edit_user } do |f|
|
||||
.fields-row
|
||||
.fields-group.fields-row__column.fields-row__column-6
|
||||
= f.input :locale,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
- content_for :heading_actions do
|
||||
= button_tag t('generic.save_changes'), class: 'button', form: 'edit_notification'
|
||||
|
||||
= simple_form_for current_user, url: settings_preferences_notifications_path, html: { method: :put, id: 'edit_notification' } do |f|
|
||||
= simple_form_for current_user, url: settings_preferences_notifications_path, html: { id: :edit_notification } do |f|
|
||||
= render 'shared/error_messages', object: current_user
|
||||
|
||||
%h4= t 'notifications.email_events'
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
- content_for :heading_actions do
|
||||
= button_tag t('generic.save_changes'), class: 'button', form: 'edit_preferences'
|
||||
|
||||
= simple_form_for current_user, url: settings_preferences_other_path, html: { method: :put, id: 'edit_preferences' } do |f|
|
||||
= simple_form_for current_user, url: settings_preferences_other_path, html: { id: :edit_preferences } do |f|
|
||||
= render 'shared/error_messages', object: current_user
|
||||
|
||||
= f.simple_fields_for :settings, current_user.settings do |ff|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue