55 lines
852 B
Plaintext
55 lines
852 B
Plaintext
|
@using PizzeriaContracts.ViewModels
|
||
|
|
||
|
@model List<MessageInfoViewModel>
|
||
|
|
||
|
@{
|
||
|
ViewData["Title"] = "Mails";
|
||
|
}
|
||
|
|
||
|
|
||
|
<div class="text-center">
|
||
|
<h1 class="display-4">Заказы</h1>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="text-center">
|
||
|
@{
|
||
|
if (Model == null)
|
||
|
{
|
||
|
<h3 class="display-4">Авторизируйтесь</h3>
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
<table class="table">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>
|
||
|
Дата письма
|
||
|
</th>
|
||
|
<th>
|
||
|
Заголовок
|
||
|
</th>
|
||
|
<th>
|
||
|
Текст
|
||
|
</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
@foreach (var item in Model)
|
||
|
{
|
||
|
<tr>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.DateDelivery)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.Subject)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.Body)
|
||
|
</td>
|
||
|
</tr>
|
||
|
}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
}
|
||
|
</div>
|