mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Remove 'Images' from editing a mock
Summary: For now, remove the images field when editing a mock, can add it back if we decide to allow it. Test Plan: Check edit mock, field gone, check new mock, field is alive and well. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2552 Differential Revision: https://secure.phabricator.com/D5289
This commit is contained in:
parent
b799f5671b
commit
ef33c04322
1 changed files with 11 additions and 6 deletions
|
@ -176,6 +176,16 @@ final class PholioMockEditController extends PholioController {
|
|||
|
||||
$cc_tokens = mpull($handles, 'getFullName', 'getPHID');
|
||||
|
||||
$images_controller = '';
|
||||
if ($is_new) {
|
||||
$images_controller =
|
||||
id(new AphrontFormDragAndDropUploadControl($request))
|
||||
->setValue($files)
|
||||
->setName('file_phids')
|
||||
->setLabel(pht('Images'))
|
||||
->setError($e_images);
|
||||
}
|
||||
|
||||
$form = id(new AphrontFormView())
|
||||
->setUser($user)
|
||||
->setFlexible(true)
|
||||
|
@ -191,12 +201,7 @@ final class PholioMockEditController extends PholioController {
|
|||
->setValue($v_desc)
|
||||
->setLabel(pht('Description'))
|
||||
->setUser($user))
|
||||
->appendChild(
|
||||
id(new AphrontFormDragAndDropUploadControl($request))
|
||||
->setValue($files)
|
||||
->setName('file_phids')
|
||||
->setLabel(pht('Images'))
|
||||
->setError($e_images))
|
||||
->appendChild($images_controller)
|
||||
->appendChild(
|
||||
id(new AphrontFormTokenizerControl())
|
||||
->setLabel(pht('CC'))
|
||||
|
|
Loading…
Reference in a new issue