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

12 lines
371 B
Plaintext

@using StringExtensions = LeafWeb.Core.Utility.StringExtensions
@model object
@{
Layout = null;
var lowerPropertyName = StringExtensions.LowercaseFirst(ViewData.ModelMetadata.PropertyName);
}
<div class="form-group @lowerPropertyName">
@Html.LabelForModel()
@RenderBody()
@Html.ValidationMessage(string.Empty, new { @class = "text-danger"})
</div>