Сериализация сущностей для отображения в веб-интерфейсе
This commit is contained in:
@@ -5,41 +5,33 @@
|
||||
ViewData["Title"] = "Entity";
|
||||
}
|
||||
|
||||
<h1>Entity</h1>
|
||||
<h1>Entity: @Model.FullEntity.Entity.Name</h1>
|
||||
|
||||
<div>
|
||||
<h4>Class</h4>
|
||||
<hr />
|
||||
<dl class="row">
|
||||
<dt class="col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.Entity.Entity)
|
||||
</dt>
|
||||
<dd class="col-sm-10">
|
||||
@Html.DisplayFor(model => model.Entity.Entity.Description)
|
||||
</dd>
|
||||
@* <dt class="col-sm-2"> *@
|
||||
@* @Html.DisplayNameFor(model => model.Entity.Hp) *@
|
||||
@* </dt> *@
|
||||
@* <dd class="col-sm-10"> *@
|
||||
@* @Html.DisplayFor(model => model.Entity.Hp) *@
|
||||
@* </dd> *@
|
||||
@* <dt class="col-sm-2"> *@
|
||||
@* @Html.DisplayNameFor(model => model.Entity.Spellcasting) *@
|
||||
@* </dt> *@
|
||||
@* <dd class="col-sm-10"> *@
|
||||
@* @Html.DisplayFor(model => model.Entity.Spellcasting) *@
|
||||
@* </dd> *@
|
||||
@* <dt class="col-sm-2"> *@
|
||||
@* @Html.DisplayNameFor(model => model.Entity.Tradition) *@
|
||||
@* </dt> *@
|
||||
@* <dd class="col-sm-10"> *@
|
||||
@* @Html.DisplayFor(model => model.Entity.Tradition) *@
|
||||
@* </dd> *@
|
||||
@* <dt class="col-sm-2"> *@
|
||||
@* @Html.DisplayNameFor(model => model.Entity.AdditionalTrainedSkills) *@
|
||||
@* </dt> *@
|
||||
@* <dd class="col-sm-10"> *@
|
||||
@* @Html.DisplayFor(model => model.Entity.AdditionalTrainedSkills) *@
|
||||
@* </dd> *@
|
||||
</dl>
|
||||
</div>
|
||||
@foreach (var group in Model.SerializationResult.Groups)
|
||||
{
|
||||
<div class="card mb-4">
|
||||
<div class="card-header">
|
||||
<h5>@group.Name</h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<dl class="row">
|
||||
@foreach (var field in group.Fields)
|
||||
{
|
||||
<dt class="col-sm-3">@field.Name</dt>
|
||||
<dd class="col-sm-9">
|
||||
<span class="text-muted">[@field.Type]</span>
|
||||
@if (field.IsImplemented)
|
||||
{
|
||||
@Html.Raw(field.DisplayValue)
|
||||
}
|
||||
else
|
||||
{
|
||||
<span class="badge bg-warning text-dark">НЕ РЕАЛИЗОВАНО:</span>
|
||||
@Html.Raw(field.DisplayValue)
|
||||
}
|
||||
</dd>
|
||||
}
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user