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