2018-10-06 14:21:38 +00:00
|
|
|
- @hide_breadcrumbs = true
|
2017-07-06 16:24:03 +00:00
|
|
|
- @hide_top_links = true
|
2019-07-10 10:25:43 +00:00
|
|
|
- page_title _('New Project')
|
|
|
|
- header_title _("Projects"), dashboard_projects_path
|
2021-05-06 09:18:56 +00:00
|
|
|
- add_page_specific_style 'page_bundles/new_namespace'
|
2015-12-02 13:27:29 +00:00
|
|
|
|
2020-11-10 09:08:45 +00:00
|
|
|
.project-edit-container.gl-mt-5
|
2013-05-14 09:46:41 +00:00
|
|
|
.project-edit-errors
|
2013-05-14 09:56:03 +00:00
|
|
|
= render 'projects/errors'
|
2020-06-08 21:09:17 +00:00
|
|
|
|
2021-05-06 09:18:56 +00:00
|
|
|
.js-new-project-creation{ data: { is_ci_cd_available: (ci_cd_projects_available? if Gitlab.ee?).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, working_with_projects_help_path: help_page_path("user/project/working_with_projects") } }
|
2020-06-08 21:09:17 +00:00
|
|
|
|
2020-11-24 06:09:49 +00:00
|
|
|
.row{ 'v-cloak': true }
|
2021-05-06 09:18:56 +00:00
|
|
|
#blank-project-pane.tab-pane.active
|
2021-11-03 00:13:30 +00:00
|
|
|
= form_for @project, html: { class: 'new_project gl-mt-3' } do |f|
|
2021-05-06 09:18:56 +00:00
|
|
|
= render 'new_project_fields', f: f, project_name_id: "blank-project-name"
|
|
|
|
|
|
|
|
#create-from-template-pane.tab-pane
|
2022-06-07 12:08:05 +00:00
|
|
|
= render Pajamas::CardComponent.new(card_options: { class: 'gl-my-5' }) do |c|
|
|
|
|
= c.body do
|
2021-05-06 09:18:56 +00:00
|
|
|
%div
|
|
|
|
- contributing_templates_url = 'https://gitlab.com/gitlab-org/project-templates/contributing'
|
|
|
|
- link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: contributing_templates_url }
|
|
|
|
= _('Learn how to %{link_start}contribute to the built-in templates%{link_end}').html_safe % { link_start: link_start, link_end: '</a>'.html_safe }
|
|
|
|
= form_for @project, html: { class: 'new_project' } do |f|
|
|
|
|
.project-template
|
|
|
|
.form-group
|
2021-05-01 00:10:00 +00:00
|
|
|
%div
|
2021-05-06 09:18:56 +00:00
|
|
|
= render 'project_templates', f: f, project: @project
|
2013-05-14 09:46:41 +00:00
|
|
|
|
2021-05-06 09:18:56 +00:00
|
|
|
#import-project-pane.tab-pane.js-toggle-container
|
|
|
|
- if import_sources_enabled?
|
|
|
|
= render 'import_project_pane'
|
|
|
|
- else
|
|
|
|
.nothing-here-block
|
|
|
|
%h4= s_('ProjectsNew|No import options available')
|
|
|
|
%p= s_('ProjectsNew|Contact an administrator to enable options for importing your project.')
|
2019-04-24 10:49:31 +00:00
|
|
|
|
2021-05-06 09:18:56 +00:00
|
|
|
= render_if_exists 'projects/new_ci_cd_only_project_pane'
|