Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

refactor(arch001): move shared Collection views under Grand.Web.AdminShared/Views/AdminShared/Collection

KrzysztofPajak9831e8ebb885
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/CreateOrUpdate.TabSeo.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/CreateOrUpdate.TabSeo.cshtml
deleted file mode 100644
index a117d5668..000000000
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/CreateOrUpdate.TabSeo.cshtml
+++ /dev/null
@@ -1,73 +0,0 @@
-@using Microsoft.AspNetCore.Mvc.Razor
-@model CollectionModel
-
-@{
- Func<int, HelperResult>
- template = @<div class="form-body">
- <div class="form-group">
- <admin-label asp-for="@Model.Locales[item].MetaKeywords"/>
- <div class="col-md-9 col-sm-9">
- <admin-input asp-for="@Model.Locales[item].MetaKeywords"/>
- <span asp-validation-for="@Model.Locales[item].MetaKeywords"></span>
- </div>
- </div>
- <div class="form-group">
- <admin-label asp-for="@Model.Locales[item].MetaDescription"/>
- <div class="col-md-9 col-sm-9">
- <admin-textarea asp-for="@Model.Locales[item].MetaDescription"></admin-textarea>
- <span asp-validation-for="@Model.Locales[item].MetaDescription"></span>
- </div>
- </div>
- <div class="form-group">
- <admin-label asp-for="@Model.Locales[item].MetaTitle"/>
- <div class="col-md-9 col-sm-9">
- <admin-input asp-for="@Model.Locales[item].MetaTitle"/>
- <span asp-validation-for="@Model.Locales[item].MetaTitle"></span>
- </div>
- </div>
- <div class="form-group">
- <admin-label asp-for="@Model.Locales[item].SeName"/>
- <div class="col-md-9 col-sm-9">
- <admin-input asp-for="@Model.Locales[item].SeName"/>
- <span asp-validation-for="@Model.Locales[item].SeName"></span>
- </div>
- </div>
- <input asp-for="@Model.Locales[item].LanguageId" type="hidden"/>
- </div>;
-}
-
-<div class="form-horizontal">
- <vc:admin-widget widget-zone="collection_details_seo_top" additional-data="Model"/>
- <localized-editor localized-template="@template" name="collection-seo-localized" language-ids="@Model.Locales.Select(c => c.LanguageId).ToList()">
- <div class="form-body">
- <div class="form-group">
- <admin-label asp-for="MetaKeywords"/>
- <div class="col-md-9 col-sm-9">
- <admin-input asp-for="MetaKeywords"/>
- <span asp-validation-for="MetaKeywords"></span>
- </div>
- </div>
- <div class="form-group">
- <admin-label asp-for="MetaDescription"/>
- <div class="col-md-9 col-sm-9">
- <admin-textarea asp-for="MetaDescription"></admin-textarea>
- <span asp-validation-for="MetaDescription"></span>
- </div>
- </div>
- <div class="form-group">
- <admin-label asp-for="MetaTitle"/>
- <div class="col-md-9 col-sm-9">
- <admin-input asp-for="MetaTitle"/>
- <span asp-validation-for="MetaTitle"></span>
- </div>
- </div>
- <div class="form-group">
- <admin-label asp-for="SeName"/>
- <div class="col-md-9 col-sm-9">
- <admin-input asp-for="SeName"/>
- <span asp-validation-for="SeName"></span>
- </div>
- </div>
- </div>
- </localized-editor>
-</div>
\ No newline at end of file
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/CreateOrUpdate.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/CreateOrUpdate.cshtml
deleted file mode 100644
index da1a5b18e..000000000
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/CreateOrUpdate.cshtml
+++ /dev/null
@@ -1,60 +0,0 @@
-@using Grand.Business.Core.Interfaces.Common.Security
-@using Grand.Domain.Permissions
-@model CollectionModel
-@inject IPermissionService permissionService
-@{
- //has "Manage Documents" permission?
- var canManageDocuments = await permissionService.Authorize(StandardPermission.ManageDocuments);
-}
-<div asp-validation-summary="All"></div>
-<input asp-for="Id" type="hidden"/>
-<admin-tabstrip name="collection-edit" BindGrid="true">
- <items>
- <tabstrip-item text="@Loc["Admin.Catalog.Collections.Info"]" tab-index="0">
- <content>
- <div>
- <partial name="Partials/CreateOrUpdate.TabInfo" model="Model"/>
- </div>
- </content>
- </tabstrip-item>
- <tabstrip-item text="@Loc["Admin.Common.SEO"]" tab-index="1">
- <content>
- <div>
- <partial name="Partials/CreateOrUpdate.TabSeo" model="Model"/>
- </div>
- </content>
- </tabstrip-item>
- <tabstrip-item text="@Loc["Admin.Catalog.Collections.Products"]" tab-index="2">
- <content>
- <div>
- <partial name="Partials/CreateOrUpdate.TabProducts" model="Model"/>
- </div>
- </content>
- </tabstrip-item>
- <tabstrip-item text="@Loc["Admin.Catalog.Collections.Discounts"]" tab-index="3">
- <content>
- <div>
- <partial name="Partials/CreateOrUpdate.TabDiscounts" model="Model"/>
- </div>
- </content>
- </tabstrip-item>
- @if (canManageDocuments)
- {
- <tabstrip-item text="@Loc["Admin.Catalog.Collections.Documents"]" tab-index="4">
- <content>
- <div>
- <partial name="Partials/CreateOrUpdate.TabDocuments" model="Model"/>
- </div>
- </content>
- </tabstrip-item>
- }
- <tabstrip-item text="@Loc["Admin.Common.UserFields.Tab"]" tab-index="5">
- <content>
- <div>
- <partial name="Partials/UserFields" model="Model"/>
- </div>
- </content>
- </tabstrip-item>
- <vc:admin-widget widget-zone="collection_details_tabs" additional-data="Model"/>
- </items>
-</admin-tabstrip>
\ No newline at end of file
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.DetailsButtons.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.DetailsButtons.cshtml
new file mode 100644
index 000000000..08be41691
--- /dev/null
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.DetailsButtons.cshtml
@@ -0,0 +1,2 @@
+@model CollectionModel
+<vc:admin-widget widget-zone="collection_details_buttons" additional-data="Model"/>
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.Discounts.Bottom.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.Discounts.Bottom.cshtml
new file mode 100644
index 000000000..9f73a89b9
--- /dev/null
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.Discounts.Bottom.cshtml
@@ -0,0 +1,2 @@
+@model CollectionModel
+<vc:admin-widget widget-zone="collection_discounts_bottom" additional-data="Model"/>
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.Discounts.Top.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.Discounts.Top.cshtml
new file mode 100644
index 000000000..bacc2a4a7
--- /dev/null
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.Discounts.Top.cshtml
@@ -0,0 +1,2 @@
+@model CollectionModel
+<vc:admin-widget widget-zone="collection_discounts_top" additional-data="Model"/>
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.Documents.Bottom.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.Documents.Bottom.cshtml
new file mode 100644
index 000000000..c81521f4a
--- /dev/null
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.Documents.Bottom.cshtml
@@ -0,0 +1,2 @@
+@model CollectionModel
+<vc:admin-widget widget-zone="collection_details_documents_bottom" additional-data="Model"/>
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.Documents.Top.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.Documents.Top.cshtml
new file mode 100644
index 000000000..f03396a3c
--- /dev/null
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.Documents.Top.cshtml
@@ -0,0 +1,2 @@
+@model CollectionModel
+<vc:admin-widget widget-zone="collection_details_documents_top" additional-data="Model"/>
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.Products.Bottom.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.Products.Bottom.cshtml
new file mode 100644
index 000000000..70875ee4b
--- /dev/null
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.Products.Bottom.cshtml
@@ -0,0 +1,2 @@
+@model CollectionModel
+<vc:admin-widget widget-zone="collection_details_products_bottom" additional-data="Model"/>
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.Products.Top.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.Products.Top.cshtml
new file mode 100644
index 000000000..1dd199f44
--- /dev/null
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.Products.Top.cshtml
@@ -0,0 +1,2 @@
+@model CollectionModel
+<vc:admin-widget widget-zone="collection_details_products_top" additional-data="Model"/>
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.SEO.Top.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.SEO.Top.cshtml
new file mode 100644
index 000000000..fe621b8c2
--- /dev/null
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.SEO.Top.cshtml
@@ -0,0 +1,2 @@
+@model CollectionModel
+<vc:admin-widget widget-zone="collection_details_seo_top" additional-data="Model"/>
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.Tabs.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.Tabs.cshtml
new file mode 100644
index 000000000..326759afe
--- /dev/null
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/WidgetZone.Tabs.cshtml
@@ -0,0 +1,2 @@
+@model CollectionModel
+<vc:admin-widget widget-zone="collection_details_tabs" additional-data="Model"/>
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Create.cshtml b/src/Web/Grand.Web.AdminShared/Views/AdminShared/Collection/Create.cshtml
similarity index 84%
rename from src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Create.cshtml
rename to src/Web/Grand.Web.AdminShared/Views/AdminShared/Collection/Create.cshtml
index 7f5e0aca1..1d2ef42fd 100644
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Create.cshtml
+++ b/src/Web/Grand.Web.AdminShared/Views/AdminShared/Collection/Create.cshtml
@@ -2,8 +2,9 @@
@{
//page title
ViewBag.Title = Loc["Admin.Catalog.Collections.AddNew"];
+ var area = ViewContext.RouteData.Values["area"]?.ToString();
}
-<form asp-area="@Constants.AreaAdmin" asp-controller="Collection" asp-action="Create" method="post" id="collection-form">
+<form asp-area="@area" asp-controller="Collection" asp-action="Create" method="post" id="collection-form">
<div class="row">
<div class="col-md-12">
@@ -24,7 +25,7 @@
<button class="btn btn-success" type="submit" name="save-continue">
<i class="fa fa-check-circle"></i> @Loc["Admin.Common.SaveContinue"]
</button>
- <vc:admin-widget widget-zone="collection_details_buttons" additional-data="null"/>
+ <partial name="Partials/WidgetZone.DetailsButtons"/>
</div>
</div>
</div>
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Edit.cshtml b/src/Web/Grand.Web.AdminShared/Views/AdminShared/Collection/Edit.cshtml
similarity index 86%
rename from src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Edit.cshtml
rename to src/Web/Grand.Web.AdminShared/Views/AdminShared/Collection/Edit.cshtml
index 345f580a4..825de814a 100644
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Edit.cshtml
+++ b/src/Web/Grand.Web.AdminShared/Views/AdminShared/Collection/Edit.cshtml
@@ -2,8 +2,9 @@
@{
//page title
ViewBag.Title = Loc["Admin.Catalog.Collections.EditCollectionDetails"];
+ var area = ViewContext.RouteData.Values["area"]?.ToString();
}
-<form asp-area="@Constants.AreaAdmin" asp-controller="Collection" asp-action="Edit" method="post" id="collection-form">
+<form asp-area="@area" asp-controller="Collection" asp-action="Edit" method="post" id="collection-form">
<div class="row">
<div class="col-md-12">
@@ -31,7 +32,7 @@
<span id="collection-delete" class="btn red">
<i class="fa fa-trash-o"></i> @Loc["Admin.Common.Delete"]
</span>
- <vc:admin-widget widget-zone="collection_details_buttons" additional-data="Model"/>
+ <partial name="Partials/WidgetZone.DetailsButtons" model="Model"/>
</div>
</div>
</div>
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/CreateOrUpdate.TabDiscounts.cshtml b/src/Web/Grand.Web.AdminShared/Views/AdminShared/Collection/Partials/CreateOrUpdate.TabDiscounts.cshtml
similarity index 84%
rename from src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/CreateOrUpdate.TabDiscounts.cshtml
rename to src/Web/Grand.Web.AdminShared/Views/AdminShared/Collection/Partials/CreateOrUpdate.TabDiscounts.cshtml
index 723b79fca..415d11682 100644
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/CreateOrUpdate.TabDiscounts.cshtml
+++ b/src/Web/Grand.Web.AdminShared/Views/AdminShared/Collection/Partials/CreateOrUpdate.TabDiscounts.cshtml
@@ -1,5 +1,5 @@
@model CollectionModel
-<vc:admin-widget widget-zone="collection_discounts_top" additional-data="Model"/>
+<partial name="Partials/WidgetZone.Discounts.Top" model="Model"/>
@{
if (Model.AvailableDiscounts is { Count: > 0 })
{
@@ -24,4 +24,4 @@
</div>
}
}
-<vc:admin-widget widget-zone="collection_discounts_bottom" additional-data="Model"/>
\ No newline at end of file
+<partial name="Partials/WidgetZone.Discounts.Bottom" model="Model"/>
\ No newline at end of file
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/CreateOrUpdate.TabDocuments.cshtml b/src/Web/Grand.Web.AdminShared/Views/AdminShared/Collection/Partials/CreateOrUpdate.TabDocuments.cshtml
similarity index 81%
rename from src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/CreateOrUpdate.TabDocuments.cshtml
rename to src/Web/Grand.Web.AdminShared/Views/AdminShared/Collection/Partials/CreateOrUpdate.TabDocuments.cshtml
index d3061814a..1149c1399 100644
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/CreateOrUpdate.TabDocuments.cshtml
+++ b/src/Web/Grand.Web.AdminShared/Views/AdminShared/Collection/Partials/CreateOrUpdate.TabDocuments.cshtml
@@ -1,16 +1,19 @@
@model CollectionModel
@inject AdminAreaSettings adminAreaSettings
+@{
+ var area = ViewContext.RouteData.Values["area"]?.ToString();
+}
@if (!string.IsNullOrEmpty(Model.Id))
{
<div class="panel panel-default">
- <vc:admin-widget widget-zone="collection_details_documents_top" additional-data="Model"/>
+ <partial name="Partials/WidgetZone.Documents.Top" model="Model"/>
<div class="panel-body">
<div id="collection-documents-grid"></div>
</div>
<div class="panel-footer">
- <button type="button" class="k-button" onclick="location.href='@Url.Action("CreateDocument", "Document", new { ObjectId = Model.Id, Reference = (int)Reference.Collection, area = Constants.AreaAdmin })'"><i class="fa fa-plus"></i>&nbsp;@Loc["Admin.Marketing.Document.Add"]</button>
+ <button type="button" class="k-button" onclick="location.href='@Url.Action("CreateDocument", "Document", new { ObjectId = Model.Id, Reference = (int)Reference.Collection, area = area })'"><i class="fa fa-plus"></i>&nbsp;@Loc["Admin.Marketing.Document.Add"]</button>
</div>
- <vc:admin-widget widget-zone="collection_details_documents_bottom" additional-data="Model"/>
+ <partial name="Partials/WidgetZone.Documents.Bottom" model="Model"/>
</div>
<script>
@@ -19,7 +22,7 @@
dataSource: {
transport: {
read: {
- url: "@Html.Raw(Url.Action("ListDocuments", "Document", new { reference = (int)Reference.Collection, ObjectId = Model.Id, StatusId = -1, area = Constants.AreaAdmin }))",
+ url: "@Html.Raw(Url.Action("ListDocuments", "Document", new { reference = (int)Reference.Collection, ObjectId = Model.Id, StatusId = -1, area = area }))",
type: "POST",
dataType: "json",
data: addAntiForgeryToken
@@ -53,12 +56,12 @@
columns: [{
field: "Number",
title: "@Loc["Admin.Documents.Document.Fields.Number"]",
- template: '<a class="k-link" href="@Url.Action("EditDocument", "Document", new { area = Constants.AreaAdmin })/#=Id#">#=kendo.htmlEncode(Number)#</a>',
+ template: '<a class="k-link" href="@Url.Action("EditDocument", "Document", new { area = area })/#=Id#">#=kendo.htmlEncode(Number)#</a>',
},
{
field: "Name",
title: "@Loc["Admin.Documents.Document.Fields.Name"]",
- template: '<a class="k-link" href="@Url.Action("EditDocument", "Document", new { area = Constants.AreaAdmin })/#=Id#">#=kendo.htmlEncode(Name)#</a>',
+ template: '<a class="k-link" href="@Url.Action("EditDocument", "Document", new { area = area })/#=Id#">#=kendo.htmlEncode(Name)#</a>',
}, {
field: "Published",
title: "@Loc["Admin.Documents.Document.Fields.Published"]",
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/CreateOrUpdate.TabProducts.cshtml b/src/Web/Grand.Web.AdminShared/Views/AdminShared/Collection/Partials/CreateOrUpdate.TabProducts.cshtml
similarity index 89%
rename from src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/CreateOrUpdate.TabProducts.cshtml
rename to src/Web/Grand.Web.AdminShared/Views/AdminShared/Collection/Partials/CreateOrUpdate.TabProducts.cshtml
index ce724ad3a..df72b47b3 100644
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/Partials/CreateOrUpdate.TabProducts.cshtml
+++ b/src/Web/Grand.Web.AdminShared/Views/AdminShared/Collection/Partials/CreateOrUpdate.TabProducts.cshtml
@@ -1,17 +1,20 @@
@model CollectionModel
@inject AdminAreaSettings adminAreaSettings
+@{
+ var area = ViewContext.RouteData.Values["area"]?.ToString();
+}
@if (!string.IsNullOrEmpty(Model.Id))
{
<div class="panel panel-default">
- <vc:admin-widget widget-zone="collection_details_products_top" additional-data="Model"/>
+ <partial name="Partials/WidgetZone.Products.Top" model="Model"/>
<div class="panel-body">
<div id="products-grid"></div>
</div>
<div class="panel-footer">
- <a id="btnAddNewProduct" href="@(Url.Action("ProductAddPopup", "Collection", new { collectionId = Model.Id, btnId = "btnRefreshProducts", formId = "collection-form", area = Constants.AreaAdmin }))" class="k-button"><i class="fa fa-plus"></i>&nbsp;@Loc["Admin.Catalog.Collections.Products.AddNew"]</a>
+ <a id="btnAddNewProduct" href="@(Url.Action("ProductAddPopup", "Collection", new { collectionId = Model.Id, btnId = "btnRefreshProducts", formId = "collection-form", area = area }))" class="k-button"><i class="fa fa-plus"></i>&nbsp;@Loc["Admin.Catalog.Collections.Products.AddNew"]</a>
<input type="submit" id="btnRefreshProducts" style="display: none"/>
</div>
- <vc:admin-widget widget-zone="collection_details_products_bottom" additional-data="Model"/>
+ <partial name="Partials/WidgetZone.Products.Bottom" model="Model"/>
</div>
<script>
$(document).ready(function () {
@@ -32,19 +35,19 @@
dataSource: {
transport: {
read: {
- url: "@Html.Raw(Url.Action("ProductList", "Collection", new { collectionId = Model.Id, area = Constants.AreaAdmin }))",
+ url: "@Html.Raw(Url.Action("ProductList", "Collection", new { collectionId = Model.Id, area = area }))",
type: "POST",
dataType: "json",
data: addAntiForgeryToken
},
update: {
- url:"@Html.Raw(Url.Action("ProductUpdate", "Collection", new { area = Constants.AreaAdmin }))",
+ url:"@Html.Raw(Url.Action("ProductUpdate", "Collection", new { area = area }))",
type: "POST",
dataType: "json",
data: addAntiForgeryToken
},
destroy: {
- url: "@Html.Raw(Url.Action("ProductDelete", "Collection", new { area = Constants.AreaAdmin }))",
+ url: "@Html.Raw(Url.Action("ProductDelete", "Collection", new { area = area }))",
type: "POST",
dataType: "json",
data: addAntiForgeryToken
@@ -94,7 +97,7 @@
editable: false,
type: "string",
title: "@Loc["Admin.Catalog.Collections.Products.Fields.Product"]",
- template: '<a href="@Url.Action("Edit", "Product", new { area = Constants.AreaAdmin })/#=ProductId#">#=kendo.htmlEncode(ProductName)#</a>'
+ template: '<a href="@Url.Action("Edit", "Product", new { area = area })/#=ProductId#">#=kendo.htmlEncode(ProductName)#</a>'
}, {
field: "IsFeaturedProduct",
title: "@Loc["Admin.Catalog.Collections.Products.Fields.IsFeaturedProduct"]",
diff --git a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/CreateOrUpdate.TabSeo.cshtml b/src/Web/Grand.Web.AdminShared/Views/AdminShared/Collection/Partials/CreateOrUpdate.TabSeo.cshtml
similarity index 97%
rename from src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/CreateOrUpdate.TabSeo.cshtml
rename to src/Web/Grand.Web.AdminShared/Views/AdminShared/Collection/Partials/CreateOrUpdate.TabSeo.cshtml
index a117d5668..432968c9c 100644
--- a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/CreateOrUpdate.TabSeo.cshtml
+++ b/src/Web/Grand.Web.AdminShared/Views/AdminShared/Collection/Partials/CreateOrUpdate.TabSeo.cshtml
@@ -37,7 +37,7 @@
}
<div class="form-horizontal">
- <vc:admin-widget widget-zone="collection_details_seo_top" additional-data="Model"/>
+ <partial name="Partials/WidgetZone.SEO.Top" model="Model"/>
<localized-editor localized-template="@template" name="collection-seo-localized" language-ids="@Model.Locales.Select(c => c.LanguageId).ToList()">
<div class="form-body">
<div class="form-group">
diff --git a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/CreateOrUpdate.cshtml b/src/Web/Grand.Web.AdminShared/Views/AdminShared/Collection/Partials/CreateOrUpdate.cshtml
similarity index 95%
rename from src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/CreateOrUpdate.cshtml
rename to src/Web/Grand.Web.AdminShared/Views/AdminShared/Collection/Partials/CreateOrUpdate.cshtml
index da1a5b18e..060ded567 100644
--- a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/CreateOrUpdate.cshtml
+++ b/src/Web/Grand.Web.AdminShared/Views/AdminShared/Collection/Partials/CreateOrUpdate.cshtml
@@ -55,6 +55,6 @@
</div>
</content>
</tabstrip-item>
- <vc:admin-widget widget-zone="collection_details_tabs" additional-data="Model"/>
+ <partial name="Partials/WidgetZone.Tabs" model="Model"/>
</items>
</admin-tabstrip>
\ No newline at end of file
diff --git a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Create.cshtml b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Create.cshtml
deleted file mode 100644
index 2d523079f..000000000
--- a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Create.cshtml
+++ /dev/null
@@ -1,37 +0,0 @@
-@model CollectionModel
-@{
- //page title
- ViewBag.Title = Loc["Admin.Catalog.Collections.AddNew"];
-}
-<form asp-area="@Constants.AreaStore" asp-controller="Collection" asp-action="Create" method="post" id="collection-form">
-
- <div class="row">
- <div class="col-md-12">
- <div class="x_panel light form-fit">
- <div class="x_title">
- <div class="caption">
- <i class="fa fa-building-o"></i>
- @Loc["Admin.Catalog.Collections.AddNew"]
- <small>
- <i class="fa fa-arrow-circle-left"></i>@Html.ActionLink(Loc["Admin.Catalog.Collections.BackToList"], "List")
- </small>
- </div>
- <div class="actions">
- <div class="btn-group btn-group-devided">
- <button class="btn btn-success" type="submit" name="save">
- <i class="fa fa-check"></i> @Loc["Admin.Common.Save"]
- </button>
- <button class="btn btn-success" type="submit" name="save-continue">
- <i class="fa fa-check-circle"></i> @Loc["Admin.Common.SaveContinue"]
- </button>
- <vc:admin-widget widget-zone="collection_details_buttons" additional-data="null"/>
- </div>
- </div>
- </div>
- <div class="x_content form">
- <partial name="Partials/CreateOrUpdate" model="Model"/>
- </div>
- </div>
- </div>
- </div>
-</form>
\ No newline at end of file
diff --git a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Edit.cshtml b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Edit.cshtml
deleted file mode 100644
index bbc2e6dd1..000000000
--- a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Edit.cshtml
+++ /dev/null
@@ -1,45 +0,0 @@
-@model CollectionModel
-@{
- //page title
- ViewBag.Title = Loc["Admin.Catalog.Collections.EditCollectionDetails"];
-}
-<form asp-area="@Constants.AreaStore" asp-controller="Collection" asp-action="Edit" method="post" id="collection-form">
-
- <div class="row">
- <div class="col-md-12">
- <div class="x_panel light form-fit">
- <div class="x_title">
- <div class="caption">
- <i class="fa fa-building-o"></i>
- @Loc["Admin.Catalog.Collections.EditCollectionDetails"] - @Model.Name
- <small>
- <i class="fa fa-arrow-circle-left"></i>@Html.ActionLink(Loc["Admin.Catalog.Collections.BackToList"], "List")
- </small>
- </div>
- <div class="actions">
- <div class="btn-group btn-group-devided util-btn-margin-bottom-5">
- <button type="button" onclick="window.open('@Url.RouteUrl("Collection", new { Model.SeName })','_blank');" class="btn purple">
- <i class="fa fa-eye"></i>
- @Loc["Admin.Common.Preview"]
- </button>
- <button class="btn btn-success" type="submit" name="save">
- <i class="fa fa-check"></i> @Loc["Admin.Common.Save"]
- </button>
- <button class="btn btn-success" type="submit" name="save-continue">
- <i class="fa fa-check-circle"></i> @Loc["Admin.Common.SaveContinue"]
- </button>
- <span id="collection-delete" class="btn red">
- <i class="fa fa-trash-o"></i> @Loc["Admin.Common.Delete"]
- </span>
- <vc:admin-widget widget-zone="collection_details_buttons" additional-data="Model"/>
- </div>
- </div>
- </div>
- <div class="x_content form">
- <partial name="Partials/CreateOrUpdate" model="Model"/>
- </div>
- </div>
- </div>
- </div>
-</form>
-<admin-delete-confirmation button-id="collection-delete"/>
\ No newline at end of file
diff --git a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/List.cshtml b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/List.cshtml
index 11320f2db..b0e2ff1ce 100644
--- a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/List.cshtml
+++ b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/List.cshtml
@@ -16,7 +16,7 @@
<a href="@Url.Action("Create", new { area = Constants.AreaStore })" class="btn green">
<i class="fa fa-plus"></i><span class="d-none d-sm-inline"> @Loc["Admin.Common.AddNew"] </span>
</a>
- <vc:admin-widget widget-zone="collection_list_buttons" additional-data="null"/>
+ <vc:store-widget widget-zone="store_collection_list_buttons" additional-data="null"/>
</div>
</div>
<div class="x_content form">
diff --git a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/CreateOrUpdate.TabDiscounts.cshtml b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/CreateOrUpdate.TabDiscounts.cshtml
deleted file mode 100644
index 723b79fca..000000000
--- a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/CreateOrUpdate.TabDiscounts.cshtml
+++ /dev/null
@@ -1,27 +0,0 @@
-@model CollectionModel
-<vc:admin-widget widget-zone="collection_discounts_top" additional-data="Model"/>
-@{
- if (Model.AvailableDiscounts is { Count: > 0 })
- {
- <div class="mt-checkbox-list">
- @foreach (var discount in Model.AvailableDiscounts)
- {
- <label class="mt-checkbox mt-checkbox-outline control control-checkbox">
- <input type="checkbox" name="SelectedDiscountIds" value="@discount.Id"
- @if (Model.SelectedDiscountIds != null && Model.SelectedDiscountIds.Contains(discount.Id))
- {
- <text> checked="checked" </text>
- }/>@discount.Name
- <div class="control__indicator"></div>
- </label>
- }
- </div>
- }
- else
- {
- <div class="note note-info">
- @Html.Raw(Loc["Admin.Catalog.Collections.Discounts.NoDiscounts"])
- </div>
- }
-}
-<vc:admin-widget widget-zone="collection_discounts_bottom" additional-data="Model"/>
\ No newline at end of file
diff --git a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/CreateOrUpdate.TabDocuments.cshtml b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/CreateOrUpdate.TabDocuments.cshtml
deleted file mode 100644
index f009e9f3f..000000000
--- a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/CreateOrUpdate.TabDocuments.cshtml
+++ /dev/null
@@ -1,80 +0,0 @@
-@model CollectionModel
-@inject AdminAreaSettings adminAreaSettings
-@if (!string.IsNullOrEmpty(Model.Id))
-{
- <div class="panel panel-default">
- <vc:admin-widget widget-zone="collection_details_documents_top" additional-data="Model"/>
- <div class="panel-body">
- <div id="collection-documents-grid"></div>
- </div>
- <div class="panel-footer">
- <button type="button" class="k-button" onclick="location.href='@Url.Action("CreateDocument", "Document", new { ObjectId = Model.Id, Reference = (int)Reference.Collection, area = Constants.AreaStore })'"><i class="fa fa-plus"></i>&nbsp;@Loc["Admin.Marketing.Document.Add"]</button>
- </div>
- <vc:admin-widget widget-zone="collection_details_documents_bottom" additional-data="Model"/>
- </div>
-
- <script>
- $(document).ready(function () {
- $("#collection-documents-grid").kendoGrid({
- dataSource: {
- transport: {
- read: {
- url: "@Html.Raw(Url.Action("ListDocuments", "Document", new { reference = (int)Reference.Collection, ObjectId = Model.Id, StatusId = -1, area = Constants.AreaStore }))",
- type: "POST",
- dataType: "json",
- data: addAntiForgeryToken
- },
- },
- schema: {
- data: "Data",
- total: "Total",
- errors: "Errors",
- },
- error: function(e) {
- display_kendoui_grid_error(e);
- // Cancel the changes
- this.cancelChanges();
- },
- pageSize: @(adminAreaSettings.DefaultGridPageSize),
- serverPaging: true,
- serverFiltering: true,
- serverSorting: true
- },
- autoBind: false,
- pageable: {
- refresh: true,
- pageSizes: [@(adminAreaSettings.GridPageSizes)]
- },
- editable: {
- confirmation: true,
- mode: "inline"
- },
- scrollable: false,
- columns: [{
- field: "Number",
- title: "@Loc["Admin.Documents.Document.Fields.Number"]",
- template: '<a class="k-link" href="@Url.Action("EditDocument", "Document", new { area = Constants.AreaStore })/#=Id#">#=kendo.htmlEncode(Number)#</a>',
- },
- {
- field: "Name",
- title: "@Loc["Admin.Documents.Document.Fields.Name"]",
- template: '<a class="k-link" href="@Url.Action("EditDocument", "Document", new { area = Constants.AreaStore })/#=Id#">#=kendo.htmlEncode(Name)#</a>',
- }, {
- field: "Published",
- title: "@Loc["Admin.Documents.Document.Fields.Published"]",
- width: 100,
- minScreenWidth: 500,
- headerAttributes: { style: "text-align:center" },
- attributes: { style: "text-align:center" },
- template: '# if(Published) {# <i class="fa fa-check" aria-hidden="true" style="color:green"></i> #} else {# <i class="fa fa-times" aria-hidden="true" style="color:red"></i> #} #'
- }]
- });
- });
- </script>
-}
-else
-{
- <div class="note note-info">
- @Loc["Admin.Catalog.SaveBeforeEdit"]
- </div>
-}
\ No newline at end of file
diff --git a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/CreateOrUpdate.TabInfo.cshtml b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/CreateOrUpdate.TabInfo.cshtml
index 70a36cef1..51da70d49 100644
--- a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/CreateOrUpdate.TabInfo.cshtml
+++ b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/CreateOrUpdate.TabInfo.cshtml
@@ -46,7 +46,7 @@
}
<div class="form-horizontal">
- <vc:admin-widget widget-zone="collection_details_info_top" additional-data="Model"/>
+ <vc:store-widget widget-zone="store_collection_details_info_top" additional-data="Model"/>
<localized-editor localized-template="@template" name="collection-info-localized" language-ids="@Model.Locales.Select(c => c.LanguageId).ToList()">
<div class="form-body">
<div class="form-group">
@@ -209,4 +209,4 @@
</div>
</div>
</div>
-<vc:admin-widget widget-zone="collection_details_info_bottom" additional-data="Model"/>
\ No newline at end of file
+<vc:store-widget widget-zone="store_collection_details_info_bottom" additional-data="Model"/>
\ No newline at end of file
diff --git a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/CreateOrUpdate.TabProducts.cshtml b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/CreateOrUpdate.TabProducts.cshtml
deleted file mode 100644
index 97716379e..000000000
--- a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/CreateOrUpdate.TabProducts.cshtml
+++ /dev/null
@@ -1,148 +0,0 @@
-@model CollectionModel
-@inject AdminAreaSettings adminAreaSettings
-@if (!string.IsNullOrEmpty(Model.Id))
-{
- <div class="panel panel-default">
- <vc:admin-widget widget-zone="collection_details_products_top" additional-data="Model"/>
- <div class="panel-body">
- <div id="products-grid"></div>
- </div>
- <div class="panel-footer">
- <a id="btnAddNewProduct" href="@(Url.Action("ProductAddPopup", "Collection", new { collectionId = Model.Id, btnId = "btnRefreshProducts", formId = "collection-form", area = Constants.AreaStore }))" class="k-button"><i class="fa fa-plus"></i>&nbsp;@Loc["Admin.Catalog.Collections.Products.AddNew"]</a>
- <input type="submit" id="btnRefreshProducts" style="display: none"/>
- </div>
- <vc:admin-widget widget-zone="collection_details_products_bottom" additional-data="Model"/>
- </div>
- <script>
- $(document).ready(function () {
- $('#btnAddNewProduct').magnificPopup({
- type: 'ajax',
- settings: { cache: false, async: false },
- midClick: true,
- callbacks: {
- parseAjax: function (mfpResponse) {
- mfpResponse.data = $('<div></div>').html(mfpResponse.data);
- },
- ajaxContentAdded: function () {
- $('.mfp-wrap').removeAttr('tabindex');
- }
- }
- });
- $("#products-grid").kendoGrid({
- dataSource: {
- transport: {
- read: {
- url: "@Html.Raw(Url.Action("ProductList", "Collection", new { collectionId = Model.Id, area = Constants.AreaStore }))",
- type: "POST",
- dataType: "json",
- data: addAntiForgeryToken
- },
- update: {
- url:"@Html.Raw(Url.Action("ProductUpdate", "Collection", new { area = Constants.AreaStore }))",
- type: "POST",
- dataType: "json",
- data: addAntiForgeryToken
- },
- destroy: {
- url: "@Html.Raw(Url.Action("ProductDelete", "Collection", new { area = Constants.AreaStore }))",
- type: "POST",
- dataType: "json",
- data: addAntiForgeryToken
- }
- },
- schema: {
- data: "Data",
- total: "Total",
- errors: "Errors",
- model: {
- id: "Id",
- fields: {
- ProductName: {editable: false, type: "string" },
- IsFeaturedProduct: {editable: true, type: "boolean" },
- DisplayOrder: {editable: true, type: "number" },
- ProductId: {editable: false, type: "string" }
- }
- }
- },
- requestEnd: function(e) {
- if(e.type=="update") {
- this.read();
- }
- },
- error: function(e) {
- display_kendoui_grid_error(e);
- // Cancel the changes
- this.cancelChanges();
- },
- pageSize: @(adminAreaSettings.DefaultGridPageSize),
- serverPaging: true,
- serverFiltering: true,
- serverSorting: true
- },
- autoBind: false,
- pageable: {
- refresh: true,
- pageSizes: [@(adminAreaSettings.GridPageSizes)]
- },
- editable: {
- confirmation: false,
- mode: "inline"
- },
- scrollable: false,
- columns: [{
- field: "ProductName",
- editable: false,
- type: "string",
- title: "@Loc["Admin.Catalog.Collections.Products.Fields.Product"]",
- template: '<a href="@Url.Action("Edit", "Product", new { area = Constants.AreaStore })/#=ProductId#">#=kendo.htmlEncode(ProductName)#</a>'
- }, {
- field: "IsFeaturedProduct",
- title: "@Loc["Admin.Catalog.Collections.Products.Fields.IsFeaturedProduct"]",
- width: 100,
- minScreenWidth: 750,
- headerAttributes: { style: "text-align:center" },
- attributes: { style: "text-align:center" },
- template: '# if(IsFeaturedProduct) {# <i class="fa fa-check" aria-hidden="true" style="color:green"></i> #} else {# <i class="fa fa-times" aria-hidden="true" style="color:red"></i> #} #'
- }, {
- field: "DisplayOrder",
- title: "@Loc["Admin.Catalog.Collections.Products.Fields.DisplayOrder"]",
- minScreenWidth: 750,
- headerAttributes: { style: "text-align:center" },
- attributes: { style: "text-align:center" },
- format: "{0:0}",
- width: 120
- }, {
- command: [{
- name: "edit",
- text: {
- edit: "@Loc["Admin.Common.Edit"]",
- update: "@Loc["Admin.Common.Update"]",
- cancel: "@Loc["Admin.Common.Cancel"]"
- }
- }, {
- name: "destroy",
- text: "@Loc["Admin.Common.Delete"]"
- }],
- }]
- });
- });
- </script>
- <script>
- $(document).ready(function () {
- $('#btnRefreshProducts').click(function () {
- //refresh grid
- var grid = $("#products-grid").data('kendoGrid');
- grid.dataSource.read();
-
- //return false to don't reload a page
- return false;
- });
- });
- </script>
-}
-else
-{
- <div class="note note-info">
- @Loc["Admin.Catalog.Collections.Products.SaveBeforeEdit"]
- </div>
-}
\ No newline at end of file
diff --git a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.DetailsButtons.cshtml b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.DetailsButtons.cshtml
new file mode 100644
index 000000000..6cf0cc502
--- /dev/null
+++ b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.DetailsButtons.cshtml
@@ -0,0 +1,2 @@
+@model CollectionModel
+<vc:store-widget widget-zone="store_collection_details_buttons" additional-data="Model"/>
diff --git a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.Discounts.Bottom.cshtml b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.Discounts.Bottom.cshtml
new file mode 100644
index 000000000..bcc97e5ae
--- /dev/null
+++ b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.Discounts.Bottom.cshtml
@@ -0,0 +1,2 @@
+@model CollectionModel
+<vc:store-widget widget-zone="store_collection_discounts_bottom" additional-data="Model"/>
diff --git a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.Discounts.Top.cshtml b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.Discounts.Top.cshtml
new file mode 100644
index 000000000..1bb64f770
--- /dev/null
+++ b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.Discounts.Top.cshtml
@@ -0,0 +1,2 @@
+@model CollectionModel
+<vc:store-widget widget-zone="store_collection_discounts_top" additional-data="Model"/>
diff --git a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.Documents.Bottom.cshtml b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.Documents.Bottom.cshtml
new file mode 100644
index 000000000..3c2935a23
--- /dev/null
+++ b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.Documents.Bottom.cshtml
@@ -0,0 +1,2 @@
+@model CollectionModel
+<vc:store-widget widget-zone="store_collection_details_documents_bottom" additional-data="Model"/>
diff --git a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.Documents.Top.cshtml b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.Documents.Top.cshtml
new file mode 100644
index 000000000..693078440
--- /dev/null
+++ b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.Documents.Top.cshtml
@@ -0,0 +1,2 @@
+@model CollectionModel
+<vc:store-widget widget-zone="store_collection_details_documents_top" additional-data="Model"/>
diff --git a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.Products.Bottom.cshtml b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.Products.Bottom.cshtml
new file mode 100644
index 000000000..17cecd868
--- /dev/null
+++ b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.Products.Bottom.cshtml
@@ -0,0 +1,2 @@
+@model CollectionModel
+<vc:store-widget widget-zone="store_collection_details_products_bottom" additional-data="Model"/>
diff --git a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.Products.Top.cshtml b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.Products.Top.cshtml
new file mode 100644
index 000000000..3d920be36
--- /dev/null
+++ b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.Products.Top.cshtml
@@ -0,0 +1,2 @@
+@model CollectionModel
+<vc:store-widget widget-zone="store_collection_details_products_top" additional-data="Model"/>
diff --git a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.SEO.Top.cshtml b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.SEO.Top.cshtml
new file mode 100644
index 000000000..a9928c704
--- /dev/null
+++ b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.SEO.Top.cshtml
@@ -0,0 +1,2 @@
+@model CollectionModel
+<vc:store-widget widget-zone="store_collection_details_seo_top" additional-data="Model"/>
diff --git a/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.Tabs.cshtml b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.Tabs.cshtml
new file mode 100644
index 000000000..48819f0ae
--- /dev/null
+++ b/src/Web/Grand.Web.Store/Areas/Store/Views/Collection/Partials/WidgetZone.Tabs.cshtml
@@ -0,0 +1,2 @@
+@model CollectionModel
+<vc:store-widget widget-zone="store_collection_details_tabs" additional-data="Model"/>