2018-02-20 21:23:49 -05:00
- ci_cd_only = local_assigns.fetch(:ci_cd_only, false)
2019-04-11 11:26:16 -04:00
- import_url = Gitlab::UrlSanitizer.new(f.object.import_url)
2018-02-20 21:23:49 -05:00
2019-04-13 12:00:10 -04:00
.import-url-data
2019-04-11 11:26:16 -04:00
.form-group
= f.label :import_url, class: 'label-bold' do
%span
= _('Git repository URL')
= f.text_field :import_url, value: import_url.sanitized_url,
autocomplete: 'off', class: 'form-control', placeholder: 'https://gitlab.company.com/group/project.git', required: true
2015-11-11 10:26:12 -05:00
2019-04-13 12:00:10 -04:00
.row
.form-group.col-md-6
2019-04-11 11:26:16 -04:00
= f.label :import_url_user, class: 'label-bold' do
%span
= _('Username (optional)')
= f.text_field :import_url_user, value: import_url.user, class: 'form-control', required: false, autocomplete: 'new-password'
2019-04-13 12:00:10 -04:00
.form-group.col-md-6
2019-04-11 11:26:16 -04:00
= f.label :import_url_password, class: 'label-bold' do
%span
2019-04-13 12:00:10 -04:00
= _('Password (optional)')
= f.password_field :import_url_password, class: 'form-control', required: false, autocomplete: 'new-password'
2017-08-03 06:47:27 -04:00
2018-05-29 14:07:28 -04:00
.info-well.prepend-top-20
.well-segment
%ul
%li
= _('The repository must be accessible over <code>http://</code>, <code>https://</code> or <code>git://</code>.').html_safe
2019-09-05 17:12:12 -04:00
%li= _('When using the <code>http://</code> or <code>https://</code> protocols, please provide the exact URL to the repository. HTTP redirects will not be followed.').html_safe
2018-05-29 14:07:28 -04:00
%li
2019-04-13 12:00:10 -04:00
= _('If your HTTP repository is not publicly accessible, add your credentials.')
2018-05-29 14:07:28 -04:00
%li
= import_will_timeout_message(ci_cd_only)
%li
= import_svn_message(ci_cd_only)
2019-05-21 22:56:29 -04:00
= render_if_exists 'shared/ci_cd_only_link', ci_cd_only: ci_cd_only
= render_if_exists 'shared/ee/import_form', f: f, ci_cd_only: ci_cd_only