Files
mapo-core/MP.INVE/Pages/Session.razor
T
2022-11-16 18:09:44 +01:00

82 lines
2.8 KiB
Plaintext

@page "/Session"
<div class="card">
<div class="card-header">
<h3>Sessione</h3>
</div>
<div class="card-body">
<table class="table">
<thead>
<tr>
<th scope="col">Id</th>
<th scope="col">Description</th>
<th scope="col">Operatore</th>
<th scope="col">Data inizio</th>
<th scope="col">Data fine</th>
<th scope="col">Trasferita</th>
</tr>
</thead>
<tbody>
@if (elencoSessioni != null)
{
@foreach (var item in elencoSessioni)
{
<tr>
<td>
@item.InveSessID
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal" @onclick="()=> getCurrSess(item.InveSessID)">
APRI QR
</button>
</td>
<td>
@item.Description
</td>
<td>
@item.UserCrea
</td>
<td>
@item.DtStart
</td>
<td>
@item.DtEnd
</td>
<td>
@item.Transferred
</td>
</tr>
}
}
</tbody>
</table>
</div>
<div class="card-footer py-1">
<DataPager />
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="card-body text-center">
<div class="img-fluid" id="qrCodeImg_101"></div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>