Differential D25377 Diff 1239 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 133 Lines • ▼ Show 20 Lines | if ($request->isFormPost()) { | ||||
$validation_exception = $ex; | $validation_exception = $ex; | ||||
} | } | ||||
} | } | ||||
$form = id(new AphrontFormView()) | $form = id(new AphrontFormView()) | ||||
->setUser($viewer); | ->setUser($viewer); | ||||
$instructions = $implementation->getEditInstructions(); | $instructions = $implementation->getEditInstructions(); | ||||
if (strlen($instructions)) { | if (phutil_nonempty_string($instructions)) { | ||||
$form->appendRemarkupInstructions($instructions); | $form->appendRemarkupInstructions($instructions); | ||||
} | } | ||||
$form->appendChild( | $form->appendChild( | ||||
id(new AphrontFormTextControl()) | id(new AphrontFormTextControl()) | ||||
->setName('name') | ->setName('name') | ||||
->setLabel(pht('Name')) | ->setLabel(pht('Name')) | ||||
->setError($e_name) | ->setError($e_name) | ||||
▲ Show 20 Lines • Show All 120 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0