@model ForumGroupModel @using Telerik.Web.Mvc.UI; @Html.ValidationSummary(true) @Html.HiddenFor(model => model.Id) @Html.SmartStore().TabStrip().Name("forumgroup-edit").Items(x => { x.Add().Text(T("Admin.Common.General").Text).Content(TabInfo()).Selected(true); x.Add().Text(T("Admin.Common.Stores").Text).Content(TabStores()); //generate an event EngineContext.Current.Resolve().Publish(new TabStripCreated(x, "forumgroup-edit", this.Html, this.Model)); }) @helper TabInfo() { @(Html.LocalizedEditor("forumgroup-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].SeName) @Html.EditorFor(model => model.Locales[item].SeName) @Html.ValidationMessageFor(model => model.Locales[item].SeName)
@Html.SmartLabelFor(model => model.Locales[item].Description) @Html.TextAreaFor(model => model.Locales[item].Description, new { @class = "input-large" }) @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.SeName) @Html.EditorFor(x => x.SeName) @if (Model.Id != 0) { @Html.Action("NamesPerEntity", "UrlRecord", new { entityName = "ForumGroup", entityId = @Model.Id }) } @Html.ValidationMessageFor(model => model.SeName)
@Html.SmartLabelFor(model => model.Description) @Html.TextAreaFor(model => model.Description, new { @class = "input-large" }) @Html.ValidationMessageFor(model => model.Description)
))
@Html.SmartLabelFor(model => model.DisplayOrder) @Html.EditorFor(model => model.DisplayOrder) @Html.ValidationMessageFor(model => model.DisplayOrder)
} @helper TabStores() {
@Html.SmartLabelFor(model => model.LimitedToStores) @Html.EditorFor(model => model.LimitedToStores) @Html.ValidationMessageFor(model => model.LimitedToStores)
@Html.SmartLabelFor(model => model.AvailableStores) @if (Model.AvailableStores != null && Model.AvailableStores.Count > 0) { foreach (var store in Model.AvailableStores) { } } else {
@T("Admin.Configuration.Stores.NoStoresDefined")
}
}