mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 01:02:42 +01:00
Fix a runaway indentation level in LegalpadDocumentEditEngine
Summary: Ref T12685. Test Plan: No behavioral changes. Reviewers: chad Reviewed By: chad Maniphest Tasks: T12685 Differential Revision: https://secure.phabricator.com/D17875
This commit is contained in:
parent
a25c79bbc0
commit
aa81979922
1 changed files with 42 additions and 42 deletions
|
@ -114,53 +114,53 @@ final class LegalpadDocumentEditEngine
|
||||||
->setConduitTypeDescription(pht('New document signature type.'))
|
->setConduitTypeDescription(pht('New document signature type.'))
|
||||||
->setValue($object->getSignatureType())
|
->setValue($object->getSignatureType())
|
||||||
->setOptions(LegalpadDocument::getSignatureTypeMap())
|
->setOptions(LegalpadDocument::getSignatureTypeMap())
|
||||||
->setTransactionType(
|
->setTransactionType(
|
||||||
LegalpadDocumentSignatureTypeTransaction::TRANSACTIONTYPE);
|
LegalpadDocumentSignatureTypeTransaction::TRANSACTIONTYPE);
|
||||||
$show_require = true;
|
$show_require = true;
|
||||||
} else {
|
} else {
|
||||||
$fields[] = id(new PhabricatorStaticEditField())
|
$fields[] = id(new PhabricatorStaticEditField())
|
||||||
->setLabel(pht('Who Should Sign?'))
|
->setLabel(pht('Who Should Sign?'))
|
||||||
->setValue($object->getSignatureTypeName());
|
->setValue($object->getSignatureTypeName());
|
||||||
$individual = LegalpadDocument::SIGNATURE_TYPE_INDIVIDUAL;
|
$individual = LegalpadDocument::SIGNATURE_TYPE_INDIVIDUAL;
|
||||||
$show_require = $object->getSignatureType() == $individual;
|
$show_require = $object->getSignatureType() == $individual;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($show_require && $is_admin) {
|
|
||||||
$fields[] =
|
|
||||||
id(new PhabricatorBoolEditField())
|
|
||||||
->setKey('requireSignature')
|
|
||||||
->setOptions(
|
|
||||||
pht('No Signature Required'),
|
|
||||||
pht('Signature Required to use Phabricator'))
|
|
||||||
->setAsCheckbox(true)
|
|
||||||
->setTransactionType(
|
|
||||||
LegalpadDocumentRequireSignatureTransaction::TRANSACTIONTYPE)
|
|
||||||
->setDescription(pht('Marks this document as required signing.'))
|
|
||||||
->setConduitDescription(
|
|
||||||
pht('Marks this document as required signing.'))
|
|
||||||
->setValue($object->getRequireSignature());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if ($show_require && $is_admin) {
|
||||||
$fields[] =
|
$fields[] =
|
||||||
id(new PhabricatorRemarkupEditField())
|
id(new PhabricatorBoolEditField())
|
||||||
->setKey('preamble')
|
->setKey('requireSignature')
|
||||||
->setLabel(pht('Preamble'))
|
->setOptions(
|
||||||
->setDescription(pht('The preamble of the document.'))
|
pht('No Signature Required'),
|
||||||
->setConduitTypeDescription(pht('New document preamble.'))
|
pht('Signature Required to use Phabricator'))
|
||||||
->setValue($object->getPreamble())
|
->setAsCheckbox(true)
|
||||||
->setTransactionType(
|
->setTransactionType(
|
||||||
LegalpadDocumentPreambleTransaction::TRANSACTIONTYPE);
|
LegalpadDocumentRequireSignatureTransaction::TRANSACTIONTYPE)
|
||||||
|
->setDescription(pht('Marks this document as required signing.'))
|
||||||
|
->setConduitDescription(
|
||||||
|
pht('Marks this document as required signing.'))
|
||||||
|
->setValue($object->getRequireSignature());
|
||||||
|
}
|
||||||
|
|
||||||
$fields[] =
|
$fields[] =
|
||||||
id(new PhabricatorRemarkupEditField())
|
id(new PhabricatorRemarkupEditField())
|
||||||
->setKey('text')
|
->setKey('preamble')
|
||||||
->setLabel(pht('Document Body'))
|
->setLabel(pht('Preamble'))
|
||||||
->setDescription(pht('The body of text of the document.'))
|
->setDescription(pht('The preamble of the document.'))
|
||||||
->setConduitTypeDescription(pht('New document body.'))
|
->setConduitTypeDescription(pht('New document preamble.'))
|
||||||
->setValue($document_body)
|
->setValue($object->getPreamble())
|
||||||
->setIsRequired(true)
|
->setTransactionType(
|
||||||
->setTransactionType(
|
LegalpadDocumentPreambleTransaction::TRANSACTIONTYPE);
|
||||||
LegalpadDocumentTextTransaction::TRANSACTIONTYPE);
|
|
||||||
|
$fields[] =
|
||||||
|
id(new PhabricatorRemarkupEditField())
|
||||||
|
->setKey('text')
|
||||||
|
->setLabel(pht('Document Body'))
|
||||||
|
->setDescription(pht('The body of text of the document.'))
|
||||||
|
->setConduitTypeDescription(pht('New document body.'))
|
||||||
|
->setValue($document_body)
|
||||||
|
->setIsRequired(true)
|
||||||
|
->setTransactionType(
|
||||||
|
LegalpadDocumentTextTransaction::TRANSACTIONTYPE);
|
||||||
|
|
||||||
return $fields;
|
return $fields;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue