Replace registration-period datepickers with date input

Nowadays all browsers have reasonable date input support...
This commit is contained in:
Henne Vogelsang 2024-06-06 21:52:39 +02:00
parent f4d9561eaa
commit 07bfff8fa1
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
7 changed files with 39 additions and 68 deletions

View file

@ -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