summaryrefslogtreecommitdiff
path: root/app/views/projects/_project_templates.html.haml
diff options
context:
space:
mode:
authorLukas Eipert <leipert@gitlab.com>2018-08-03 17:36:53 +0200
committerLukas Eipert <leipert@gitlab.com>2018-08-03 19:27:07 +0200
commit273515b8a15cc9f920d6bf868f6a546ad832214e (patch)
treed4584191d3700744bfe2df2593ce9ee477582cd4 /app/views/projects/_project_templates.html.haml
parent8a9421429d15a805ef07b8200bcba551fe7314ff (diff)
downloadgitlab-ce-273515b8a15cc9f920d6bf868f6a546ad832214e.tar.gz
backport changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6740
Diffstat (limited to 'app/views/projects/_project_templates.html.haml')
-rw-r--r--app/views/projects/_project_templates.html.haml31
1 files changed, 6 insertions, 25 deletions
diff --git a/app/views/projects/_project_templates.html.haml b/app/views/projects/_project_templates.html.haml
index 9d8627c9eb1..e90a6355214 100644
--- a/app/views/projects/_project_templates.html.haml
+++ b/app/views/projects/_project_templates.html.haml
@@ -1,27 +1,8 @@
-.project-templates-buttons.import-buttons
- - Gitlab::ProjectTemplate.all.each do |template|
- .template-option
- = custom_icon(template.logo)
- .template-title= template.title
- .template-description= template.description
- %label.btn.btn-success.template-button.choose-template.append-right-10{ for: template.name }
- %input{ type: "radio", autocomplete: "off", name: "project[template_name]", id: template.name, value: template.name }
- %span Use template
- %a.btn.btn-default{ href: template.preview, rel: 'noopener noreferrer', target: '_blank' } Preview
+- f ||= local_assigns[:f]
- .project-fields-form
- .row
- .form-group.col-sm-12
- %label.label-bold
- Template
- .input-group.template-input-group
- .input-group-prepend
- .input-group-text
- .selected-icon
- - Gitlab::ProjectTemplate.all.each do |template|
- = custom_icon(template.logo)
- .selected-template
- .input-group-append
- %button.btn.btn-default.change-template{ type: "button" } Change template
+.project-templates-buttons.import-buttons.col-sm-12
+ = render 'projects/project_templates/built_in_templates'
- = render 'new_project_fields', f: f, project_name_id: "template-project-name"
+.project-fields-form
+ = render 'projects/project_templates/project_fields_form'
+ = render 'projects/new_project_fields', f: f, project_name_id: "template-project-name"