about summary refs log tree commit diff
path: root/app/views/admin/settings
diff options
context:
space:
mode:
authorguigeekz <pattusg@gmail.com>2020-03-08 16:04:03 +0100
committerGitHub <noreply@github.com>2020-03-08 16:04:03 +0100
commite31ba618d4e2449727118bbd358a079f544c1a8f (patch)
treed200215ce54877e0379e992af4b0809e172ab061 /app/views/admin/settings
parentfd76955f3942bbd7ec830ab535bc31621cac14a4 (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/admin/settings')
-rw-r--r--app/views/admin/settings/edit.html.haml5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/admin/settings/edit.html.haml b/app/views/admin/settings/edit.html.haml
index dc08f0141..f37775aa9 100644
--- a/app/views/admin/settings/edit.html.haml
+++ b/app/views/admin/settings/edit.html.haml
@@ -4,7 +4,10 @@
 - content_for :page_title do
   = t('admin.settings.title')
 
-= simple_form_for @admin_settings, url: admin_settings_path, html: { method: :patch } do |f|
+  - content_for :heading_actions do
+    = button_tag t('generic.save_changes'), class: 'button', form: 'edit_admin'
+
+= simple_form_for @admin_settings, url: admin_settings_path, html: { method: :patch, id: 'edit_admin' } do |f|
   = render 'shared/error_messages', object: @admin_settings
 
   .fields-group