Commit 91f31ae5 authored by Jose's avatar Jose

Fix use template buttons for creating a new project

parent 7b7ba297
...@@ -293,3 +293,7 @@ input[type=color].form-control { ...@@ -293,3 +293,7 @@ input[type=color].form-control {
color: $gl-text-color-secondary; color: $gl-text-color-secondary;
} }
} }
.btn {
margin-bottom: 0;
}
...@@ -10,16 +10,17 @@ ...@@ -10,16 +10,17 @@
%a.btn.btn-default{ href: template.preview, rel: 'noopener noreferrer', target: '_blank' } Preview %a.btn.btn-default{ href: template.preview, rel: 'noopener noreferrer', target: '_blank' } Preview
.project-fields-form .project-fields-form
.form-group .row
%label.label-light .form-group.col-sm-12
Template %label.label-light
.input-group.template-input-group Template
.input-group-prepend .input-group.template-input-group
.input-group-text .input-group-prepend
.selected-icon .input-group-text
- Gitlab::ProjectTemplate.all.each do |template| .selected-icon
= custom_icon(template.logo) - Gitlab::ProjectTemplate.all.each do |template|
.selected-template = custom_icon(template.logo)
%button.btn.btn-default.change-template{ type: "button" } Change template .selected-template
%button.btn.btn-default.change-template{ type: "button" } Change template
= render 'new_project_fields', f: f, project_name_id: "template-project-name" = render 'new_project_fields', f: f, project_name_id: "template-project-name"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment