moving layout and adding login button
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -8,28 +8,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm">
|
|
||||||
<h3>Samlet</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.Samlet.Count; i++)
|
|
||||||
{
|
|
||||||
<tr>
|
|
||||||
<td>@(i+1)</td>
|
|
||||||
<td>@Model.Samlet[i].Patrulje.Name</td>
|
|
||||||
<td>@Model.Samlet[i].point</td>
|
|
||||||
</tr>
|
|
||||||
}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm">
|
<div class="col-sm">
|
||||||
<h3>Point</h3>
|
<h3>Point</h3>
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
@@ -52,6 +30,28 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-sm">
|
||||||
|
<h3>Samlet</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.Samlet.Count; i++)
|
||||||
|
{
|
||||||
|
<tr>
|
||||||
|
<td>@(i+1)</td>
|
||||||
|
<td>@Model.Samlet[i].Patrulje.Name</td>
|
||||||
|
<td>@Model.Samlet[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">
|
||||||
|
|||||||
Reference in New Issue
Block a user