Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/controller/post/PhamePostEditController.php
Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | $form = id(new AphrontFormView()) | ||||
->setCaption(pht('Up to 64 alphanumeric characters '. | ->setCaption(pht('Up to 64 alphanumeric characters '. | ||||
'with underscores for spaces. '. | 'with underscores for spaces. '. | ||||
'Formatting is enforced.')) | 'Formatting is enforced.')) | ||||
->setError($e_phame_title)) | ->setError($e_phame_title)) | ||||
->appendChild( | ->appendChild( | ||||
id(new AphrontFormSelectControl()) | id(new AphrontFormSelectControl()) | ||||
->setLabel(pht('Visibility')) | ->setLabel(pht('Visibility')) | ||||
->setName('visibility') | ->setName('visibility') | ||||
->setvalue($visibility) | ->setValue($visibility) | ||||
->setOptions(PhameConstants::getPhamePostStatusMap())) | ->setOptions(PhameConstants::getPhamePostStatusMap())) | ||||
->appendChild( | ->appendChild( | ||||
id(new PhabricatorRemarkupControl()) | id(new PhabricatorRemarkupControl()) | ||||
->setLabel(pht('Body')) | ->setLabel(pht('Body')) | ||||
->setName('body') | ->setName('body') | ||||
->setValue($body) | ->setValue($body) | ||||
->setHeight(AphrontFormTextAreaControl::HEIGHT_VERY_TALL) | ->setHeight(AphrontFormTextAreaControl::HEIGHT_VERY_TALL) | ||||
->setID('post-body') | ->setID('post-body') | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |