1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-17 02:50:54 +01:00

Update Meta for new UI

Summary: Runs through Meta, cleaned up policies and editing email addresses to new UI

Test Plan: Set a new Email address for Maniphest, edit policies.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D15569
This commit is contained in:
Chad Little 2016-04-01 14:07:41 -07:00
parent 399b23d630
commit 59efb7bdf3
5 changed files with 38 additions and 30 deletions

View file

@ -123,8 +123,7 @@ final class PhabricatorApplicationDetailViewController
PhabricatorApplication $application) {
$viewer = $this->getViewer();
$properties = id(new PHUIPropertyListView())
->setStacked(true);
$properties = id(new PHUIPropertyListView());
$header = id(new PHUIHeaderView())
->setHeader(pht('POLICIES'))

View file

@ -171,22 +171,27 @@ final class PhabricatorApplicationEditController
$crumbs = $this->buildApplicationCrumbs();
$crumbs->addTextCrumb($application->getName(), $view_uri);
$crumbs->addTextCrumb(pht('Edit Policies'));
$crumbs->setBorder(true);
$header = id(new PHUIHeaderView())
->setHeader(pht('Edit Policies: %s', $application->getName()));
->setHeader(pht('Edit Policies: %s', $application->getName()))
->setHeaderIcon('fa-pencil');
$object_box = id(new PHUIObjectBoxView())
->setHeader($header)
->setHeaderText(pht('Policies'))
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
->setForm($form);
return $this->buildApplicationPage(
array(
$crumbs,
$view = id(new PHUITwoColumnView())
->setHeader($header)
->setFooter(array(
$object_box,
),
array(
'title' => $title,
));
return $this->newPage()
->setTitle($title)
->setCrumbs($crumbs)
->appendChild($view);
}
}

View file

@ -137,14 +137,10 @@ final class PhabricatorApplicationEmailCommandsController
->appendChild($info_view)
->appendChild($content_box);
return $this->buildApplicationPage(
array(
$crumbs,
$document,
),
array(
'title' => $title,
));
return $this->newPage()
->setTitle($title)
->setCrumbs($crumbs)
->appendChild($document);
}

View file

@ -59,9 +59,14 @@ final class PhabricatorApplicationPanelController
public function buildPanelPage(
PhabricatorApplicationConfigurationPanel $panel,
$content,
array $options) {
return $this->buildApplicationPage($content, $options);
$title,
$crumbs,
$content) {
return $this->newPage()
->setTitle($title)
->setCrumbs($crumbs)
->appendChild($content);
}
}

View file

@ -37,6 +37,7 @@ final class PhabricatorMetaMTAApplicationEmailPanel
$box = id(new PHUIObjectBoxView())
->setHeader($header)
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
->setTable($table);
return $box;
@ -81,10 +82,12 @@ final class PhabricatorMetaMTAApplicationEmailPanel
$crumbs = $controller->buildPanelCrumbs($this);
$crumbs->addTextCrumb(pht('Edit Application Emails'));
$crumbs->setBorder(true);
$header = id(new PHUIHeaderView())
->setHeader(pht('Edit Application Emails: %s', $application->getName()))
->setSubheader($application->getAppEmailBlurb());
->setSubheader($application->getAppEmailBlurb())
->setHeaderIcon('fa-pencil');
$icon = id(new PHUIIconView())
->setIcon('fa-plus');
@ -97,20 +100,20 @@ final class PhabricatorMetaMTAApplicationEmailPanel
$header->addActionLink($button);
$object_box = id(new PHUIObjectBoxView())
->setHeader($header)
->setHeaderText(pht('Emails'))
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
->setTable($table);
$title = $application->getName();
$view = id(new PHUITwoColumnView())
->setHeader($header)
->setFooter($object_box);
return $controller->buildPanelPage(
$this,
array(
$title,
$crumbs,
$object_box,
),
array(
'title' => $title,
));
$view);
}
private function returnNewAddressResponse(