summaryrefslogtreecommitdiff
path: root/app/views/projects/imports/new.html.haml
blob: 306f24d717b342effc2eeb9ff4610cb064068cce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- page_title _('Import repository')
%h1.page-title.gl-font-size-h-display
  = _('Import repository')

%hr

- if @project.import_failed?
  = render Pajamas::AlertComponent.new(title: s_('Import|The repository could not be imported.'),
    dismissible: false,
    variant: :danger,
    alert_options: { class: 'gl-mb-5' }) do |c|
    = c.body do
      = @project.import_state.last_error

= gitlab_ui_form_for @project, url: project_import_path(@project), method: :post, html: { class: 'js-project-import' } do |f|
  = render 'shared/import_form', f: f

  .form-actions
    = f.submit 'Start import', class: 'gl-button btn btn-confirm', data: { disable_with: false }