@Html.Partial("Modals/_ModalHeader", new ModalHeaderViewModel("功能菜单"))
@{
var inputs = new List
{
new InputViewModel("id", hide: true),
new InputViewModel("depth", hide: true),
new InputViewModel("permissionName", hide: true),
new InputViewModel("functionPath", hide: true),
new InputViewModel("parentNo",InputTypes.List,"父菜单"),
new InputViewModel("functionNo",displayName:"菜单编号"),
new InputViewModel("functionName",displayName:"菜单名称"),
new InputViewModel("sort",displayName:"排序"),
new InputViewModel("icon",displayName:"菜单图标").SetNotRequired(),
};
if (currentUser.UserName.ToUpper() == "ADMIN"|| currentUser.UserName.ToUpper() == "SYSTEM")
{
inputs.AddRange(new List
{
new InputViewModel("functionType",InputTypes.List,"菜单类型").SetSelectOptions((List)ViewBag.FunctionType).SetNotRequired(),
new InputViewModel("controller",displayName:"控制器").SetNotRequired(),
new InputViewModel("action",displayName:"方法").SetNotRequired(),
new InputViewModel("url",displayName:"URL").SetNotRequired(),
new InputViewModel("class",displayName:"Class").SetNotRequired(),
new InputViewModel("script",displayName:"Script").SetNotRequired(),
});
}
//var specials = new List();
}
@Html.Partial("Modals/_ModalBody", new ModalBodyViewModel(inputs))
@Html.Partial("Modals/_ModalFooter", "0")