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
This commit is contained in:
@@ -234,9 +234,6 @@ final class PhabricatorMacroEditController
|
|||||||
|
|
||||||
$upload = null;
|
$upload = null;
|
||||||
if ($macro->getID()) {
|
if ($macro->getID()) {
|
||||||
$upload_header = id(new PhabricatorHeaderView())
|
|
||||||
->setHeader(pht('Upload New File'));
|
|
||||||
|
|
||||||
$upload_form = id(new AphrontFormView())
|
$upload_form = id(new AphrontFormView())
|
||||||
->setEncType('multipart/form-data')
|
->setEncType('multipart/form-data')
|
||||||
->setUser($request->getUser());
|
->setUser($request->getUser());
|
||||||
@@ -258,7 +255,9 @@ final class PhabricatorMacroEditController
|
|||||||
id(new AphrontFormSubmitControl())
|
id(new AphrontFormSubmitControl())
|
||||||
->setValue(pht('Upload File')));
|
->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())
|
$form_box = id(new PHUIFormBoxView())
|
||||||
|
|||||||
Reference in New Issue
Block a user