aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/settings/index.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/settings/index.html.haml')
-rw-r--r--app/views/settings/index.html.haml14
1 files changed, 8 insertions, 6 deletions
diff --git a/app/views/settings/index.html.haml b/app/views/settings/index.html.haml
index d0a4f53..fb72845 100644
--- a/app/views/settings/index.html.haml
+++ b/app/views/settings/index.html.haml
@@ -1,12 +1,14 @@
- title "Settings"
.container
.row
- %h1.col-sm-3.col-md-offset-1.setting Settings
+ .col-sm-3.col-md-offset-1
+ .sidebar
+ %h1 Settings
.col-sm-9.col-md-7.col-lg-6
- = form_tag "/i/settings/update", method: :post do
+ = form_tag settings_update_path, method: "post" do
.checkbox
- = check_box_tag :notification_enabled, true, @account.notification_enabled
- = label_tag :notification_enabled, t("views.settings.enable_notification")
+ %input{type: "checkbox", name: "notification_enabled", checked: @account.notification_enabled ? "checked" : nil}
+ %label{for: "notification_enabled"}= t("views.settings.enable_notification")
.form-group
- = submit_tag "Submit", class: "btn btn-default"
- = link_to t("views.settings.confirm_deactivation"), { controller: "settings", action: "confirm_deactivation" }, class: "btn btn-link"
+ %input.btn.btn-default{type: "submit"}
+ %a.btn.btn-link{href: url_for(only_path: true, controller: "settings", action: "confirm_deactivation")}= t("views.settings.confirm_deactivation")