Simplify PHUIObjectBoxViews handling of Save and Error states

Summary: This removes the bulk of the "Form Errors" text, some variations likely exists. These are a bit redundant and space consuming. I'd also like to back ErrorView more into PHUIObjectBox.

Test Plan: Test out the forms, see errors without the text.

Reviewers: epriestley, btrahan

CC: Korvin, epriestley, aran, hach-que

Differential Revision: https://secure.phabricator.com/D7924
This commit is contained in:
Chad Little
2014-01-10 09:17:37 -08:00
parent 2ee4507486
commit b74c7a3d37
64 changed files with 107 additions and 457 deletions

View File

@@ -112,13 +112,6 @@ final class PhabricatorOwnersEditController
}
}
$error_view = null;
if ($errors) {
$error_view = new AphrontErrorView();
$error_view->setTitle(pht('Package Errors'));
$error_view->setErrors($errors);
}
$handles = $this->loadViewerHandles($owners);
$primary = $package->getPrimaryOwnerPHID();
@@ -252,7 +245,7 @@ final class PhabricatorOwnersEditController
$form_box = id(new PHUIObjectBoxView())
->setHeaderText($title)
->setFormError($error_view)
->setFormErrors($errors)
->setForm($form);
$nav = $this->buildSideNavView();