21 lines
718 B
Plaintext
21 lines
718 B
Plaintext
@using LeafWeb.Core.Utility
|
|
@{
|
|
Layout = null;
|
|
var meta = ViewData.ModelMetadata;
|
|
var lowerPropertyName = meta.PropertyName.ToFirstLower();
|
|
var displayName =
|
|
string.IsNullOrEmpty(meta.DisplayName)
|
|
? meta.PropertyName.SplitCamelCase()
|
|
: meta.DisplayName;
|
|
|
|
// string units = (string)ViewData.ModelMetadata.AdditionalValues.ContainsKey("Units") ? ["Units"];
|
|
}
|
|
|
|
<div class="row pb-lg-3 pb-2 @lowerPropertyName @if (ViewData.Model == null){<text>d-none</text> }">
|
|
<div class="col-sm-3 text-truncate font-weight-bold border-bottom border-right">
|
|
@displayName
|
|
</div>
|
|
<div class="col-sm-9 border-bottom pl-5 pl-sm-2">
|
|
@RenderBody()
|
|
</div>
|
|
</div> |