Create dir with namespace. Create namespace with user
This commit is contained in:
parent
f17ddeb394
commit
ab9d023651
6 changed files with 39 additions and 26 deletions
|
@ -15,6 +15,11 @@
|
|||
.input
|
||||
= f.text_field :name
|
||||
%span.help-inline * required
|
||||
.clearfix
|
||||
= f.label :username
|
||||
.input
|
||||
= f.text_field :username
|
||||
%span.help-inline * required
|
||||
.clearfix
|
||||
= f.label :email
|
||||
.input
|
||||
|
@ -26,11 +31,11 @@
|
|||
= f.label :force_random_password do
|
||||
%span Generate random password
|
||||
.input= f.check_box :force_random_password, {}, true, nil
|
||||
|
||||
|
||||
%div.password-fields
|
||||
.clearfix
|
||||
= f.label :password
|
||||
.input= f.password_field :password, disabled: f.object.force_random_password
|
||||
.input= f.password_field :password, disabled: f.object.force_random_password
|
||||
.clearfix
|
||||
= f.label :password_confirmation
|
||||
.input= f.password_field :password_confirmation, disabled: f.object.force_random_password
|
||||
|
|
|
@ -9,27 +9,12 @@
|
|||
= f.text_field :name, placeholder: "Example Project", class: "xxlarge"
|
||||
= f.submit 'Create project', class: "btn primary project-submit"
|
||||
|
||||
- if current_user.several_namespaces?
|
||||
.clearfix
|
||||
= f.label :namespace_id do
|
||||
%span.cgray Namespace
|
||||
.input
|
||||
= f.select :namespace_id, namespaces_options, {}, {class: 'chosen'}
|
||||
%hr
|
||||
%div.adv_settings
|
||||
%h6 Advanced settings:
|
||||
- if current_user.namespaces.size > 1
|
||||
.clearfix
|
||||
= f.label :namespace_id do
|
||||
Namespace
|
||||
.input
|
||||
= f.select :namespace_id, namespaces_options, {}, {class: 'chosen'}
|
||||
.clearfix
|
||||
= f.label :path do
|
||||
Git Clone
|
||||
.input
|
||||
.input-prepend
|
||||
%span.add-on= Gitlab.config.ssh_path
|
||||
= f.text_field :path, placeholder: "example_project", disabled: !@project.new_record?
|
||||
%span.add-on= ".git"
|
||||
.clearfix
|
||||
= f.label :code do
|
||||
URL
|
||||
.input
|
||||
.input-prepend
|
||||
%span.add-on= web_app_url
|
||||
= f.text_field :code, placeholder: "example"
|
||||
%p.padded
|
||||
All created project are private. You choose who can see project and commit to repository.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue