Differential D18562 Diff 44577 src/applications/people/controller/PhabricatorPeopleCreateController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/controller/PhabricatorPeopleCreateController.php
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | $form = id(new AphrontFormView()) | ||||
id(new AphrontFormSubmitControl()) | id(new AphrontFormSubmitControl()) | ||||
->addCancelButton($this->getApplicationURI()) | ->addCancelButton($this->getApplicationURI()) | ||||
->setValue(pht('Continue'))); | ->setValue(pht('Continue'))); | ||||
$crumbs = $this->buildApplicationCrumbs(); | $crumbs = $this->buildApplicationCrumbs(); | ||||
$crumbs->addTextCrumb($title); | $crumbs->addTextCrumb($title); | ||||
$crumbs->setBorder(true); | $crumbs->setBorder(true); | ||||
$header = id(new PHUIHeaderView()) | |||||
->setHeader($title) | |||||
->setHeaderIcon('fa-user'); | |||||
$box = id(new PHUIObjectBoxView()) | $box = id(new PHUIObjectBoxView()) | ||||
->setHeaderText(pht('User')) | ->setHeaderText($title) | ||||
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY) | ->setBackground(PHUIObjectBoxView::WHITE_CONFIG) | ||||
->setForm($form); | ->setForm($form); | ||||
$guidance_context = new PhabricatorPeopleCreateGuidanceContext(); | $guidance_context = new PhabricatorPeopleCreateGuidanceContext(); | ||||
$guidance = id(new PhabricatorGuidanceEngine()) | $guidance = id(new PhabricatorGuidanceEngine()) | ||||
->setViewer($admin) | ->setViewer($admin) | ||||
->setGuidanceContext($guidance_context) | ->setGuidanceContext($guidance_context) | ||||
->newInfoView(); | ->newInfoView(); | ||||
$view = id(new PHUITwoColumnView()) | $view = id(new PHUITwoColumnView()) | ||||
->setHeader($header) | |||||
->setFooter( | ->setFooter( | ||||
array( | array( | ||||
$guidance, | $guidance, | ||||
$box, | $box, | ||||
)); | )); | ||||
return $this->newPage() | return $this->newPage() | ||||
->setTitle($title) | ->setTitle($title) | ||||
->setCrumbs($crumbs) | ->setCrumbs($crumbs) | ||||
->appendChild($view); | ->appendChild($view); | ||||
} | } | ||||
} | } |