Changeset View
Changeset View
Standalone View
Standalone View
src/applications/paste/editor/PhabricatorPasteEditEngine.php
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | return array( | ||||
id(new PhabricatorTextAreaEditField()) | id(new PhabricatorTextAreaEditField()) | ||||
->setKey('text') | ->setKey('text') | ||||
->setLabel(pht('Text')) | ->setLabel(pht('Text')) | ||||
->setDescription(pht('The main body text of the paste.')) | ->setDescription(pht('The main body text of the paste.')) | ||||
->setTransactionType(PhabricatorPasteTransaction::TYPE_CONTENT) | ->setTransactionType(PhabricatorPasteTransaction::TYPE_CONTENT) | ||||
->setMonospaced(true) | ->setMonospaced(true) | ||||
->setHeight(AphrontFormTextAreaControl::HEIGHT_VERY_TALL) | ->setHeight(AphrontFormTextAreaControl::HEIGHT_VERY_TALL) | ||||
->setValue($object->getRawContent()), | ->setValue($object->getRawContent()), | ||||
id(new PhabricatorSelectEditField()) | |||||
->setKey('status') | |||||
->setLabel(pht('Status')) | |||||
->setDescription(pht('Active or archive the paste.')) | |||||
->setTransactionType(PhabricatorPasteTransaction::TYPE_STATUS) | |||||
->setIsConduitOnly(true) | |||||
->setValue($object->getStatus()) | |||||
->setOptions(PhabricatorPaste::getStatusNameMap()), | |||||
); | ); | ||||
} | } | ||||
} | } |