mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42: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:
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) {
|
||||
$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,
|
||||
));
|
||||
|
|
Loading…
Reference in a new issue