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

20 lines
1001 B
Plaintext
Raw Normal View History

- show_close = local_assigns.fetch(:show_close, true)
- subject = @project || @group
2016-04-12 04:19:47 +00:00
.dropdown-page-two.dropdown-new-label
= dropdown_title(create_label_title(subject), options: { back: true, close: show_close })
2016-04-12 04:19:47 +00:00
= dropdown_content do
.dropdown-labels-error.js-label-error
2018-01-23 07:03:01 +00:00
%input#new_label_name.default-dropdown-input{ type: "text", placeholder: _('Name new label') }
2016-04-12 04:19:47 +00:00
.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
2018-01-23 07:03:01 +00:00
%input#new_label_color.default-dropdown-input{ type: "text", placeholder: _('Assign custom color like #FF0000') }
2016-04-12 04:19:47 +00:00
.clearfix
2018-04-09 17:36:21 +00:00
%button.btn.btn-primary.float-left.js-new-label-btn{ type: "button" }
2018-01-23 07:03:01 +00:00
= _('Create')
2018-05-10 19:22:56 +00:00
%button.btn.btn-default.float-right.js-cancel-label-btn{ type: "button" }
2018-01-23 07:03:01 +00:00
= _('Cancel')