Differential D18526 Diff 44493 src/applications/settings/panel/PhabricatorEmailAddressesSettingsPanel.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/settings/panel/PhabricatorEmailAddressesSettingsPanel.php
Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | public function processRequest(AphrontRequest $request) { | ||||
$table->setRowClasses($rowc); | $table->setRowClasses($rowc); | ||||
$table->setColumnVisibility( | $table->setColumnVisibility( | ||||
array( | array( | ||||
true, | true, | ||||
true, | true, | ||||
$editable, | $editable, | ||||
)); | )); | ||||
$view = new PHUIObjectBoxView(); | $button = null; | ||||
$header = new PHUIHeaderView(); | |||||
$header->setHeader(pht('Email Addresses')); | |||||
if ($editable) { | if ($editable) { | ||||
$button = new PHUIButtonView(); | $button = id(new PHUIButtonView()) | ||||
$button->setText(pht('Add New Address')); | ->setTag('a') | ||||
$button->setTag('a'); | ->setIcon('fa-plus') | ||||
$button->setHref($uri->alter('new', 'true')); | ->setText(pht('Add New Address')) | ||||
$button->setIcon('fa-plus'); | ->setHref($uri->alter('new', 'true')) | ||||
$button->addSigil('workflow'); | ->addSigil('workflow') | ||||
$header->addActionLink($button); | ->setColor(PHUIButtonView::GREY); | ||||
} | } | ||||
$view->setHeader($header); | |||||
$view->setTable($table); | |||||
$view->setBackground(PHUIObjectBoxView::BLUE_PROPERTY); | |||||
return $view; | return $this->newBox(pht('Email Addresses'), $table, array($button)); | ||||
} | } | ||||
private function returnNewAddressResponse( | private function returnNewAddressResponse( | ||||
AphrontRequest $request, | AphrontRequest $request, | ||||
PhutilURI $uri, | PhutilURI $uri, | ||||
$new) { | $new) { | ||||
$user = $this->getUser(); | $user = $this->getUser(); | ||||
▲ Show 20 Lines • Show All 251 Lines • Show Last 20 Lines |