ironjan / klausurtool-ror

Previous Klausurtool of the FSMI UPB.
Apache License 2.0
2 stars 0 forks source link

Date Input only for 10 last years #196

Closed ironjan closed 8 years ago

ironjan commented 8 years ago

Potential Defect

How does this problem happen?

  1. Go to a folder
  2. Add exam
  3. Try to enter date

    What does happen?

You can only enter years before 2011-2021.

What do you expect to happen instead?

You can enter years before 2011; you can enter at most 1 + current year.

Potential Fix

http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#method-i-date_select and set min year to 1970, because there are really, really old exams in our collection.

Optional: change month input to number, not name. This disrupts the input flow.