mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 13:30:55 +01:00
Consistent panels for account settings.
Summary: Sets all panels to full width and no backgrounds in settings for consistency. Test Plan: Check each page width. Reviewers: epriestley, codeblock, btrahan Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4460
This commit is contained in:
parent
e974ffea7f
commit
cba5a866f8
11 changed files with 15 additions and 11 deletions
|
@ -90,8 +90,8 @@ final class PhabricatorSettingsPanelAccount
|
|||
|
||||
$panel = new AphrontPanelView();
|
||||
$panel->setHeader('Account Settings');
|
||||
$panel->setWidth(AphrontPanelView::WIDTH_FORM);
|
||||
$panel->appendChild($form);
|
||||
$panel->setNoBackground();
|
||||
|
||||
return array(
|
||||
$notice,
|
||||
|
|
|
@ -78,7 +78,7 @@ final class PhabricatorSettingsPanelConduit
|
|||
$cert = new AphrontPanelView();
|
||||
$cert->setHeader('Arcanist Certificate');
|
||||
$cert->appendChild($cert_form);
|
||||
$cert->setWidth(AphrontPanelView::WIDTH_FORM);
|
||||
$cert->setNoBackground();
|
||||
|
||||
$regen_form = new AphrontFormView();
|
||||
$regen_form
|
||||
|
@ -96,7 +96,7 @@ final class PhabricatorSettingsPanelConduit
|
|||
$regen = new AphrontPanelView();
|
||||
$regen->setHeader('Regenerate Certificate');
|
||||
$regen->appendChild($regen_form);
|
||||
$regen->setWidth(AphrontPanelView::WIDTH_FORM);
|
||||
$regen->setNoBackground();
|
||||
|
||||
return array(
|
||||
$notice,
|
||||
|
|
|
@ -145,9 +145,9 @@ EXAMPLE;
|
|||
->setValue('Save Preferences'));
|
||||
|
||||
$panel = new AphrontPanelView();
|
||||
$panel->setWidth(AphrontPanelView::WIDTH_WIDE);
|
||||
$panel->setHeader('Display Preferences');
|
||||
$panel->appendChild($form);
|
||||
$panel->setNoBackground();
|
||||
|
||||
$error_view = null;
|
||||
if ($request->getStr('saved') === 'true') {
|
||||
|
|
|
@ -144,6 +144,7 @@ final class PhabricatorSettingsPanelEmailAddresses
|
|||
}
|
||||
$view->setHeader('Email Addresses');
|
||||
$view->appendChild($table);
|
||||
$view->setNoBackground();
|
||||
|
||||
return $view;
|
||||
}
|
||||
|
|
|
@ -201,8 +201,8 @@ final class PhabricatorSettingsPanelEmailPreferences
|
|||
|
||||
$panel = new AphrontPanelView();
|
||||
$panel->setHeader('Email Preferences');
|
||||
$panel->setWidth(AphrontPanelView::WIDTH_FORM);
|
||||
$panel->appendChild($form);
|
||||
$panel->setNoBackground();
|
||||
|
||||
return id(new AphrontNullView())
|
||||
->appendChild(
|
||||
|
|
|
@ -70,7 +70,8 @@ final class PhabricatorSettingsPanelLDAP
|
|||
|
||||
$panel = new AphrontPanelView();
|
||||
$panel->setHeader('LDAP Account Settings');
|
||||
$panel->setWidth(AphrontPanelView::WIDTH_FORM);
|
||||
$panel->setNoBackground();
|
||||
|
||||
foreach ($forms as $name => $form) {
|
||||
if ($name) {
|
||||
$panel->appendChild('<br /><h1>'.$name.'</h1><br />');
|
||||
|
|
|
@ -204,7 +204,8 @@ final class PhabricatorSettingsPanelOAuth
|
|||
|
||||
$panel = new AphrontPanelView();
|
||||
$panel->setHeader($provider_name.' Account Settings');
|
||||
$panel->setWidth(AphrontPanelView::WIDTH_FORM);
|
||||
$panel->setNoBackground();
|
||||
|
||||
foreach ($forms as $name => $form) {
|
||||
if ($name) {
|
||||
$panel->appendChild('<br /><h1>'.$name.'</h1><br />');
|
||||
|
|
|
@ -160,8 +160,8 @@ final class PhabricatorSettingsPanelPassword
|
|||
|
||||
$panel = new AphrontPanelView();
|
||||
$panel->setHeader('Change Password');
|
||||
$panel->setWidth(AphrontPanelView::WIDTH_FORM);
|
||||
$panel->appendChild($form);
|
||||
$panel->setNoBackground();
|
||||
|
||||
return array(
|
||||
$notice,
|
||||
|
|
|
@ -198,7 +198,7 @@ final class PhabricatorSettingsPanelProfile
|
|||
$panel = new AphrontPanelView();
|
||||
$panel->setHeader('Edit Profile Details');
|
||||
$panel->appendChild($form);
|
||||
$panel->setWidth(AphrontPanelView::WIDTH_FORM);
|
||||
$panel->setNoBackground();
|
||||
|
||||
return array(
|
||||
$error_view,
|
||||
|
|
|
@ -154,8 +154,8 @@ final class PhabricatorSettingsPanelSSHKeys
|
|||
|
||||
$panel = new AphrontPanelView();
|
||||
$panel->setHeader($header);
|
||||
$panel->setWidth(AphrontPanelView::WIDTH_FORM);
|
||||
$panel->appendChild($form);
|
||||
$panel->setNoBackground();
|
||||
|
||||
return id(new AphrontNullView())
|
||||
->appendChild(
|
||||
|
@ -229,6 +229,7 @@ final class PhabricatorSettingsPanelSSHKeys
|
|||
'Add New Public Key'));
|
||||
$panel->setHeader('SSH Public Keys');
|
||||
$panel->appendChild($table);
|
||||
$panel->setNoBackground();
|
||||
|
||||
return $panel;
|
||||
}
|
||||
|
|
|
@ -52,9 +52,9 @@ final class PhabricatorSettingsPanelSearchPreferences
|
|||
->setValue('Save'));
|
||||
|
||||
$panel = new AphrontPanelView();
|
||||
$panel->setWidth(AphrontPanelView::WIDTH_FORM);
|
||||
$panel->setHeader('Search Preferences');
|
||||
$panel->appendChild($form);
|
||||
$panel->setNoBackground();
|
||||
|
||||
$error_view = null;
|
||||
if ($request->getStr('saved') === 'true') {
|
||||
|
|
Loading…
Reference in a new issue