09-01-2024
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user