summaryrefslogtreecommitdiff
path: root/app/views/projects/_new_form.html.haml
blob: 9f3bfa86b9164c9dc98a582dd9058ce462ac2224 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
= form_for(@project, :remote => true) do |f|
  - 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
      = f.text_field :name, :placeholder => "Example Project", :class => "xxlarge"
      = f.submit 'Create project', :class => "btn primary"

  %hr
  .alert.alert-info
    %h5 Advanced settings:
    .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"