Differential D21771 Diff 51907 src/applications/people/controller/PhabricatorPeopleInviteSendController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/controller/PhabricatorPeopleInviteSendController.php
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | if ($request->isFormPost()) { | ||||
if ($any_valid && $request->getBool('confirm')) { | if ($any_valid && $request->getBool('confirm')) { | ||||
// TODO: The copywriting on this mail could probably be more | // TODO: The copywriting on this mail could probably be more | ||||
// engaging and we could have a fancy HTML version. | // engaging and we could have a fancy HTML version. | ||||
$template = array(); | $template = array(); | ||||
$template[] = pht( | $template[] = pht( | ||||
'%s has invited you to join Phabricator.', | '%s has invited you to join %s.', | ||||
$viewer->getFullName()); | $viewer->getFullName(), | ||||
PlatformSymbols::getPlatformServerName()); | |||||
if (strlen(trim($message))) { | if (strlen(trim($message))) { | ||||
$template[] = $message; | $template[] = $message; | ||||
} | } | ||||
$template[] = pht( | $template[] = pht( | ||||
'To register an account and get started, follow this link:'); | 'To register an account and get started, follow this link:'); | ||||
▲ Show 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | if ($is_confirm) { | ||||
->appendChild($confirm_form) | ->appendChild($confirm_form) | ||||
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY); | ->setBackground(PHUIObjectBoxView::BLUE_PROPERTY); | ||||
} | } | ||||
$form = id(new AphrontFormView()) | $form = id(new AphrontFormView()) | ||||
->setUser($viewer) | ->setUser($viewer) | ||||
->appendRemarkupInstructions( | ->appendRemarkupInstructions( | ||||
pht( | pht( | ||||
'To invite users to Phabricator, enter their email addresses below. '. | 'To invite users, enter their email addresses below. '. | ||||
'Separate addresses with commas or newlines.')) | 'Separate addresses with commas or newlines.')) | ||||
->appendChild( | ->appendChild( | ||||
id(new AphrontFormTextAreaControl()) | id(new AphrontFormTextAreaControl()) | ||||
->setLabel(pht('Email Addresses')) | ->setLabel(pht('Email Addresses')) | ||||
->setName(pht('emails')) | ->setName(pht('emails')) | ||||
->setValue($emails) | ->setValue($emails) | ||||
->setError($e_emails) | ->setError($e_emails) | ||||
->setHeight(AphrontFormTextAreaControl::HEIGHT_VERY_TALL)) | ->setHeight(AphrontFormTextAreaControl::HEIGHT_VERY_TALL)) | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |