#set($order = $data) #set($orderitemsearcher = $searcherManager.getSearcher($catalogid, "orderitem")) #set($ordersearcher = $searcherManager.getSearcher($catalogid, "order")) #set($owner = $userManager.getUser($order.userid))

[[Customer]]: $owner

#set($usersearcher = $searcherManager.getSearcher("system", "user")) $context.putPageValue("searcher", $usersearcher) $context.putPageValue("view", "user/useredit") $context.putPageValue("data", $owner)
$pages.include("/$applicationid/components/xml/detaileditor.html?detailsreadonly=true", $context)

[[Order Details]]

#set($details = $mediaarchive.getAssetSearcher().getDetailsForView("asset/orderitems",$user) ) #foreach( $detail in $details ) #if($detail.isEditable()) #end #end $context.putPageValue("searcher", $ordersearcher) $context.putPageValue("view", "order/vieworder") $context.putPageValue("data", $order) $pages.include("/$applicationid/components/xml/detaileditor.html?detailsreadonly=false", $context)
##
#if($orderitems)

[[Assets]]

##TODO: Use another form or ajax to deal with items #foreach( $item in $orderitems ) #set($asset = false) #set( $asset = $mediaarchive.getAsset($item.assetid)) #if( $asset ) $context.putPageValue("asset", $asset) $context.putPageValue("item", $item) $context.putPageValue("order", $order) $context.setRequestParameter("sourcepath", $asset.sourcepath) $pages.include("$apphome/components/orders/row.html", $context) #else #end #end
[[Asset]] [[Status]]
[[Asset missing]]
#end
#if( $caneditmetadatasetup )
[[Edit View]] #end