Differential D10900 Diff 26187 src/applications/legalpad/controller/LegalpadDocumentEditController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/legalpad/controller/LegalpadDocumentEditController.php
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | if ($is_create) { | ||||
id(new AphrontFormMarkupControl()) | id(new AphrontFormMarkupControl()) | ||||
->setLabel(pht('Who Should Sign?')) | ->setLabel(pht('Who Should Sign?')) | ||||
->setValue($document->getSignatureTypeName())); | ->setValue($document->getSignatureTypeName())); | ||||
} | } | ||||
$form | $form | ||||
->appendChild( | ->appendChild( | ||||
id(new PhabricatorRemarkupControl()) | id(new PhabricatorRemarkupControl()) | ||||
->setUser($user) | |||||
->setID('preamble') | ->setID('preamble') | ||||
->setLabel(pht('Preamble')) | ->setLabel(pht('Preamble')) | ||||
->setValue($v_preamble) | ->setValue($v_preamble) | ||||
->setName('preamble') | ->setName('preamble') | ||||
->setCaption( | ->setCaption( | ||||
pht('Optional help text for users signing this document.'))) | pht('Optional help text for users signing this document.'))) | ||||
->appendChild( | ->appendChild( | ||||
id(new PhabricatorRemarkupControl()) | id(new PhabricatorRemarkupControl()) | ||||
->setUser($user) | |||||
->setID('document-text') | ->setID('document-text') | ||||
->setLabel(pht('Document Body')) | ->setLabel(pht('Document Body')) | ||||
->setError($e_text) | ->setError($e_text) | ||||
->setValue($text) | ->setValue($text) | ||||
->setHeight(AphrontFormTextAreaControl::HEIGHT_VERY_TALL) | ->setHeight(AphrontFormTextAreaControl::HEIGHT_VERY_TALL) | ||||
->setName('text')); | ->setName('text')); | ||||
$policies = id(new PhabricatorPolicyQuery()) | $policies = id(new PhabricatorPolicyQuery()) | ||||
->setViewer($user) | ->setViewer($user) | ||||
->setObject($document) | ->setObject($document) | ||||
->execute(); | ->execute(); | ||||
$form | $form | ||||
->appendChild( | ->appendChild( | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |