gitlab-org--gitlab-foss/app/views/projects/_project_templates.html.haml
Zeger-Jan van de Weg 3611b664a9
Fix blank button not resetting project template value
The button didn't override a value, so the old value was posted again.
2017-08-23 17:42:31 +02:00

10 lines
525 B
Text

.project-templates-buttons.import-buttons{ data: { toggle: "buttons" } }
.btn.blank-option.active
%input{ type: "radio", autocomplete: "off", name: "project[template_name]", id: "blank", checked: "true", value: "" }
= icon('file-o', class: 'btn-template-icon')
Blank
- Gitlab::ProjectTemplate.all.each do |template|
.btn
%input{ type: "radio", autocomplete: "off", name: "project[template_name]", id: template.name, value: template.name }
= custom_icon(template.logo)
= template.title