Problem/Motivation

We have no way to transition an order between workflow states through the order listing page (VBO view).

Proposed resolution

Provide a dropbutton with transition options. If only one, display single button (like Operations column's Edit/Reassign/Delete buttons).
Since this view is a VBO form, the buttons need to be links to a transition form that's somewhere else.

Remaining tasks

  1. Patch/PR
  2. Tests

User interface changes

Add button(s) in column of order listing view.

Comments

steveoliver created an issue. See original summary.

steveoliver’s picture

Issue summary: View changes

Removing JIRA prototype image.

steveoliver’s picture

Removing parent issue as the issue is already Related.

bojanz’s picture

Status: Needs work » Active

There's no patch here.

mglaman’s picture

Marked #2816233: Order listings should show possible state transitions. as duplicate, since this ticket has information on how it has to be implemented. We'll need a "transition" confirm form which the buttons link to.

cornifex’s picture

Assigned: Unassigned » cornifex
griz’s picture

I realise this issue is four years old, but are there any plans to implement this? Or is there a contrib module that takes care of it?
If not, if somebody could give me some high-level guidance I could make a start.
I understand that the buttons need to be links rather than form submit buttons, and I'm assuming the order ID and next state should be passed as parameters. But where is the form?
Still quite new to D8... I gather I would need to define a route, but the rest is a mystery to me so far.

griz’s picture

I see that when editing the State field in the view, and it is possible to select 'Transition form' as the formatter; this places the transition buttons in the table as I had hoped.
However as mentioned above, this doesn't work.

Anybody’s picture

Assigned: cornifex » Unassigned
Category: Task » Feature request

Still makes sense and is somehow related to #3126327: Allow applying transitions in bulk for orders