@using LeafWeb.WebCms.Utility @model Boolean? @{ var htmlAttributes = new RouteValueDictionary(); if (ViewBag.@class != null) { htmlAttributes.Add("class", ViewBag.@class); } }
@Html.LabelFor(m => m, new { @class = "" })
@Html.CheckBox( "", Model.HasValue && Model.Value, htmlAttributes) @Html.ValidationMessageFor(m => m, null, new { @class = "help-block" })