aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcedricnjanga2018-03-26 07:02:11 -0700
committercedricnjanga2018-03-26 07:02:11 -0700
commitb1f912c4bcf1944df933da4fed800ad3f81f34d8 (patch)
tree7ee6350414fdd2001dd73eac16b2152154ab20c7
parentdd4768576baed54f9b0f40efa645b85d5a2fd273 (diff)
downloadchouette-core-b1f912c4bcf1944df933da4fed800ad3f81f34d8.tar.bz2
Refs #5949 Change default years collection in referential#new date select5949-referential-date-select
-rw-r--r--app/views/referentials/_period_fields.html.slim4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/referentials/_period_fields.html.slim b/app/views/referentials/_period_fields.html.slim
index 4d2372f7b..b0038c6b3 100644
--- a/app/views/referentials/_period_fields.html.slim
+++ b/app/views/referentials/_period_fields.html.slim
@@ -8,8 +8,8 @@
.wrapper
div
- = f.input :begin, as: :date, label: false, wrapper_html: { class: 'date smart_date' }
+ = f.input :begin, as: :date, label: false, start_year: Date.today.year - 15, end_year: Date.today.year + 15, wrapper_html: { class: 'date smart_date' }
div
- = f.input :end, as: :date, label: false, wrapper_html: { class: 'date smart_date' }
+ = f.input :end, as: :date, label: false, start_year: Date.today.year - 15, end_year: Date.today.year + 15, wrapper_html: { class: 'date smart_date' }
div
= link_to_remove_association '', f, class: 'fa fa-trash', data: { confirm: t('are_you_sure')}, title: t('actions.delete')