2017-05-15 22:12:43 +00:00
|
|
|
- type = local_assigns.fetch(:type)
|
|
|
|
|
2017-07-24 07:47:38 +00:00
|
|
|
%aside.issues-bulk-update.js-right-sidebar.right-sidebar{ "aria-live" => "polite", data: { 'signed-in': current_user.present? } }
|
2017-06-21 07:33:39 +00:00
|
|
|
.issuable-sidebar.hidden
|
2019-01-16 12:09:29 +00:00
|
|
|
= form_tag [:bulk_update, @project.namespace.becomes(Namespace), @project, type], method: :post, class: "bulk-update" do
|
2017-07-24 07:47:38 +00:00
|
|
|
.block.issuable-sidebar-header
|
2018-04-09 17:36:21 +00:00
|
|
|
.filter-item.inline.update-issues-btn.float-left
|
2020-05-19 00:07:58 +00:00
|
|
|
= button_tag _('Update all'), class: "btn update-selected-issues btn-info", disabled: true
|
|
|
|
= button_tag _('Cancel'), class: "btn btn-default js-bulk-update-menu-hide float-right"
|
2017-05-15 22:12:43 +00:00
|
|
|
.block
|
|
|
|
.title
|
2020-05-19 00:07:58 +00:00
|
|
|
= _('Status')
|
2017-05-15 22:12:43 +00:00
|
|
|
.filter-item
|
2020-05-19 00:07:58 +00:00
|
|
|
= dropdown_tag(_("Select status"), options: { toggle_class: "js-issue-status", title: _("Change status"), dropdown_class: "dropdown-menu-status dropdown-menu-selectable", data: { field_name: "update[state_event]", default_label: _("Status") } } ) do
|
2017-05-15 22:12:43 +00:00
|
|
|
%ul
|
|
|
|
%li
|
2020-05-19 00:07:58 +00:00
|
|
|
%a{ href: "#", data: { id: "reopen" } }
|
|
|
|
= _('Open')
|
2017-05-15 22:12:43 +00:00
|
|
|
%li
|
2020-05-19 00:07:58 +00:00
|
|
|
%a{ href: "#", data: { id: "close" } }
|
|
|
|
= _('Closed')
|
2017-05-15 22:12:43 +00:00
|
|
|
.block
|
|
|
|
.title
|
2020-05-19 00:07:58 +00:00
|
|
|
= _('Assignee')
|
2017-05-15 22:12:43 +00:00
|
|
|
.filter-item
|
2019-04-07 18:35:16 +00:00
|
|
|
- field_name = "update[assignee_ids][]"
|
2020-05-19 00:07:58 +00:00
|
|
|
= dropdown_tag(_("Select assignee"), options: { toggle_class: "js-user-search js-update-assignee js-filter-submit js-filter-bulk-update", title: _("Assign to"), filter: true, dropdown_class: "dropdown-menu-user dropdown-menu-selectable",
|
|
|
|
placeholder: _("Search authors"), data: { first_user: (current_user.username if current_user), null_user: true, current_user: true, project_id: @project.id, field_name: field_name } })
|
2017-05-15 22:12:43 +00:00
|
|
|
.block
|
|
|
|
.title
|
2020-05-19 00:07:58 +00:00
|
|
|
= _('Milestone')
|
2017-05-15 22:12:43 +00:00
|
|
|
.filter-item
|
2020-05-19 00:07:58 +00:00
|
|
|
= dropdown_tag(_("Select milestone"), options: { title: _("Assign milestone"), toggle_class: "js-milestone-select js-extra-options js-filter-submit js-filter-bulk-update", filter: true, dropdown_class: "dropdown-menu-selectable dropdown-menu-milestone", placeholder: _("Search milestones"), data: { show_no: true, field_name: "update[milestone_id]", project_id: @project.id, milestones: project_milestones_path(@project, :json), use_id: true, default_label: _("Milestone") } })
|
2017-05-15 22:12:43 +00:00
|
|
|
.block
|
|
|
|
.title
|
2020-05-19 00:07:58 +00:00
|
|
|
= _('Labels')
|
2017-05-15 22:12:43 +00:00
|
|
|
.filter-item.labels-filter
|
2020-05-19 00:07:58 +00:00
|
|
|
= 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-05-15 22:12:43 +00:00
|
|
|
.block
|
|
|
|
.title
|
2020-05-19 00:07:58 +00:00
|
|
|
= _('Subscriptions')
|
2017-05-15 22:12:43 +00:00
|
|
|
.filter-item
|
2020-05-19 00:07:58 +00:00
|
|
|
= dropdown_tag(_("Select subscription"), options: { toggle_class: "js-subscription-event", title: _("Change subscription"), dropdown_class: "dropdown-menu-selectable", data: { field_name: "update[subscription_event]", default_label: _("Subscription") } } ) do
|
2017-05-15 22:12:43 +00:00
|
|
|
%ul
|
|
|
|
%li
|
2020-05-19 00:07:58 +00:00
|
|
|
%a{ href: "#", data: { id: "subscribe" } }
|
|
|
|
= _('Subscribe')
|
2017-05-15 22:12:43 +00:00
|
|
|
%li
|
2020-05-19 00:07:58 +00:00
|
|
|
%a{ href: "#", data: { id: "unsubscribe" } }
|
|
|
|
= _('Unsubscribe')
|
2017-05-15 22:12:43 +00:00
|
|
|
|
|
|
|
= hidden_field_tag "update[issuable_ids]", []
|
|
|
|
= hidden_field_tag :state_event, params[:state_event]
|