New style partially complete
This commit is contained in:
@@ -7,20 +7,27 @@
|
||||
var editLabel = (bool)ViewData.ModelMetadata.AdditionalValues["EditLabel"];
|
||||
}
|
||||
|
||||
<div class="editor-field-container @lowerPropertyName">
|
||||
<div class="control-group @lowerPropertyName">
|
||||
@if (editLabel) {
|
||||
<div class="editor-label">
|
||||
<div class="control-label">
|
||||
@Html.LabelForModel()
|
||||
</div>
|
||||
}
|
||||
<div class="editor-field">
|
||||
@RenderBody()
|
||||
@if (!string.IsNullOrEmpty(units)) {
|
||||
<span class="units">@units</span>
|
||||
}
|
||||
<div class="controls">
|
||||
@if (!string.IsNullOrEmpty(units))
|
||||
{
|
||||
<div class="input-append">
|
||||
@RenderBody()
|
||||
<span class="add-on">@units</span>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
@RenderBody()
|
||||
}
|
||||
@if (!string.IsNullOrEmpty(formatHint)) {
|
||||
<div class="format-hint">@formatHint</div>
|
||||
<div><small><em>@formatHint</em></small></div>
|
||||
}
|
||||
@Html.ValidationMessage("")
|
||||
<span class="help-inline">@Html.ValidationMessage("")</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user