diff options
author | guigeekz <pattusg@gmail.com> | 2020-03-08 16:04:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-08 16:04:03 +0100 |
commit | e31ba618d4e2449727118bbd358a079f544c1a8f (patch) | |
tree | d200215ce54877e0379e992af4b0809e172ab061 /app/views/settings/preferences/other | |
parent | fd76955f3942bbd7ec830ab535bc31621cac14a4 (diff) |
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
Diffstat (limited to 'app/views/settings/preferences/other')
-rw-r--r-- | app/views/settings/preferences/other/show.html.haml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/settings/preferences/other/show.html.haml b/app/views/settings/preferences/other/show.html.haml index db7d806bc..539a70056 100644 --- a/app/views/settings/preferences/other/show.html.haml +++ b/app/views/settings/preferences/other/show.html.haml @@ -1,7 +1,10 @@ - content_for :page_title do = t('settings.preferences') -= simple_form_for current_user, url: settings_preferences_other_path, html: { method: :put } do |f| +- 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| = render 'shared/error_messages', object: current_user .fields-group |