Changeset View
Changeset View
Standalone View
Standalone View
src/view/form/AphrontFormView.php
| Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | final class AphrontFormView extends AphrontView { | ||||
| public function render() { | public function render() { | ||||
| require_celerity_resource('phui-form-view-css'); | require_celerity_resource('phui-form-view-css'); | ||||
| $layout = $this->buildLayoutView(); | $layout = $this->buildLayoutView(); | ||||
| if (!$this->user) { | if (!$this->user) { | ||||
| throw new Exception(pht('You must pass the user to AphrontFormView.')); | throw new Exception( | ||||
| pht( | |||||
| 'You must pass the user to %s.', | |||||
| __CLASS__)); | |||||
| } | } | ||||
| $sigils = $this->sigils; | $sigils = $this->sigils; | ||||
| if ($this->workflow) { | if ($this->workflow) { | ||||
| $sigils[] = 'workflow'; | $sigils[] = 'workflow'; | ||||
| } | } | ||||
| return phabricator_form( | return phabricator_form( | ||||
| Show All 31 Lines | |||||