1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 14:00:56 +01:00

Update drydock console, edit pages to new UI

Summary: Updates Drydock for the new UI

Test Plan: Check console, edit pages

Reviewers: epriestley, amckinley

Reviewed By: epriestley

Spies: Korvin, PHID-OPKG-gm6ozazyms6q6i22gyam

Differential Revision: https://secure.phabricator.com/D18545
This commit is contained in:
Chad Little 2017-09-06 11:21:43 -07:00
parent 27ebd8a33b
commit 571eb39bbc
2 changed files with 13 additions and 9 deletions

View file

@ -74,6 +74,7 @@ final class DrydockBlueprintEditController extends DrydockBlueprintController {
$title = pht('Create New Blueprint');
$crumbs = $this->buildApplicationCrumbs();
$crumbs->addTextCrumb(pht('New Blueprint'));
$crumbs->setBorder(true);
$form = id(new AphrontFormView())
->setUser($viewer)
@ -86,12 +87,16 @@ final class DrydockBlueprintEditController extends DrydockBlueprintController {
$box = id(new PHUIObjectBoxView())
->setFormErrors($errors)
->setHeaderText($title)
->setBackground(PHUIObjectBoxView::WHITE_CONFIG)
->setForm($form);
$view = id(new PHUITwoColumnView())
->setFooter($box);
return $this->newPage()
->setTitle($title)
->setCrumbs($crumbs)
->appendChild($box);
->appendChild($view);
}
}

View file

@ -26,7 +26,8 @@ final class DrydockConsoleController extends DrydockController {
$viewer = $request->getViewer();
$menu = id(new PHUIObjectItemListView())
->setUser($viewer);
->setUser($viewer)
->setBig(true);
$menu->addItem(
id(new PHUIObjectItemView())
@ -64,17 +65,15 @@ final class DrydockConsoleController extends DrydockController {
$crumbs->addTextCrumb(pht('Console'));
$crumbs->setBorder(true);
$box = id(new PHUIObjectBoxView())
->setObjectList($menu);
$title = pht('Drydock Console');
$header = id(new PHUIHeaderView())
->setHeader($title)
->setHeaderIcon('fa-truck');
$box = id(new PHUIObjectBoxView())
->setHeaderText($title)
->setBackground(PHUIObjectBoxView::WHITE_CONFIG)
->setObjectList($menu);
$view = id(new PHUITwoColumnView())
->setHeader($header)
->setFixed(true)
->setFooter($box);
return $this->newPage()