@using WeOnlineApp.Authorization @using WeOnlineApp.Configuration @using WeOnlineApp.Views.Shared.Modals @using WeOnlineApp.Views.Shared.SearchForm @using WeOnlineApp.Views.Shared.Table @{ ViewBag.Title = "课程类别管理"; string activeMenu = PermissionNames.PagesBasicMgSubjectCategoryMg; //The menu item will be active for this page. ViewBag.ActiveMenu = activeMenu; var searchForm = new SearchFormViewModel(new List() { new SearchItem("categoryName","类别名称"), }, "search-form", false); var table = new TableViewModel(IwbConsts.ApiAppUrl + "SubjectCategory/GetAll", activeMenu) .SetFields(new List() { //new FieldItem("parentNo", "父类别"), new FieldItem("categoryName", "类别名称",align:"left"), new FieldItem("", "操作","ActionsFormatter"), }) .SetPageArray(1000); } @section css{ } @Html.Partial("Table/_Table", table) @section modal{ @{ var modal = new ModalViewModel("课程类别", new ModalBodyViewModel(new List() { new InputHide("id"), new Input("parentNo", "父类别").SetNotRequired().SetSelectOptions(""), new Input("categoryName", "类别名称").SetNotRequired(), new InputNumber("sort", "类别排序").SetNotRequired(), new InputTextarea("description", "类别描述").SetNotRequired(), })); } @Html.Partial("Modals/_Modal", modal) } @section scripts { }
@*@Html.DropDownList("hid-type", type)*@