aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-01-13 20:14:26 +0100
committerHarald Eilertsen <haraldei@anduin.net>2018-01-13 20:14:26 +0100
commit41e3d426246dc1891cff2f35e6af3c2d9eec321c (patch)
tree82105ad3a07834502089bffec5c4b774abe0c521
parent8e4524397eb89318e2846dfe0005a2ba45bc9457 (diff)
downloadhmnoweb-41e3d426246dc1891cff2f35e6af3c2d9eec321c.tar.gz
hmnoweb-41e3d426246dc1891cff2f35e6af3c2d9eec321c.tar.bz2
hmnoweb-41e3d426246dc1891cff2f35e6af3c2d9eec321c.zip
Explicitly set year range when creating new gallery links.
-rw-r--r--vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_form.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_form.html.erb b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_form.html.erb
index ba872b7..b67a350 100644
--- a/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_form.html.erb
+++ b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_form.html.erb
@@ -5,7 +5,7 @@
<div class='field'>
<%= f.label :date -%>
- <%= f.date_select :date -%>
+ <%= f.date_select :date, start_year: Date.today.year - 10, end_year: Date.today.year, default: Date.today -%>
</div>
<div class='field'>