1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 23:32:40 +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:
Chad Little 2013-03-08 07:36:55 -08:00
parent b799f5671b
commit ef33c04322

View file

@ -176,6 +176,16 @@ final class PholioMockEditController extends PholioController {
$cc_tokens = mpull($handles, 'getFullName', 'getPHID'); $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()) $form = id(new AphrontFormView())
->setUser($user) ->setUser($user)
->setFlexible(true) ->setFlexible(true)
@ -191,12 +201,7 @@ final class PholioMockEditController extends PholioController {
->setValue($v_desc) ->setValue($v_desc)
->setLabel(pht('Description')) ->setLabel(pht('Description'))
->setUser($user)) ->setUser($user))
->appendChild( ->appendChild($images_controller)
id(new AphrontFormDragAndDropUploadControl($request))
->setValue($files)
->setName('file_phids')
->setLabel(pht('Images'))
->setError($e_images))
->appendChild( ->appendChild(
id(new AphrontFormTokenizerControl()) id(new AphrontFormTokenizerControl())
->setLabel(pht('CC')) ->setLabel(pht('CC'))