gitlabhq/app/views/projects/_new_form.html.haml

35 lines
1.1 KiB
Plaintext
Raw Normal View History

= form_for(@project, remote: true) do |f|
- if @project.errors.any?
2013-01-30 15:53:18 +01:00
.alert.alert-error
%span= @project.errors.full_messages.first
.clearfix.project_name_holder
= f.label :name do
Project name is
.input
= 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"
- if current_user.can_select_namespace?
.clearfix
= f.label :namespace_id do
%span Namespace
.input
= f.select :namespace_id, namespaces_options(params[:namespace_id] || :current_user), {}, {class: 'chosen'}
%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
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
- 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
Create a team