From 06a534c2daeadf991a1f5fbda60988d25ad0c383 Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Sun, 8 Sep 2024 01:36:57 +0300 Subject: [PATCH] Adds profile edit page --- app/pages/profile.php | 10 ++++- app/templates/profile-edit.php | 74 ++++++++++++++++++++++++++++++++++ app/templates/profile.php | 9 +++-- public_html/static/all.css | 14 +++++++ 4 files changed, 103 insertions(+), 4 deletions(-) create mode 100644 app/templates/profile-edit.php diff --git a/app/pages/profile.php b/app/pages/profile.php index 65c825d..fac476e 100644 --- a/app/pages/profile.php +++ b/app/pages/profile.php @@ -1,12 +1,20 @@ getUserDetails($user); -include '../app/templates/profile.php'; +switch ($action) { + case 'edit': + include '../app/templates/profile-edit.php'; + break; + + default: + include '../app/templates/profile.php'; +} ?> diff --git a/app/templates/profile-edit.php b/app/templates/profile-edit.php new file mode 100644 index 0000000..b5c7a5d --- /dev/null +++ b/app/templates/profile-edit.php @@ -0,0 +1,74 @@ + + +
+ +

Profile of

+
+ +
+

edit the profile fields

+ +
+
avatar
+
+ +
+ +
+
+ + * +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ +

+ Cancel + Save +

+ +
+ +
+
+ diff --git a/app/templates/profile.php b/app/templates/profile.php index 1f04def..e848511 100644 --- a/app/templates/profile.php +++ b/app/templates/profile.php @@ -8,7 +8,7 @@
-
avatar
+
avatar
@@ -45,7 +45,7 @@
- +
@@ -58,9 +58,12 @@ -

edit

+

+ Edit +

+ diff --git a/public_html/static/all.css b/public_html/static/all.css index 0819941..ed53298 100644 --- a/public_html/static/all.css +++ b/public_html/static/all.css @@ -157,3 +157,17 @@ .sidebar-content a { text-decoration: none; } + +/* profile */ +.scroll-box { + width: 100%; + height: 250px; + padding: 10px; + border: 0; + background-color: #f8f9fa; + white-space: pre-wrap; + overflow-y: scroll; + resize: none; + font-family: inherit; + font-size: 14px; +}