It would be nice to have an area handler for the Order admin View that presented a form that, upon submission, went straight to an order's admin or customer view page. It should have a setting determining which URL to redirect to. I don't see any reason this should be restricted to Order Views, so making it a global area handler would be good. The form can simple be a textfield labeled "View order".

Comments

pcambra’s picture

Issue tags: +dcparisprintmarch
dpolant’s picture

Status: Active » Needs review
StatusFileSize
new3.82 KB

Patch provides global views area form that has two controls (a text field for entering an order id and a select control for specifying whether to go the admin or customer view) and a submit button.

rszrama’s picture

Discussed this with Dan in IRC. I actually intended the result to be a standalone form that got rendered into the area instead of using the Views form functionality (which turns the whole View into a form). Using Dan's work as a base I've made the conversion and moved the code to the Order UI module where we now have a commerce_order_ui_redirect_form defined for use by the area handler. The only limitation on this now would be what happens if a form gets rendered inside a form; i.e. this area handler on a Views form. I'm not exactly sure where / how such a case would be handled, but it's fringe enough right now that it shouldn't be an issue with this particular patch.

Commit: http://drupalcode.org/project/commerce.git/commitdiff/b97a6e2

amateescu’s picture

StatusFileSize
new39.91 KB
new1.25 KB

The commit from #3 introduced a strict warning and a css issue:

order_ui.png

All fixed in the attached patch :)

rszrama’s picture

Status: Needs review » Fixed

Good catch! Thanks for the quick follow-up. : )

Looks like somebody (me) needs to ensure he's developing on strict...

rszrama’s picture

Status: Fixed » Closed (fixed)
Issue tags: -Usability, -low-hanging fruit

Automatically closed -- issue fixed for 2 weeks with no activity.