summaryrefslogtreecommitdiff
path: root/app/views/projects/protected_branches/shared/_dropdown.html.haml
blob: 67a6e8efae8c05bac5c7c64d3bf373689f0a64d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
= f.hidden_field(:name)

= dropdown_tag('Select branch or create wildcard',
               options: { toggle_class: 'js-protected-branch-select js-filter-submit wide monospace qa-protected-branch-select',
                          filter: true, dropdown_class: "dropdown-menu-selectable git-revision-dropdown qa-protected-branch-dropdown", placeholder: "Search protected branches",
                          footer_content: true,
                          data: { show_no: true, show_any: true, show_upcoming: true,
                                  selected: params[:protected_branch_name],
                                  project_id: @project.try(:id) } }) do

  %ul.dropdown-footer-list
    %li
      %button{ class: "dropdown-create-new-item-button js-dropdown-create-new-item", title: "New Protected Branch" }
        Create wildcard
        %code