38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
@page "{type}/{slug}"
|
|
@model Pf2e.Web.Pages.EntityModel
|
|
|
|
@{
|
|
ViewData["Title"] = "Entity";
|
|
}
|
|
|
|
<h1>Entity: @Model.FullEntity.Entity.Name</h1>
|
|
|
|
@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>
|
|
}
|