@using LeafWeb.Web.Utility @model int? @{ int i; if (!Model.HasValue) { i = 0; } else { i = Model.Value; } 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); } }