71 lines
1.6 KiB
Plaintext
71 lines
1.6 KiB
Plaintext
@{
|
|
ViewData["Title"] = "Слушания";
|
|
}
|
|
|
|
<div class="text-center">
|
|
<h1 class="display-4">Слушания</h1>
|
|
</div>
|
|
|
|
<div class="text-center">
|
|
@{
|
|
if (ViewBag.Hearings == null)
|
|
{
|
|
<h3 class="display-4">Войдите в аккаунт</h3>
|
|
return;
|
|
}
|
|
<div>
|
|
<a class="btn btn-success" asp-controller="Hearing" asp-action="Create">Создать запись</a>
|
|
</div>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Номер
|
|
</th>
|
|
<th>
|
|
Информация
|
|
</th>
|
|
<th>
|
|
Номер Дела
|
|
</th>
|
|
<th>
|
|
Дата слушания
|
|
</th>
|
|
<th>
|
|
Изменить запись
|
|
</th>
|
|
<th>
|
|
Удалить запись
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in ViewBag.Hearings)
|
|
{
|
|
<tr class="d-table-row">
|
|
<td>
|
|
@item.Id
|
|
</td>
|
|
<td>
|
|
@item.Information
|
|
</td>
|
|
<td>
|
|
@item.CaseId
|
|
</td>
|
|
<td>
|
|
@item.Date.ToString("yyyy-MM-dd")
|
|
</td>
|
|
<td>
|
|
<a id="update-button-@item.Id" class="btn btn-warning" asp-controller="Hearing" asp-action="Update" asp-route-id="@item.Id">Изменить</a>
|
|
</td>
|
|
<td>
|
|
<a id="remove-button-@item.Id" class="btn btn-danger remove-btn" data-id="@item.Id">Удалить</a>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
</div>
|
|
|
|
<script src="~/js/hearing/hearings.js" asp-append-version="true"></script> |