@model ShippingMethodModel @using Telerik.Web.Mvc.UI; @Html.ValidationSummary(true) @Html.HiddenFor(model => model.Id) @Html.SmartStore().TabStrip().Name("shipping-method-edit").Items(x => { x.Add().Text(T("Admin.Common.General").Text).Content(TabGeneral()).Selected(true); x.Add().Text(T("Admin.Common.Restrictions").Text).Content(TabRestrictions()); EngineContext.Current.Resolve().Publish(new TabStripCreated(x, "shipping-method-edit", this.Html, this.Model)); }) @helper TabGeneral() { @(Html.LocalizedEditor("shipping-method-localized", @
@Html.SmartLabelFor(model => model.Locales[item].Name) @Html.EditorFor(model => Model.Locales[item].Name) @Html.ValidationMessageFor(model => model.Locales[item].Name)
@Html.SmartLabelFor(model => model.Locales[item].Description) @Html.EditorFor(model => model.Locales[item].Description, Html.RichEditorFlavor()) @Html.ValidationMessageFor(model => model.Locales[item].Description)
@Html.HiddenFor(model => model.Locales[item].LanguageId)
, @
@Html.SmartLabelFor(model => model.Name) @Html.EditorFor(model => model.Name) @Html.ValidationMessageFor(model => model.Name)
@Html.SmartLabelFor(model => model.Description) @Html.EditorFor(model => model.Description, Html.RichEditorFlavor()) @Html.ValidationMessageFor(model => model.Description)
))
@Html.SmartLabelFor(model => model.DisplayOrder) @Html.EditorFor(model => model.DisplayOrder) @Html.ValidationMessageFor(model => model.DisplayOrder)
@Html.SmartLabelFor(model => model.IgnoreCharges) @Html.EditorFor(model => model.IgnoreCharges) @Html.ValidationMessageFor(model => model.IgnoreCharges)
} @helper TabRestrictions() { if (Model.FilterConfigurationUrls.Count == 0) {
@T("Admin.Configuration.Shipping.Methods.RestrictionNote")
}
}