Changeset View
Changeset View
Standalone View
Standalone View
src/applications/fund/controller/FundInitiativeCloseController.php
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | if ($request->isFormPost()) { | ||||
$editor->applyTransactions($initiative, array($xaction)); | $editor->applyTransactions($initiative, array($xaction)); | ||||
return id(new AphrontRedirectResponse())->setURI($initiative_uri); | return id(new AphrontRedirectResponse())->setURI($initiative_uri); | ||||
} | } | ||||
if ($is_close) { | if ($is_close) { | ||||
$title = pht('Close Initiative?'); | $title = pht('Close Initiative?'); | ||||
$body = pht('Really close this initiative?'); | $body = pht( | ||||
'Really close this initiative? Users will no longer be able to '. | |||||
'back it.'); | |||||
$button_text = pht('Close Initiative'); | $button_text = pht('Close Initiative'); | ||||
} else { | } else { | ||||
$title = pht('Reopen Initiative?'); | $title = pht('Reopen Initiative?'); | ||||
$body = pht('Really reopen this initiative?'); | $body = pht('Really reopen this initiative?'); | ||||
$button_text = pht('Reopen Initiative'); | $button_text = pht('Reopen Initiative'); | ||||
} | } | ||||
return $this->newDialog() | return $this->newDialog() | ||||
->setTitle($title) | ->setTitle($title) | ||||
->appendParagraph($body) | ->appendParagraph($body) | ||||
->addCancelButton($initiative_uri) | ->addCancelButton($initiative_uri) | ||||
->addSubmitButton($button_text); | ->addSubmitButton($button_text); | ||||
} | } | ||||
} | } |