@using VberAdmin.Web.Models.Input @using VberAdmin.Web.Models.Modals @{ ViewBag.ActiveMenu = PermissionNames.Vber; ViewBag.Title = L("MyCalendar"); string notifyType = ViewBag.NotifyType; var m_body = new VmModalBody().AddInputs(new List() { new VmInputHidden("id"), new VmInput("title", "日程名称").WithRequired(), new VmInputTextarea("description", "日程详情").WithRequired(), new VmInputCheckBox("allDay","").AddItems(new VmInputCheckBoxRadioItem("全天日程","true").WithOther("data-vb-calendar-input=\"allDay\"")), }).AddGroup(new List() { new VmInputDate("start","开始日期").WithRequired(), new VmInputDate("end","结束日期").WithRequired(), }).AddGroup(new List() { new VmInputDateTime("startTime","").WithOnlyTime().WithOther("data-vb-calendar-input=\"time\""), new VmInputDateTime("endTime","").WithOnlyTime().WithOther("data-vb-calendar-input=\"time\""), }).AddInputs(new List() { new VmInput("notifyType","通知方式").WithSelect(notifyType,isMultiple:true), new VmInputRadio("style", "日程样式").AddItems( new VmInputCheckBoxRadioItem("
样式1
", "1").WithClass("text-primary"), new VmInputCheckBoxRadioItem("
样式2
", "2").WithClass("text-success"), new VmInputCheckBoxRadioItem("
样式3
", "3").WithClass("text-info"), new VmInputCheckBoxRadioItem("
样式4
", "4").WithClass("text-danger"), new VmInputCheckBoxRadioItem("
样式5
", "5").WithClass("text-warning"), new VmInputCheckBoxRadioItem("
样式6
", "6").WithClass("text-dark") ).WithRequired(), }); var modal = new VmModal().WithOther("data-vb-calendar-modal").WithHeaderAndFooter("日程","").WithBody( m_body); } @section css{ } @section styles { }

我的日程

@await Html.PartialAsync("_Modal", modal) @section scripts { }