mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-18 14:11:10 +00:00
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
|
|
@ -2,10 +2,12 @@
|
|||
= f.hidden_field :cfp_type
|
||||
.form-group
|
||||
= f.label :start_date, "Start Date"
|
||||
= f.text_field :start_date, class: 'form-control', id: 'registration-period-start-datepicker', start_date: @conference.start_date, end_date: @conference.end_date
|
||||
%abbr{title: 'This field is required'} *
|
||||
= f.date_field :start_date, class: 'form-control', required: true
|
||||
.form-group
|
||||
= f.label :end_date, "End Date"
|
||||
= f.text_field :end_date, class: 'form-control', id: 'registration-period-end-datepicker', start_date: @conference.start_date, end_date: @conference.end_date
|
||||
%abbr{title: 'This field is required'} *
|
||||
= f.date_field :end_date, class: 'form-control', required: true
|
||||
.form-group
|
||||
= f.label :description, "Description"
|
||||
= f.text_area :description, rows: 2, data: { provide: 'markdown' }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue