debian-mirror-gitlab/app/views/projects/_project_templates.html.haml

25 lines
1 KiB
Text
Raw Normal View History

2018-03-17 18:26:18 +05:30
.project-templates-buttons.import-buttons
2017-09-10 17:25:29 +05:30
- Gitlab::ProjectTemplate.all.each do |template|
2018-03-17 18:26:18 +05:30
.template-option
2017-09-10 17:25:29 +05:30
= custom_icon(template.logo)
2018-03-17 18:26:18 +05:30
.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
.project-fields-form
.form-group
%label.label-light
Template
.input-group.template-input-group
.input-group-addon
.selected-icon
- Gitlab::ProjectTemplate.all.each do |template|
= custom_icon(template.logo)
.selected-template
%button.btn.btn-default.change-template{ type: "button" } Change template
= render 'new_project_fields', f: f, project_name_id: "template-project-name"