From 17b5f5fee5da0fc5feb0196d92e6c2fe8d853920 Mon Sep 17 00:00:00 2001 From: SamSys Date: Sun, 1 Jun 2025 16:34:31 +0330 Subject: [PATCH] add new Permission --- .../Pages/Accounts/Account/CreateRole.cshtml | 60 ++++++++++++++++--- .../Pages/Accounts/Account/EditRole.cshtml | 54 ++++++++++++++++- .../Admin/Pages/Accounts/Account/Index.cshtml | 47 ++++++++------- 3 files changed, 129 insertions(+), 32 deletions(-) diff --git a/ServiceHost/Areas/Admin/Pages/Accounts/Account/CreateRole.cshtml b/ServiceHost/Areas/Admin/Pages/Accounts/Account/CreateRole.cshtml index 7a46a7d6..44f61a60 100644 --- a/ServiceHost/Areas/Admin/Pages/Accounts/Account/CreateRole.cshtml +++ b/ServiceHost/Areas/Admin/Pages/Accounts/Account/CreateRole.cshtml @@ -18,6 +18,10 @@ margin-right: 80px; } + .level4 { + margin-right: 120px; + } + .parent { border-radius: 10px 0px 0px 10px; min-width: 220px; @@ -42,6 +46,16 @@ border: 1px solid #666666 !important; margin-right: -4px; } + + .parentLevel3 { + border-radius: 10px 0px 0px 10px; + min-width: 220px !important; + text-align: start; + background-color: #666666 !important; + border: 1px solid #666666 !important; + margin-right: -4px; + } + .ion-plus { position: relative !important; top: 4px !important; @@ -536,15 +550,45 @@ - - - @* تشخیص چهره *@ -
- - + + @*لیست کاربران کلاینت*@ +
+ + + +
+ +
+
+ +
+
+ +
+
+ +
+ + +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ @* گزارشات *@
+ + @*لیست کاربران کلاینت*@ +
+ + + +
+ +
+
+ +
+
+ +
+
+ +
+ + +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ @* گزارشات *@
diff --git a/ServiceHost/Areas/Admin/Pages/Accounts/Account/Index.cshtml b/ServiceHost/Areas/Admin/Pages/Accounts/Account/Index.cshtml index c8b06c30..0f24648c 100644 --- a/ServiceHost/Areas/Admin/Pages/Accounts/Account/Index.cshtml +++ b/ServiceHost/Areas/Admin/Pages/Accounts/Account/Index.cshtml @@ -3,12 +3,14 @@ @using Microsoft.EntityFrameworkCore @using _0_Framework.Application @model ServiceHost.Areas.Admin.Pages.Accounts.Account.IndexModel +@inject IAuthHelper _AuthHelper; @{ var i = 1; var j = 1; var r = 1; + var permissionList = _AuthHelper.GetPermissions(); //string colaps = "in"; //string act = "active"; } @@ -64,11 +66,11 @@
-

+

ایجاد کاربر جدید

-

+

ایجاد نقش جدید

@@ -99,17 +101,17 @@
@*==================================================================Adminusers=====*@ -
+
@@ -298,7 +301,7 @@
@*==================================================================roles=====*@ -
+
@@ -367,7 +370,7 @@
@*==================================================================Clientusers=====*@ -
+
@@ -485,27 +488,27 @@ j++; } - + ورود به کلاینت - - @if (item.IsActiveString == "true" && item.Role != "مدیر سیستم") { - + } else if (item.IsActiveString == "false") { - + }