Changeset View
Changeset View
Standalone View
Standalone View
src/applications/countdown/editor/PhabricatorCountdownEditEngine.php
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | if ($epoch_value === null) { | ||||
$epoch_value = PhabricatorTime::getNow(); | $epoch_value = PhabricatorTime::getNow(); | ||||
} | } | ||||
return array( | return array( | ||||
id(new PhabricatorTextEditField()) | id(new PhabricatorTextEditField()) | ||||
->setKey('name') | ->setKey('name') | ||||
->setLabel(pht('Name')) | ->setLabel(pht('Name')) | ||||
->setIsRequired(true) | ->setIsRequired(true) | ||||
->setTransactionType(PhabricatorCountdownTransaction::TYPE_TITLE) | ->setTransactionType( | ||||
PhabricatorCountdownTitleTransaction::TRANSACTIONTYPE) | |||||
->setDescription(pht('The countdown name.')) | ->setDescription(pht('The countdown name.')) | ||||
->setConduitDescription(pht('Rename the countdown.')) | ->setConduitDescription(pht('Rename the countdown.')) | ||||
->setConduitTypeDescription(pht('New countdown name.')) | ->setConduitTypeDescription(pht('New countdown name.')) | ||||
->setValue($object->getTitle()), | ->setValue($object->getTitle()), | ||||
id(new PhabricatorEpochEditField()) | id(new PhabricatorEpochEditField()) | ||||
->setKey('epoch') | ->setKey('epoch') | ||||
->setLabel(pht('End Date')) | ->setLabel(pht('End Date')) | ||||
->setTransactionType(PhabricatorCountdownTransaction::TYPE_EPOCH) | ->setTransactionType( | ||||
PhabricatorCountdownEpochTransaction::TRANSACTIONTYPE) | |||||
->setDescription(pht('Date when the countdown ends.')) | ->setDescription(pht('Date when the countdown ends.')) | ||||
->setConduitDescription(pht('Change the end date of the countdown.')) | ->setConduitDescription(pht('Change the end date of the countdown.')) | ||||
->setConduitTypeDescription(pht('New countdown end date.')) | ->setConduitTypeDescription(pht('New countdown end date.')) | ||||
->setValue($epoch_value), | ->setValue($epoch_value), | ||||
id(new PhabricatorRemarkupEditField()) | id(new PhabricatorRemarkupEditField()) | ||||
->setKey('description') | ->setKey('description') | ||||
->setLabel(pht('Description')) | ->setLabel(pht('Description')) | ||||
->setTransactionType(PhabricatorCountdownTransaction::TYPE_DESCRIPTION) | ->setTransactionType( | ||||
PhabricatorCountdownDescriptionTransaction::TRANSACTIONTYPE) | |||||
->setDescription(pht('Description of the countdown.')) | ->setDescription(pht('Description of the countdown.')) | ||||
->setConduitDescription(pht('Change the countdown description.')) | ->setConduitDescription(pht('Change the countdown description.')) | ||||
->setConduitTypeDescription(pht('New description.')) | ->setConduitTypeDescription(pht('New description.')) | ||||
->setValue($object->getDescription()), | ->setValue($object->getDescription()), | ||||
); | ); | ||||
} | } | ||||
} | } |