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
+23 -2
View File
@@ -1,5 +1,26 @@
@{
@model object
@{
Layout = "~/Views/Shared/EditorTemplates/_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.@type != null)
{
htmlAttributes.Add("type", ViewBag.@type);
}
if (ViewBag.placeholder != null)
{
htmlAttributes.Add("placeholder", ViewBag.placeholder);
}
}
@Html.TextBox("", ViewData.TemplateInfo.FormattedModelValue)
@Html.TextBox("", ViewData.TemplateInfo.FormattedModelValue, htmlAttributes)