Updates and LeafInput

This commit is contained in:
2016-01-13 21:56:22 -05:00
parent 79baded8b1
commit 048327666f
500 changed files with 80975 additions and 132 deletions
@@ -0,0 +1,21 @@
@using LeafWeb.Web.Utility
@model Boolean?
@{
var htmlAttributes = new RouteValueDictionary();
if (ViewBag.@class != null)
{
htmlAttributes.Add("class", ViewBag.@class);
}
}
<div class="form-group@(Html.ValidationErrorFor(m => m, " has-error"))">
@Html.LabelFor(m => m, new { @class = "" })
<div class="controls">
@Html.CheckBox(
"",
Model.HasValue && Model.Value,
htmlAttributes)
@Html.ValidationMessageFor(m => m, null, new { @class = "help-block" })
</div>
</div>