.row
  .col-md-12
    %h3
      Registration for
      = @conference.title
- if current_user.proposal_count(@conference) > 0
  .row
    .col-md-12
      %i
        Please note: Registration is not automatically performed for speakers.  If you're scheduled to speak at the conference, you still need to register!
.row
  .col-md-12
    = f.inputs name: 'Your Details' do
      - if @conference.questions
        = render partial: 'questions', locals: { f: f }
      %br

      - if @conference.events.workshops.any?
        =f.inputs 'Register to Workshops' do
          = f.input :events, as: :check_boxes, label: false, collection: @conference.events.workshops

    = f.inputs 'Travel Info' do
      = f.input :arrival, as: :string,  input_html: { value: (f.object.arrival.to_formatted_s(:db_without_seconds) unless f.object.arrival.nil?), id: 'registration-arrival-datepicker', readonly: 'readonly'  }
      = f.input :departure, as: :string, input_html: { value: (f.object.departure.to_formatted_s(:db_without_seconds) unless f.object.departure.nil?), id: 'registration-departure-datepicker', readonly: 'readonly'  }
