1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 05:50:55 +01:00

Update Forms on People.

Summary: Makes all forms on People app consistent with rest of site.

Test Plan: Click each page

Reviewers: epriestley, btrahan

Reviewed By: btrahan

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D5865
This commit is contained in:
Chad Little 2013-05-08 10:42:20 -07:00
parent 13225cb058
commit a420f3cbbc

View file

@ -115,6 +115,7 @@ final class PhabricatorPeopleEditController
array( array(
'title' => pht('Edit User'), 'title' => pht('Edit User'),
'device' => true, 'device' => true,
'dust' => true,
)); ));
} }
@ -343,18 +344,14 @@ final class PhabricatorPeopleEditController
id(new AphrontFormSubmitControl()) id(new AphrontFormSubmitControl())
->setValue(pht('Save'))); ->setValue(pht('Save')));
$panel = new AphrontPanelView(); $header = new PhabricatorHeaderView();
if ($user->getID()) { if ($user->getID()) {
$panel->setHeader(pht('Edit User')); $header->setHeader(pht('Edit User'));
} else { } else {
$panel->setHeader(pht('Create New User')); $header->setHeader(pht('Create New User'));
} }
$panel->appendChild($form); return array($error_view, $form);
$panel->setNoBackground();
$panel->setWidth(AphrontPanelView::WIDTH_FORM);
return array($error_view, $panel);
} }
private function processRoleRequest(PhabricatorUser $user) { private function processRoleRequest(PhabricatorUser $user) {
@ -452,13 +449,10 @@ final class PhabricatorPeopleEditController
->setValue(pht('Edit Role'))); ->setValue(pht('Edit Role')));
} }
$panel = new AphrontPanelView(); $header = new PhabricatorHeaderView();
$panel->setHeader(pht('Edit Role')); $header->setHeader(pht('Edit Role'));
$panel->setWidth(AphrontPanelView::WIDTH_FORM);
$panel->setNoBackground();
$panel->appendChild($form);
return array($error_view, $panel); return array($error_view, $header, $form);
} }
private function processCertificateRequest($user) { private function processCertificateRequest($user) {
@ -493,13 +487,10 @@ final class PhabricatorPeopleEditController
pht('You may only view the certificates of System Agents.'))); pht('You may only view the certificates of System Agents.')));
} }
$panel = new AphrontPanelView(); $header = new PhabricatorHeaderView();
$panel->setHeader(pht('Conduit Certificate')); $header->setHeader(pht('Conduit Certificate'));
$panel->setWidth(AphrontPanelView::WIDTH_FORM);
$panel->setNoBackground();
$panel->appendChild($form);
return array($panel); return array($header, $form);
} }
private function processRenameRequest(PhabricatorUser $user) { private function processRenameRequest(PhabricatorUser $user) {
@ -591,13 +582,10 @@ final class PhabricatorPeopleEditController
id(new AphrontFormSubmitControl()) id(new AphrontFormSubmitControl())
->setValue(pht('Change Username'))); ->setValue(pht('Change Username')));
$panel = new AphrontPanelView(); $header = new PhabricatorHeaderView();
$panel->setHeader(pht('Change Username')); $header->setHeader(pht('Change Username'));
$panel->setWidth(AphrontPanelView::WIDTH_FORM);
$panel->setNoBackground();
$panel->appendChild($form);
return array($errors, $panel); return array($errors, $header, $form);
} }
private function processDeleteRequest(PhabricatorUser $user) { private function processDeleteRequest(PhabricatorUser $user) {
@ -685,13 +673,10 @@ final class PhabricatorPeopleEditController
id(new AphrontFormSubmitControl()) id(new AphrontFormSubmitControl())
->setValue(pht('Delete User'))); ->setValue(pht('Delete User')));
$panel = new AphrontPanelView(); $header = new PhabricatorHeaderView();
$panel->setHeader(pht('Delete User')); $header->setHeader(pht('Delete User'));
$panel->setWidth(AphrontPanelView::WIDTH_FORM);
$panel->setNoBackground();
$panel->appendChild($form);
return array($errors, $panel); return array($errors, $header, $form);
} }
private function getRoleInstructions() { private function getRoleInstructions() {