Formatting for new users
This commit is contained in:
@@ -10,9 +10,24 @@
|
||||
{
|
||||
groupClass = string.Concat(groupClass, " ", ViewBag.groupClass);
|
||||
}
|
||||
|
||||
var labelText = string.Empty;
|
||||
|
||||
if (ViewBag.labelText != null)
|
||||
{
|
||||
labelText = ViewBag.labelText;
|
||||
}
|
||||
}
|
||||
<div class="@groupClass">
|
||||
@Html.LabelForModel()
|
||||
@if (!string.IsNullOrEmpty(labelText))
|
||||
{
|
||||
@Html.LabelForModel(labelText)
|
||||
}
|
||||
else
|
||||
{
|
||||
@Html.LabelForModel()
|
||||
}
|
||||
|
||||
@RenderBody()
|
||||
@Html.ValidationMessage(string.Empty, new { @class = "text-danger"})
|
||||
</div>
|
||||
@Html.ValidationMessage(string.Empty, new { @class = "text-danger" })
|
||||
</div>
|
||||
Reference in New Issue
Block a user