2018-06-07 16:54:24 -04:00
|
|
|
- show_close = local_assigns.fetch(:show_close, true)
|
2019-04-05 11:50:21 -04:00
|
|
|
- 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, '')
|
2018-03-08 07:40:04 -05:00
|
|
|
- subject = @project || @group
|
2016-04-12 00:19:47 -04:00
|
|
|
.dropdown-page-two.dropdown-new-label
|
2018-06-07 16:54:24 -04:00
|
|
|
= dropdown_title(create_label_title(subject), options: { back: true, close: show_close })
|
2016-04-12 00:19:47 -04:00
|
|
|
= dropdown_content do
|
2022-04-05 14:09:00 -04:00
|
|
|
= render Pajamas::AlertComponent.new(variant: :danger, alert_class: 'js-label-error gl-mb-3', dismissible: false)
|
2018-01-23 02:03:01 -05:00
|
|
|
%input#new_label_name.default-dropdown-input{ type: "text", placeholder: _('Name new label') }
|
2016-04-12 00:19:47 -04:00
|
|
|
.suggest-colors.suggest-colors-dropdown
|
2019-05-15 17:23:56 -04:00
|
|
|
= render_suggested_colors
|
2016-04-12 00:19:47 -04:00
|
|
|
.dropdown-label-color-input
|
|
|
|
.dropdown-label-color-preview.js-dropdown-label-color-preview
|
2018-01-23 02:03:01 -05:00
|
|
|
%input#new_label_color.default-dropdown-input{ type: "text", placeholder: _('Assign custom color like #FF0000') }
|
2019-04-05 11:50:21 -04:00
|
|
|
- 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')
|
2016-04-12 00:19:47 -04:00
|
|
|
.clearfix
|
2021-03-08 16:09:45 -05:00
|
|
|
%button.gl-button.btn.btn-confirm.float-left.js-new-label-btn{ type: "button" }
|
2018-01-23 02:03:01 -05:00
|
|
|
= _('Create')
|
2021-01-19 07:10:46 -05:00
|
|
|
%button.gl-button.btn.btn-default.float-right.js-cancel-label-btn{ type: "button" }
|
2018-01-23 02:03:01 -05:00
|
|
|
= _('Cancel')
|