@using WeApp.Authorization @using WeApp.Configuration @using WeApp.Views.Shared.SearchForm @using WeApp.Views.Shared.Table @{ ViewBag.ActiveMenu = PermissionNames.Pages; //The menu item will be active for this page. ViewBag.Title = L("NotificationTitle"); List states = new List { new SelectListItem() {Text = L("NoRead"), Value = "0"}, new SelectListItem() {Text = L("HasRead"), Value = "1"} }, names= IwbNotificationName.GetNameList() ; var table = new TableViewModel(IwbConsts.ApiAppUrl + "Notification/GetAll", ViewBag.ActiveMenu, new SearchFormViewModel(new List() { new SearchItem("state", L("notificationState"),FieldType.I).SetSelectItem(states), new SearchItem("date", L("notificationDate"),FieldType.Dn) })).SetFields(new List() { new FieldItem("name", L("notificationName"),"NameFormatter",isSort:false), new FieldItem("text", L("notificationText"),isSort:false), new FieldItem("time", L("notificationDate"),isSort:false), new FieldItem("notificationState",L("notificationState"),"StateFormatter",isSort:false), new FieldItem("",L("Actions"),"ActionFormatter"), }); } @Html.Partial("Table/_Table", table) @section scripts{ }
@Html.DropDownList("hid-state", states) @Html.DropDownList("hid-name", names)
@section css{ }