1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 14:52:41 +01:00

Update Phlux edit UI

Summary: Updates

Test Plan: Phlux edit page

Reviewers: epriestley

Reviewed By: epriestley

Spies: Korvin

Differential Revision: https://secure.phabricator.com/D18561
This commit is contained in:
Chad Little 2017-09-07 11:41:23 -07:00
parent d6bb0d1bfa
commit 98185730df

View file

@ -154,26 +154,19 @@ final class PhluxEditController extends PhluxController {
if ($is_new) {
$title = pht('Create Variable');
$crumbs->addTextCrumb($title, $request->getRequestURI());
$header_icon = 'fa-plus-square';
} else {
$title = pht('Edit Variable: %s', $key);
$header_icon = 'fa-pencil';
$crumbs->addTextCrumb($title, $request->getRequestURI());
}
$crumbs->setBorder(true);
$box = id(new PHUIObjectBoxView())
->setHeaderText(pht('Variable'))
->setHeaderText($title)
->setFormErrors($errors)
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
->setBackground(PHUIObjectBoxView::WHITE_CONFIG)
->setForm($form);
$header = id(new PHUIHeaderView())
->setHeader($title)
->setHeaderIcon($header_icon);
$view = id(new PHUITwoColumnView())
->setHeader($header)
->setFooter(array(
$box,
));