= simple_form_for resource, html: {class: 'form-horizontal', id: 'repository_form' } do |f|
  = f.input :name, input_html: { class: 'input-xlarge' }, required: true, disabled: resource.persisted?, as: :string
  = f.input :description, input_html: { rows: 8 }
  = f.input :access, collection: resource.mirror? ? access_options_mirror : access_options, include_blank: false, hint: access_change_hint
  .access-options.hide
    = select_tag :access_options_non_mirror, options_for_select(access_options)
    = select_tag :access_options_mirror, options_for_select(access_options_mirror)

  - if resource.new_record?
    = f.input :source_address, as: :url

    #remote_type.form-group
      = f.input :remote_type, collection: Repository::REMOTE_TYPES, as: :radio_buttons, hint: t('repository.remote_type.text')

  - if !resource.new_record? && resource.mirror?
    .form-group
      = f.label t('repository.un_mirror.label')
      .col-lg-10
        = check_box_tag :un_mirror
        = t 'repository.un_mirror.text'

  = f.button :wrapped

= simple_form_for resource, html: {class: 'form-horizontal', id: 'repository_form' } do |f|
  = f.input :name, input_html: { class: 'input-xlarge' }, required: true, disabled: resource.persisted?, as: :string
  = f.input :description, input_html: { rows: 8 }

  - if resource.new_record?
    = f.input :source_address, as: :url

    #remote_type.form-group
      = f.input :remote_type, collection: Repository::REMOTE_TYPES, as: :radio_buttons, hint: t('repository.remote_type.text')

  - if !resource.new_record? && resource.mirror?
    .form-group
      = f.label t('repository.un_mirror.label')
      .col-lg-10
        = check_box_tag :un_mirror
        = t 'repository.un_mirror.text'

  = f.input :access, collection: resource.mirror? ? access_options_mirror : access_options, include_blank: false, hint: access_change_hint
  .access-options.hide
    = select_tag :access_options_non_mirror, options_for_select(access_options)
    = select_tag :access_options_mirror, options_for_select(access_options_mirror)

  = f.button :wrapped

Move access select box down.
Move access select box down.
