89 lines
1.8 KiB
Plaintext
89 lines
1.8 KiB
Plaintext
@{
|
|
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>
|
|
<a class="btn btn-success" asp-controller="Case" asp-action="Create">Создать запись</a>
|
|
</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> |