Differential D8268 Diff 19681 src/applications/auth/controller/config/PhabricatorAuthEditController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/controller/config/PhabricatorAuthEditController.php
Show First 20 Lines • Show All 270 Lines • ▼ Show 20 Lines | $form | ||||
->setValue($button)); | ->setValue($button)); | ||||
$help = $provider->getConfigurationHelp(); | $help = $provider->getConfigurationHelp(); | ||||
if ($help) { | if ($help) { | ||||
$form->appendChild(id(new PHUIFormDividerControl())); | $form->appendChild(id(new PHUIFormDividerControl())); | ||||
$form->appendRemarkupInstructions($help); | $form->appendRemarkupInstructions($help); | ||||
} | } | ||||
$footer = $provider->renderConfigurationFooter(); | |||||
$crumbs = $this->buildApplicationCrumbs(); | $crumbs = $this->buildApplicationCrumbs(); | ||||
$crumbs->addTextCrumb($crumb); | $crumbs->addTextCrumb($crumb); | ||||
$xaction_view = null; | $xaction_view = null; | ||||
if (!$is_new) { | if (!$is_new) { | ||||
$xactions = id(new PhabricatorAuthProviderConfigTransactionQuery()) | $xactions = id(new PhabricatorAuthProviderConfigTransactionQuery()) | ||||
->withObjectPHIDs(array($config->getPHID())) | ->withObjectPHIDs(array($config->getPHID())) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
Show All 13 Lines | $form_box = id(new PHUIObjectBoxView()) | ||||
->setHeaderText($title) | ->setHeaderText($title) | ||||
->setFormErrors($errors) | ->setFormErrors($errors) | ||||
->setForm($form); | ->setForm($form); | ||||
return $this->buildApplicationPage( | return $this->buildApplicationPage( | ||||
array( | array( | ||||
$crumbs, | $crumbs, | ||||
$form_box, | $form_box, | ||||
$footer, | |||||
$xaction_view, | $xaction_view, | ||||
), | ), | ||||
array( | array( | ||||
'title' => $title, | 'title' => $title, | ||||
'device' => true, | 'device' => true, | ||||
)); | )); | ||||
} | } | ||||
} | } |