Changeset View
Changeset View
Standalone View
Standalone View
src/view/form/PHUIInfoView.php
| Show All 35 Lines | final class PHUIInfoView extends AphrontView { | ||||
| public function addButton(PHUIButtonView $button) { | public function addButton(PHUIButtonView $button) { | ||||
| $this->buttons[] = $button; | $this->buttons[] = $button; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| final public function render() { | final public function render() { | ||||
| require_celerity_resource('phui-info-view-css'); | require_celerity_resource('phui-info-view-css'); | ||||
| $errors = $this->errors; | $errors = $this->errors; | ||||
| if ($errors) { | if ($errors) { | ||||
| $list = array(); | $list = array(); | ||||
| foreach ($errors as $error) { | foreach ($errors as $error) { | ||||
| $list[] = phutil_tag( | $list[] = phutil_tag( | ||||
| 'li', | 'li', | ||||
| ▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines | |||||