Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 339 Bytes
@{
var attributes = new Dictionary<string, object>();
attributes.Add("type", "datetime-local");
attributes.Add("class", "text-box single-line");
if (ViewData.ModelMetadata.IsRequired)
{
attributes.Add("required", "required");
}
}
@Html.TextBox("", ViewData.TemplateInfo.FormattedModelValue, attributes)