2017-09-10 17:25:29 +05:30
|
|
|
- type = local_assigns.fetch(:type)
|
2021-03-11 19:13:27 +05:30
|
|
|
- is_issue = type == :issues
|
2023-01-13 00:05:48 +05:30
|
|
|
- move_data = { projects_fetch_path: autocomplete_projects_path(project_id: @project.id), project_full_path: @project.full_path }
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2021-03-11 19:13:27 +05:30
|
|
|
%aside.issues-bulk-update.js-right-sidebar.right-sidebar{ "aria-live" => "polite", data: { 'signed-in': current_user.present? }, 'aria-label': _('Bulk update') }
|
2017-09-10 17:25:29 +05:30
|
|
|
.issuable-sidebar.hidden
|
2020-10-24 23:57:45 +05:30
|
|
|
= form_tag [:bulk_update, @project, type], method: :post, class: "bulk-update" do
|
2017-09-10 17:25:29 +05:30
|
|
|
.block.issuable-sidebar-header
|
2018-11-08 19:23:39 +05:30
|
|
|
.filter-item.inline.update-issues-btn.float-left
|
2022-07-23 23:45:48 +05:30
|
|
|
= render Pajamas::ButtonComponent.new(variant: :confirm, button_options: { type: 'submit', disabled: true, class: 'js-update-selected-issues' }) do
|
|
|
|
= _('Update all')
|
|
|
|
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-bulk-update-menu-hide float-right' }) do
|
|
|
|
= _('Cancel')
|
2020-10-24 23:57:45 +05:30
|
|
|
- if params[:state] != 'merged'
|
|
|
|
.block
|
|
|
|
.title
|
|
|
|
= _('Status')
|
2022-11-25 23:54:43 +05:30
|
|
|
.js-status-dropdown
|
2017-09-10 17:25:29 +05:30
|
|
|
.block
|
|
|
|
.title
|
2020-05-24 23:13:21 +05:30
|
|
|
= _('Assignee')
|
2017-09-10 17:25:29 +05:30
|
|
|
.filter-item
|
2023-04-23 21:23:45 +05:30
|
|
|
%input.js-assignee-ids-input{ type: "hidden", name: "update[assignee_ids][]" }
|
|
|
|
.js-assignee-dropdown{ data: { full_path: @project.full_path } }
|
2021-03-11 19:13:27 +05:30
|
|
|
- if is_issue
|
|
|
|
= render_if_exists 'shared/issuable/epic_dropdown', parent: @project.group
|
2022-08-13 15:12:31 +05:30
|
|
|
.block
|
|
|
|
.title
|
|
|
|
= _('Labels')
|
|
|
|
.filter-item.labels-filter
|
|
|
|
= render "shared/issuable/label_dropdown", classes: ["js-filter-bulk-update", "js-multiselect"], dropdown_title: _("Apply a label"), show_create: false, show_footer: false, extra_options: false, filter_submit: false, data_options: { persist_when_hide: "true", field_name: "update[label_ids][]", show_no: false, show_any: false, use_id: true, default_label: _("Labels") }, label_name: _("Select labels"), no_default_styles: true
|
2017-09-10 17:25:29 +05:30
|
|
|
.block
|
|
|
|
.title
|
2020-05-24 23:13:21 +05:30
|
|
|
= _('Milestone')
|
2017-09-10 17:25:29 +05:30
|
|
|
.filter-item
|
2023-01-13 00:05:48 +05:30
|
|
|
.js-milestone-dropdown-root{ data: { full_path: @project.full_path, workspace_type: Namespaces::ProjectNamespace.sti_name.downcase } }
|
2021-03-11 19:13:27 +05:30
|
|
|
- if is_issue
|
|
|
|
= render_if_exists 'shared/issuable/iterations_dropdown', parent: @project.group
|
|
|
|
- if is_issue
|
|
|
|
= render_if_exists 'shared/issuable/health_status_dropdown', parent: @project
|
2017-09-10 17:25:29 +05:30
|
|
|
.block
|
|
|
|
.title
|
2020-05-24 23:13:21 +05:30
|
|
|
= _('Subscriptions')
|
2022-11-25 23:54:43 +05:30
|
|
|
.js-subscriptions-dropdown
|
2023-01-13 00:05:48 +05:30
|
|
|
- if is_issue
|
|
|
|
.block
|
|
|
|
.js-move-issues{ data: move_data }
|
2017-09-10 17:25:29 +05:30
|
|
|
|
|
|
|
= hidden_field_tag "update[issuable_ids]", []
|
|
|
|
= hidden_field_tag :state_event, params[:state_event]
|