misc. changes

This commit is contained in:
2024-11-24 23:25:59 +01:00
parent b059038ea8
commit 771cea72ad
11 changed files with 85 additions and 15 deletions

View File

@@ -2,6 +2,7 @@
@{
ViewData["Title"] = "Point";
}
<h1>Point</h1>
<a asp-action="GivPoint" asp-controller="Point" class="btn btn-primary">Giv point</a>
<table class="table table-striped">
<thead>

View File

@@ -0,0 +1,34 @@
@model pointMaster.Controllers.PatruljeInfoModel
<h1>@Model.patrulje.Name</h1>
<p>Total points: @Model.totalPoints</p>
<p>total turnout: @Model.totalTurnout</p>
<table class="table table-striped">
<thead>
<tr>
<th scope="col">Post navn</th>
<th scope="col">Points</th>
<th scope="col">Turnout</th>
</tr>
</thead>
<tbody>
@if (Model.patrulje.Points.Any())
{
@foreach (var point in Model.patrulje.Points)
{
<tr>
<td scope="row">@point.Poster.Name</td>
<td scope="row">@point.Turnout</td>
<td scope="row">@point.Points</td>
</tr>
}
}
else
{
<tr>
<td colspan="3">Ingen point givet</td>
</tr>
}
</tbody>
</table>

View File

@@ -10,6 +10,6 @@
<ul class="list-group">
@foreach (var patrulje in Model.Patruljer)
{
<a asp-action="GivPoint" asp-controller="Point" asp-route-id="@patrulje.Id" class="btn btn-primary mb-2">@patrulje.Name</a>
<a asp-action="GivPoint" asp-controller="Point" asp-route-id="@patrulje.Id" class="list-group-item">@patrulje.Name</a>
}
</ul>

View File

@@ -6,6 +6,6 @@
<ul class="list-group">
@foreach(var item in Model.Poster)
{
<a asp-action="SelectPost" asp-route-id="@item.Id" class="btn btn-primary">@item.Name</a>
<a asp-action="SelectPost" asp-route-id="@item.Id" class="list-group-item">@item.Name</a>
}
</ul>