mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 10:42:41 +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;
|
$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())
|
||||||
|
|
Loading…
Reference in a new issue