63 lines
1.7 KiB
Plaintext
63 lines
1.7 KiB
Plaintext
@using CaseAccountingContracts.ViewModels
|
|
|
|
@{
|
|
ViewData["Title"] = "Специализации";
|
|
}
|
|
<div class="text-center">
|
|
<h1 class="display-4">Специализации</h1>
|
|
</div>
|
|
|
|
|
|
<div class="text-center">
|
|
@{
|
|
if (ViewBag.Specializations == null)
|
|
{
|
|
<h3 class="display-4">Войдите в аккаунт</h3>
|
|
return;
|
|
}
|
|
<div>
|
|
<a class="btn btn-secondary" asp-controller="Specializations" asp-action="Create">Добавить специализацию</a>
|
|
</div>
|
|
<div class="d-flex mb-2 gap-1">
|
|
<a href="/Home/Specializations" id="go-button" class="button-primary text-button">
|
|
Перейти
|
|
</a>
|
|
</div>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Название
|
|
</th>
|
|
<th>
|
|
Изменить запись
|
|
</th>
|
|
<th>
|
|
Удалить запись
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in ViewBag.Specializations)
|
|
{
|
|
<tr class="d-table-row">
|
|
<td>
|
|
@item.Name
|
|
</td>
|
|
<td>
|
|
<a id="add-lawyer-button-@item.Id" class="btn btn-secondary" asp-controller="Specializations" asp-action="AddLawyer" asp-route-id="@item.Id">Назначить специализацию для юриста</a>
|
|
</td>
|
|
<td>
|
|
<a id="update-button-@item.Id" class="btn btn-secondary" asp-controller="Specialization" asp-action="Update" asp-route-id="@item.Id">Изменить</a>
|
|
</td>
|
|
<td>
|
|
<a id="remove-button-@item.Id" class="btn btn-secondary remove-btn" data-id="@item.Id">Удалить</a>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
</div>
|
|
|
|
<script src="~/js/Specializations/specializations.js" asp-append-version="true"></script> |