mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
Update people edit pages UI
Summary: Updates and clarifies UI Test Plan: New peoples, new bots, new mailing list Reviewers: epriestley Reviewed By: epriestley Spies: Korvin Differential Revision: https://secure.phabricator.com/D18562
This commit is contained in:
parent
a5232e015a
commit
d6bb0d1bfa
2 changed files with 7 additions and 17 deletions
|
@ -92,13 +92,9 @@ final class PhabricatorPeopleCreateController
|
|||
$crumbs->addTextCrumb($title);
|
||||
$crumbs->setBorder(true);
|
||||
|
||||
$header = id(new PHUIHeaderView())
|
||||
->setHeader($title)
|
||||
->setHeaderIcon('fa-user');
|
||||
|
||||
$box = id(new PHUIObjectBoxView())
|
||||
->setHeaderText(pht('User'))
|
||||
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
|
||||
->setHeaderText($title)
|
||||
->setBackground(PHUIObjectBoxView::WHITE_CONFIG)
|
||||
->setForm($form);
|
||||
|
||||
$guidance_context = new PhabricatorPeopleCreateGuidanceContext();
|
||||
|
@ -109,7 +105,6 @@ final class PhabricatorPeopleCreateController
|
|||
->newInfoView();
|
||||
|
||||
$view = id(new PHUITwoColumnView())
|
||||
->setHeader($header)
|
||||
->setFooter(
|
||||
array(
|
||||
$guidance,
|
||||
|
|
|
@ -132,12 +132,15 @@ final class PhabricatorPeopleNewController
|
|||
->setUser($admin);
|
||||
|
||||
if ($is_bot) {
|
||||
$title = pht('Create New Bot');
|
||||
$form->appendRemarkupInstructions(
|
||||
pht('You are creating a new **bot** user account.'));
|
||||
} else if ($is_list) {
|
||||
$title = pht('Create New Mailing List');
|
||||
$form->appendRemarkupInstructions(
|
||||
pht('You are creating a new **mailing list** user account.'));
|
||||
} else {
|
||||
$title = pht('Create New User');
|
||||
$form->appendRemarkupInstructions(
|
||||
pht('You are creating a new **standard** user account.'));
|
||||
}
|
||||
|
@ -205,25 +208,17 @@ final class PhabricatorPeopleNewController
|
|||
"`bot@yourcompany.com` if you prefer."));
|
||||
}
|
||||
|
||||
|
||||
$title = pht('Create New User');
|
||||
|
||||
$box = id(new PHUIObjectBoxView())
|
||||
->setHeaderText(pht('User'))
|
||||
->setHeaderText($title)
|
||||
->setFormErrors($errors)
|
||||
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
|
||||
->setBackground(PHUIObjectBoxView::WHITE_CONFIG)
|
||||
->setForm($form);
|
||||
|
||||
$crumbs = $this->buildApplicationCrumbs();
|
||||
$crumbs->addTextCrumb($title);
|
||||
$crumbs->setBorder(true);
|
||||
|
||||
$header = id(new PHUIHeaderView())
|
||||
->setHeader($title)
|
||||
->setHeaderIcon('fa-user');
|
||||
|
||||
$view = id(new PHUITwoColumnView())
|
||||
->setHeader($header)
|
||||
->setFooter($box);
|
||||
|
||||
return $this->newPage()
|
||||
|
|
Loading…
Reference in a new issue