mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 05:50:55 +01:00
Update Owners edit paths page to new UI
Summary: Brings the edit paths page in owners up to new UI Test Plan: Edit some paths, yo. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D15596
This commit is contained in:
parent
88d15ce799
commit
7694a6729f
1 changed files with 20 additions and 14 deletions
|
@ -139,8 +139,9 @@ final class PhabricatorOwnersPathsController
|
||||||
->addCancelButton($cancel_uri)
|
->addCancelButton($cancel_uri)
|
||||||
->setValue(pht('Save Paths')));
|
->setValue(pht('Save Paths')));
|
||||||
|
|
||||||
$form_box = id(new PHUIObjectBoxView())
|
$box = id(new PHUIObjectBoxView())
|
||||||
->setHeaderText(pht('Edit Paths'))
|
->setHeaderText(pht('Paths'))
|
||||||
|
->setBackground(PHUIObjectBoxView::BLUE_PROPERTY)
|
||||||
->setForm($form);
|
->setForm($form);
|
||||||
|
|
||||||
$crumbs = $this->buildApplicationCrumbs();
|
$crumbs = $this->buildApplicationCrumbs();
|
||||||
|
@ -148,18 +149,23 @@ final class PhabricatorOwnersPathsController
|
||||||
$package->getName(),
|
$package->getName(),
|
||||||
$this->getApplicationURI('package/'.$package->getID().'/'));
|
$this->getApplicationURI('package/'.$package->getID().'/'));
|
||||||
$crumbs->addTextCrumb(pht('Edit Paths'));
|
$crumbs->addTextCrumb(pht('Edit Paths'));
|
||||||
|
$crumbs->setBorder(true);
|
||||||
|
|
||||||
return $this->buildApplicationPage(
|
$header = id(new PHUIHeaderView())
|
||||||
array(
|
->setHeader(pht('Edit Paths: %s', $package->getName()))
|
||||||
$crumbs,
|
->setHeaderIcon('fa-pencil');
|
||||||
$form_box,
|
|
||||||
),
|
$view = id(new PHUITwoColumnView())
|
||||||
array(
|
->setHeader($header)
|
||||||
'title' => array(
|
->setFooter($box);
|
||||||
$package->getName(),
|
|
||||||
pht('Edit Paths'),
|
$title = array($package->getName(), pht('Edit Paths'));
|
||||||
),
|
|
||||||
));
|
return $this->newPage()
|
||||||
}
|
->setTitle($title)
|
||||||
|
->setCrumbs($crumbs)
|
||||||
|
->appendChild($view);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue