PHUIPropertyListView
Summary: This builds out and implements PHUIPropertyListView (container) and PHUIPropertyListItemView (section) as well as adding tabs. Test Plan: Tested each page I edited with the exception of Releeph and Phortune, though those changes look ok to me diff wise. Updated examples page with tabs. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D7283
This commit is contained in:
@@ -68,7 +68,7 @@ final class PhabricatorPeopleProfileController
|
||||
->setHref($this->getApplicationURI('edit/'.$user->getID().'/')));
|
||||
}
|
||||
|
||||
$properties = $this->buildPropertyView($user);
|
||||
$properties = $this->buildPropertyView($user, $actions);
|
||||
|
||||
$crumbs = $this->buildApplicationCrumbs();
|
||||
$crumbs->addCrumb(
|
||||
@@ -78,8 +78,7 @@ final class PhabricatorPeopleProfileController
|
||||
|
||||
$object_box = id(new PHUIObjectBoxView())
|
||||
->setHeader($header)
|
||||
->setActionList($actions)
|
||||
->setPropertyList($properties);
|
||||
->addPropertyList($properties);
|
||||
|
||||
return $this->buildApplicationPage(
|
||||
array(
|
||||
@@ -93,12 +92,15 @@ final class PhabricatorPeopleProfileController
|
||||
));
|
||||
}
|
||||
|
||||
private function buildPropertyView(PhabricatorUser $user) {
|
||||
$viewer = $this->getRequest()->getUser();
|
||||
private function buildPropertyView(
|
||||
PhabricatorUser $user,
|
||||
PhabricatorActionListView $actions) {
|
||||
|
||||
$view = id(new PhabricatorPropertyListView())
|
||||
$viewer = $this->getRequest()->getUser();
|
||||
$view = id(new PHUIPropertyListView())
|
||||
->setUser($viewer)
|
||||
->setObject($user);
|
||||
->setObject($user)
|
||||
->setActionList($actions);
|
||||
|
||||
$field_list = PhabricatorCustomField::getObjectFields(
|
||||
$user,
|
||||
|
||||
Reference in New Issue
Block a user