%= pref_with_text_field('prefs', 'date_format') %>
<%= I18n.t('preferences.result_in') %> <%= l(Time.zone.today, :format => current_user.prefs.date_format) %>
<%= I18n.t('preferences.pick_one') %>
<% [:default, :short, :long, :longer].each do |format| %>
<% end %>
<%= pref_with_text_field('prefs', 'title_date_format') %>
<%= I18n.t('preferences.result_in') %> <%= l(Time.zone.today, :format => current_user.prefs.title_date_format) %>
<%= I18n.t('preferences.pick_one') %>
<% [:default, :short, :long, :longer].each do |format| %>
<% end %>
<%= pref('prefs', 'time_zone') { time_zone_select('prefs','time_zone', [], {}, class: "form-control") } %>
<%= pref_with_select_field('prefs', "week_starts", (0..6).to_a.map {|num| [t('date.day_names')[num], num] }) %>