new.html.haml 523 Bytes
Newer Older
Douwe Maan's avatar
Douwe Maan committed
1
- page_title "Import repository"
2
%h3.page-title
3
  Import repository
4
5
6

%hr

7
8
9
10
11
12
13
- if @project.import_failed?
  .alert.alert-danger
    %p The repository could not be imported.
    %pre.prepend-top-10
      :preserve
        #{@project.import_error.try(:strip)}

Vinnie Okada's avatar
Vinnie Okada committed
14
= form_for @project, url: namespace_project_import_path(@project.namespace, @project), method: :post, html: { class: 'form-horizontal' } do |f|
Douwe Maan's avatar
Douwe Maan committed
15
16
  = render "shared/import_form", f: f

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