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?
|
2013-01-30 15:53:18 +01:00
|
|
|
.alert.alert-error
|
2012-04-24 20:49:34 +02:00
|
|
|
%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"
|
2013-01-29 21:18:19 +01:00
|
|
|
= f.submit 'Create project', class: "btn btn-create project-submit"
|
2012-04-24 20:49:34 +02:00
|
|
|
|
2013-01-17 16:35:57 +01:00
|
|
|
- if current_user.can_select_namespace?
|
2012-04-24 20:49:34 +02:00
|
|
|
.clearfix
|
2012-11-23 07:11:09 +01:00
|
|
|
= f.label :namespace_id do
|
2013-01-17 16:35:57 +01:00
|
|
|
%span 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'}
|
2013-01-25 15:18:37 +01:00
|
|
|
|
2013-02-11 22:00:12 +01:00
|
|
|
|
|
|
|
.clearfix
|
|
|
|
.input
|
|
|
|
= link_to "#", class: 'appear-link' do
|
|
|
|
%i.icon-upload-alt
|
|
|
|
%span Import existing repository?
|
|
|
|
.clearfix.appear-data
|
|
|
|
= f.label :import_url do
|
|
|
|
%span Import existing repo
|
|
|
|
.input
|
2013-02-13 14:27:18 +01:00
|
|
|
= f.text_field :import_url, class: 'xlarge', placeholder: 'https://github.com/randx/six.git'
|
2013-02-11 22:00:12 +01:00
|
|
|
.light
|
2013-02-16 20:47:43 +01:00
|
|
|
URL must be clonable
|
2013-02-11 22:00:12 +01:00
|
|
|
|
2013-01-25 15:18:37 +01:00
|
|
|
%p.padded
|
|
|
|
New projects are private by default. You choose who can see the project and commit to repository.
|
|
|
|
%hr
|
|
|
|
|
|
|
|
- if current_user.can_create_group?
|
2013-01-24 16:47:09 +01:00
|
|
|
.clearfix
|
|
|
|
.input.light
|
2013-01-25 15:18:37 +01:00
|
|
|
Need a group for several dependent projects?
|
2013-01-29 21:29:21 +01:00
|
|
|
= link_to new_group_path, class: "btn btn-tiny" do
|
2013-01-24 16:47:09 +01:00
|
|
|
Create a group
|
2013-01-25 15:18:37 +01:00
|
|
|
- if current_user.can_create_team?
|
|
|
|
.clearfix
|
|
|
|
.input.light
|
2013-01-25 21:38:21 +01:00
|
|
|
Want to share a project between team?
|
2013-01-29 21:29:21 +01:00
|
|
|
= link_to new_team_path, class: "btn btn-tiny" do
|
2013-01-25 15:18:37 +01:00
|
|
|
Create a team
|