debian-mirror-gitlab/app/views/shared/issuable/_label_page_create.html.haml

20 lines
1,001 B
Text
Raw Normal View History

2018-11-08 19:23:39 +05:30
- show_close = local_assigns.fetch(:show_close, true)
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
.dropdown-labels-error.js-label-error
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
- 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-03-17 18:26:18 +05:30
%input#new_label_color.default-dropdown-input{ type: "text", placeholder: _('Assign custom color like #FF0000') }
2016-06-02 11:05:42 +05:30
.clearfix
2018-11-08 19:23:39 +05:30
%button.btn.btn-primary.float-left.js-new-label-btn{ type: "button" }
2018-03-17 18:26:18 +05:30
= _('Create')
2018-11-08 19:23:39 +05:30
%button.btn.btn-default.float-right.js-cancel-label-btn{ type: "button" }
2018-03-17 18:26:18 +05:30
= _('Cancel')