mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-28 00:10:57 +01:00
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:
parent
7ca3f066f4
commit
4e67102d8f
1 changed files with 3 additions and 4 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue