@using System.Web.Mvc.Html
@using WeApp
@using WeApp.Authorization
@using WeApp.Configuration
@using WeApp.Views.Shared.Modals
@using WeApp.Views.Shared.SearchForm
@using WeApp.Views.Shared.Table
@{
string activeMenu = PermissionNames.PagesSystemMgHelpMg; //The menu item will be active for this page.
ViewBag.ActiveMenu = activeMenu;
// List classification = ViewBag.Classification;
List classification = new List();
}
@section css
{
}
@Html.DropDownList("hid-classification", classification)
@{
/**/
ViewBag.Title = "系统帮助管理";
var table = new TableViewModel(IwbConsts.ApiAppUrl + "Helps/GetAll", activeMenu, new SearchFormViewModel(new List()
{
new SearchItem("classification", "帮助类别").SetSelectItem(classification)
})).SetFields(new List()
{
new FieldItem("helpTitle", "标题"),
new FieldItem("helpKeyWords", "关键字信息"),
new FieldItem("classification", "帮助类别", "ClassificationFormatter"),
new FieldItem("sequence", "排序"),
});
}
@Html.Partial("Table/_Table", table)
@section modal{
@{
/**/
var modal = new ModalViewModel("帮助", new ModalBodyViewModel(new List()
{
new Input("id", hide: true),
new Input("helpTitle", "标题"),
new Input("helpKeyWords", "关键字"),
new Input("sequence", "序列"),
new Input("classification", "帮助类别").SetSelectOptions(classification),
new InputKindeditor("helpContent","帮助内容").SetLayout("col-sm-2","col-sm-12").SetNotRequired(),
}), width: 700);
@Html.Partial("Modals/_Modal", modal)
}
}
@section scripts
{
}