1= f.hidden_field(:name) 2 3= dropdown_tag('Select branch or create wildcard', 4 options: { toggle_class: 'js-protected-branch-select js-filter-submit wide monospace qa-protected-branch-select', 5 filter: true, dropdown_class: "dropdown-menu-selectable git-revision-dropdown qa-protected-branch-dropdown", placeholder: "Search protected branches", 6 footer_content: true, 7 data: { show_no: true, show_any: true, show_upcoming: true, 8 selected: params[:protected_branch_name], 9 project_id: @project.try(:id) } }) do 10 11 %ul.dropdown-footer-list 12 %li 13 %button{ class: "dropdown-create-new-item-button js-dropdown-create-new-item", title: "New Protected Branch" } 14 Create wildcard 15 %code 16