Differential D19852 Diff 47411 src/applications/transactions/controller/PhabricatorEditEngineConfigurationSubtypeController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/controller/PhabricatorEditEngineConfigurationSubtypeController.php
| Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | public function handleRequest(AphrontRequest $request) { | ||||
| $fields = $engine->getFieldsForConfig($config); | $fields = $engine->getFieldsForConfig($config); | ||||
| $help = pht(<<<EOTEXT | $help = pht(<<<EOTEXT | ||||
| Choose the object **subtype** that this form should create and edit. | Choose the object **subtype** that this form should create and edit. | ||||
| EOTEXT | EOTEXT | ||||
| ); | ); | ||||
| $map = $engine->newSubtypeMap(); | $map = $engine->newSubtypeMap()->getDisplayMap(); | ||||
| $map = mpull($map, 'getName'); | |||||
| $form = id(new AphrontFormView()) | $form = id(new AphrontFormView()) | ||||
| ->setUser($viewer) | ->setUser($viewer) | ||||
| ->appendRemarkupInstructions($help) | ->appendRemarkupInstructions($help) | ||||
| ->appendControl( | ->appendControl( | ||||
| id(new AphrontFormSelectControl()) | id(new AphrontFormSelectControl()) | ||||
| ->setName('subtype') | ->setName('subtype') | ||||
| ->setLabel(pht('Subtype')) | ->setLabel(pht('Subtype')) | ||||
| Show All 12 Lines | |||||