20 lines
610 B
Plaintext
20 lines
610 B
Plaintext
@using MileageTraker.Web.Utility
|
|
@{
|
|
Layout = null;
|
|
var lowerPropertyName = @CustomExtensions.LowercaseFirst(ViewData.ModelMetadata.PropertyName);
|
|
var units = (string)ViewData.ModelMetadata.AdditionalValues["Units"];
|
|
var color = ViewData.ModelMetadata.PropertyName == "Color" ? Model : "";
|
|
}
|
|
|
|
<div class="display-field-container @lowerPropertyName">
|
|
<div class="display-label">
|
|
@Html.LabelForModel()
|
|
</div>
|
|
<div class="display-field @color">
|
|
@RenderBody()
|
|
@if (!string.IsNullOrEmpty(units))
|
|
{
|
|
<span class="units">@units</span>
|
|
}
|
|
</div>
|
|
</div> |