09-01-2024

This commit is contained in:
Jonathan Jenne
2024-01-09 11:01:33 +01:00
parent b849a8d87b
commit b7fbb21076
15 changed files with 730 additions and 32 deletions

View File

@@ -1,4 +1,5 @@
@using EnvelopeGenerator.Common;
@using static EnvelopeGenerator.Common.Constants;
@{
ViewData["Title"] = "Home Page";
}
@@ -13,12 +14,20 @@
<div class="container">
<section>
<ul>
@foreach (Envelope envelope in @Model)
{
<li><a href="/EnvelopeKey/@encodeEnvelopeKey(envelope)">@envelope.Title</a></li>
}
</ul>
@foreach (IGrouping<EnvelopeStatus, Envelope> group in ((List<Envelope>)@Model).GroupBy(item => item.Status).OrderBy(item => (int)item.Key))
{
<section>
<h2>@group.Key.ToString()</h2>
<ul>
@foreach (Envelope envelope in @group)
{
<li><a href="/EnvelopeKey/@encodeEnvelopeKey(envelope)">@envelope.Title</a></li>
}
</ul>
<hr />
</section>
}
</section>
</div>