Move Web project to Web-Original
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
@model System.Tuple<Core.Entities.Team[],Core.Entities.Student[]>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Team Grid";
|
||||
}
|
||||
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr> <th></th>
|
||||
@foreach (var team in Model.Item1)
|
||||
{
|
||||
if (team.Name == team.Event.Name)
|
||||
{
|
||||
<td style="writing-mode: vertical-rl;text-orientation:sideways">
|
||||
@team.Event.ShortName
|
||||
</td>
|
||||
}
|
||||
else
|
||||
{
|
||||
<td style="writing-mode: vertical-rl;text-orientation:sideways">
|
||||
@team.Name
|
||||
</td>
|
||||
}
|
||||
}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var student in Model.Item2.OrderBy(s => s.FirstName))
|
||||
{
|
||||
<tr>
|
||||
<td>@student.FirstName</td>
|
||||
@foreach (var team in Model.Item1)
|
||||
{
|
||||
@if (team.Students.Contains(student))
|
||||
{
|
||||
<td><strong> X</strong></td>
|
||||
}
|
||||
else
|
||||
{
|
||||
<td></td>
|
||||
}
|
||||
}
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user