moving layout and adding login button

This commit is contained in:
Benjamin
2024-11-17 00:43:43 +01:00
parent 48fcb7ce89
commit d354039be5
2 changed files with 26 additions and 22 deletions

View File

@@ -23,6 +23,10 @@ namespace pointMaster.Controllers
{ {
vm.links.Add(new NavUrl("Giv point", "/point/givpoint")); vm.links.Add(new NavUrl("Giv point", "/point/givpoint"));
} }
else
{
vm.links.Add(new NavUrl("Log ind", "/account/signin"));
}
if (HttpContext.User.Claims.FirstOrDefault(x => x.Value == Roles.Editor) != null) if (HttpContext.User.Claims.FirstOrDefault(x => x.Value == Roles.Editor) != null)

View File

@@ -8,6 +8,28 @@
</div> </div>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-sm">
<h3>Point</h3>
<table class="table table-striped">
<thead>
<tr>
<th></th>
<th>Patrulje</th>
<th>Point</th>
</tr>
</thead>
<tbody>
@for (var i = 0; i < Model.Points.Count; i++)
{
<tr>
<td>@(i + 1)</td>
<td>@Model.Points[i].Patrulje.Name</td>
<td>@Model.Points[i].point</td>
</tr>
}
</tbody>
</table>
</div>
<div class="col-sm"> <div class="col-sm">
<h3>Samlet</h3> <h3>Samlet</h3>
<table class="table table-striped"> <table class="table table-striped">
@@ -30,28 +52,6 @@
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="col-sm">
<h3>Point</h3>
<table class="table table-striped">
<thead>
<tr>
<th></th>
<th>Patrulje</th>
<th>Point</th>
</tr>
</thead>
<tbody>
@for (var i = 0; i < Model.Points.Count; i++)
{
<tr>
<td>@(i+1)</td>
<td>@Model.Points[i].Patrulje.Name</td>
<td>@Model.Points[i].point</td>
</tr>
}
</tbody>
</table>
</div>
<div class="col-sm"> <div class="col-sm">
<h3>Turnout</h3> <h3>Turnout</h3>
<table class="table table-striped"> <table class="table table-striped">