File: new.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (49 lines) | stat: -rw-r--r-- 2,321 bytes parent folder | download
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
- @hide_top_bar = true
- @hide_top_links = true
- page_title    _('New Project')
- header_title  _("Projects"), dashboard_projects_path
- add_page_specific_style 'page_bundles/new_namespace'
- add_page_specific_style 'page_bundles/projects'

.project-edit-container
  .project-edit-errors
    = render 'projects/errors'

  .js-new-project-creation{ data: {
    is_ci_cd_available: remote_mirror_setting_enabled?.to_s,
    has_errors: @project.errors.any?.to_s,
    new_project_guidelines: brand_new_project_guidelines,
    push_to_create_project_command: push_to_create_project_command,
    project_help_path: help_page_path("user/project/index.md"),
    root_path: root_path,
    parent_group_url: @project.parent && group_url(@project.parent),
    parent_group_name: @project.parent&.name,
    projects_url: dashboard_projects_url,
    can_import_projects: params[:namespace_id].presence ? current_user.can?(:import_projects, @namespace).to_s : 'true' } }

  .row{ 'v-cloak': true }
    #blank-project-pane.tab-pane.active
      = gitlab_ui_form_for @project, html: { class: 'new_project gl-mt-3' } do |f|
        = render 'new_project_fields', f: f, project_name_id: "blank-project-name", include_description: false

    #create-from-template-pane.tab-pane
      = render Pajamas::CardComponent.new(card_options: { class: 'gl-my-5' }) do |c|
        - c.with_body do
          %div
            - link = link_to('', 'https://gitlab.com/gitlab-org/project-templates/contributing', target: '_blank', rel: 'noopener noreferrer')
            = safe_format(_('Learn how to %{link_start}contribute to the built-in templates%{link_end}'), tag_pair(link, :link_start, :link_end))
      = gitlab_ui_form_for @project, html: { class: 'new_project' } do |f|
        .project-template
          .form-group
            %div
              = render 'project_templates', f: f, project: @project

    #import-project-pane.tab-pane.js-toggle-container
      - if import_sources_enabled?
        = render 'import_project_pane', destination_namespace_id: @namespace&.id
      - else
        .nothing-here-block
          %h4= s_('ProjectsNew|No import options available')
          %p= s_('ProjectsNew|Contact an administrator to enable options for importing your project.')

    = render_if_exists 'projects/new_ci_cd_only_project_pane'