Add registration workflow
Update unobtrusive Validation
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
@using LeafWeb.WebCms.Utility
|
||||
@model Boolean?
|
||||
|
||||
@{
|
||||
Layout = "_FieldLayout.cshtml";
|
||||
|
||||
var htmlAttributes = new RouteValueDictionary();
|
||||
if (ViewBag.@class != null)
|
||||
{
|
||||
@@ -9,13 +10,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
<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 = "form-text" })
|
||||
</div>
|
||||
</div>
|
||||
@Html.CheckBox(
|
||||
"",
|
||||
Model.HasValue && Model.Value,
|
||||
htmlAttributes)
|
||||
|
||||
Reference in New Issue
Block a user