@using SmartStore.Web.Framework; @using Telerik.Web.Mvc.UI; @using System.Linq; @model SmartStore.Tax.Models.ByRegionTaxRateListModel @{ Layout = ""; }
@(Html.Telerik().Grid(Model.TaxRates) .Name("Grid") .DataKeys(keys => keys.Add(x => x.Id).RouteKey("Id")) .Columns(columns => { columns.Bound(x => x.CountryName) .ReadOnly(); columns.Bound(x => x.StateProvinceName) .ReadOnly(); columns.Bound(x => x.Zip) .Width(140); columns.Bound(x => x.TaxCategoryName) .ReadOnly(); columns.Bound(x => x.Percentage) .Width(140) .Format("{0:0.00}"); columns.Command(commands => { commands.Edit(); commands.Delete(); }).Width(180); }) .Editable(x => { x.Mode(GridEditMode.InLine); }) .DataBinding(dataBinding => { dataBinding.Ajax() .Select("RatesList", "TaxByRegion", new RouteValueDictionary() { { "area", "SmartStore.Tax" } }) .Update("RateUpdate", "TaxByRegion", new RouteValueDictionary() { { "area", "SmartStore.Tax" } }) .Delete("RateDelete", "TaxByRegion", new RouteValueDictionary() { { "area", "SmartStore.Tax" } }); }) .EnableCustomBinding(true))

@using (Html.BeginForm()) {
@T("Plugins.Tax.CountryStateZip.AddRecord.Hint")
@Html.SmartLabelFor(model => model.AddCountryId) @Html.DropDownListFor(model => model.AddCountryId, Model.AvailableCountries) @Html.ValidationMessageFor(model => model.AddCountryId)
@Html.SmartLabelFor(model => model.AddStateProvinceId) @Html.DropDownListFor(model => model.AddStateProvinceId, Model.AvailableStates) @Html.ValidationMessageFor(model => model.AddStateProvinceId)
@Html.SmartLabelFor(model => model.AddZip) @Html.EditorFor(model => model.AddZip) @Html.ValidationMessageFor(model => model.AddZip)
@Html.SmartLabelFor(model => model.AddTaxCategoryId) @Html.DropDownListFor(model => model.AddTaxCategoryId, Model.AvailableTaxCategories) @Html.ValidationMessageFor(model => model.AddTaxCategoryId)
@Html.SmartLabelFor(model => model.AddPercentage) @Html.EditorFor(model => model.AddPercentage) @Html.ValidationMessageFor(model => model.AddPercentage)
 
}