Differential D8286 Diff 19727 src/applications/releeph/field/specification/ReleephReasonFieldSpecification.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/releeph/field/specification/ReleephReasonFieldSpecification.php
| Show All 29 Lines | public function renderValueForHeaderView() { | ||||
| return id(new AphrontNoteView()) | return id(new AphrontNoteView()) | ||||
| ->setTitle('Reason') | ->setTitle('Reason') | ||||
| ->appendChild($markup) | ->appendChild($markup) | ||||
| ->render(); | ->render(); | ||||
| } | } | ||||
| private $error = true; | private $error = true; | ||||
| public function renderEditControl() { | public function renderEditControl(array $handles) { | ||||
| return id(new AphrontFormTextAreaControl()) | return id(new AphrontFormTextAreaControl()) | ||||
| ->setLabel('Reason') | ->setLabel('Reason') | ||||
| ->setName('reason') | ->setName('reason') | ||||
| ->setError($this->error) | ->setError($this->error) | ||||
| ->setValue($this->getValue()); | ->setValue($this->getValue()); | ||||
| } | } | ||||
| public function validate($reason) { | public function validate($reason) { | ||||
| ▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines | |||||