From a0a41a4428f99198466d1ee0185d6c4deddaf78e Mon Sep 17 00:00:00 2001 From: fet1sov Date: Tue, 28 May 2024 02:54:16 +0500 Subject: [PATCH] Roles: Added the roles and statuses for the applications --- www/_styles/_css/styles.css | 4 +-- www/backend/routes/index/index.view.php | 26 +++++++++++++++++++ www/backend/routes/user/user.ctrl.php | 11 ++++++++ www/backend/routes/user/user.view.php | 24 +++++++++++++++-- www/data/locales/en-US.json | 3 +++ www/data/locales/ru-RU.json | 3 +++ www/frontend/components/elems/header.php | 2 +- .../wtframework/database/db_connect.php | 17 +++++++++++- 8 files changed, 83 insertions(+), 7 deletions(-) diff --git a/www/_styles/_css/styles.css b/www/_styles/_css/styles.css index c3a9936..6c8d532 100644 --- a/www/_styles/_css/styles.css +++ b/www/_styles/_css/styles.css @@ -59,7 +59,7 @@ section { display: flex; justify-content: center; align-items: center; - + height: 100vh; } @@ -83,8 +83,6 @@ body { font-family: 'Montserrat', 'Segoe UI', Tahoma, sans-serif; margin: 0 auto; - - width: 60%; } ul { diff --git a/www/backend/routes/index/index.view.php b/www/backend/routes/index/index.view.php index f395a6a..16320d4 100644 --- a/www/backend/routes/index/index.view.php +++ b/www/backend/routes/index/index.view.php @@ -67,6 +67,22 @@ top: -20px; } + .red-section-block { + display: flex; + flex-direction: column; + + background-color: var(--primary-color-01); + } + + .companies-list { + display: flex; + flex-direction: row; + } + + .companies-list li { + margin: 10px; + } + @media (max-width: 600px) { #contactForm { display: flex; @@ -158,6 +174,16 @@ + +
+

+ +
+
diff --git a/www/backend/routes/user/user.ctrl.php b/www/backend/routes/user/user.ctrl.php index 973bdc8..4994a6b 100644 --- a/www/backend/routes/user/user.ctrl.php +++ b/www/backend/routes/user/user.ctrl.php @@ -53,6 +53,17 @@ } break; } + + case "application": { + Renderer::includeTemplate("frontend/components/layout.php", [ + "layout_path" => ROUTE_ROOT . "user/user.view.php", + "layout_data" => [ + "category" => $params['category'], + "footerShow" => false, + ] + ]); + break; + } } } else { Renderer::includeTemplate("frontend/components/layout.php", [ diff --git a/www/backend/routes/user/user.view.php b/www/backend/routes/user/user.view.php index d4d86b1..8c8a610 100644 --- a/www/backend/routes/user/user.view.php +++ b/www/backend/routes/user/user.view.php @@ -155,6 +155,26 @@ +
+ + + +
+ "> +
+ + + +
+