From 4e67102d8fb08ed1f7e9ad0c1799245c95876fec Mon Sep 17 00:00:00 2001 From: Chad Little Date: Tue, 27 Aug 2013 09:05:40 -0700 Subject: [PATCH] Fix Macro Edit form Summary: Updated to use formbox Test Plan: reload edit macro Reviewers: epriestley, btrahan Reviewed By: epriestley CC: Korvin, aran Differential Revision: https://secure.phabricator.com/D6824 --- .../macro/controller/PhabricatorMacroEditController.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/applications/macro/controller/PhabricatorMacroEditController.php b/src/applications/macro/controller/PhabricatorMacroEditController.php index 50267bcc5e..d14ad767e7 100644 --- a/src/applications/macro/controller/PhabricatorMacroEditController.php +++ b/src/applications/macro/controller/PhabricatorMacroEditController.php @@ -234,9 +234,6 @@ final class PhabricatorMacroEditController $upload = null; if ($macro->getID()) { - $upload_header = id(new PhabricatorHeaderView()) - ->setHeader(pht('Upload New File')); - $upload_form = id(new AphrontFormView()) ->setEncType('multipart/form-data') ->setUser($request->getUser()); @@ -258,7 +255,9 @@ final class PhabricatorMacroEditController id(new AphrontFormSubmitControl()) ->setValue(pht('Upload File'))); - $upload = array($upload_header, $upload_form); + $upload = id(new PHUIFormBoxView()) + ->setHeaderText(pht('Upload New File')) + ->setForm($upload_form); } $form_box = id(new PHUIFormBoxView())