Differential D14945 Diff 36121 src/applications/diffusion/controller/DiffusionMirrorEditController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/controller/DiffusionMirrorEditController.php
Show First 20 Lines • Show All 111 Lines • ▼ Show 20 Lines | $form = id(new PHUIFormLayoutView()) | ||||
id(new PassphraseCredentialControl()) | id(new PassphraseCredentialControl()) | ||||
->setLabel(pht('Credentials')) | ->setLabel(pht('Credentials')) | ||||
->setName('credential') | ->setName('credential') | ||||
->setAllowNull(true) | ->setAllowNull(true) | ||||
->setValue($v_credentials) | ->setValue($v_credentials) | ||||
->setError($e_credentials) | ->setError($e_credentials) | ||||
->setOptions($credentials)); | ->setOptions($credentials)); | ||||
$dialog = id(new AphrontDialogView()) | return $this->newDialog() | ||||
->setUser($viewer) | |||||
->setTitle($title) | ->setTitle($title) | ||||
->setWidth(AphrontDialogView::WIDTH_FORM) | ->setWidth(AphrontDialogView::WIDTH_FORM) | ||||
->appendChild($form_errors) | ->appendChild($form_errors) | ||||
->appendChild($form) | ->appendChild($form) | ||||
->addSubmitButton($submit) | ->addSubmitButton($submit) | ||||
->addCancelButton($edit_uri); | ->addCancelButton($edit_uri); | ||||
return id(new AphrontDialogResponse()) | |||||
->setDialog($dialog); | |||||
} | } | ||||
} | } |