Add currency attribute
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
Layout = null;
|
||||
var lowerPropertyName = @CustomExtensions.LowercaseFirst(ViewData.ModelMetadata.PropertyName);
|
||||
var units = (string)ViewData.ModelMetadata.AdditionalValues["Units"];
|
||||
var currency = (string)ViewData.ModelMetadata.AdditionalValues["Currency"];
|
||||
var color = ViewData.ModelMetadata.PropertyName == "Color" ? Model : "";
|
||||
}
|
||||
|
||||
@@ -12,13 +13,17 @@
|
||||
</dt>
|
||||
@if (string.IsNullOrEmpty(color))
|
||||
{
|
||||
<dd>
|
||||
@RenderBody()
|
||||
@if (!string.IsNullOrEmpty(units))
|
||||
<dd>
|
||||
@if (!string.IsNullOrEmpty(currency))
|
||||
{
|
||||
<small><em>@units</em></small>
|
||||
<small><em>@currency</em></small>
|
||||
}
|
||||
</dd>
|
||||
@RenderBody()
|
||||
@if (!string.IsNullOrEmpty(units))
|
||||
{
|
||||
<small><em>@units</em></small>
|
||||
}
|
||||
</dd>
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user