Changeset View
Changeset View
Standalone View
Standalone View
src/applications/nuance/controller/NuanceItemEditController.php
| Show All 27 Lines | public function handleRequest(AphrontRequest $request) { | ||||
| $properties = $this->buildPropertyView($item); | $properties = $this->buildPropertyView($item); | ||||
| $actions = $this->buildActionView($item); | $actions = $this->buildActionView($item); | ||||
| $properties->setActionList($actions); | $properties->setActionList($actions); | ||||
| $box = id(new PHUIObjectBoxView()) | $box = id(new PHUIObjectBoxView()) | ||||
| ->setHeaderText($title) | ->setHeaderText($title) | ||||
| ->addPropertyList($properties); | ->addPropertyList($properties); | ||||
| $timeline = $this->buildTransactionTimeline( | |||||
| $item, | |||||
| new NuanceItemTransactionQuery()); | |||||
| $timeline->setShouldTerminate(true); | |||||
| return $this->buildApplicationPage( | return $this->buildApplicationPage( | ||||
| array( | array( | ||||
| $crumbs, | $crumbs, | ||||
| $box, | $box, | ||||
| $timeline, | |||||
| ), | ), | ||||
| array( | array( | ||||
| 'title' => $title, | 'title' => $title, | ||||
| )); | )); | ||||
| } | } | ||||
| private function buildPropertyView(NuanceItem $item) { | private function buildPropertyView(NuanceItem $item) { | ||||
| $viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
| Show All 9 Lines | private function buildPropertyView(NuanceItem $item) { | ||||
| $properties->addProperty( | $properties->addProperty( | ||||
| pht('Requestor'), | pht('Requestor'), | ||||
| $viewer->renderHandle($item->getRequestorPHID())); | $viewer->renderHandle($item->getRequestorPHID())); | ||||
| $properties->addProperty( | $properties->addProperty( | ||||
| pht('Source'), | pht('Source'), | ||||
| $viewer->renderHandle($item->getSourcePHID())); | $viewer->renderHandle($item->getSourcePHID())); | ||||
| $properties->addProperty( | |||||
| pht('Queue'), | |||||
| $viewer->renderHandle($item->getQueuePHID())); | |||||
| $source = $item->getSource(); | $source = $item->getSource(); | ||||
| $definition = $source->requireDefinition(); | $definition = $source->requireDefinition(); | ||||
| $definition->renderItemEditProperties( | $definition->renderItemEditProperties( | ||||
| $viewer, | $viewer, | ||||
| $item, | $item, | ||||
| $properties); | $properties); | ||||
| Show All 21 Lines | |||||