mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +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
|
|
@ -13,12 +13,12 @@
|
|||
= f.color_field :color, size: 6, required: true, class: 'form-control'
|
||||
.form-group
|
||||
= f.label :start_date, "Start Date"
|
||||
= f.text_field :start_date, id: 'registration-period-start-datepicker', start_date: @conference.start_date, end_date: @conference.end_date, required: @track.self_organized_and_accepted_or_confirmed?, class: 'form-control'
|
||||
= f.date_field :start_date, required: @track.self_organized_and_accepted_or_confirmed?, class: 'form-control'
|
||||
- if @track.self_organized_and_accepted_or_confirmed?
|
||||
%abbr{title: 'This field is required'} *
|
||||
.form-group
|
||||
= f.label :end_date, "End Date"
|
||||
= f.text_field :end_date, id: 'registration-period-end-datepicker', required: @track.self_organized_and_accepted_or_confirmed?, class: 'form-control'
|
||||
= f.date_field :end_date, required: @track.self_organized_and_accepted_or_confirmed?, class: 'form-control'
|
||||
- if @track.self_organized_and_accepted_or_confirmed?
|
||||
%abbr{title: 'This field is required'} *
|
||||
- if current_user.is_admin?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue