mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 13:22:42 +01:00
Update Almanac for newPage
Summary: Swaps out for modern methods. Ref T9690 Test Plan: Check various Almanac pages, new devices, editing, lists. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Maniphest Tasks: T9690 Differential Revision: https://secure.phabricator.com/D14590
This commit is contained in:
parent
0d01dab5a3
commit
0d7b59e323
10 changed files with 71 additions and 79 deletions
|
@ -110,14 +110,14 @@ final class AlmanacBindingEditController
|
||||||
$crumbs->addTextCrumb(pht('Edit Binding'));
|
$crumbs->addTextCrumb(pht('Edit Binding'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->buildApplicationPage(
|
return $this->newPage()
|
||||||
array(
|
->setTitle($title)
|
||||||
$crumbs,
|
->setCrumbs($crumbs)
|
||||||
$box,
|
->appendChild(
|
||||||
),
|
array(
|
||||||
array(
|
$box,
|
||||||
'title' => $title,
|
|
||||||
));
|
));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,15 +55,14 @@ final class AlmanacBindingViewController
|
||||||
new AlmanacBindingTransactionQuery());
|
new AlmanacBindingTransactionQuery());
|
||||||
$timeline->setShouldTerminate(true);
|
$timeline->setShouldTerminate(true);
|
||||||
|
|
||||||
return $this->buildApplicationPage(
|
return $this->newPage()
|
||||||
array(
|
->setTitle($title)
|
||||||
$crumbs,
|
->setCrumbs($crumbs)
|
||||||
$box,
|
->appendChild(
|
||||||
$this->buildAlmanacPropertiesTable($binding),
|
array(
|
||||||
$timeline,
|
$box,
|
||||||
),
|
$this->buildAlmanacPropertiesTable($binding),
|
||||||
array(
|
$timeline,
|
||||||
'title' => $title,
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,14 +40,14 @@ final class AlmanacConsoleController extends AlmanacController {
|
||||||
->setHeaderText(pht('Console'))
|
->setHeaderText(pht('Console'))
|
||||||
->setObjectList($menu);
|
->setObjectList($menu);
|
||||||
|
|
||||||
return $this->buildApplicationPage(
|
return $this->newPage()
|
||||||
array(
|
->setTitle(pht('Almanac Console'))
|
||||||
$crumbs,
|
->setCrumbs($crumbs)
|
||||||
$box,
|
->appendChild(
|
||||||
),
|
array(
|
||||||
array(
|
$box,
|
||||||
'title' => pht('Almanac Console'),
|
|
||||||
));
|
));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -151,13 +151,12 @@ final class AlmanacDeviceEditController
|
||||||
$crumbs->addTextCrumb(pht('Edit'));
|
$crumbs->addTextCrumb(pht('Edit'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->buildApplicationPage(
|
return $this->newPage()
|
||||||
array(
|
->setTitle($title)
|
||||||
$crumbs,
|
->setCrumbs($crumbs)
|
||||||
$box,
|
->appendChild(
|
||||||
),
|
array(
|
||||||
array(
|
$box,
|
||||||
'title' => $title,
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -57,18 +57,17 @@ final class AlmanacDeviceViewController
|
||||||
new AlmanacDeviceTransactionQuery());
|
new AlmanacDeviceTransactionQuery());
|
||||||
$timeline->setShouldTerminate(true);
|
$timeline->setShouldTerminate(true);
|
||||||
|
|
||||||
return $this->buildApplicationPage(
|
return $this->newPage()
|
||||||
array(
|
->setTitle($title)
|
||||||
$crumbs,
|
->setCrumbs($crumbs)
|
||||||
$box,
|
->appendChild(
|
||||||
$interfaces,
|
array(
|
||||||
$this->buildAlmanacPropertiesTable($device),
|
$box,
|
||||||
$this->buildSSHKeysTable($device),
|
$interfaces,
|
||||||
$this->buildServicesTable($device),
|
$this->buildAlmanacPropertiesTable($device),
|
||||||
$timeline,
|
$this->buildSSHKeysTable($device),
|
||||||
),
|
$this->buildServicesTable($device),
|
||||||
array(
|
$timeline,
|
||||||
'title' => $title,
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -142,13 +142,12 @@ final class AlmanacInterfaceEditController
|
||||||
$crumbs->addTextCrumb(pht('Edit Interface'));
|
$crumbs->addTextCrumb(pht('Edit Interface'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->buildApplicationPage(
|
return $this->newPage()
|
||||||
array(
|
->setTitle($title)
|
||||||
$crumbs,
|
->setCrumbs($crumbs)
|
||||||
$box,
|
->appendChild(
|
||||||
),
|
array(
|
||||||
array(
|
$box,
|
||||||
'title' => $title,
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -130,13 +130,12 @@ final class AlmanacNetworkEditController
|
||||||
$crumbs->addTextCrumb(pht('Edit'));
|
$crumbs->addTextCrumb(pht('Edit'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->buildApplicationPage(
|
return $this->newPage()
|
||||||
array(
|
->setTitle($title)
|
||||||
$crumbs,
|
->setCrumbs($crumbs)
|
||||||
$box,
|
->appendChild(
|
||||||
),
|
array(
|
||||||
array(
|
$box,
|
||||||
'title' => $title,
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,14 +42,13 @@ final class AlmanacNetworkViewController
|
||||||
new AlmanacNetworkTransactionQuery());
|
new AlmanacNetworkTransactionQuery());
|
||||||
$timeline->setShouldTerminate(true);
|
$timeline->setShouldTerminate(true);
|
||||||
|
|
||||||
return $this->buildApplicationPage(
|
return $this->newPage()
|
||||||
array(
|
->setTitle($title)
|
||||||
$crumbs,
|
->setCrumbs($crumbs)
|
||||||
$box,
|
->appendChild(
|
||||||
$timeline,
|
array(
|
||||||
),
|
$box,
|
||||||
array(
|
$timeline,
|
||||||
'title' => $title,
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -168,13 +168,12 @@ final class AlmanacServiceEditController
|
||||||
$crumbs->addTextCrumb(pht('Edit'));
|
$crumbs->addTextCrumb(pht('Edit'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->buildApplicationPage(
|
return $this->newPage()
|
||||||
array(
|
->setTitle($title)
|
||||||
$crumbs,
|
->setCrumbs($crumbs)
|
||||||
$box,
|
->appendChild(
|
||||||
),
|
array(
|
||||||
array(
|
$box,
|
||||||
'title' => $title,
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -56,17 +56,16 @@ final class AlmanacServiceViewController
|
||||||
new AlmanacServiceTransactionQuery());
|
new AlmanacServiceTransactionQuery());
|
||||||
$timeline->setShouldTerminate(true);
|
$timeline->setShouldTerminate(true);
|
||||||
|
|
||||||
return $this->buildApplicationPage(
|
return $this->newPage()
|
||||||
array(
|
->setTitle($title)
|
||||||
$crumbs,
|
->setCrumbs($crumbs)
|
||||||
$box,
|
->appendChild(
|
||||||
|
array(
|
||||||
|
$box,
|
||||||
$bindings,
|
$bindings,
|
||||||
$this->buildAlmanacPropertiesTable($service),
|
$this->buildAlmanacPropertiesTable($service),
|
||||||
$timeline,
|
$timeline,
|
||||||
),
|
));
|
||||||
array(
|
|
||||||
'title' => $title,
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function buildPropertyList(AlmanacService $service) {
|
private function buildPropertyList(AlmanacService $service) {
|
||||||
|
|
Loading…
Reference in a new issue