<%= render partial: 'users/settings/account/navigation.html.erb' %>
<%= form_for(@user,
url: update_preferences_path(format: :json),
remote: true,
html: { method: :put, 'data-for' => 'time_zone' }) 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', 'ata-role' => 'clear'} %>
<%= t("users.settings.account.preferences.edit.time_zone_sublabel") %>
<% end %>
<% if Rails.configuration.x.enable_tutorial %>
<%= t('tutorial.title') %>
<%= link_to t('users.settings.account.preferences.tutorial.repeat_tutorial'),
tutorial_path(format: :json),
remote: true,
class: 'btn btn-primary',
id: 'reset-tutorial-btn' %>
<% end %>
<%= t('notifications.title') %>
<%= form_for(@user,
url: notifications_settings_path(format: :json),
html: { method: :post, id: 'notifications-settings-panel' },
remote: true) do |f| %>
<%= fa_icon 'newspaper-o' %>
<%=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_notification_email %>
<%= 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_notification_email %>
<%=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_notification_email %>
<% end %>