@using WeApp @using WeApp.Configuration @using WeApp.Authorization @using WeApp.Views.Shared.Modals @using WeApp.Views.Shared.SearchForm @using WeApp.Views.Shared.Table @{ ViewBag.Title = "画像预置信息维护"; string activeMenu = PermissionNames.PagesBasicMgPortraitRemarkMg; //The menu item will be active for this page. ViewBag.ActiveMenu = activeMenu; string remarkType = ViewBag.RemarkType; var searchForm = new SearchFormViewModel(new List() { new SearchItem("name", "信息名称"), new SearchItem("remarkType", "信息类型",FieldType.I).SetSelectItem(remarkType) }); var table = new TableViewModel(IwbConsts.ApiAppUrl + "PortraitRemark/GetAll", activeMenu, searchForm) .SetFields(new List() { new FieldItem("name", "信息名称"), new FieldItem("remarkContent", "信息内容"), new FieldItem("remarkType", "信息类型","RemarkTypeFormatter"), }); } @section css{ } @Html.Partial("Table/_Table", table) @section modal{ @{ var modal = new ModalViewModel("信息", new ModalBodyViewModel(new List() { new InputHide("id"), new Input("name", "信息名称"), new Input("remarkType", "信息类型").SetSelectOptions(remarkType), new InputTextarea("remarkContent", "信息内容"), })); } @Html.Partial("Modals/_Modal", modal) } @section scripts { }
@*@Html.DropDownList("hid-type", type)*@