2015-10-25 13:29:02 +02:00
|
|
|
.row
|
|
|
|
|
.col-md-12
|
|
|
|
|
.page-header
|
2018-10-18 12:00:20 -07:00
|
|
|
%h1
|
|
|
|
|
Call for
|
|
|
|
|
= cfp.cfp_type.capitalize
|
2015-10-25 13:29:02 +02:00
|
|
|
.row
|
|
|
|
|
.col-md-8
|
2018-10-17 16:44:08 -07:00
|
|
|
= semantic_form_for(cfp, url: cfp_form_url(cfp, conference),
|
2019-02-21 11:38:18 +01:00
|
|
|
html: { multipart: true,
|
|
|
|
|
data: { end_conference: conference.end_date.to_s } }) do |f|
|
2018-10-18 12:00:20 -07:00
|
|
|
= f.input :cfp_type, as: :hidden
|
2018-10-17 16:44:08 -07:00
|
|
|
= f.input :start_date, as: :string,
|
2019-02-21 11:38:18 +01:00
|
|
|
input_html: { class: 'form-control',
|
2019-03-27 23:04:42 +01:00
|
|
|
id: 'registration-period-start-datepicker' }
|
2018-10-17 16:44:08 -07:00
|
|
|
= f.input :end_date, as: :string,
|
2019-02-21 11:38:18 +01:00
|
|
|
input_html: { class: 'form-control',
|
2019-03-27 23:04:42 +01:00
|
|
|
id: 'registration-period-end-datepicker' }
|
2018-10-17 16:44:08 -07:00
|
|
|
= f.input :description, hint: markdown_hint,
|
2020-04-04 21:48:31 -07:00
|
|
|
input_html: { rows: 2, data: { provide: 'markdown' } }
|
2018-10-18 12:01:42 -07:00
|
|
|
- if cfp.cfp_type == 'events'
|
|
|
|
|
= f.input :enable_registrations, as: :boolean,
|
|
|
|
|
hint: 'Allow submitters to request registration?'
|
|
|
|
|
- else
|
|
|
|
|
= f.input :enable_registrations, as: :hidden
|
2015-10-25 13:29:02 +02:00
|
|
|
%p.text-right
|
2018-10-17 16:44:08 -07:00
|
|
|
= f.action :submit, as: :button,
|
|
|
|
|
button_html: { class: 'btn btn-primary' }
|