summaryrefslogtreecommitdiff
path: root/app/views/shared/_import_form.html.haml
blob: 3ee713cf49974ab01d2fb17bdeed5ea65cd075b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
- ci_cd_only = local_assigns.fetch(:ci_cd_only, false)

.form-group.import-url-data
  = f.label :import_url, class: 'label-bold' do
    %span
      = _('Git repository URL')

  = f.text_field :import_url, autocomplete: 'off', class: 'form-control', placeholder: 'https://username:password@gitlab.company.com/group/project.git', required: true

  .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
        %li
          = _('If your HTTP repository is not publicly accessible, add authentication information to the URL: <code>https://username:password@gitlab.company.com/group/project.git</code>.').html_safe
        %li
          = import_will_timeout_message(ci_cd_only)
        %li
          = import_svn_message(ci_cd_only)
        = 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