Differential D13966 Diff 33725 src/applications/nuance/source/NuancePhabricatorFormSourceDefinition.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/nuance/source/NuancePhabricatorFormSourceDefinition.php
| Show All 9 Lines | final class NuancePhabricatorFormSourceDefinition | ||||
| public function getSourceDescription() { | public function getSourceDescription() { | ||||
| return pht('Create a web form that submits into a Nuance queue.'); | return pht('Create a web form that submits into a Nuance queue.'); | ||||
| } | } | ||||
| public function getSourceTypeConstant() { | public function getSourceTypeConstant() { | ||||
| return 'phabricator-form'; | return 'phabricator-form'; | ||||
| } | } | ||||
| public function getSourceViewActions(AphrontRequest $request) { | |||||
| $actions = array(); | |||||
| $actions[] = id(new PhabricatorActionView()) | |||||
| ->setName(pht('View Form')) | |||||
| ->setIcon('fa-align-justify') | |||||
| ->setHref($this->getActionURI()); | |||||
| return $actions; | |||||
| } | |||||
| public function updateItems() { | public function updateItems() { | ||||
| return null; | return null; | ||||
| } | } | ||||
| protected function augmentEditForm( | protected function augmentEditForm( | ||||
| AphrontFormView $form, | AphrontFormView $form, | ||||
| PhabricatorApplicationTransactionValidationException $ex = null) { | PhabricatorApplicationTransactionValidationException $ex = null) { | ||||
| ▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines | |||||