summaryrefslogtreecommitdiff
path: root/app/views/projects/new.html.haml
blob: 38eb6d401c5d5c03ba9cf5d144c52a3bd45772ec (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.project-edit-container
  .project-edit-errors
    = render 'projects/errors'
  .project-edit-content
    = form_for @project, remote: true do |f|
      .control-group.project_name_holder
        = f.label :name do
          Project name is
        .controls
          = f.text_field :name, placeholder: "Example Project", class: "input-xxlarge", tabindex: 1, autofocus: true

      - if current_user.can_select_namespace?
        .control-group
          = f.label :namespace_id do
            %span Namespace
          .controls
            = f.select :namespace_id, namespaces_options(params[:namespace_id] || :current_user), {}, {class: 'chosen', tabindex: 2}

      .control-group
        .controls
          = link_to "#", class: 'appear-link' do
            %i.icon-upload-alt
            %span Import existing repository?
      .control-group.appear-data.import-url-data
        = f.label :import_url do
          %span Import existing repo
        .controls
          = f.text_field :import_url, class: 'xlarge', placeholder: 'https://github.com/randx/six.git'
          .light
            URL must be cloneable
      .control-group
        = f.label :description do
          Description
          %span.light (optional)
        .controls
          = f.text_area :description, placeholder: "awesome project", class: "span5", rows: 3, maxlength: 250, tabindex: 3

      %p.padded
        New projects are private by default. You choose who can see the project and commit to repository.
      .form-actions
        = f.submit 'Create project', class: "btn btn-create project-submit", tabindex: 4

        - if current_user.can_create_group?
          .pull-right
            .controls.light
              Need a group for several dependent projects?
              = link_to new_group_path, class: "btn btn-tiny" do
                Create a group

.save-project-loader.hide
  %center
    = image_tag "ajax_loader.gif"
    %h3 Creating project & repository. Please wait a moment, this page will automatically refresh when ready.