Replace registration-period datepickers with date input
Nowadays all browsers have reasonable date input support...
This commit is contained in:
parent
f4d9561eaa
commit
07bfff8fa1
7 changed files with 39 additions and 68 deletions
|
|
@ -125,7 +125,7 @@ class Cfp < ApplicationRecord
|
|||
|
||||
def start_after_end_date
|
||||
errors
|
||||
.add(:start_date, "can't be after the end date") if start_date && end_date && start_date > end_date
|
||||
.add(:start_date, "can't be after the end date") if start_date > end_date
|
||||
end
|
||||
|
||||
def conference_id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue