diff options
Diffstat (limited to 'app/views/projects/protected_tags/shared/_dropdown.html.haml')
-rw-r--r-- | app/views/projects/protected_tags/shared/_dropdown.html.haml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/views/projects/protected_tags/shared/_dropdown.html.haml b/app/views/projects/protected_tags/shared/_dropdown.html.haml new file mode 100644 index 00000000000..9b6923210f7 --- /dev/null +++ b/app/views/projects/protected_tags/shared/_dropdown.html.haml @@ -0,0 +1,15 @@ += f.hidden_field(:name) + += dropdown_tag('Select tag or create wildcard', + options: { toggle_class: 'js-protected-tag-select js-filter-submit wide git-revision-dropdown-toggle', + filter: true, dropdown_class: "dropdown-menu-selectable capitalize-header git-revision-dropdown", placeholder: "Search protected tags", + footer_content: true, + data: { show_no: true, show_any: true, show_upcoming: true, + selected: params[:protected_tag_name], + project_id: @project.try(:id) } }) do + + %ul.dropdown-footer-list + %li + %button{ class: "create-new-protected-tag-button js-create-new-protected-tag", title: "New Protected Tag" } + Create wildcard + %code |