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

26 lines
1.2 KiB
Text
Raw Normal View History

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
.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
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
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')