Skip to content

Commit

Permalink
Admin panel - View - Country - Remove unused url params
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofPajak committed Sep 29, 2021
1 parent f915726 commit 882bf77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -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">
Expand Down
Original file line number Diff line number Diff line change
@@ -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">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>&nbsp;@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>&nbsp;@Loc["Admin.Configuration.Countries.States.AddNew"]</a>
<input type="submit" id="btnRefresh" style="display: none" />
</div>
</div>
Expand Down Expand Up @@ -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"]",
Expand Down

0 comments on commit 882bf77

Please sign in to comment.