= 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
= 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
.col-lg-10
= check_box_tag :un_mirror
= f.input :access, collection: resource.mirror? ? access_options_mirror : access_options, include_blank: false, hint: access_change_hint
= 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