67 lines
1.4 KiB
Plaintext
67 lines
1.4 KiB
Plaintext
@using Core.Entities
|
|
@using Core.Utility
|
|
@model EventDefinition[]
|
|
@{
|
|
ViewData["Title"] = "Events Page";
|
|
}
|
|
<div>
|
|
@foreach (var evt in Model.OrderBy(e => e.Name))
|
|
{
|
|
<div class="container nobrk">
|
|
@if (evt.RegionalEvent)
|
|
{
|
|
<div class="row">
|
|
<div class="col">
|
|
<i>Regional EventDefinition</i>
|
|
</div>
|
|
</div>
|
|
}
|
|
<div div class="row">
|
|
<div class="col-4">
|
|
<h5>@evt.Name</h5>
|
|
</div>
|
|
<div class="col-2">
|
|
@if (evt.EventFormat is EventFormat.Team)
|
|
{
|
|
<html><strong>@evt.EventFormat</strong><br/>Size: <strong>@evt.TeamSize</strong></html>
|
|
}
|
|
else
|
|
{
|
|
<html>
|
|
<strong>@evt.EventFormat</strong>
|
|
</html>
|
|
}
|
|
|
|
</div>
|
|
<div class="col">
|
|
Eligibility: @evt.Eligibility
|
|
</div>
|
|
<div class="col-1">
|
|
@Html.Partial("EffortStarsPartial", evt.LevelOfEffort)
|
|
</div>
|
|
<div class="col-2">
|
|
@evt.SemifinalistActivity
|
|
</div>
|
|
</div>
|
|
<div div class="row mt-3">
|
|
<div class="col">@evt.Description</div></div>
|
|
@if (!string.IsNullOrEmpty(evt.Theme))
|
|
{
|
|
<div div class="row mt-2">
|
|
<div class="col-3 text-center"><i>Theme for 2024-25:</i></div>
|
|
<div class="col">@evt.Theme</div>
|
|
</div>
|
|
}
|
|
|
|
@if (!string.IsNullOrEmpty(evt.Documentation))
|
|
{
|
|
<div div class="row mt-2">
|
|
<div class="col-3 text-center"><i>Materials:</i></div>
|
|
<div class="col">@evt.Documentation</div>
|
|
</div>
|
|
}
|
|
<hr/>
|
|
</div>
|
|
}
|
|
</div>
|