gitlab-org--gitlab-foss/app/views/shared/issuable/_label_page_create.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
1.3 KiB
Text
Raw Normal View History

- 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
2016-04-12 00:19:47 -04:00
.dropdown-page-two.dropdown-new-label
= dropdown_title(create_label_title(subject), options: { back: true, close: show_close })
2016-04-12 00:19:47 -04:00
= dropdown_content do
= 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
= 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') }
- 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
%button.gl-button.btn.btn-confirm.float-left.js-new-label-btn{ type: "button" }
2018-01-23 02:03:01 -05:00
= _('Create')
%button.gl-button.btn.btn-default.float-right.js-cancel-label-btn{ type: "button" }
2018-01-23 02:03:01 -05:00
= _('Cancel')