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.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Admin panel - View - Country - Remove unused url params
KrzysztofPajak882bf77cf4f7
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Country/StateCreatePopup.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Country/StateCreatePopup.cshtmlindex a1f11d8b1..fff73c834 100644--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Country/StateCreatePopup.cshtml+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Country/StateCreatePopup.cshtml@@ -1,15 +1,9 @@@model StateProvinceModel@{Layout = "";- //page title- ViewBag.Title = Loc["Admin.Configuration.Countries.States.AddNew"];}-<form id="StateCreatePopup" asp-area="@Constants.AreaAdmin" asp-controller="Country" asp-action="StateCreatePopup"- asp-route-countryId="@Context.Request.Query["countryId"]"- asp-route-btnId="@Context.Request.Query["btnId"]"- asp-route-formId="@Context.Request.Query["formId"]">-+ asp-route-countryId="@Context.Request.Query["countryId"]"><div class="row"><div class="col-md-12"><div class="x_panel light form-fit">diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Country/StateEditPopup.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Country/StateEditPopup.cshtmlindex 9e6b58289..037203c75 100644--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Country/StateEditPopup.cshtml+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Country/StateEditPopup.cshtml@@ -1,13 +1,9 @@@model StateProvinceModel@{Layout = "";- ViewBag.Title = Loc["Admin.Configuration.Countries.States.EditStateDetails"];}<form id="StateEditPopup" asp-area="@Constants.AreaAdmin" asp-controller="Country" asp-action="StateEditPopup"- asp-route-countryId="@Context.Request.Query["countryId"]"- asp-route-btnId="@Context.Request.Query["btnId"]"- asp-route-formId="@Context.Request.Query["formId"]">-+ asp-route-countryId="@Context.Request.Query["countryId"]"><div class="row"><div class="col-md-12"><div class="x_panel light form-fit">diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Country/_CreateOrUpdate.TabStates.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Country/_CreateOrUpdate.TabStates.cshtmlindex 401d236ed..cd0626ba6 100644--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Country/_CreateOrUpdate.TabStates.cshtml+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Country/_CreateOrUpdate.TabStates.cshtml@@ -8,7 +8,7 @@<div id="states-grid"></div></div><div class="panel-footer">- <a id="btnAddNewState" href="@(Url.Action("StateCreatePopup", "Country", new { countryId = Model.Id, btnId = "btnRefresh", formId = "country-form", area = Constants.AreaAdmin }))" class="k-button"><i class="fa fa-plus"></i> @Loc["Admin.Configuration.Countries.States.AddNew"]</a>+ <a id="btnAddNewState" href="@(Url.Action("StateCreatePopup", "Country", new { countryId = Model.Id, area = Constants.AreaAdmin }))" class="k-button"><i class="fa fa-plus"></i> @Loc["Admin.Configuration.Countries.States.AddNew"]</a><input type="submit" id="btnRefresh" style="display: none" /></div></div>@@ -89,7 +89,7 @@field: "Name",title: "@Loc["Admin.Configuration.Countries.States.Fields.Name"]",width: 300,- template: "<a class=\"k-link editstate\" href=\"@Url.Action("StateEditPopup", "Country", new { area = Constants.AreaAdmin })/#=Id#?countryId=@(Model.Id)&btnId=btnRefresh&formId=country-form\">#=Name#</a>",+ template: "<a class=\"k-link editstate\" href=\"@Url.Action("StateEditPopup", "Country", new { area = Constants.AreaAdmin })/#=Id#?countryId=@(Model.Id)\">#=Name#</a>",}, {field: "Abbreviation",title: "@Loc["Admin.Configuration.Countries.States.Fields.Abbreviation"]",