Commit 0d84dd22 authored by Stan Hu's avatar Stan Hu

Merge branch...

Merge branch '51522-add-new-project-via-import-by-url-auto-populates-slug-but-not-project-name' into 'master'

Resolve "Add new project via import by URL auto populates slug but not project name"

Closes #51522

See merge request gitlab-org/gitlab-ce!21770
parents 45a5a371 26995798
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
.row .row
.form-group.project-name.col-sm-12 .form-group.project-name.col-sm-12
= label_tag :name, _('Project name'), class: 'label-bold' = label_tag :name, _('Project name'), class: 'label-bold'
= text_field_tag :name, @name, placeholder: "My awesome project", class: "js-project-name form-control input-lg", autofocus: true, required: true = text_field_tag :name, @name, placeholder: "My awesome project", class: "js-project-name form-control input-lg", autofocus: true
.form-group.col-12.col-sm-6 .form-group.col-12.col-sm-6
= label_tag :namespace_id, _('Project URL'), class: 'label-bold' = label_tag :namespace_id, _('Project URL'), class: 'label-bold'
.form-group .form-group
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
.form-group.project-name.col-sm-12 .form-group.project-name.col-sm-12
= f.label :name, class: 'label-bold' do = f.label :name, class: 'label-bold' do
%span= _("Project name") %span= _("Project name")
= f.text_field :name, placeholder: "My awesome project", class: "form-control input-lg", autofocus: true, required: true = f.text_field :name, placeholder: "My awesome project", class: "form-control input-lg", autofocus: true
.form-group.project-path.col-sm-6 .form-group.project-path.col-sm-6
= f.label :namespace_id, class: 'label-bold' do = f.label :namespace_id, class: 'label-bold' do
%span= s_("Project URL") %span= s_("Project URL")
......
---
title: Removes the 'required' attribute from the 'project name' field
merge_request: 21770
author:
type: other
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment