2023-05-18 23:32:19 +04:00
|
|
|
@{
|
|
|
|
ViewData["Title"] = "Дела";
|
|
|
|
}
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
<h1 class="display-4">Дела</h1>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
@{
|
|
|
|
if (ViewBag.Cases == null)
|
|
|
|
{
|
|
|
|
<h3 class="display-4">Войдите в аккаунт</h3>
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
<div>
|
2023-05-19 02:05:22 +04:00
|
|
|
<a class="btn btn-success" asp-controller="Case" asp-action="Create">Создать запись</a>
|
2023-05-18 23:32:19 +04:00
|
|
|
</div>
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
Номер Дела
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Название
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Истец
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Ответчик
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Примечание
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Дата оформления
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Специализация
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Изменить запись
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Удалить запись
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach (var item in ViewBag.Cases)
|
|
|
|
{
|
|
|
|
<tr class="d-table-row">
|
|
|
|
<td>
|
|
|
|
@item.Id
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@item.Name
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@item.Applicant
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@item.Defendant
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@item.Annotation
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@item.Date.ToString("yyyy-MM-dd")
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@item.Specialization
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a id="update-button-@item.Id" class="btn btn-warning" asp-controller="Case" 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/case/cases.js" asp-append-version="true"></script>
|