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.Deals == null)
|
|
|
|
{
|
|
|
|
<h3 class="display-4">Войдите в аккаунт</h3>
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
<div>
|
2023-05-19 02:05:22 +04:00
|
|
|
<a class="btn btn-success" asp-controller="Deal" asp-action="Create">Создать запись</a>
|
2023-05-18 23:32:19 +04:00
|
|
|
</div>
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
Предмет договора
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Обязанности
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Дата составления
|
|
|
|
</th>
|
2023-05-19 21:07:14 +04:00
|
|
|
<th>
|
|
|
|
Привязать запись
|
|
|
|
</th>
|
2023-05-18 23:32:19 +04:00
|
|
|
<th>
|
|
|
|
Изменить запись
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Удалить запись
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach (var item in ViewBag.Deals)
|
|
|
|
{
|
|
|
|
<tr class="d-table-row">
|
|
|
|
<td>
|
|
|
|
@item.Subject
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@item.Responsibilities
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@item.Date.ToString("yyyy-MM-dd")
|
|
|
|
</td>
|
2023-05-19 21:07:14 +04:00
|
|
|
<td>
|
|
|
|
<a id="update-button-@item.Id" class="btn btn-primary" asp-controller="Deal" asp-action="Bind" asp-route-id="@item.Id">Привязка</a>
|
|
|
|
</td>
|
2023-05-18 23:32:19 +04:00
|
|
|
<td>
|
|
|
|
<a id="update-button-@item.Id" class="btn btn-warning" asp-controller="Deal" 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/deal/deals.js" asp-append-version="true"></script>
|