2017-10-11 05:07:19 -04:00
|
|
|
.project-templates-buttons.import-buttons
|
2017-07-26 08:21:53 -04:00
|
|
|
- Gitlab::ProjectTemplate.all.each do |template|
|
2017-10-11 05:07:19 -04:00
|
|
|
.template-option
|
2017-08-01 08:23:04 -04:00
|
|
|
= custom_icon(template.logo)
|
2017-10-11 05:07:19 -04:00
|
|
|
.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
|
2018-05-10 15:22:56 -04:00
|
|
|
%a.btn.btn-default{ href: template.preview, rel: 'noopener noreferrer', target: '_blank' } Preview
|
2017-10-11 05:07:19 -04:00
|
|
|
|
|
|
|
.project-fields-form
|
2018-06-11 12:21:10 -04:00
|
|
|
.row
|
|
|
|
.form-group.col-sm-12
|
|
|
|
%label.label-light
|
|
|
|
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
|
2018-06-11 18:18:19 -04:00
|
|
|
.input-group-append
|
|
|
|
%button.btn.btn-default.change-template{ type: "button" } Change template
|
2017-10-11 05:07:19 -04:00
|
|
|
|
|
|
|
= render 'new_project_fields', f: f, project_name_id: "template-project-name"
|