<%= form_for(@user,
url: update_preferences_path(format: :json),
remote: true,
html: {
method: :put,
'data-for' => 'settings[time_zone]',
'data-turbolinks' => false
}) do |f| %>
<%=t "users.settings.account.preferences.edit.time_zone_title" %>
<%= f.select :time_zone, ActiveSupport::TimeZone.all.collect { |tz|
[tz.formatted_offset + " " + tz.name, tz.name]
}, {}, {class: 'form-control selectpicker', 'data-role': 'clear'} %>
<%= t("users.settings.account.preferences.edit.time_zone_sublabel") %>
<% end %>
<%= t('notifications.title') %>
<%= form_for(@user,
url: notifications_settings_path(format: :json),
html: { method: :post, id: 'notifications-settings-panel' },
remote: true) do |f| %>
<%=t 'notifications.form.assignments' %>
<%=t 'notifications.form.assignments_description' %>
<%=t 'notifications.form.notification_scinote' %>
<%= check_box_tag :assignments_notification, @user.assignments_notification %>
<%=t 'notifications.form.notification_email' %>
<%= check_box_tag :assignments_notification_email, @user.assignments_email_notification %>
<%= image_tag 'icon_small/missing.png', class: 'img-circle ' %>
<%=t 'notifications.form.recent_notification' %>
<%=t 'notifications.form.recent_notification_description' %>
<%=t 'notifications.form.notification_scinote' %>
<%= check_box_tag :recent_notification, @user.recent_notification %>
<%=t 'notifications.form.notification_email' %>
<%= check_box_tag :recent_notification_email, @user.recent_email_notification %>
<%=t 'notifications.form.system_message' %>
<%=t 'notifications.form.system_message_description' %>
<%=t 'notifications.form.notification_scinote' %>
<%= check_box_tag :system_message_notification %>
<%=t 'notifications.form.notification_email' %>
<%= check_box_tag :system_message_notification_email, @user.system_message_email_notification %>
<%= t('notifications.tips.title') %>
<%=t 'notifications.tips.text1' %>
<%=t 'notifications.tips.text2' %>
<%=t 'notifications.tips.toggle' %>
<%= check_box_tag :popover_v2_toggle, @user.popover_v2_toggle %>
<% end %>