73 lines
2.1 KiB
Plaintext
73 lines
2.1 KiB
Plaintext
@using TaskTrackerContracts.ViewModels
|
|
|
|
@model List<TaskViewModel>
|
|
|
|
@{
|
|
ViewData["Title"] = "Home Page";
|
|
}
|
|
|
|
<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="Create">Создать заказ</a>
|
|
</p>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Номер
|
|
</th>
|
|
<th>
|
|
Проект
|
|
</th>
|
|
<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.ProjectName)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.DateCreate)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Title)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Description)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Status)
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
</div> |