BigW Consortium Gitlab

_new_form.html.haml 753 Bytes
Newer Older
1
= form_for(@project, remote: true) do |f|
2 3 4 5 6 7 8
  - 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
9
      = f.text_field :name, placeholder: "Example Project", class: "xxlarge"
10
      = f.submit 'Create project', class: "btn primary project-submit"
11

12
  - if current_user.several_namespaces?
13
    .clearfix
14 15
      = f.label :namespace_id do
        %span.cgray Namespace
16
      .input
17
        = f.select :namespace_id, namespaces_options(params[:namespace_id] || :current_user), {}, {class: 'chosen'}
18 19 20
  %hr
  %p.padded
    All created project are private. You choose who can see project and commit to repository.