Allos specify repository name when create a project

This commit is contained in:
Dmitriy Zaporozhets
2013-08-14 13:23:12 +03:00
parent a6e57749dc
commit cd25353243
3 changed files with 24 additions and 1 deletions
@@ -24,6 +24,10 @@ input {
input[type="radio"], input[type="checkbox"] {
margin-top: 6px;
}
.add-on {
padding: 6px;
}
}
}
@@ -7,6 +7,13 @@
}
}
.project-name-holder {
.help-inline {
vertical-align: top;
padding: 7px;
}
}
.project_clone_panel {
@include border-radius(4px);
@include bg-gray-gradient;
+13 -1
View File
@@ -6,11 +6,23 @@
New projects are private by default. You choose who can see the project and commit to repository.
%hr
= form_for @project, remote: true do |f|
.control-group.project_name_holder
.control-group.project-name-holder
= f.label :name do
%strong Project name is
.controls
= 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?
.control-group