Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/editor/PhabricatorUserEditEngine.php
| Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | return array( | ||||
| ->setOptions(pht('Active'), pht('Disabled')) | ->setOptions(pht('Active'), pht('Disabled')) | ||||
| ->setLabel(pht('Disabled')) | ->setLabel(pht('Disabled')) | ||||
| ->setDescription(pht('Disable the user.')) | ->setDescription(pht('Disable the user.')) | ||||
| ->setTransactionType(PhabricatorUserDisableTransaction::TRANSACTIONTYPE) | ->setTransactionType(PhabricatorUserDisableTransaction::TRANSACTIONTYPE) | ||||
| ->setIsFormField(false) | ->setIsFormField(false) | ||||
| ->setConduitDescription(pht('Disable or enable the user.')) | ->setConduitDescription(pht('Disable or enable the user.')) | ||||
| ->setConduitTypeDescription(pht('True to disable the user.')) | ->setConduitTypeDescription(pht('True to disable the user.')) | ||||
| ->setValue($object->getIsDisabled()), | ->setValue($object->getIsDisabled()), | ||||
| id(new PhabricatorBoolEditField()) | |||||
| ->setKey('approved') | |||||
| ->setOptions(pht('Approved'), pht('Unapproved')) | |||||
| ->setLabel(pht('Approved')) | |||||
| ->setDescription(pht('Approve the user.')) | |||||
| ->setTransactionType(PhabricatorUserApproveTransaction::TRANSACTIONTYPE) | |||||
| ->setIsFormField(false) | |||||
| ->setConduitDescription(pht('Approve or reject the user.')) | |||||
| ->setConduitTypeDescription(pht('True to approve the user.')) | |||||
| ->setValue($object->getIsApproved()), | |||||
| ); | ); | ||||
| } | } | ||||
| } | } | ||||