Merge pull request #1437 from okriuchykhin/ok_SCI_2907

Change sample date in date format settings [SCI-2907]
This commit is contained in:
Alex Kriuchykhin 2019-01-03 16:10:19 +01:00 committed by GitHub
commit 8ffe5dafee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@
disabled="disabled"
autocomplete="off"
type="text"
value="<%= l(Time.new(2014, 5, 16), format: :full_date) %>"
value="<%= l(Time.new(2014, 11, 6), format: :full_date) %>"
name="fake_user[settings][time_zone]"
id="fake_user_settings_date_format">
<span class="input-group-btn">
@ -80,7 +80,7 @@
<h4><%=t "users.settings.account.preferences.edit.date_format_title" %></h4>
<div class="form-group" style="max-width: 500px;">
<%= f.select :date_format, Constants::SUPPORTED_DATE_FORMATS.collect { |df|
["#{l(Time.new(2014, 5, 16), format: :full_date, date_format: df)}", df]
["#{l(Time.new(2014, 11, 6), format: :full_date, date_format: df)}", df]
}, {}, { class: 'form-control selectpicker', 'data-role': 'clear' } %>
<small><%= t("users.settings.account.preferences.edit.date_format_sublabel") %></small>
</div>