mirror of
https://github.com/mastodon/mastodon
synced 2024-12-12 05:38:19 +09:00
Remove explicit put
action in settings forms (#32176)
This commit is contained in:
parent
a473988969
commit
53624b1b54
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
%hr/
|
%hr/
|
||||||
|
|
||||||
= simple_form_for @application, url: settings_application_path(@application), method: :put do |form|
|
= simple_form_for @application, url: settings_application_path(@application) do |form|
|
||||||
= render form
|
= render form
|
||||||
|
|
||||||
.actions
|
.actions
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
- content_for :heading_actions do
|
- content_for :heading_actions do
|
||||||
= button_tag t('generic.save_changes'), class: 'button', form: 'edit_user'
|
= 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-row
|
||||||
.fields-group.fields-row__column.fields-row__column-6
|
.fields-group.fields-row__column.fields-row__column-6
|
||||||
= f.input :locale,
|
= f.input :locale,
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
- content_for :heading_actions do
|
- content_for :heading_actions do
|
||||||
= button_tag t('generic.save_changes'), class: 'button', form: 'edit_notification'
|
= 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
|
= render 'shared/error_messages', object: current_user
|
||||||
|
|
||||||
%h4= t 'notifications.email_events'
|
%h4= t 'notifications.email_events'
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
- content_for :heading_actions do
|
- content_for :heading_actions do
|
||||||
= button_tag t('generic.save_changes'), class: 'button', form: 'edit_preferences'
|
= 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
|
= render 'shared/error_messages', object: current_user
|
||||||
|
|
||||||
= f.simple_fields_for :settings, current_user.settings do |ff|
|
= f.simple_fields_for :settings, current_user.settings do |ff|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
%h2= t('settings.profile')
|
%h2= t('settings.profile')
|
||||||
= render partial: 'settings/shared/profile_navigation'
|
= render partial: 'settings/shared/profile_navigation'
|
||||||
|
|
||||||
= simple_form_for @account, url: settings_privacy_path, html: { method: :put } do |f|
|
= simple_form_for @account, url: settings_privacy_path do |f|
|
||||||
= render 'shared/error_messages', object: @account
|
= render 'shared/error_messages', object: @account
|
||||||
|
|
||||||
%p.lead= t('privacy.hint_html')
|
%p.lead= t('privacy.hint_html')
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
%h2= t('settings.profile')
|
%h2= t('settings.profile')
|
||||||
= render partial: 'settings/shared/profile_navigation'
|
= render partial: 'settings/shared/profile_navigation'
|
||||||
|
|
||||||
= simple_form_for @account, url: settings_profile_path, html: { method: :put, id: 'edit_profile' } do |f|
|
= simple_form_for @account, url: settings_profile_path, html: { id: :edit_profile } do |f|
|
||||||
= render 'shared/error_messages', object: @account
|
= render 'shared/error_messages', object: @account
|
||||||
|
|
||||||
%p.lead= t('edit_profile.hint_html')
|
%p.lead= t('edit_profile.hint_html')
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
= material_symbol 'check', class: 'verified-badge__mark'
|
= material_symbol 'check', class: 'verified-badge__mark'
|
||||||
%span= field.value
|
%span= field.value
|
||||||
|
|
||||||
= simple_form_for @account, url: settings_verification_path, html: { method: :put, class: 'form-section' } do |f|
|
= simple_form_for @account, url: settings_verification_path, html: { class: 'form-section' } do |f|
|
||||||
= render 'shared/error_messages', object: @account
|
= render 'shared/error_messages', object: @account
|
||||||
|
|
||||||
%h3= t('author_attribution.title')
|
%h3= t('author_attribution.title')
|
||||||
|
Loading…
Reference in New Issue
Block a user