2023-05-18 23:42:48 +04:00
|
|
|
@using CaseAccountingContracts.ViewModels
|
|
|
|
|
|
|
|
@{
|
|
|
|
ViewData["Title"] = "Юристы";
|
|
|
|
}
|
|
|
|
<div class="text-center">
|
|
|
|
<h1 class="display-4">Юристы</h1>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
@{
|
|
|
|
if (ViewBag.Lawyers == null)
|
|
|
|
{
|
|
|
|
<h3 class="display-4">Войдите в аккаунт</h3>
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
<div>
|
2023-05-19 14:53:49 +04:00
|
|
|
<a class="btn btn-secondary" asp-controller="Lawyers" asp-action="Create">Добавить юриста</a>
|
2023-05-18 23:42:48 +04:00
|
|
|
</div>
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
Имя Фамилия Отчество
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Опыт работы
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Название специализации
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Изменить запись
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Удалить запись
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach (var item in ViewBag.Lawyers)
|
|
|
|
{
|
|
|
|
<tr class="d-table-row">
|
|
|
|
<td>
|
|
|
|
@item.Name @item.Surname @item.Patronymic
|
|
|
|
</td>
|
|
|
|
<td>
|
2023-05-19 14:53:49 +04:00
|
|
|
@item.Experience
|
2023-05-18 23:42:48 +04:00
|
|
|
</td>
|
|
|
|
<td>
|
2023-05-19 20:02:17 +04:00
|
|
|
@item.Specialization
|
2023-05-18 23:42:48 +04:00
|
|
|
</td>
|
2023-05-19 21:27:33 +04:00
|
|
|
<td>
|
|
|
|
<a id="update-button-@item.Id" class="btn btn-secondary" asp-controller="Lawyers" asp-action="Bind" asp-route-id="@item.Id">Привязка</a>
|
|
|
|
</td>
|
2023-05-18 23:42:48 +04:00
|
|
|
<td>
|
2023-05-19 20:02:17 +04:00
|
|
|
<a id="update-button-@item.Id" class="btn btn-secondary" asp-controller="Lawyers" asp-action="Update" asp-route-id="@item.Id">Изменить</a>
|
2023-05-18 23:42:48 +04:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<a id="remove-button-@item.Id" class="btn btn-secondary remove-btn" data-id="@item.Id">Удалить</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
|
2023-05-19 14:53:49 +04:00
|
|
|
<script src="~/js/Lawyers/lawyers.js" asp-append-version="true"></script>
|