48 lines
1.5 KiB
Plaintext
48 lines
1.5 KiB
Plaintext
@using DressAtelierContracts.ViewModels
|
|
@model List<MessageInfoViewModel>
|
|
@{
|
|
ViewData["Title"] = "Mail";
|
|
}
|
|
<div class="text-center">
|
|
<h1 class="display-4">Orders</h1>
|
|
</div>
|
|
<div class="text-center">
|
|
@{
|
|
if (Model == null)
|
|
{
|
|
<h3 class="display-4">Log in</h3>
|
|
return;
|
|
}
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Date
|
|
</th>
|
|
<th>
|
|
Title
|
|
</th>
|
|
<th>
|
|
Text
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.DeliveryDate)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Subject)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Body)
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
</div> |