misc. changes
This commit is contained in:
@@ -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>
|
||||
|
||||
34
pointMaster/Views/Point/PatruljeInfo.cshtml
Normal file
34
pointMaster/Views/Point/PatruljeInfo.cshtml
Normal 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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user