= columns(medium: 12) do
  = form_tag register_path(@this_conference.slug) do
    = checkbox :can_provide_housing, @registration.can_provide_housing, 'articles.conference_registration.can_provide_housing', heading: 'articles.conference_registration.headings.can_provide_housing', help: 'articles.conference_registration.paragraphs.can_provide_housing', inline: true, toggles: 'hosting-options', centered: true
    #hosting-options
      = checkbox :not_attending, @registration.is_attending == 'n', 'articles.conference_registration.not_attending', help: 'articles.conference_registration.paragraphs.not_attending', inline: true, right_help: true
      = textfield :address, @hosting_data['address'], required: true, heading: 'articles.conference_registration.headings.host.address', help: 'articles.conference_registration.paragraphs.host.address'
      = telephonefield :phone, @hosting_data['phone'], required: true
      = fieldset :space, heading: 'articles.conference_registration.headings.host.space', help: 'articles.conference_registration.paragraphs.host.space' do
        - ConferenceRegistration.all_spaces.each do | space |
          = numberfield space, @hosting_data['space'][space.to_s] || 0, min: 0, required: true
      = fieldset :hosting_dates, heading: 'articles.conference_registration.headings.host.availability', help: 'articles.conference_registration.paragraphs.host.availability' do
        - first_day_options = conference_days_options_list(:before)
        - last_day_options = conference_days_options_list(:after)
        = selectfield :first_day, @hosting_data['availability'][0] || first_day_options.first.last, first_day_options
        = selectfield :last_day, @hosting_data['availability'][1] || last_day_options.last.last, last_day_options
      = checkboxes :considerations, ConferenceRegistration.all_considerations, @hosting_data['considerations'], 'articles.conference_registration.host.considerations', heading: 'articles.conference_registration.headings.host.considerations', help: 'articles.conference_registration.paragraphs.host.considerations', vertical: true
      = textarea :notes, @hosting_data['notes'], help: 'articles.conference_registration.paragraphs.host.notes', edit_on: :focus
    .actions.next-prev
      = button (params[:step] == :save ? :save : :next), value: :hosting
      = button :previous, value: :prev_contact_info, class: :subdued, formnovalidate: true
