@using WeOnlineApp.Configuration @using WeOnlineApp.Helpers @using WeOnlineApp.Views.Shared.Modals @using WeOnlineApp.Views.Shared.SearchForm @using WeOnlineApp.Views.Shared.Table @{ var table = new TableViewModel(IwbConsts.ApiAppUrl + "Question/GetAll", tableId: "table-q", hasBox: false).SetPageArray(4) .SetFields(new List() { //new FieldItem("subjectCategory", "课程类型"), new FieldItem("title", "问题标题",isSort:false), //new FieldItem("contentInfo", "问题内容"), new FieldItem("campName", "课程名称","CampFormatter",isSort:false), new FieldItem("questionState", "问题状态","StateFormatter",isSort:false), new FieldItem("answerDateTime", "解答时间","AnswerDateTimeFormatter",isSort:false), new FieldItem("id", "查看详情","ActionFormatter",isSort:false), }); } @{ var modal = new ModalViewModel("我要提问", "", new ModalBodyViewModel(new List() { new InputHide("id"), new InputHide("subjectCategoryNo", "课程类型"), new InputHide("campNo", "课程名称"), new Input("campName", "课程名称",placeholder:"未选择课程").SetNotRequired().SetDisabled(), new Input("title", "问题标题"), new InputTextarea("contentInfo", "问题内容"), }, "form-q"), "modal-q"); var modal2 = new ModalViewModel("我要答疑", "", new ModalBodyViewModel(new List() { new InputHide("id"), new InputHide("questionNo"), new Input("campName", "课程名称",placeholder:"未选择课程").SetNotRequired().SetDisabled(), new Input("title", "问题标题").SetDisabled(), new InputTextarea("contentInfo", "答疑内容"), }, "form-a"), "modal-a"); } @using (Html.BeginScripts()) { @Html.Partial("Modals/_Modal", modal) @Html.Partial("Modals/_Modal", modal2) }
@*@Html.DropDownList("hid-type", type)*@