35 lines
1.3 KiB
Plaintext
35 lines
1.3 KiB
Plaintext
|
@using Microsoft.AspNetCore.Mvc.TagHelpers
|
||
|
|
||
|
@model List<BankContracts.ViewModels.CostViewModel>
|
||
|
@{
|
||
|
<h1>@ViewData["Title"]</h1>
|
||
|
}
|
||
|
|
||
|
<div class="text-center">
|
||
|
<a asp-action="Cost">Создать новую статью затрат</a>
|
||
|
<table class="table">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Номер телефона сотрудника</th>
|
||
|
<th>Название</th>
|
||
|
<th>Стоимость</th>
|
||
|
<th>Изменить</th>
|
||
|
<th>Удалить</th>
|
||
|
<th>Привязка</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
@foreach (var cost in Model)
|
||
|
{
|
||
|
<tr>
|
||
|
<td>@Html.DisplayFor(x => cost.PhoneNumber)</td>
|
||
|
<td>@Html.DisplayFor(x => cost.NameOfCost)</td>
|
||
|
<td>@Html.DisplayFor(x => cost.Price)</td>
|
||
|
<td><a asp-action="Cost" asp-route-id="@cost.Id">Изменить</a></td>
|
||
|
<td><a asp-action="RemoveCost" asp-route-id="@cost.Id">Удалить</a></td>
|
||
|
<td><a asp-action="BindPurchase" asp-route-id="@cost.Id">Привязать покупку</a></td>
|
||
|
</tr>
|
||
|
}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|