Coursach/Course/ImplementerApp/Views/Home/DetailTimeReport.cshtml

51 lines
1.3 KiB
Plaintext
Raw Normal View History

@using Contracts.ViewModels
@model List<DetailTimeReport>
@{
ViewData["Title"] = "Details on Time Reports";
}
<div class="text-center">
<h1 class="display-4">Список деталей в диапазоне времени</h1>
</div>
<form asp-controller="Report" method="post">
<button type="submit" class="btn btn-primary">Отправить отчет на почту</button>
</form>
<table class="table">
<thead>
<tr>
<th>Деталь</th>
2024-04-30 20:24:53 +04:00
<th>Изделие</th>
<th>Производства</th>
</tr>
</thead>
<tbody>
@foreach (var detail in Model)
{
<tr>
<td>@detail.DetailName</td>
<td>
<ul>
2024-04-30 20:24:53 +04:00
@foreach (var product in detail.Products)
{
2024-04-30 20:24:53 +04:00
<li>@product</li>
}
</ul>
</td>
<td>
<ul>
@foreach (var production in detail.Productions)
{
<li>@production</li>
}
</ul>
</td>
</tr>
}
</tbody>
</table>