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".
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 1068940-followup.patch | 1.25 KB | amateescu |
| #4 | order_ui.png | 39.91 KB | amateescu |
| #2 | 1068940-2-jump_to_order_views_area.patch | 3.82 KB | dpolant |
Comments
Comment #1
pcambraComment #2
dpolant commentedPatch 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.
Comment #3
rszrama commentedDiscussed 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
Comment #4
amateescu commentedThe commit from #3 introduced a strict warning and a css issue:
All fixed in the attached patch :)
Comment #5
rszrama commentedGood catch! Thanks for the quick follow-up. : )
Looks like somebody (me) needs to ensure he's developing on strict...
Comment #6
rszrama commented