mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Datapickers in Call for Events/Booths/Tracks were broken which made impossible to create them (as the date is required). Those are not the only Datepickers broken and a similar solution should work for the rest as well. Fixes https://github.com/openSUSE/osem/issues/2349
28 lines
1.1 KiB
Text
28 lines
1.1 KiB
Text
.row
|
|
.col-md-12
|
|
.page-header
|
|
%h1
|
|
Call for
|
|
= cfp.cfp_type.capitalize
|
|
.row
|
|
.col-md-8
|
|
= semantic_form_for(cfp, url: cfp_form_url(cfp, conference),
|
|
html: { multipart: true,
|
|
data: { end_conference: conference.end_date.to_s } }) do |f|
|
|
= f.input :cfp_type, as: :hidden
|
|
= f.input :start_date, as: :string,
|
|
input_html: { class: 'form-control',
|
|
id: 'registration-period-start-datapicker' }
|
|
= f.input :end_date, as: :string,
|
|
input_html: { class: 'form-control',
|
|
id: 'registration-period-end-datapicker' }
|
|
= f.input :description, hint: markdown_hint,
|
|
input_html: { rows: 2, data: { provide: 'markdown-editable' } }
|
|
- if cfp.cfp_type == 'events'
|
|
= f.input :enable_registrations, as: :boolean,
|
|
hint: 'Allow submitters to request registration?'
|
|
- else
|
|
= f.input :enable_registrations, as: :hidden
|
|
%p.text-right
|
|
= f.action :submit, as: :button,
|
|
button_html: { class: 'btn btn-primary' }
|