_form.html.haml revision 8f845e804ef24c045876941e34930a9ac6720dbf
= 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: access_options, include_blank: false, hint: access_change_hint
- if resource.new_record?
= f.input :source_address, as: :url
#remote_type.form-group
= f.input :remote_type, collection: Repository::REMOTE_TYPES, include_blank: false, 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