From cad9e548bca25637de64d98ca6ee66ef9a020a53 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Fri, 4 Oct 2013 15:13:05 -0700 Subject: [PATCH] Add Header to Registration Summary: Adds an ObjectBox to Phabricator Registration Test Plan: check logged out page for new header. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: Korvin, aran Differential Revision: https://secure.phabricator.com/D7223 --- .../controller/PhabricatorAuthRegisterController.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/applications/auth/controller/PhabricatorAuthRegisterController.php b/src/applications/auth/controller/PhabricatorAuthRegisterController.php index ec5883e9d0..8a25c4868a 100644 --- a/src/applications/auth/controller/PhabricatorAuthRegisterController.php +++ b/src/applications/auth/controller/PhabricatorAuthRegisterController.php @@ -342,7 +342,7 @@ final class PhabricatorAuthRegisterController if ($must_set_password) { $form->appendChild( id(new AphrontFormRecaptchaControl()) - ->setLabel('Captcha') + ->setLabel(pht('Captcha')) ->setError($e_captcha)); } @@ -389,12 +389,16 @@ final class PhabricatorAuthRegisterController 'other authentication mechanisms (like LDAP or OAuth) later on.')); } + $object_box = id(new PHUIObjectBoxView()) + ->setHeaderText($title) + ->setForm($form) + ->setFormError($error_view); + return $this->buildApplicationPage( array( $crumbs, $welcome_view, - $error_view, - $form, + $object_box, ), array( 'title' => $title,