From 981a1041f0e93bba7e1fc4272d94b668f50c7bf3 Mon Sep 17 00:00:00 2001 From: Dita Aji Pratama Date: Thu, 26 Sep 2024 21:28:24 +0700 Subject: [PATCH 1/2] Add fontawesome icon on sidebar menu --- app/templates/prime/html/sidebar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/prime/html/sidebar.html b/app/templates/prime/html/sidebar.html index 532b78b..1ede2e9 100644 --- a/app/templates/prime/html/sidebar.html +++ b/app/templates/prime/html/sidebar.html @@ -6,7 +6,7 @@ % if any(role in item['roles'] for role in user_roles): % endif From 7ac06aa5ece97cc11f44681b9bcc250c4f3b98df Mon Sep 17 00:00:00 2001 From: Dita Aji Pratama Date: Thu, 26 Sep 2024 21:35:05 +0700 Subject: [PATCH 2/2] Give an icon on the menu configuration --- app/config/globalvar.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/config/globalvar.py b/app/config/globalvar.py index 87f84c4..43f4da1 100644 --- a/app/config/globalvar.py +++ b/app/config/globalvar.py @@ -119,18 +119,21 @@ menu = { ], "sidebar": [ { + "icon":"fa-solid fa-gauge", "name":"Dashboard", "target":"_self", "href":"/dashboard", "roles":[1,2] }, { + "icon":"fa-solid fa-user-tag", "name":"Roles", "target":"_self", "href":"/dashboard/roles", "roles":[1] }, { + "icon":"fa-solid fa-address-card", "name":"Users", "target":"_self", "href":"/dashboard/users",