summaryrefslogtreecommitdiff
path: root/app/views/projects/imports/new.html.haml
blob: 3ff4e160a4d00ed1c4ad7ff91336fbc519bfbaa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- page_title "Import repository"
%h3.page-title
  Import repository

%hr

- if @project.import_failed?
  .card.bg-danger
    .card-header The repository could not be imported.
    .card-body
      %pre
        :preserve
          #{h(sanitize_repo_path(@project, @project.import_error))}

= form_for @project, url: project_import_path(@project), method: :post, html: { class: 'form-horizontal' } do |f|
  = render "shared/import_form", f: f

  .form-actions
    = f.submit 'Start import', class: "btn btn-create", tabindex: 4