mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-14 10:52:41 +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:
parent
399b23d630
commit
59efb7bdf3
5 changed files with 38 additions and 30 deletions
|
@ -123,8 +123,7 @@ final class PhabricatorApplicationDetailViewController
|
||||||
PhabricatorApplication $application) {
|
PhabricatorApplication $application) {
|
||||||
|
|
||||||
$viewer = $this->getViewer();
|
$viewer = $this->getViewer();
|
||||||
$properties = id(new PHUIPropertyListView())
|
$properties = id(new PHUIPropertyListView());
|
||||||
->setStacked(true);
|
|
||||||
|
|
||||||
$header = id(new PHUIHeaderView())
|
$header = id(new PHUIHeaderView())
|
||||||
->setHeader(pht('POLICIES'))
|
->setHeader(pht('POLICIES'))
|
||||||
|
|
|
@ -171,22 +171,27 @@ final class PhabricatorApplicationEditController
|
||||||
$crumbs = $this->buildApplicationCrumbs();
|
$crumbs = $this->buildApplicationCrumbs();
|
||||||
$crumbs->addTextCrumb($application->getName(), $view_uri);
|
$crumbs->addTextCrumb($application->getName(), $view_uri);
|
||||||
$crumbs->addTextCrumb(pht('Edit Policies'));
|
$crumbs->addTextCrumb(pht('Edit Policies'));
|
||||||
|
$crumbs->setBorder(true);
|
||||||
|
|
||||||
$header = id(new PHUIHeaderView())
|
$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())
|
$object_box = id(new PHUIObjectBoxView())
|
||||||
->setHeader($header)
|
->setHeaderText(pht('Policies'))
|
||||||
|
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
|
||||||
->setForm($form);
|
->setForm($form);
|
||||||
|
|
||||||
return $this->buildApplicationPage(
|
$view = id(new PHUITwoColumnView())
|
||||||
array(
|
->setHeader($header)
|
||||||
$crumbs,
|
->setFooter(array(
|
||||||
$object_box,
|
$object_box,
|
||||||
),
|
|
||||||
array(
|
|
||||||
'title' => $title,
|
|
||||||
));
|
));
|
||||||
|
|
||||||
|
return $this->newPage()
|
||||||
|
->setTitle($title)
|
||||||
|
->setCrumbs($crumbs)
|
||||||
|
->appendChild($view);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -137,14 +137,10 @@ final class PhabricatorApplicationEmailCommandsController
|
||||||
->appendChild($info_view)
|
->appendChild($info_view)
|
||||||
->appendChild($content_box);
|
->appendChild($content_box);
|
||||||
|
|
||||||
return $this->buildApplicationPage(
|
return $this->newPage()
|
||||||
array(
|
->setTitle($title)
|
||||||
$crumbs,
|
->setCrumbs($crumbs)
|
||||||
$document,
|
->appendChild($document);
|
||||||
),
|
|
||||||
array(
|
|
||||||
'title' => $title,
|
|
||||||
));
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -59,9 +59,14 @@ final class PhabricatorApplicationPanelController
|
||||||
|
|
||||||
public function buildPanelPage(
|
public function buildPanelPage(
|
||||||
PhabricatorApplicationConfigurationPanel $panel,
|
PhabricatorApplicationConfigurationPanel $panel,
|
||||||
$content,
|
$title,
|
||||||
array $options) {
|
$crumbs,
|
||||||
return $this->buildApplicationPage($content, $options);
|
$content) {
|
||||||
|
|
||||||
|
return $this->newPage()
|
||||||
|
->setTitle($title)
|
||||||
|
->setCrumbs($crumbs)
|
||||||
|
->appendChild($content);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,6 +37,7 @@ final class PhabricatorMetaMTAApplicationEmailPanel
|
||||||
|
|
||||||
$box = id(new PHUIObjectBoxView())
|
$box = id(new PHUIObjectBoxView())
|
||||||
->setHeader($header)
|
->setHeader($header)
|
||||||
|
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
|
||||||
->setTable($table);
|
->setTable($table);
|
||||||
|
|
||||||
return $box;
|
return $box;
|
||||||
|
@ -81,10 +82,12 @@ final class PhabricatorMetaMTAApplicationEmailPanel
|
||||||
|
|
||||||
$crumbs = $controller->buildPanelCrumbs($this);
|
$crumbs = $controller->buildPanelCrumbs($this);
|
||||||
$crumbs->addTextCrumb(pht('Edit Application Emails'));
|
$crumbs->addTextCrumb(pht('Edit Application Emails'));
|
||||||
|
$crumbs->setBorder(true);
|
||||||
|
|
||||||
$header = id(new PHUIHeaderView())
|
$header = id(new PHUIHeaderView())
|
||||||
->setHeader(pht('Edit Application Emails: %s', $application->getName()))
|
->setHeader(pht('Edit Application Emails: %s', $application->getName()))
|
||||||
->setSubheader($application->getAppEmailBlurb());
|
->setSubheader($application->getAppEmailBlurb())
|
||||||
|
->setHeaderIcon('fa-pencil');
|
||||||
|
|
||||||
$icon = id(new PHUIIconView())
|
$icon = id(new PHUIIconView())
|
||||||
->setIcon('fa-plus');
|
->setIcon('fa-plus');
|
||||||
|
@ -97,20 +100,20 @@ final class PhabricatorMetaMTAApplicationEmailPanel
|
||||||
$header->addActionLink($button);
|
$header->addActionLink($button);
|
||||||
|
|
||||||
$object_box = id(new PHUIObjectBoxView())
|
$object_box = id(new PHUIObjectBoxView())
|
||||||
->setHeader($header)
|
->setHeaderText(pht('Emails'))
|
||||||
|
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
|
||||||
->setTable($table);
|
->setTable($table);
|
||||||
|
|
||||||
$title = $application->getName();
|
$title = $application->getName();
|
||||||
|
$view = id(new PHUITwoColumnView())
|
||||||
|
->setHeader($header)
|
||||||
|
->setFooter($object_box);
|
||||||
|
|
||||||
return $controller->buildPanelPage(
|
return $controller->buildPanelPage(
|
||||||
$this,
|
$this,
|
||||||
array(
|
$title,
|
||||||
$crumbs,
|
$crumbs,
|
||||||
$object_box,
|
$view);
|
||||||
),
|
|
||||||
array(
|
|
||||||
'title' => $title,
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function returnNewAddressResponse(
|
private function returnNewAddressResponse(
|
||||||
|
|
Loading…
Reference in a new issue