Commit cd253532 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Allos specify repository name when create a project

parent a6e57749
...@@ -24,6 +24,10 @@ input { ...@@ -24,6 +24,10 @@ input {
input[type="radio"], input[type="checkbox"] { input[type="radio"], input[type="checkbox"] {
margin-top: 6px; margin-top: 6px;
} }
.add-on {
padding: 6px;
}
} }
} }
...@@ -7,6 +7,13 @@ ...@@ -7,6 +7,13 @@
} }
} }
.project-name-holder {
.help-inline {
vertical-align: top;
padding: 7px;
}
}
.project_clone_panel { .project_clone_panel {
@include border-radius(4px); @include border-radius(4px);
@include bg-gray-gradient; @include bg-gray-gradient;
......
...@@ -6,11 +6,23 @@ ...@@ -6,11 +6,23 @@
New projects are private by default. You choose who can see the project and commit to repository. New projects are private by default. You choose who can see the project and commit to repository.
%hr %hr
= form_for @project, remote: true do |f| = form_for @project, remote: true do |f|
.control-group.project_name_holder .control-group.project-name-holder
= f.label :name do = f.label :name do
%strong Project name is %strong Project name is
.controls .controls
= f.text_field :name, placeholder: "Example Project", class: "input-xlarge", tabindex: 1, autofocus: true = f.text_field :name, placeholder: "Example Project", class: "input-xlarge", tabindex: 1, autofocus: true
%span.help-inline
= link_to "#", class: 'js-toggle-visibility-link' do
%span Custom repo name?
.control-group.js-toggle-visibility-container.hide
= f.label :path do
%span Repository name
.controls
.input-append
= f.text_field :path
%span.add-on .git
- if current_user.can_select_namespace? - if current_user.can_select_namespace?
.control-group .control-group
......
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