diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-04-19 20:10:11 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-04-19 20:11:48 -0500 |
commit | 8d3c231b86b746ad1c96b7723f3be8f73f1271cb (patch) | |
tree | ac106e6abcd5bc3112fb9d45c6c0acef2011b64e | |
parent | 6e1069d57e77faaa20b8cd026a0239a7bfec4eb7 (diff) | |
download | gitlab-ce-dm-fix-project-import.tar.gz |
Fix Git repository URL field on New Project pagedm-fix-project-import
-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 |