From 38cc5c0c3abed6cfe4fbe0cbabec60a8ed64784d Mon Sep 17 00:00:00 2001 From: Geo Halkiadakis Date: Fri, 26 May 2023 19:14:56 +0300 Subject: user menu and contol panel are ready --- public/app/config/setup_application.php | 2 + public/app/routes/user.php | 9 ++-- public/app/views/components/header_includes.php | 6 +-- public/app/views/components/menu.php | 17 +++++++ public/app/views/templates/application.php | 7 ++- public/app/views/templates/penalty.php | 21 ++++++++- public/app/views/user/control.php | 40 +++++++++++++++++ public/app/views/user/panel.php | 59 +++++++++++++++++++++++++ public/assets/css/class.css | 16 ++++++- 9 files changed, 166 insertions(+), 11 deletions(-) create mode 100644 public/app/views/components/menu.php create mode 100644 public/app/views/user/control.php create mode 100644 public/app/views/user/panel.php (limited to 'public') diff --git a/public/app/config/setup_application.php b/public/app/config/setup_application.php index a9f48af..88dc176 100644 --- a/public/app/config/setup_application.php +++ b/public/app/config/setup_application.php @@ -467,6 +467,7 @@ define('PENALTY_FORM', [ [ 'name' => 'charge', 'label' => 'Περιγραφή συμβάντος:', + 'class' => 'col-12 x5-lines', 'type' => 'textarea', 'attributes' => ['required'] ], @@ -479,6 +480,7 @@ define('PENALTY_FORM', [ [ 'name' => 'decision_reasoning', 'label' => 'Αιτιολογία απόφασης (πχ. Επειδή...)', + 'class' => 'col-12 x5-lines', 'type' => 'textarea', 'attributes' => [] ], diff --git a/public/app/routes/user.php b/public/app/routes/user.php index aa3b319..26483f4 100644 --- a/public/app/routes/user.php +++ b/public/app/routes/user.php @@ -39,10 +39,11 @@ Route::add('/invite', function() { }); Route::add('/panel', function() { - Render::json([ - 'connected' => Auth::is_connected(), - 'user' => Auth::user_data(), - ]); + Render::view('user/panel'); + // Render::json([ + // 'connected' => Auth::is_connected(), + // 'user' => Auth::user_data(), + // ]); }); diff --git a/public/app/views/components/header_includes.php b/public/app/views/components/header_includes.php index 48f63c6..c20811b 100644 --- a/public/app/views/components/header_includes.php +++ b/public/app/views/components/header_includes.php @@ -33,15 +33,15 @@ + + + - - - diff --git a/public/app/views/components/menu.php b/public/app/views/components/menu.php new file mode 100644 index 0000000..60ad395 --- /dev/null +++ b/public/app/views/components/menu.php @@ -0,0 +1,17 @@ + + diff --git a/public/app/views/templates/application.php b/public/app/views/templates/application.php index 4611a2d..4855383 100644 --- a/public/app/views/templates/application.php +++ b/public/app/views/templates/application.php @@ -19,7 +19,12 @@
-

Αίτηση

+

+ Αίτηση + +


diff --git a/public/app/views/templates/penalty.php b/public/app/views/templates/penalty.php index 17e5426..e913721 100644 --- a/public/app/views/templates/penalty.php +++ b/public/app/views/templates/penalty.php @@ -19,13 +19,30 @@
-

Πρακτικό Πειθαρχικής Υπόθεσης

+

+ Πρακτικό Πειθαρχικής Υπόθεσης + +


+
- +
+
+ +
+
+ +
+
diff --git a/public/app/views/user/control.php b/public/app/views/user/control.php new file mode 100644 index 0000000..b429dc6 --- /dev/null +++ b/public/app/views/user/control.php @@ -0,0 +1,40 @@ + + + + + <?=SITE_TITLE?> - Control Panel + + + + + + +
+
+ +
+ +
+ +
+ +
+ +
+
+ + + + diff --git a/public/app/views/user/panel.php b/public/app/views/user/panel.php new file mode 100644 index 0000000..6888a7a --- /dev/null +++ b/public/app/views/user/panel.php @@ -0,0 +1,59 @@ + + + + + <?=SITE_TITLE?> - Control Panel + + + + + + +
+
+ +
+ +
+ +
+ + + +
+ +
+
+ + + + + + diff --git a/public/assets/css/class.css b/public/assets/css/class.css index 51bdad9..173010f 100644 --- a/public/assets/css/class.css +++ b/public/assets/css/class.css @@ -62,20 +62,31 @@ html, body { } +.btn-back2panel, .btn-preview { border: 1px solid #aaa7; background: #ddd; } + +.btn-back2panel { float: right; } + +.btn-back2panel:hover, .btn-preview:hover { border: 1px solid #7777; background: #f5f5f5; } +.info .list-group-item a { display: block; text-decoration: none; font-size: 14px; color: #444; padding: 8px 16px; } +.info li.list-group-item { margin:0; padding: 0; } +.info li.list-group-item:hover { background: #f2f2f2; } +.info li.list-group-item.separator { border: 2px solid #f2f2f2; background: #f2f2f2; padding:1px 8px; color: #666; } + /** micro-positioning classes * ----------------------------------------------------------------------------- */ +.max320px { max-width: 320px; width: 100%; } .max420px { max-width: 420px; width: 100%; } .max480px { max-width: 480px; width: 100%; } .max540px { max-width: 540px; width: 100%; } .max720px { max-width: 720px; width: 100%; } .bottom3em { padding-bottom: 3em; } - +.container { max-width: 1400px; } /** central form @@ -88,11 +99,14 @@ html, body { min-height: 100vh; align-items:center; } +.central-form.left-menu .container { align-items: start; } + .central-form .content { width: 100%; margin: auto auto; padding: .5em; font-size: .78em; } +.central-form.left-menu .content { margin: 1em auto; } .central-form .content-form { padding: 1.5em; -- cgit v1.2.3