summaryrefslogtreecommitdiff
path: root/app/views/projects/blob/_template_selectors.html.haml
blob: 2a178325041e4add94e82f2446549959a8a10906 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.template-selectors-menu
  .templates-selectors-label
    Template
  .template-selector-dropdowns-wrap
    .template-type-selector.js-template-type-selector-wrap.hidden
      = dropdown_tag("Choose type", options: { toggle_class: 'btn js-template-type-selector', title: "Choose a template type" } )
    .license-selector.js-license-selector-wrap.js-template-selector-wrap.hidden
      = dropdown_tag("Apply a license template", options: { toggle_class: 'btn js-license-selector', title: "Apply a license", filter: true, placeholder: "Filter", data: { data: licenses_for_select, project: @project.name, fullname: @project.namespace.human_name } } )
    .gitignore-selector.js-gitignore-selector-wrap.js-template-selector-wrap.hidden
      = dropdown_tag("Apply a .gitignore template", options: { toggle_class: 'btn js-gitignore-selector', title: "Apply a template", filter: true, placeholder: "Filter", data: { data: gitignore_names } } )
    .gitlab-ci-yml-selector.js-gitlab-ci-yml-selector-wrap.js-template-selector-wrap.hidden
      = dropdown_tag("Apply a GitLab CI Yaml template", options: { toggle_class: 'btn js-gitlab-ci-yml-selector', title: "Apply a template", filter: true, placeholder: "Filter", data: { data: gitlab_ci_ymls } } )
    .dockerfile-selector.js-dockerfile-selector-wrap.js-template-selector-wrap.hidden
      = dropdown_tag("Apply a Dockerfile template", options: { toggle_class: 'btn js-dockerfile-selector', title: "Apply a template", filter: true, placeholder: "Filter", data: { data: dockerfile_names } } )
  .template-selectors-undo-menu.hidden
    %span.text-info Template applied
    %button.btn.btn-sm.btn-info Undo