27 lines
1.3 KiB
Text
27 lines
1.3 KiB
Text
- show_close = local_assigns.fetch(:show_close, true)
|
|
- show_add_list = local_assigns.fetch(:show_add_list, false)
|
|
- add_list = local_assigns.fetch(:add_list, false)
|
|
- add_list_class = local_assigns.fetch(:add_list_class, '')
|
|
- 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
|
|
 
|
|
.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') }
|
|
- if show_add_list
|
|
.dropdown-label-input{ class: add_list_class }
|
|
%label
|
|
%input.js-add-list{ type: "checkbox", name: "add_list", checked: add_list }
|
|
%span= _('Add list')
|
|
.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')
|