diff --git a/Controller.php b/Controller.php
index 1f97075..90fea99 100644
--- a/Controller.php
+++ b/Controller.php
@@ -18,6 +18,8 @@ namespace Modules\ClientManagement;
use Modules\Navigation\Models\Navigation;
use Modules\Navigation\Views\NavigationView;
+use Modules\ClientManagement\Models\Client;
+use Modules\ClientManagement\Models\ClientMapper;
use phpOMS\Contract\RenderableInterface;
use phpOMS\Message\RequestAbstract;
use phpOMS\Message\ResponseAbstract;
@@ -97,6 +99,9 @@ class Controller extends ModuleAbstract implements WebInterface
$view->setTemplate('/Modules/ClientManagement/Theme/Backend/clients-list');
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1003102001, $request, $response));
+ $client = ClientMapper::getNewest(50);
+ $view->addData('client', $client);
+
return $view;
}
@@ -135,6 +140,9 @@ class Controller extends ModuleAbstract implements WebInterface
$view->setTemplate('/Modules/ClientManagement/Theme/Backend/clients-profile');
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1003102001, $request, $response));
+ $client = ClientMapper::get((int) $request->getData('id'));
+ $view->setData('client', $client);
+
return $view;
}
diff --git a/Theme/Backend/clients-create.tpl.php b/Theme/Backend/clients-create.tpl.php
index 75df31d..0e62ab5 100644
--- a/Theme/Backend/clients-create.tpl.php
+++ b/Theme/Backend/clients-create.tpl.php
@@ -95,174 +95,198 @@ echo $this->getData('nav')->render(); ?>
-
- = $this->getText('Address') ?>
-
-
+
+
+
+ = $this->getText('Address') ?>
+
+
-
+
-
- = $this->getText('PaymentTerm') ?>
-
-
+
+
+
+ = $this->getText('PaymentTerm') ?>
+
+
-
+
-
- = $this->getText('Payment') ?>
-
-
+
+
+
+ = $this->getText('Payment') ?>
+
+
-
+
-
- = $this->getText('Price') ?>
-
-
+
+
+
+ = $this->getText('Price') ?>
+
+
-
+
-
- = $this->getText('AreaManager') ?>
-
-
+
+
+
+ = $this->getText('AreaManager') ?>
+
+
-
+
+
+
app, $this->request, $this->response);
$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
$footerView->setPages(20);
$footerView->setPage(1);
?>
-
-
- = $this->getText('Logs') ?>
-
-
- | IP
- | = $this->getText('ID', 0, 0); ?>
- | = $this->getText('Name'); ?>
- | = $this->getText('Log'); ?>
- | = $this->getText('Date'); ?>
- |
-
- | = $footerView->render(); ?>
- |
-
- | = $this->request->getOrigin(); ?>
- | = $this->request->getAccount(); ?>
- | = $this->request->getAccount(); ?>
- | Creating customer
- | = (new \DateTime('now'))->format('Y-m-d H:i:s') ?>
- |
+
+
+ = $this->getText('Logs') ?>
+
+
+ | IP
+ | = $this->getText('ID', 0, 0); ?>
+ | = $this->getText('Name'); ?>
+ | = $this->getText('Log'); ?>
+ | = $this->getText('Date'); ?>
+ |
+
+ | = $footerView->render(); ?>
+ |
+
+ | = $this->request->getOrigin(); ?>
+ | = $this->request->getAccount(); ?>
+ | = $this->request->getAccount(); ?>
+ | Creating customer
+ | = (new \DateTime('now'))->format('Y-m-d H:i:s') ?>
+ |
+
+
diff --git a/Theme/Backend/clients-list.tpl.php b/Theme/Backend/clients-list.tpl.php
index ddc9d1b..5d87a07 100644
--- a/Theme/Backend/clients-list.tpl.php
+++ b/Theme/Backend/clients-list.tpl.php
@@ -19,6 +19,8 @@ $footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
$footerView->setPages(20);
$footerView->setPage(1);
+$clients = $this->getData('client');
+
echo $this->getData('nav')->render(); ?>