mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 23:02:42 +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:
parent
d6bb0d1bfa
commit
98185730df
1 changed files with 2 additions and 9 deletions
|
@ -154,26 +154,19 @@ final class PhluxEditController extends PhluxController {
|
||||||
if ($is_new) {
|
if ($is_new) {
|
||||||
$title = pht('Create Variable');
|
$title = pht('Create Variable');
|
||||||
$crumbs->addTextCrumb($title, $request->getRequestURI());
|
$crumbs->addTextCrumb($title, $request->getRequestURI());
|
||||||
$header_icon = 'fa-plus-square';
|
|
||||||
} else {
|
} else {
|
||||||
$title = pht('Edit Variable: %s', $key);
|
$title = pht('Edit Variable: %s', $key);
|
||||||
$header_icon = 'fa-pencil';
|
|
||||||
$crumbs->addTextCrumb($title, $request->getRequestURI());
|
$crumbs->addTextCrumb($title, $request->getRequestURI());
|
||||||
}
|
}
|
||||||
$crumbs->setBorder(true);
|
$crumbs->setBorder(true);
|
||||||
|
|
||||||
$box = id(new PHUIObjectBoxView())
|
$box = id(new PHUIObjectBoxView())
|
||||||
->setHeaderText(pht('Variable'))
|
->setHeaderText($title)
|
||||||
->setFormErrors($errors)
|
->setFormErrors($errors)
|
||||||
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
|
->setBackground(PHUIObjectBoxView::WHITE_CONFIG)
|
||||||
->setForm($form);
|
->setForm($form);
|
||||||
|
|
||||||
$header = id(new PHUIHeaderView())
|
|
||||||
->setHeader($title)
|
|
||||||
->setHeaderIcon($header_icon);
|
|
||||||
|
|
||||||
$view = id(new PHUITwoColumnView())
|
$view = id(new PHUITwoColumnView())
|
||||||
->setHeader($header)
|
|
||||||
->setFooter(array(
|
->setFooter(array(
|
||||||
$box,
|
$box,
|
||||||
));
|
));
|
||||||
|
|
Loading…
Reference in a new issue