summaryrefslogtreecommitdiff
path: root/app/views/projects/_project_templates.html.haml
blob: d08807b51358eeba91c4b6ccfd4974ac534cab2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.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

  .project-fields-form
    .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
          .input-group-append
            %button.btn.btn-default.change-template{ type: "button" } Change template

    = render 'new_project_fields', f: f, project_name_id: "template-project-name"