From c8995ad0fe8a051ab7056a0970fd810d2bc25edc Mon Sep 17 00:00:00 2001 From: Chad Little Date: Tue, 5 Apr 2016 13:43:38 -0700 Subject: [PATCH] Update phpast for new UI Summary: New UI for phpast Test Plan: Open page, doesn't crash Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D15627 --- .../PhabricatorXHPASTViewRunController.php | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/applications/phpast/controller/PhabricatorXHPASTViewRunController.php b/src/applications/phpast/controller/PhabricatorXHPASTViewRunController.php index 290666e375..8a530075ae 100644 --- a/src/applications/phpast/controller/PhabricatorXHPASTViewRunController.php +++ b/src/applications/phpast/controller/PhabricatorXHPASTViewRunController.php @@ -47,13 +47,24 @@ final class PhabricatorXHPASTViewRunController $form_box = id(new PHUIObjectBoxView()) ->setHeaderText(pht('Generate XHP AST')) + ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) ->setForm($form); - return $this->buildApplicationPage( - $form_box, - array( - 'title' => pht('XHPAST View'), + $title = pht('XHPAST View'); + $header = id(new PHUIHeaderView()) + ->setHeader($title) + ->setHeaderIcon('fa-ambulance'); + + $view = id(new PHUITwoColumnView()) + ->setHeader($header) + ->setFooter(array( + $form_box, )); + + return $this->newPage() + ->setTitle($title) + ->appendChild($view); + } }