Differential D14286 Diff 37385 src/applications/harbormaster/controller/HarbormasterStepEditController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/controller/HarbormasterStepEditController.php
Show First 20 Lines • Show All 130 Lines • ▼ Show 20 Lines | if ($request->isFormPost()) { | ||||
return id(new AphrontRedirectResponse())->setURI($step_uri); | return id(new AphrontRedirectResponse())->setURI($step_uri); | ||||
} catch (PhabricatorApplicationTransactionValidationException $ex) { | } catch (PhabricatorApplicationTransactionValidationException $ex) { | ||||
$validation_exception = $ex; | $validation_exception = $ex; | ||||
} | } | ||||
} | } | ||||
$form = id(new AphrontFormView()) | $form = id(new AphrontFormView()) | ||||
->setUser($viewer) | ->setUser($viewer); | ||||
->appendChild( | |||||
$instructions = $implementation->getEditInstructions(); | |||||
if (strlen($instructions)) { | |||||
$form->appendRemarkupInstructions($instructions); | |||||
} | |||||
$form->appendChild( | |||||
id(new AphrontFormTextControl()) | id(new AphrontFormTextControl()) | ||||
->setName('name') | ->setName('name') | ||||
->setLabel(pht('Name')) | ->setLabel(pht('Name')) | ||||
->setError($e_name) | ->setError($e_name) | ||||
->setValue($v_name)); | ->setValue($v_name)); | ||||
$form->appendChild(id(new AphrontFormDividerControl())); | $form->appendChild(id(new AphrontFormDividerControl())); | ||||
$field_list->appendFieldsToForm($form); | $field_list->appendFieldsToForm($form); | ||||
$form->appendChild(id(new AphrontFormDividerControl())); | $form->appendChild(id(new AphrontFormDividerControl())); | ||||
$form | $form | ||||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |