Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/editor/ManiphestEditEngine.php
| Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | return array( | ||||
| ->setTransactionType(ManiphestTransaction::TYPE_TITLE) | ->setTransactionType(ManiphestTransaction::TYPE_TITLE) | ||||
| ->setIsRequired(true) | ->setIsRequired(true) | ||||
| ->setValue($object->getTitle()), | ->setValue($object->getTitle()), | ||||
| id(new PhabricatorSelectEditField()) | id(new PhabricatorSelectEditField()) | ||||
| ->setKey('status') | ->setKey('status') | ||||
| ->setLabel(pht('Status')) | ->setLabel(pht('Status')) | ||||
| ->setDescription(pht('Status of the task.')) | ->setDescription(pht('Status of the task.')) | ||||
| ->setTransactionType(ManiphestTransaction::TYPE_STATUS) | ->setTransactionType(ManiphestTransaction::TYPE_STATUS) | ||||
| ->setIsCopyable(true) | |||||
| ->setValue($object->getStatus()) | ->setValue($object->getStatus()) | ||||
| ->setOptions($status_map) | ->setOptions($status_map) | ||||
| ->setCommentActionLabel(pht('Change Status')) | ->setCommentActionLabel(pht('Change Status')) | ||||
| ->setCommentActionDefaultValue($default_status), | ->setCommentActionDefaultValue($default_status), | ||||
| id(new PhabricatorUsersEditField()) | id(new PhabricatorUsersEditField()) | ||||
| ->setKey('owner') | ->setKey('owner') | ||||
| ->setAliases(array('ownerPHID', 'assign', 'assigned')) | ->setAliases(array('ownerPHID', 'assign', 'assigned')) | ||||
| ->setLabel(pht('Assigned To')) | ->setLabel(pht('Assigned To')) | ||||
| ->setDescription(pht('User who is responsible for the task.')) | ->setDescription(pht('User who is responsible for the task.')) | ||||
| ->setTransactionType(ManiphestTransaction::TYPE_OWNER) | ->setTransactionType(ManiphestTransaction::TYPE_OWNER) | ||||
| ->setIsCopyable(true) | |||||
| ->setSingleValue($object->getOwnerPHID()) | ->setSingleValue($object->getOwnerPHID()) | ||||
| ->setCommentActionLabel(pht('Assign / Claim')) | ->setCommentActionLabel(pht('Assign / Claim')) | ||||
| ->setCommentActionDefaultValue($owner_value), | ->setCommentActionDefaultValue($owner_value), | ||||
| id(new PhabricatorSelectEditField()) | id(new PhabricatorSelectEditField()) | ||||
| ->setKey('priority') | ->setKey('priority') | ||||
| ->setLabel(pht('Priority')) | ->setLabel(pht('Priority')) | ||||
| ->setDescription(pht('Priority of the task.')) | ->setDescription(pht('Priority of the task.')) | ||||
| ->setTransactionType(ManiphestTransaction::TYPE_PRIORITY) | ->setTransactionType(ManiphestTransaction::TYPE_PRIORITY) | ||||
| ->setIsCopyable(true) | |||||
| ->setValue($object->getPriority()) | ->setValue($object->getPriority()) | ||||
| ->setOptions($priority_map) | ->setOptions($priority_map) | ||||
| ->setCommentActionLabel($priority_label), | ->setCommentActionLabel($priority_label), | ||||
| id(new PhabricatorRemarkupEditField()) | id(new PhabricatorRemarkupEditField()) | ||||
| ->setKey('description') | ->setKey('description') | ||||
| ->setLabel(pht('Description')) | ->setLabel(pht('Description')) | ||||
| ->setDescription(pht('Task description.')) | ->setDescription(pht('Task description.')) | ||||
| ->setTransactionType(ManiphestTransaction::TYPE_DESCRIPTION) | ->setTransactionType(ManiphestTransaction::TYPE_DESCRIPTION) | ||||
| ▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines | |||||