54 lines
861 B
Plaintext
Raw Normal View History

2024-05-05 00:28:40 +04:00
@using AbstractLawFirmContracts.ViewModels
@model List<MessageInfoViewModel>
2024-05-05 03:17:38 +04:00
2024-05-05 00:28:40 +04:00
@{
ViewData["Title"] = "Mails";
}
2024-05-05 03:17:38 +04:00
2024-05-05 00:28:40 +04:00
<div class="text-center">
2024-05-05 03:17:38 +04:00
<h1 class="display-4">Письма</h1>
2024-05-05 00:28:40 +04:00
</div>
2024-05-05 03:17:38 +04:00
2024-05-05 00:28:40 +04:00
<div class="text-center">
@{
if (Model == null)
{
2024-05-05 03:17:38 +04:00
<h3 class="display-4">Login bobr!</h3>
2024-05-05 00:28:40 +04:00
return;
}
2024-05-05 03:17:38 +04:00
<table class="table">
<thead>
<tr>
<th>
Дата
</th>
<th>
Заголовок
</th>
<th>
Текст
</th>
</tr>
</thead>
<tbody>
2024-05-05 00:28:40 +04:00
@foreach (var item in Model)
{
2024-05-05 03:17:38 +04:00
<tr>
<td>
@Html.DisplayFor(modelItem => item.DateDelivery)
</td>
<td>
@Html.DisplayFor(modelItem => item.Subject)
</td>
<td>
@Html.DisplayFor(modelItem => item.Body)
</td>
</tr>
2024-05-05 00:28:40 +04:00
}
2024-05-05 03:17:38 +04:00
</tbody>
</table>
2024-05-05 00:28:40 +04:00
}
</div>