Changeset View
Changeset View
Standalone View
Standalone View
src/applications/fact/controller/PhabricatorFactHomeController.php
| Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | if (!$options) { | ||||
| array(), | array(), | ||||
| pht('There are no facts that can be plotted yet.'))); | pht('There are no facts that can be plotted yet.'))); | ||||
| } | } | ||||
| $form = id(new AphrontFormView()) | $form = id(new AphrontFormView()) | ||||
| ->setUser($user) | ->setUser($user) | ||||
| ->appendChild( | ->appendChild( | ||||
| id(new AphrontFormSelectControl()) | id(new AphrontFormSelectControl()) | ||||
| ->setLabel('Y-Axis') | ->setLabel(pht('Y-Axis')) | ||||
| ->setName('y1') | ->setName('y1') | ||||
| ->setOptions($options)) | ->setOptions($options)) | ||||
| ->appendChild( | ->appendChild( | ||||
| id(new AphrontFormSubmitControl()) | id(new AphrontFormSubmitControl()) | ||||
| ->setValue(pht('Plot Chart'))); | ->setValue(pht('Plot Chart'))); | ||||
| $panel = new PHUIObjectBoxView(); | $panel = new PHUIObjectBoxView(); | ||||
| $panel->setForm($form); | $panel->setForm($form); | ||||
| $panel->setHeaderText(pht('Plot Chart')); | $panel->setHeaderText(pht('Plot Chart')); | ||||
| return $panel; | return $panel; | ||||
| } | } | ||||
| } | } | ||||