Differential D18528 Diff 44535 src/applications/dashboard/controller/PhabricatorDashboardEditController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/controller/PhabricatorDashboardEditController.php
Show First 20 Lines • Show All 178 Lines • ▼ Show 20 Lines | $form->appendControl( | ||||
->setDatasource(new PhabricatorProjectDatasource())); | ->setDatasource(new PhabricatorProjectDatasource())); | ||||
$form->appendChild( | $form->appendChild( | ||||
id(new AphrontFormSubmitControl()) | id(new AphrontFormSubmitControl()) | ||||
->setValue($button) | ->setValue($button) | ||||
->addCancelButton($cancel_uri)); | ->addCancelButton($cancel_uri)); | ||||
$box = id(new PHUIObjectBoxView()) | $box = id(new PHUIObjectBoxView()) | ||||
->setHeaderText(pht('Dashboard')) | ->setHeaderText($title) | ||||
->setForm($form) | ->setForm($form) | ||||
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) | ->setBackground(PHUIObjectBoxView::WHITE_CONFIG) | ||||
->setValidationException($validation_exception); | ->setValidationException($validation_exception); | ||||
$crumbs->setBorder(true); | $crumbs->setBorder(true); | ||||
$header = id(new PHUIHeaderView()) | |||||
->setHeader($title) | |||||
->setHeaderIcon($header_icon); | |||||
$view = id(new PHUITwoColumnView()) | $view = id(new PHUITwoColumnView()) | ||||
->setHeader($header) | |||||
->setFooter($box); | ->setFooter($box); | ||||
return $this->newPage() | return $this->newPage() | ||||
->setTitle($title) | ->setTitle($title) | ||||
->setCrumbs($crumbs) | ->setCrumbs($crumbs) | ||||
->appendChild($view); | ->appendChild($view); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 180 Lines • Show Last 20 Lines |