diff options
-rw-r--r-- | app/views/projects/new.html.haml | 2 | ||||
-rw-r--r-- | app/views/shared/_import_form.html.haml | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml index 0c7b53e5a9a..2ceb7f66ecf 100644 --- a/app/views/projects/new.html.haml +++ b/app/views/projects/new.html.haml @@ -84,7 +84,7 @@ = icon('gitlab', text: 'GitLab export') .js-toggle-content.hide - = render "shared/import_form", f: f + = render "shared/import_form", f: f, disable_field: true .form-group = f.label :description, class: 'label-light' do diff --git a/app/views/shared/_import_form.html.haml b/app/views/shared/_import_form.html.haml index 1c7c73be933..15e0e0e30ad 100644 --- a/app/views/shared/_import_form.html.haml +++ b/app/views/shared/_import_form.html.haml @@ -1,8 +1,9 @@ +- disable_field = local_assigns.fetch(:disable_field, false) .form-group.import-url-data = f.label :import_url, class: 'control-label' do %span Git repository URL .col-sm-10 - = f.text_field :import_url, autocomplete: 'off', class: 'form-control', placeholder: 'https://username:password@gitlab.company.com/group/project.git' + = f.text_field :import_url, autocomplete: 'off', class: 'form-control', placeholder: 'https://username:password@gitlab.company.com/group/project.git', disabled: disable_field .well.prepend-top-20 %ul |