Files
LeafWeb/WebCms/Views/Shared/EditorTemplates/Int32.cshtml
T
poprhythm 8452a9cce0 Add registration workflow
Update unobtrusive Validation
2020-01-10 14:52:11 -05:00

23 lines
496 B
Plaintext

@model int?
@{
Layout = "_FieldLayout.cshtml";
var htmlAttributes = new RouteValueDictionary();
if (ViewBag.@class != null)
{
htmlAttributes.Add("class", "form-control " + ViewBag.@class);
}
else
{
htmlAttributes.Add("class", "form-control");
}
if (ViewBag.placeholder != null)
{
htmlAttributes.Add("placeholder", ViewBag.placeholder);
}
}
@Html.TextBox("", ViewData.TemplateInfo.FormattedModelValue, htmlAttributes)