From 9a2a75defab353db0717028a6c184de8068a4ed1 Mon Sep 17 00:00:00 2001 From: gdlcf88 Date: Fri, 18 Jul 2025 16:40:02 +0800 Subject: [PATCH] Improve the management page UI --- common.props | 2 +- .../EShop/Orders/Orders/Order/Index.cshtml | 7 +-- .../Payments/Payments/Payment/Index.cshtml | 7 +-- .../Payments/PaymentItem/Index.cshtml | 12 ++--- .../Payments/Refunds/Refund/Index.cshtml | 5 +- .../Payments/Refunds/RefundItem/Index.cshtml | 12 ++--- .../Products/Categories/Category/Index.cshtml | 29 +++++------ .../Products/Products/Product/Index.cshtml | 38 ++++++-------- .../Products/Products/ProductSku/Index.cshtml | 32 ++++++------ .../StoreOwners/StoreOwner/Index.cshtml | 32 +++++------- .../EShop/Stores/Stores/Store/Index.cshtml | 32 +++++------- .../Transactions/Transaction/Index.cshtml | 32 +++++------- .../BasketItems/BasketItem/Index.cshtml | 25 ++++----- .../GrantedStores/GrantedStore/Index.cshtml | 32 +++++------- .../ProductAssetCategory/Index.cshtml | 42 ++++++--------- .../ProductAssetCategoryPeriod/Index.cshtml | 32 +++++------- .../ProductAssets/ProductAsset/Index.cshtml | 42 ++++++--------- .../ProductAssetPeriod/Index.cshtml | 32 +++++------- .../CouponTemplate/Index.cshtml | 32 +++++------- .../CouponTemplateScope/Index.cshtml | 29 +++++------ .../Coupons/Coupons/Coupon/Index.cshtml | 32 +++++------- .../FlashSalePlans/FlashSalePlan/Index.cshtml | 32 +++++------- .../FlashSaleResult/Index.cshtml | 12 ++--- .../Promotions/Promotion/Index.cshtml | 52 +++++++++---------- 24 files changed, 271 insertions(+), 363 deletions(-) diff --git a/common.props b/common.props index c5320639..0880caac 100644 --- a/common.props +++ b/common.props @@ -1,7 +1,7 @@ latest - 5.7.0 + 5.8.0-preview.1 $(NoWarn);CS1591 true EasyAbp Team diff --git a/modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Web/Pages/EShop/Orders/Orders/Order/Index.cshtml b/modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Web/Pages/EShop/Orders/Orders/Order/Index.cshtml index ff4d0012..0f177b8e 100644 --- a/modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Web/Pages/EShop/Orders/Orders/Order/Index.cshtml +++ b/modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.Web/Pages/EShop/Orders/Orders/Order/Index.cshtml @@ -8,8 +8,9 @@ @inject IPageLayout PageLayout @inject IStringLocalizer L @{ - PageLayout.Content.Title = L["Order"].Value; - PageLayout.Content.BreadCrumb.Add(L["Menu:Order"].Value); + PageLayout.Content.Title = L["Menu:Order"].Value; + PageLayout.Content.BreadCrumb.Add(L["Menu:OrderManagement"].Value); + PageLayout.Content.BreadCrumb.Add(L["Menu:EasyAbpEShop"].Value); PageLayout.Content.MenuItemName = OrdersMenus.Order; var cardTitle = L["Order"].Value; @@ -41,7 +42,7 @@ - + @cardTitle diff --git a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Payments/Payment/Index.cshtml b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Payments/Payment/Index.cshtml index 8de02ba2..b0f0b816 100644 --- a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Payments/Payment/Index.cshtml +++ b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Payments/Payment/Index.cshtml @@ -10,8 +10,9 @@ @inject IStringLocalizer L @inject IAuthorizationService Authorization @{ - PageLayout.Content.Title = L["Payment"].Value; - PageLayout.Content.BreadCrumb.Add(L["Menu:Payment"].Value); + PageLayout.Content.Title = L["Menu:Payment"].Value; + PageLayout.Content.BreadCrumb.Add(L["Menu:PaymentManagement"].Value); + PageLayout.Content.BreadCrumb.Add(L["Menu:EasyAbpEShop"].Value); PageLayout.Content.MenuItemName = PaymentsMenus.Payment; var cardTitle = L["Payment"].Value; @@ -39,7 +40,7 @@ - + @cardTitle diff --git a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Payments/PaymentItem/Index.cshtml b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Payments/PaymentItem/Index.cshtml index d298435d..a8ef5072 100644 --- a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Payments/PaymentItem/Index.cshtml +++ b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Payments/PaymentItem/Index.cshtml @@ -8,8 +8,9 @@ @inject IPageLayout PageLayout @inject IHtmlLocalizer L @{ - PageLayout.Content.Title = L["PaymentItem"].Value; - PageLayout.Content.BreadCrumb.Add(L["Menu:PaymentItem"].Value); + PageLayout.Content.Title = L["Menu:PaymentItem"].Value; + PageLayout.Content.BreadCrumb.Add(L["Menu:PaymentManagement"].Value); + PageLayout.Content.BreadCrumb.Add(L["Menu:EasyAbpEShop"].Value); PageLayout.Content.MenuItemName = PaymentsMenus.Payment; } @@ -27,13 +28,6 @@ - - - - @L["PaymentItem"] - - - diff --git a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Refunds/Refund/Index.cshtml b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Refunds/Refund/Index.cshtml index a7d7c246..4cbafa79 100644 --- a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Refunds/Refund/Index.cshtml +++ b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Refunds/Refund/Index.cshtml @@ -11,8 +11,9 @@ @inject IStringLocalizer L @inject IAuthorizationService Authorization @{ - PageLayout.Content.Title = L["Refund"].Value; - PageLayout.Content.BreadCrumb.Add(L["Menu:Refund"].Value); + PageLayout.Content.Title = L["Menu:Refund"].Value; + PageLayout.Content.BreadCrumb.Add(L["Menu:PaymentManagement"].Value); + PageLayout.Content.BreadCrumb.Add(L["Menu:EasyAbpEShop"].Value); PageLayout.Content.MenuItemName = PaymentsMenus.Refund; var cardTitle = L["Refund"].Value; diff --git a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Refunds/RefundItem/Index.cshtml b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Refunds/RefundItem/Index.cshtml index c8b5c242..9c341b15 100644 --- a/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Refunds/RefundItem/Index.cshtml +++ b/modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.Web/Pages/EShop/Payments/Refunds/RefundItem/Index.cshtml @@ -7,8 +7,9 @@ @inject IPageLayout PageLayout @inject IHtmlLocalizer L @{ - PageLayout.Content.Title = L["RefundItem"].Value; - PageLayout.Content.BreadCrumb.Add(L["Menu:RefundItem"].Value); + PageLayout.Content.Title = L["Menu:RefundItem"].Value; + PageLayout.Content.BreadCrumb.Add(L["Menu:PaymentManagement"].Value); + PageLayout.Content.BreadCrumb.Add(L["Menu:EasyAbpEShop"].Value); PageLayout.Content.MenuItemName = PaymentsMenus.Refund; } @@ -26,13 +27,6 @@ - - - - @L["RefundItem"] - - - diff --git a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Categories/Category/Index.cshtml b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Categories/Category/Index.cshtml index 02d519c1..d110a452 100644 --- a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Categories/Category/Index.cshtml +++ b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Categories/Category/Index.cshtml @@ -8,11 +8,11 @@ @model IndexModel @inject IPageLayout PageLayout @{ - PageLayout.Content.Title = L["Category"].Value; - PageLayout.Content.BreadCrumb.Add(L["Menu:Category"].Value); - PageLayout.Content.MenuItemName = ProductsMenus.Category; - var parentDisplayName = Model.ParentDisplayName.IsNullOrEmpty() ? "" : $" - {Model.ParentDisplayName}"; + PageLayout.Content.Title = L["Menu:Category"].Value + parentDisplayName; + PageLayout.Content.BreadCrumb.Add(L["Menu:ProductManagement"].Value); + PageLayout.Content.BreadCrumb.Add(L["Menu:EasyAbpEShop"].Value); + PageLayout.Content.MenuItemName = ProductsMenus.Category; } @section scripts @@ -23,25 +23,20 @@ { } +@section content_toolbar +{ + +} - - - - @L["Category"]@parentDisplayName - - - - - - diff --git a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Products/Product/Index.cshtml b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Products/Product/Index.cshtml index 89a81366..d4d189b4 100644 --- a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Products/Product/Index.cshtml +++ b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/Pages/EShop/Products/Products/Product/Index.cshtml @@ -8,8 +8,10 @@ @inject IPageLayout PageLayout @inject IHtmlLocalizer L @{ - PageLayout.Content.Title = L["Product"].Value; - PageLayout.Content.BreadCrumb.Add(L["Menu:Product"].Value); + var titlePostfix = Model.StoreName != null ? $" - {Model.StoreName}" : ""; + PageLayout.Content.Title = L["Menu:Product"].Value + titlePostfix; + PageLayout.Content.BreadCrumb.Add(L["Menu:ProductManagement"].Value); + PageLayout.Content.BreadCrumb.Add(L["Menu:EasyAbpEShop"].Value); PageLayout.Content.MenuItemName = ProductsMenus.Product; } @@ -21,6 +23,18 @@ { } +@section content_toolbar +{ + @if (Model.Filter.StoreId != null) + { + + } +} + - - - - @L["ProductSku"] - @Model.ProductDisplayName - - - @if (await Authorization.IsGrantedAsync(ProductsPermissions.Products.Create)) - { - - } - - - diff --git a/modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Web/Pages/EShop/Stores/StoreOwners/StoreOwner/Index.cshtml b/modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Web/Pages/EShop/Stores/StoreOwners/StoreOwner/Index.cshtml index c411dc19..444f29dc 100644 --- a/modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Web/Pages/EShop/Stores/StoreOwners/StoreOwner/Index.cshtml +++ b/modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Web/Pages/EShop/Stores/StoreOwners/StoreOwner/Index.cshtml @@ -11,8 +11,9 @@ @inject IHtmlLocalizer L @inject IAuthorizationService Authorization @{ - PageLayout.Content.Title = L["StoreOwner"].Value; - PageLayout.Content.BreadCrumb.Add(L["Menu:StoreOwner"].Value); + PageLayout.Content.Title = L["Menu:StoreOwner"].Value; + PageLayout.Content.BreadCrumb.Add(L["Menu:StoreManagement"].Value); + PageLayout.Content.BreadCrumb.Add(L["Menu:EasyAbpEShop"].Value); PageLayout.Content.MenuItemName = StoresMenus.StoreOwner; } @@ -25,28 +26,23 @@ { } +@section content_toolbar +{ + @if (await Authorization.IsGrantedAsync(StoresPermissions.Stores.Manage)) + { + + } +} - - - - @L["StoreOwner"] - - - @if (await Authorization.IsGrantedAsync(StoresPermissions.Stores.Manage)) - { - - } - - - diff --git a/modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Web/Pages/EShop/Stores/Stores/Store/Index.cshtml b/modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Web/Pages/EShop/Stores/Stores/Store/Index.cshtml index e5f6b3a8..d2ddfc55 100644 --- a/modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Web/Pages/EShop/Stores/Stores/Store/Index.cshtml +++ b/modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Web/Pages/EShop/Stores/Stores/Store/Index.cshtml @@ -11,8 +11,9 @@ @inject IHtmlLocalizer L @inject IAuthorizationService Authorization @{ - PageLayout.Content.Title = L["Store"].Value; - PageLayout.Content.BreadCrumb.Add(L["Menu:Store"].Value); + PageLayout.Content.Title = L["Menu:Store"].Value; + PageLayout.Content.BreadCrumb.Add(L["Menu:StoreManagement"].Value); + PageLayout.Content.BreadCrumb.Add(L["Menu:EasyAbpEShop"].Value); PageLayout.Content.MenuItemName = StoresMenus.Store; } @@ -24,24 +25,19 @@ { } +@section content_toolbar +{ + @if (await Authorization.IsGrantedAsync(StoresPermissions.Stores.Create)) + { + + } +} - - - - @L["Store"] - - - @if (await Authorization.IsGrantedAsync(StoresPermissions.Stores.Create)) - { - - } - - - diff --git a/modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Web/Pages/EShop/Stores/Transactions/Transaction/Index.cshtml b/modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Web/Pages/EShop/Stores/Transactions/Transaction/Index.cshtml index 18eeef60..84051ba6 100644 --- a/modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Web/Pages/EShop/Stores/Transactions/Transaction/Index.cshtml +++ b/modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.Web/Pages/EShop/Stores/Transactions/Transaction/Index.cshtml @@ -10,8 +10,9 @@ @inject IHtmlLocalizer L @inject IAuthorizationService Authorization @{ - PageLayout.Content.Title = L["Transaction"].Value; - PageLayout.Content.BreadCrumb.Add(L["Menu:Transaction"].Value); + PageLayout.Content.Title = L["Menu:Transaction"].Value; + PageLayout.Content.BreadCrumb.Add(L["Menu:StoreManagement"].Value); + PageLayout.Content.BreadCrumb.Add(L["Menu:EasyAbpEShop"].Value); PageLayout.Content.MenuItemName = StoresMenus.Transaction; } @@ -23,28 +24,23 @@ { } +@section content_toolbar +{ + @if (await Authorization.IsGrantedAsync(StoresPermissions.Transaction.Create)) + { + + } +} - - - - @L["Transaction"] - - - @if (await Authorization.IsGrantedAsync(StoresPermissions.Transaction.Create)) - { - - } - - - diff --git a/plugins/Baskets/src/EasyAbp.EShop.Plugins.Baskets.Web/Pages/EShop/Plugins/Baskets/BasketItems/BasketItem/Index.cshtml b/plugins/Baskets/src/EasyAbp.EShop.Plugins.Baskets.Web/Pages/EShop/Plugins/Baskets/BasketItems/BasketItem/Index.cshtml index e2b8faa2..57528ab2 100644 --- a/plugins/Baskets/src/EasyAbp.EShop.Plugins.Baskets.Web/Pages/EShop/Plugins/Baskets/BasketItems/BasketItem/Index.cshtml +++ b/plugins/Baskets/src/EasyAbp.EShop.Plugins.Baskets.Web/Pages/EShop/Plugins/Baskets/BasketItems/BasketItem/Index.cshtml @@ -12,8 +12,7 @@ @inject IHtmlLocalizer L @inject IAuthorizationService Authorization @{ - PageLayout.Content.Title = L["BasketItem"].Value; - PageLayout.Content.BreadCrumb.Add(L["Menu:BasketItem"].Value); + PageLayout.Content.Title = L["Menu:BasketItem"].Value; PageLayout.Content.MenuItemName = BasketsMenus.BasketItem; } @@ -25,25 +24,21 @@ { } +@section content_toolbar +{ + +} + - - - - @L["BasketItem"] - - - - - - diff --git a/plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.Web/Pages/EShop/Plugins/Booking/GrantedStores/GrantedStore/Index.cshtml b/plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.Web/Pages/EShop/Plugins/Booking/GrantedStores/GrantedStore/Index.cshtml index 5deda183..201d9857 100644 --- a/plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.Web/Pages/EShop/Plugins/Booking/GrantedStores/GrantedStore/Index.cshtml +++ b/plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.Web/Pages/EShop/Plugins/Booking/GrantedStores/GrantedStore/Index.cshtml @@ -11,8 +11,9 @@ @inject IHtmlLocalizer L @inject IAuthorizationService Authorization @{ - PageLayout.Content.Title = L["GrantedStore"].Value; - PageLayout.Content.BreadCrumb.Add(L["Menu:GrantedStore"].Value); + PageLayout.Content.Title = L["Menu:GrantedStore"].Value; + PageLayout.Content.BreadCrumb.Add(L["Menu:Booking"].Value); + PageLayout.Content.BreadCrumb.Add(L["Menu:EasyAbpEShop"].Value); PageLayout.Content.MenuItemName = BookingMenus.GrantedStore; } @@ -24,24 +25,19 @@ { } +@section content_toolbar +{ + @if (await Authorization.IsGrantedAsync(BookingPermissions.GrantedStore.Create)) + { + + } +} - - - - @L["GrantedStore"] - - - @if (await Authorization.IsGrantedAsync(BookingPermissions.GrantedStore.Create)) - { - - } - - - diff --git a/plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.Web/Pages/EShop/Plugins/Booking/ProductAssetCategories/ProductAssetCategory/Index.cshtml b/plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.Web/Pages/EShop/Plugins/Booking/ProductAssetCategories/ProductAssetCategory/Index.cshtml index 8aa54d66..68d8f634 100644 --- a/plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.Web/Pages/EShop/Plugins/Booking/ProductAssetCategories/ProductAssetCategory/Index.cshtml +++ b/plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.Web/Pages/EShop/Plugins/Booking/ProductAssetCategories/ProductAssetCategory/Index.cshtml @@ -11,8 +11,9 @@ @inject IHtmlLocalizer L @inject IAuthorizationService Authorization @{ - PageLayout.Content.Title = L["ProductAssetCategory"].Value; - PageLayout.Content.BreadCrumb.Add(L["Menu:ProductAssetCategory"].Value); + PageLayout.Content.Title = L["Menu:ProductAssetCategory"].Value; + PageLayout.Content.BreadCrumb.Add(L["Menu:Booking"].Value); + PageLayout.Content.BreadCrumb.Add(L["Menu:EasyAbpEShop"].Value); PageLayout.Content.MenuItemName = BookingMenus.ProductAssetCategory; } @@ -24,6 +25,20 @@ { } +@section content_toolbar +{ + @if (Model.Filter.StoreId != null) + { + if (await Authorization.IsGrantedAsync(BookingPermissions.ProductAssetCategory.Create)) + { + + } + } +} - - - - @L["ProductAssetCategoryPeriod"] - - - @if (await Authorization.IsGrantedAsync(BookingPermissions.ProductAssetCategory.Update)) - { - - } - - - diff --git a/plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.Web/Pages/EShop/Plugins/Booking/ProductAssets/ProductAsset/Index.cshtml b/plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.Web/Pages/EShop/Plugins/Booking/ProductAssets/ProductAsset/Index.cshtml index 8a356883..16f0ec54 100644 --- a/plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.Web/Pages/EShop/Plugins/Booking/ProductAssets/ProductAsset/Index.cshtml +++ b/plugins/Booking/src/EasyAbp.EShop.Plugins.Booking.Web/Pages/EShop/Plugins/Booking/ProductAssets/ProductAsset/Index.cshtml @@ -11,8 +11,9 @@ @inject IHtmlLocalizer L @inject IAuthorizationService Authorization @{ - PageLayout.Content.Title = L["ProductAsset"].Value; - PageLayout.Content.BreadCrumb.Add(L["Menu:ProductAsset"].Value); + PageLayout.Content.Title = L["Menu:ProductAsset"].Value; + PageLayout.Content.BreadCrumb.Add(L["Menu:Booking"].Value); + PageLayout.Content.BreadCrumb.Add(L["Menu:EasyAbpEShop"].Value); PageLayout.Content.MenuItemName = BookingMenus.ProductAsset; } @@ -24,6 +25,20 @@ { } +@section content_toolbar +{ + @if (Model.Filter.StoreId != null) + { + if (await Authorization.IsGrantedAsync(BookingPermissions.ProductAsset.Create)) + { + + } + } +} - - - - @L["ProductAssetPeriod"] - - - @if (await Authorization.IsGrantedAsync(BookingPermissions.ProductAsset.Update)) - { - - } - - - diff --git a/plugins/Coupons/src/EasyAbp.EShop.Plugins.Coupons.Web/Pages/EShop/Plugins/Coupons/CouponTemplates/CouponTemplate/Index.cshtml b/plugins/Coupons/src/EasyAbp.EShop.Plugins.Coupons.Web/Pages/EShop/Plugins/Coupons/CouponTemplates/CouponTemplate/Index.cshtml index e6de9826..8c070644 100644 --- a/plugins/Coupons/src/EasyAbp.EShop.Plugins.Coupons.Web/Pages/EShop/Plugins/Coupons/CouponTemplates/CouponTemplate/Index.cshtml +++ b/plugins/Coupons/src/EasyAbp.EShop.Plugins.Coupons.Web/Pages/EShop/Plugins/Coupons/CouponTemplates/CouponTemplate/Index.cshtml @@ -11,8 +11,9 @@ @inject IHtmlLocalizer L @inject IAuthorizationService Authorization @{ - PageLayout.Content.Title = L["CouponTemplate"].Value; - PageLayout.Content.BreadCrumb.Add(L["Menu:CouponTemplate"].Value); + PageLayout.Content.Title = L["Menu:CouponTemplate"].Value; + PageLayout.Content.BreadCrumb.Add(L["Menu:CouponManagement"].Value); + PageLayout.Content.BreadCrumb.Add(L["Menu:EasyAbpEShop"].Value); PageLayout.Content.MenuItemName = CouponsMenus.CouponTemplate; } @@ -24,24 +25,19 @@ { } +@section content_toolbar +{ + @if (await Authorization.IsGrantedAsync(CouponsPermissions.CouponTemplate.Create)) + { + + } +} - - - - @L["CouponTemplate"] - - - @if (await Authorization.IsGrantedAsync(CouponsPermissions.CouponTemplate.Create)) - { - - } - - - diff --git a/plugins/Coupons/src/EasyAbp.EShop.Plugins.Coupons.Web/Pages/EShop/Plugins/Coupons/CouponTemplates/CouponTemplateScope/Index.cshtml b/plugins/Coupons/src/EasyAbp.EShop.Plugins.Coupons.Web/Pages/EShop/Plugins/Coupons/CouponTemplates/CouponTemplateScope/Index.cshtml index 8131bdd1..fe30f22c 100644 --- a/plugins/Coupons/src/EasyAbp.EShop.Plugins.Coupons.Web/Pages/EShop/Plugins/Coupons/CouponTemplates/CouponTemplateScope/Index.cshtml +++ b/plugins/Coupons/src/EasyAbp.EShop.Plugins.Coupons.Web/Pages/EShop/Plugins/Coupons/CouponTemplates/CouponTemplateScope/Index.cshtml @@ -13,6 +13,8 @@ @{ PageLayout.Content.Title = L["CouponTemplateScope"].Value; PageLayout.Content.BreadCrumb.Add(L["Menu:CouponTemplate"].Value); + PageLayout.Content.BreadCrumb.Add(L["Menu:CouponManagement"].Value); + PageLayout.Content.BreadCrumb.Add(L["Menu:EasyAbpEShop"].Value); PageLayout.Content.MenuItemName = CouponsMenus.CouponTemplate; } @@ -24,28 +26,23 @@ { } +@section content_toolbar +{ + @if (await Authorization.IsGrantedAsync(CouponsPermissions.CouponTemplate.Update)) + { + + } +} - - - - @L["CouponTemplateScope"] - - - @if (await Authorization.IsGrantedAsync(CouponsPermissions.CouponTemplate.Update)) - { - - } - - - diff --git a/plugins/Coupons/src/EasyAbp.EShop.Plugins.Coupons.Web/Pages/EShop/Plugins/Coupons/Coupons/Coupon/Index.cshtml b/plugins/Coupons/src/EasyAbp.EShop.Plugins.Coupons.Web/Pages/EShop/Plugins/Coupons/Coupons/Coupon/Index.cshtml index e535d653..6c5ebb75 100644 --- a/plugins/Coupons/src/EasyAbp.EShop.Plugins.Coupons.Web/Pages/EShop/Plugins/Coupons/Coupons/Coupon/Index.cshtml +++ b/plugins/Coupons/src/EasyAbp.EShop.Plugins.Coupons.Web/Pages/EShop/Plugins/Coupons/Coupons/Coupon/Index.cshtml @@ -11,8 +11,9 @@ @inject IHtmlLocalizer L @inject IAuthorizationService Authorization @{ - PageLayout.Content.Title = L["Coupon"].Value; - PageLayout.Content.BreadCrumb.Add(L["Menu:Coupon"].Value); + PageLayout.Content.Title = L["Menu:Coupon"].Value; + PageLayout.Content.BreadCrumb.Add(L["Menu:CouponManagement"].Value); + PageLayout.Content.BreadCrumb.Add(L["Menu:EasyAbpEShop"].Value); PageLayout.Content.MenuItemName = CouponsMenus.Coupon; } @@ -24,24 +25,19 @@ { } +@section content_toolbar +{ + @if (await Authorization.IsGrantedAsync(CouponsPermissions.Coupon.Create)) + { + + } +} - - - - @L["Coupon"] - - - @if (await Authorization.IsGrantedAsync(CouponsPermissions.Coupon.Create)) - { - - } - - - diff --git a/plugins/FlashSales/src/EasyAbp.EShop.Plugins.FlashSales.Web/Pages/EShop/Plugins/FlashSales/FlashSalePlans/FlashSalePlan/Index.cshtml b/plugins/FlashSales/src/EasyAbp.EShop.Plugins.FlashSales.Web/Pages/EShop/Plugins/FlashSales/FlashSalePlans/FlashSalePlan/Index.cshtml index ece592b6..e0f58896 100644 --- a/plugins/FlashSales/src/EasyAbp.EShop.Plugins.FlashSales.Web/Pages/EShop/Plugins/FlashSales/FlashSalePlans/FlashSalePlan/Index.cshtml +++ b/plugins/FlashSales/src/EasyAbp.EShop.Plugins.FlashSales.Web/Pages/EShop/Plugins/FlashSales/FlashSalePlans/FlashSalePlan/Index.cshtml @@ -13,8 +13,9 @@ @inject IHtmlLocalizer L @inject IAuthorizationService Authorization @{ - PageLayout.Content.Title = L["FlashSalePlan"].Value; - PageLayout.Content.BreadCrumb.Add(L["Menu:FlashSalePlan"].Value); + PageLayout.Content.Title = L["Menu:FlashSalePlan"].Value; + PageLayout.Content.BreadCrumb.Add(L["Menu:FlashSalesManagement"].Value); + PageLayout.Content.BreadCrumb.Add(L["Menu:EasyAbpEShop"].Value); PageLayout.Content.MenuItemName = FlashSalesMenus.FlashSalePlan; } @@ -26,24 +27,19 @@ { } +@section content_toolbar +{ + @if (await Authorization.IsGrantedAsync(FlashSalesPermissions.FlashSalePlan.Create)) + { + + } +} - - - - @L["FlashSalePlan"] - - - @if (await Authorization.IsGrantedAsync(FlashSalesPermissions.FlashSalePlan.Create)) - { - - } - - - diff --git a/plugins/FlashSales/src/EasyAbp.EShop.Plugins.FlashSales.Web/Pages/EShop/Plugins/FlashSales/FlashSaleResults/FlashSaleResult/Index.cshtml b/plugins/FlashSales/src/EasyAbp.EShop.Plugins.FlashSales.Web/Pages/EShop/Plugins/FlashSales/FlashSaleResults/FlashSaleResult/Index.cshtml index 88d70cfa..cc1d8c94 100644 --- a/plugins/FlashSales/src/EasyAbp.EShop.Plugins.FlashSales.Web/Pages/EShop/Plugins/FlashSales/FlashSaleResults/FlashSaleResult/Index.cshtml +++ b/plugins/FlashSales/src/EasyAbp.EShop.Plugins.FlashSales.Web/Pages/EShop/Plugins/FlashSales/FlashSaleResults/FlashSaleResult/Index.cshtml @@ -13,8 +13,9 @@ @inject IHtmlLocalizer L @inject IAuthorizationService Authorization @{ - PageLayout.Content.Title = L["FlashSaleResult"].Value; - PageLayout.Content.BreadCrumb.Add(L["Menu:FlashSaleResult"].Value); + PageLayout.Content.Title = L["Menu:FlashSaleResult"].Value; + PageLayout.Content.BreadCrumb.Add(L["Menu:FlashSalesManagement"].Value); + PageLayout.Content.BreadCrumb.Add(L["Menu:EasyAbpEShop"].Value); PageLayout.Content.MenuItemName = FlashSalesMenus.FlashSaleResult; } @@ -28,13 +29,6 @@ } - - - - @L["FlashSaleResult"] - - - diff --git a/plugins/Promotions/src/EasyAbp.EShop.Plugins.Promotions.Web/Pages/EShop/Plugins/Promotions/Promotions/Promotion/Index.cshtml b/plugins/Promotions/src/EasyAbp.EShop.Plugins.Promotions.Web/Pages/EShop/Plugins/Promotions/Promotions/Promotion/Index.cshtml index 401a29a1..a51b1142 100644 --- a/plugins/Promotions/src/EasyAbp.EShop.Plugins.Promotions.Web/Pages/EShop/Plugins/Promotions/Promotions/Promotion/Index.cshtml +++ b/plugins/Promotions/src/EasyAbp.EShop.Plugins.Promotions.Web/Pages/EShop/Plugins/Promotions/Promotions/Promotion/Index.cshtml @@ -10,16 +10,17 @@ @inject IHtmlLocalizer L @inject IAuthorizationService Authorization @{ - PageLayout.Content.Title = L["Promotion"].Value; - PageLayout.Content.BreadCrumb.Add(L["Menu:Promotion"].Value); - PageLayout.Content.MenuItemName = PromotionsMenus.Promotion; - - var cardTitle = L["Promotion"].Value; + var title = L["Promotion"].Value; if (Model.StoreName != null) { - cardTitle += $" - {Model.StoreName}"; + title += $" - {Model.StoreName}"; } + + PageLayout.Content.Title = title; + PageLayout.Content.BreadCrumb.Add(L["Menu:PromotionManagement"].Value); + PageLayout.Content.BreadCrumb.Add(L["Menu:EasyAbpEShop"].Value); + PageLayout.Content.MenuItemName = PromotionsMenus.Promotion; } @section scripts @@ -32,32 +33,27 @@ } +@section content_toolbar +{ + @if (await Authorization.IsGrantedAsync(PromotionsPermissions.Promotion.Create)) + { + + + + @foreach (var promotionType in Model.PromotionTypes.Values) + { + @promotionType.DisplayName + } + + + } +} + - - - - @cardTitle - - - @if (await Authorization.IsGrantedAsync(PromotionsPermissions.Promotion.Create)) - { - - - - @foreach (var promotionType in Model.PromotionTypes.Values) - { - @promotionType.DisplayName - } - - - } - - - @L["TableFilter"]