<% add_decidim_page_title(t("notifications_settings", scope: "layouts.decidim.user_profile")) %> <% content_for(:subtitle) { t("notifications_settings", scope: "layouts.decidim.user_profile") } %>
<%= form_for(@notifications_settings, url: notifications_settings_path, method: :put, class: "user-form") do |f| %>

<%= t(".receive_notifications_about") %>

<%= f.label :notifications_from_own_activity do %> <%= f.check_box :notifications_from_own_activity, label: false, class: "switch-input" %> <%= t(".own_activity") %> <% end %>
<%= f.label :notifications_from_followed do %> <%= f.check_box :notifications_from_followed, label: false, class: "switch-input" %> <%= t(".everything_followed") %> <% end %>

<%= t(".send_notifications_by_email") %>

<%= f.label :email_on_notification do %> <%= f.check_box :email_on_notification, label: false, class: "switch-input" %> <%= t(".email_on_notification") %> <% end %>

<%= t(".newsletters") %>

<%= t(".direct_messages") %>

<% if @notifications_settings.user_is_moderator?(current_user) %>

<%= t(".administrators") %>

<% end %> <%= f.submit t(".update_notifications_settings") %> <% end %>