summaryrefslogtreecommitdiff
path: root/app/views/shared/issuable/_label_page_create.html.haml
blob: 55edaa7eda429a120f467f4ef16d58711c12cde1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- show_close = local_assigns.fetch(:show_close, true)
- subject = @project || @group
.dropdown-page-two.dropdown-new-label
  = dropdown_title(create_label_title(subject), options: { back: true, close: show_close })
  = dropdown_content do
    .dropdown-labels-error.js-label-error
    %input#new_label_name.default-dropdown-input{ type: "text", placeholder: _('Name new label') }
    .suggest-colors.suggest-colors-dropdown
      - suggested_colors.each do |color|
        = link_to '#', style: "background-color: #{color}", data: { color: color } do
          &nbsp
    .dropdown-label-color-input
      .dropdown-label-color-preview.js-dropdown-label-color-preview
      %input#new_label_color.default-dropdown-input{ type: "text", placeholder: _('Assign custom color like #FF0000') }
    .clearfix
      %button.btn.btn-primary.float-left.js-new-label-btn{ type: "button" }
        = _('Create')
      %button.btn.btn-default.float-right.js-cancel-label-btn{ type: "button" }
        = _('Cancel')