generated from egmont11/ASP.Net-Core-MVC-Template
Odstranění zbytečných stránek, přidání administrace pro pozvánky.
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
@model List<StuzkovakWeb.Entities.InviteEntity>
|
||||
@{
|
||||
ViewData["Title"] = "Invite Management";
|
||||
}
|
||||
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h1>Pozvánky</h1>
|
||||
</div>
|
||||
|
||||
<table class="table table-striped table-hover">
|
||||
<thead class="table-dark">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Učitel</th>
|
||||
<th>Potvrzení</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var invite in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>@invite.Id</td>
|
||||
<td>@invite.TeacherName</td>
|
||||
<td>@{
|
||||
if (invite.IsAccepted == true)
|
||||
{
|
||||
<span class="badge bg-success">Ano</span>
|
||||
}
|
||||
else if (invite.IsAccepted == false)
|
||||
{
|
||||
<span class="badge bg-danger">Ne</span>
|
||||
}
|
||||
}</td>
|
||||
<td>
|
||||
<a asp-action="Details" asp-route-id="@invite.Id" class="btn btn-sm btn-outline-primary">Details</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user