Add submit button to the top of preferences pages (#13068)
* Move submit button to the top of the edit page * Duplicate save button on long form * Fix click submit on profile spec
This commit is contained in:
@ -1,7 +1,10 @@
|
||||
- content_for :page_title do
|
||||
= t('settings.appearance')
|
||||
|
||||
= simple_form_for current_user, url: settings_preferences_appearance_path, html: { method: :put } do |f|
|
||||
- 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|
|
||||
.fields-row
|
||||
.fields-group.fields-row__column.fields-row__column-6
|
||||
= f.input :locale, collection: I18n.available_locales, wrapper: :with_label, include_blank: false, label_method: lambda { |locale| human_locale(locale) }, selected: I18n.locale, hint: false
|
||||
|
Reference in New Issue
Block a user