crowdcover / congo-mines-app

Rails app for the CongoMines project
1 stars 0 forks source link

year dropdowns on data input form #56

Closed jameslaneconkling closed 9 years ago

jameslaneconkling commented 9 years ago

this applies to all fields that represent a year

markmcdonald51 commented 9 years ago
config.columns[:year].form_ui = :select
config.columns[:year].options = {include_blank: 'Select Year', options: (1950..Time.now.year) }

done!

jameslaneconkling commented 9 years ago

Not a big deal, but is it possible to change this to (Time.now.year..2000), so that is displays 2015 at top of drop down?