2011-08-02 17:25:45 +02:00
|
|
|
<%= pref_with_text_field('prefs', 'date_format') %>
|
2011-08-17 22:51:02 +02:00
|
|
|
|
|
|
|
|
<div class='prefs_example'>This will result in: <span id='prefs.date_format'><%= l(Date.today, :format => current_user.prefs.date_format) %></span></div>
|
|
|
|
|
<br/>
|
|
|
|
|
Or pick one of the following:<br/>
|
|
|
|
|
<% %w{default short long longer}.each do |format| %>
|
|
|
|
|
<%= radio_button_tag("date_picker1", t("date.formats.#{format}")) %> <%= l(Date.today, :format => format.to_sym) %> <br/>
|
|
|
|
|
<% end %>
|
|
|
|
|
<br/>
|
|
|
|
|
|
2011-08-02 17:25:45 +02:00
|
|
|
<%= pref_with_text_field('prefs', 'title_date_format') %>
|
2011-08-17 22:51:02 +02:00
|
|
|
<div class='prefs_example'>This will result in: <span id='prefs.title_date_format'><%= l(Date.today, :format => current_user.prefs.title_date_format) %></span></div>
|
|
|
|
|
<br/>
|
|
|
|
|
Or pick one of the following:<br/>
|
|
|
|
|
<% %w{default short long longer}.each do |format| %>
|
|
|
|
|
<%= radio_button_tag("date_picker2", t("date.formats.#{format}")) %> <%= l(Date.today, :format => format.to_sym) %> <br/>
|
|
|
|
|
<% end %>
|
|
|
|
|
<br/>
|
|
|
|
|
|
2011-08-02 17:25:45 +02:00
|
|
|
<%= pref('prefs', 'time_zone') { time_zone_select('prefs','time_zone') } %>
|
|
|
|
|
|
|
|
|
|
<%= pref_with_select_field('prefs', "week_starts", (0..6).to_a.map {|num| [t('date.day_names')[num], num] }) %>
|
|
|
|
|
|