62 lines
1.1 KiB
Plaintext
62 lines
1.1 KiB
Plaintext
|
@using VeterinaryContracts.ViewModels
|
||
|
@model List<PurchaseViewModel>
|
||
|
@{
|
||
|
ViewData["Title"] = "Purchases";
|
||
|
}
|
||
|
<div class="text-center">
|
||
|
<h1 class="display-4">Прививки</h1>
|
||
|
</div>
|
||
|
<div class="text-center">
|
||
|
@{
|
||
|
if (Model == null)
|
||
|
{
|
||
|
<h3 class="display-4">Авторизируйтесь</h3>
|
||
|
return;
|
||
|
}
|
||
|
<p>
|
||
|
<a asp-action="CreatePurchase">Создать прививку</a>
|
||
|
</p>
|
||
|
<table class="table">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>
|
||
|
Номер
|
||
|
</th>
|
||
|
<th>
|
||
|
Название
|
||
|
</th>
|
||
|
<th>
|
||
|
Рекомендация
|
||
|
</th>
|
||
|
<th>
|
||
|
Дата прививки
|
||
|
</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
@foreach (var item in Model)
|
||
|
{
|
||
|
<tr>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem =>
|
||
|
item.Id)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem =>
|
||
|
item.PuchaseName)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem =>
|
||
|
item.DrugName)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem =>
|
||
|
item.DateCreate)
|
||
|
</td>
|
||
|
</tr>
|
||
|
}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
}
|
||
|
</div>
|