2012-08-11 00:07:50 +02:00
|
|
|
= form_for(@project, remote: true) do |f|
|
2012-04-24 20:49:34 +02:00
|
|
|
- if @project.errors.any?
|
|
|
|
.alert-message.block-message.error
|
|
|
|
%span= @project.errors.full_messages.first
|
|
|
|
.clearfix.project_name_holder
|
|
|
|
= f.label :name do
|
|
|
|
Project name is
|
|
|
|
.input
|
2012-08-11 00:07:50 +02:00
|
|
|
= f.text_field :name, placeholder: "Example Project", class: "xxlarge"
|
2012-08-30 21:15:34 +02:00
|
|
|
= f.submit 'Create project', class: "btn primary project-submit"
|
2012-04-24 20:49:34 +02:00
|
|
|
|
2012-11-23 07:11:09 +01:00
|
|
|
- if current_user.several_namespaces?
|
2012-04-24 20:49:34 +02:00
|
|
|
.clearfix
|
2012-11-23 07:11:09 +01:00
|
|
|
= f.label :namespace_id do
|
|
|
|
%span.cgray Namespace
|
2012-04-24 20:49:34 +02:00
|
|
|
.input
|
2012-11-24 21:00:30 +01:00
|
|
|
= f.select :namespace_id, namespaces_options(params[:namespace_id] || :current_user), {}, {class: 'chosen'}
|
2012-11-23 07:11:09 +01:00
|
|
|
%hr
|
|
|
|
%p.padded
|
|
|
|
All created project are private. You choose who can see project and commit to repository.
|