osem-fcy/app/views/admin/cfps/_form.html.haml
Henne Vogelsang 07bfff8fa1
Replace registration-period datepickers with date input
Nowadays all browsers have reasonable date input support...
2024-06-07 13:16:44 +02:00

22 lines
956 B
Text

= form_for(@cfp, url: (@cfp.new_record? ? admin_conference_program_cfps_path : admin_conference_program_cfp_path(@conference.short_title, @cfp)), data: { end_conference: @conference.end_date.to_s }) do |f|
= f.hidden_field :cfp_type
.form-group
= f.label :start_date, "Start 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"
%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' }
%span.help-block
= markdown_hint
- if @cfp.cfp_type == 'events'
.checkbox
%label
= f.check_box :enable_registrations
Allow submitters to request registration?
%p.text-right
= f.submit nil, { class: 'btn btn-success' }