Added contact info and journal link to Cpeprovisioning

This commit is contained in:
Frank Schubert
2021-11-02 21:08:13 +01:00
parent e2925adec5
commit 98525a701e
3 changed files with 56 additions and 19 deletions

View File

@@ -16,14 +16,27 @@ class OrderController extends mfBaseController {
protected function indexAction() {
$this->layout()->setTemplate("Order/Index");
//$this->layout()->set("orders", OrderModel::getAll());
if($this->request->id && $this->me->is("Admin")) {
$order = new Order($this->request->id);
if($order->id) {
$this->layout()->set("orders", [$order]);
$this->layout()->set("highlight", $this->request->id);
$this->layout()->set("mynetworks", NetworkModel::getAll());
if($this->request->addJournal) {
$this->layout()->set("addJournal", true);
}
return true;
}
}
$filter = [];
$this->layout->set("filter", $this->request->filter);
//if($this->request->filter) {
$filter = $this->getPreparedFilter($this->request->filter);
//}
//var_dump($filter);exit;
$filter = $this->getPreparedFilter($this->request->filter);
// pagination defaults
$pagination = [];
$pagination['start'] = 0;