From 7694a6729f6aa3d0e625cd557d4ccd75dc9f39b7 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Sun, 3 Apr 2016 12:24:58 -0700 Subject: [PATCH] Update Owners edit paths page to new UI Summary: Brings the edit paths page in owners up to new UI Test Plan: Edit some paths, yo. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D15596 --- .../PhabricatorOwnersPathsController.php | 34 +++++++++++-------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/src/applications/owners/controller/PhabricatorOwnersPathsController.php b/src/applications/owners/controller/PhabricatorOwnersPathsController.php index ccca55b6c5..ad7db5cc6e 100644 --- a/src/applications/owners/controller/PhabricatorOwnersPathsController.php +++ b/src/applications/owners/controller/PhabricatorOwnersPathsController.php @@ -139,8 +139,9 @@ final class PhabricatorOwnersPathsController ->addCancelButton($cancel_uri) ->setValue(pht('Save Paths'))); - $form_box = id(new PHUIObjectBoxView()) - ->setHeaderText(pht('Edit Paths')) + $box = id(new PHUIObjectBoxView()) + ->setHeaderText(pht('Paths')) + ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) ->setForm($form); $crumbs = $this->buildApplicationCrumbs(); @@ -148,18 +149,23 @@ final class PhabricatorOwnersPathsController $package->getName(), $this->getApplicationURI('package/'.$package->getID().'/')); $crumbs->addTextCrumb(pht('Edit Paths')); + $crumbs->setBorder(true); - return $this->buildApplicationPage( - array( - $crumbs, - $form_box, - ), - array( - 'title' => array( - $package->getName(), - pht('Edit Paths'), - ), - )); - } + $header = id(new PHUIHeaderView()) + ->setHeader(pht('Edit Paths: %s', $package->getName())) + ->setHeaderIcon('fa-pencil'); + + $view = id(new PHUITwoColumnView()) + ->setHeader($header) + ->setFooter($box); + + $title = array($package->getName(), pht('Edit Paths')); + + return $this->newPage() + ->setTitle($title) + ->setCrumbs($crumbs) + ->appendChild($view); + + } }