mirror of
https://we.phorge.it/source/phorge.git
synced 2025-04-03 16:08:19 +02: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:
parent
27ebd8a33b
commit
571eb39bbc
2 changed files with 13 additions and 9 deletions
|
@ -74,6 +74,7 @@ final class DrydockBlueprintEditController extends DrydockBlueprintController {
|
||||||
$title = pht('Create New Blueprint');
|
$title = pht('Create New Blueprint');
|
||||||
$crumbs = $this->buildApplicationCrumbs();
|
$crumbs = $this->buildApplicationCrumbs();
|
||||||
$crumbs->addTextCrumb(pht('New Blueprint'));
|
$crumbs->addTextCrumb(pht('New Blueprint'));
|
||||||
|
$crumbs->setBorder(true);
|
||||||
|
|
||||||
$form = id(new AphrontFormView())
|
$form = id(new AphrontFormView())
|
||||||
->setUser($viewer)
|
->setUser($viewer)
|
||||||
|
@ -86,12 +87,16 @@ final class DrydockBlueprintEditController extends DrydockBlueprintController {
|
||||||
$box = id(new PHUIObjectBoxView())
|
$box = id(new PHUIObjectBoxView())
|
||||||
->setFormErrors($errors)
|
->setFormErrors($errors)
|
||||||
->setHeaderText($title)
|
->setHeaderText($title)
|
||||||
|
->setBackground(PHUIObjectBoxView::WHITE_CONFIG)
|
||||||
->setForm($form);
|
->setForm($form);
|
||||||
|
|
||||||
|
$view = id(new PHUITwoColumnView())
|
||||||
|
->setFooter($box);
|
||||||
|
|
||||||
return $this->newPage()
|
return $this->newPage()
|
||||||
->setTitle($title)
|
->setTitle($title)
|
||||||
->setCrumbs($crumbs)
|
->setCrumbs($crumbs)
|
||||||
->appendChild($box);
|
->appendChild($view);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,8 @@ final class DrydockConsoleController extends DrydockController {
|
||||||
$viewer = $request->getViewer();
|
$viewer = $request->getViewer();
|
||||||
|
|
||||||
$menu = id(new PHUIObjectItemListView())
|
$menu = id(new PHUIObjectItemListView())
|
||||||
->setUser($viewer);
|
->setUser($viewer)
|
||||||
|
->setBig(true);
|
||||||
|
|
||||||
$menu->addItem(
|
$menu->addItem(
|
||||||
id(new PHUIObjectItemView())
|
id(new PHUIObjectItemView())
|
||||||
|
@ -64,17 +65,15 @@ final class DrydockConsoleController extends DrydockController {
|
||||||
$crumbs->addTextCrumb(pht('Console'));
|
$crumbs->addTextCrumb(pht('Console'));
|
||||||
$crumbs->setBorder(true);
|
$crumbs->setBorder(true);
|
||||||
|
|
||||||
$box = id(new PHUIObjectBoxView())
|
|
||||||
->setObjectList($menu);
|
|
||||||
|
|
||||||
$title = pht('Drydock Console');
|
$title = pht('Drydock Console');
|
||||||
|
|
||||||
$header = id(new PHUIHeaderView())
|
$box = id(new PHUIObjectBoxView())
|
||||||
->setHeader($title)
|
->setHeaderText($title)
|
||||||
->setHeaderIcon('fa-truck');
|
->setBackground(PHUIObjectBoxView::WHITE_CONFIG)
|
||||||
|
->setObjectList($menu);
|
||||||
|
|
||||||
$view = id(new PHUITwoColumnView())
|
$view = id(new PHUITwoColumnView())
|
||||||
->setHeader($header)
|
->setFixed(true)
|
||||||
->setFooter($box);
|
->setFooter($box);
|
||||||
|
|
||||||
return $this->newPage()
|
return $this->newPage()
|
||||||
|
|
Loading…
Add table
Reference in a new issue