@using WePlatform @using WePlatform.Configuration @using WePlatform.Authorization @using WePlatform.Views.Shared.Modals @using WePlatform.Views.Shared.SearchForm @using WePlatform.Views.Shared.Table @{ ViewBag.Title = "引导信息库管理"; string activeMenu = PermissionNames.PagesResourceMgGuideMgPromptMg; string guideType = ViewBag.GuideType; ViewBag.ActiveMenu = activeMenu; var searchForm = new SearchFormViewModel(new List() { new SearchItem("name","提示名称"), new SearchItem("guideType","提示类型",FieldType.I).SetSelectItem(guideType), }, "search-form", false); var table = new TableViewModel(IwbConsts.ApiAppUrl + "Prompt/GetAll", activeMenu, searchForm) .SetFields(new List() { new FieldItem("id", "编码"), new FieldItem("name", "提示名称"), new FieldItem("description", "提示详情"), new FieldItem("guideType", "提示类型","GuideTypeFormatter"), }); } @section css{ } @Html.Partial("Table/_Table", table) @section modal{ @{ var modal = new ModalViewModel("引导信息", new ModalBodyViewModel(new List() { new InputHide("id"), new Input("name", "提示名称").SetNotRequired(), new Input("guideType", "提示类型").SetNotRequired().SetSelectOptions(guideType), new InputTextarea("description", "提示详情").SetNotRequired(), })); } @Html.Partial("Modals/_Modal", modal) } @section scripts { }
@*@Html.DropDownList("hid-type", type)*@