about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-25 15:48:20 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-25 15:48:20 +0200
commit693383234c68397c22bb94d1d93cb33c6a8ae939 (patch)
tree063fe3b2e7a2a8c0353a1542e26559a7c05d6fa1 /app/views
parente9bc4a4a0822235afebbefa0c4d660b1be9ae52f (diff)
Improved style of settings page
Diffstat (limited to 'app/views')
-rw-r--r--app/views/settings/show.html.haml23
1 files changed, 13 insertions, 10 deletions
diff --git a/app/views/settings/show.html.haml b/app/views/settings/show.html.haml
index e184d1ca6..fe4d37b55 100644
--- a/app/views/settings/show.html.haml
+++ b/app/views/settings/show.html.haml
@@ -1,14 +1,17 @@
 - content_for :page_title do
   Edit profile
 
-= simple_form_for @account, url: settings_path, method: :put do |f|
-  = f.error_notification
+= form_for @account, url: settings_path, html: { method: :put } do |f|
+  .field
+    = f.text_field :display_name, placeholder: 'Display name'
+  .field
+    = f.text_area :note, placeholder: 'Bio'
+  .file-field
+    = f.label :avatar
+    = f.file_field :avatar
+  .file-field
+    = f.label :header
+    = f.file_field :header
 
-  .form-inputs
-    = f.input :display_name
-    = f.input :note
-    = f.input :avatar
-    = f.input :header
-
-  .form-actions
-    = f.button :submit, 'Save changes'
+  .actions
+    = f.button 'Save changes', type: :submit