osem-fcy/app/views/admin/cfps/_form.html.haml

29 lines
1 KiB
Text
Raw Normal View History

.row
.col-md-12
.page-header
%h1
Call for
= cfp.cfp_type.capitalize
.row
.col-md-8
2018-10-17 16:44:08 -07:00
= 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
2018-10-17 16:44:08 -07:00
= f.input :start_date, as: :string,
input_html: { class: 'form-control',
id: 'registration-period-start-datepicker' }
2018-10-17 16:44:08 -07:00
= f.input :end_date, as: :string,
input_html: { class: 'form-control',
id: 'registration-period-end-datepicker' }
2018-10-17 16:44:08 -07:00
= f.input :description, hint: markdown_hint,
input_html: { rows: 2, data: { provide: 'markdown' } }
- 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
2018-10-17 16:44:08 -07:00
= f.action :submit, as: :button,
button_html: { class: 'btn btn-primary' }