Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/controller/PhabricatorPeopleNewController.php
Show First 20 Lines • Show All 179 Lines • ▼ Show 20 Lines | $form | ||||
->setError($e_email)); | ->setError($e_email)); | ||||
if (!$is_bot && !$is_list) { | if (!$is_bot && !$is_list) { | ||||
$form->appendChild( | $form->appendChild( | ||||
id(new AphrontFormCheckboxControl()) | id(new AphrontFormCheckboxControl()) | ||||
->addCheckbox( | ->addCheckbox( | ||||
'welcome', | 'welcome', | ||||
1, | 1, | ||||
pht('Send "Welcome to Phabricator" email with login instructions.'), | pht('Send "Welcome to %s" email with login instructions.', | ||||
PhabricatorPlatformSite::getName()), | |||||
$welcome_checked)); | $welcome_checked)); | ||||
} | } | ||||
$form | $form | ||||
->appendChild( | ->appendChild( | ||||
id(new AphrontFormSubmitControl()) | id(new AphrontFormSubmitControl()) | ||||
->addCancelButton($this->getApplicationURI()) | ->addCancelButton($this->getApplicationURI()) | ||||
->setValue(pht('Create User'))); | ->setValue(pht('Create User'))); | ||||
if ($is_bot) { | if ($is_bot) { | ||||
$form | $form | ||||
->appendChild(id(new AphrontFormDividerControl())) | ->appendChild(id(new AphrontFormDividerControl())) | ||||
->appendRemarkupInstructions( | ->appendRemarkupInstructions( | ||||
pht( | pht( | ||||
'**Why do bot accounts need an email address?**'. | '**Why do bot accounts need an email address?**'. | ||||
"\n\n". | "\n\n". | ||||
'Although bots do not normally receive email from Phabricator, '. | 'Although bots do not normally receive email from %s, '. | ||||
'they can interact with other systems which require an email '. | 'they can interact with other systems which require an email '. | ||||
'address. Examples include:'. | 'address. Examples include:'. | ||||
"\n\n". | "\n\n". | ||||
" - If the account takes actions which //send// email, we need ". | " - If the account takes actions which //send// email, we need ". | ||||
" an address to use in the //From// header.\n". | " an address to use in the //From// header.\n". | ||||
" - If the account creates commits, Git and Mercurial require ". | " - If the account creates commits, Git and Mercurial require ". | ||||
" an email address for authorship.\n". | " an email address for authorship.\n". | ||||
" - If you send email //to// Phabricator on behalf of the ". | " - If you send email //to// %s on behalf of the ". | ||||
" account, the address can identify the sender.\n". | " account, the address can identify the sender.\n". | ||||
" - Some internal authentication functions depend on accounts ". | " - Some internal authentication functions depend on accounts ". | ||||
" having an email address.\n". | " having an email address.\n". | ||||
"\n\n". | "\n\n". | ||||
"The address will automatically be verified, so you do not need ". | "The address will automatically be verified, so you do not need ". | ||||
"to be able to receive mail at this address, and can enter some ". | "to be able to receive mail at this address, and can enter some ". | ||||
"invalid or nonexistent (but correctly formatted) address like ". | "invalid or nonexistent (but correctly formatted) address like ". | ||||
"`bot@yourcompany.com` if you prefer.")); | "`bot@yourcompany.com` if you prefer.", | ||||
PhabricatorPlatformSite::getName(), | |||||
PhabricatorPlatformSite::getName())); | |||||
} | } | ||||
$box = id(new PHUIObjectBoxView()) | $box = id(new PHUIObjectBoxView()) | ||||
->setHeaderText($title) | ->setHeaderText($title) | ||||
->setFormErrors($errors) | ->setFormErrors($errors) | ||||
->setBackground(PHUIObjectBoxView::WHITE_CONFIG) | ->setBackground(PHUIObjectBoxView::WHITE_CONFIG) | ||||
->setForm($form); | ->setForm($form); | ||||
Show All 14 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0