VirtualTask/Views/Registrazioni/Index.cshtml

233 lines
8.9 KiB
Plaintext

@using X.PagedList.Mvc.Core;
@using X.PagedList.Web.Common;
@using X.PagedList;
@model IPagedList<VirtualTask.Models.Registrazione>
@{
ViewData["Title"] = "Registrazione";
Layout = "~/Views/Shared/_LayoutAreaRiservata.cshtml";
}
<div class="agy-project-wrapper agy-project-page-wrapper">
<div class="container">
<div class="row">
<p>
<a asp-action="Create" class="info-data"><img src="~/assets/images/icons8-nuovo-50.png" alt="Crea un nuovo elemento" /></a>
</p>
<table class="table">
<thead>
<tr>
<th>ID</th>
<th>CLIENTE</th>
@* <th>COGNOME</th> *@
<th>TEL.</th>
<th>CELL.</th>
<th>EMAIL</th>
<th hidden>EMAIL CONFERMA</th>
<th>AZIENDA</th>
<th>USERNAME</th>
<th>PASSWD</th>
<th hidden>CITTA'</th>
<th hidden>PROVINCIA</th>
<th hidden>NAZIONE</th>
<th>ATT</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.id)
</td>
<td>
@Html.DisplayFor(modelItem => item.nome) @Html.DisplayFor(modelItem => item.cognome)
</td>
@* <td>
@Html.DisplayFor(modelItem => item.cognome)
</td> *@
<td>
@Html.DisplayFor(modelItem => item.telefono)
</td>
<td>
@Html.DisplayFor(modelItem => item.cellulare)
</td>
<td>
@Html.DisplayFor(modelItem => item.email)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.emailConf)
</td>
<td>
@Html.DisplayFor(modelItem => item.azienda)
</td>
<td>
@Html.DisplayFor(modelItem => item.username)
</td>
<td>
@Html.DisplayFor(modelItem => item.passwd)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.citta)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.provincia)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.nazione)
</td>
<td>
@Html.DisplayFor(modelItem => item.attivato)
</td>
<td>
<a href="@Url.Action("Edit", "Registrazioni", new { id=item.id })" title="Modifica" class="links">
<img alt="Modifica" src="@Url.Content("~/assets/images/icons8-modificare-64.png")" style="width:30px;height:30px;">
</a>
<a href="@Url.Action("Details", "Registrazioni", new { id=item.id })" title="Dettaglio" class="links">
<img alt="Dettaglio" src="@Url.Content("~/assets/images/icons8-visualizza-file-64.png")" style="width:30px;height:30px;">
</a>
<a href="@Url.Action("Delete", "Registrazioni", new { id=item.id })" title="Elimina" class="links">
<img alt="Elimina" src="@Url.Content("~/assets/images/icons8-elimina-50.png")" style="width:30px;height:30px;">
</a>
<a href="@Url.Action("Attiva", "Registrazioni", new { id=item.id })" title="Attiva utente" class="links">
<img alt="Attiva" src="@Url.Content("~/assets/images/icons8-pulsante-di-spegnimento-50.png")" style="width:30px;height:30px;">
</a>
<a href="@Url.Action("Disattiva", "Registrazioni", new { id=item.id })" title="Disattiva utente" class="links">
<img alt="Disattiva" src="@Url.Content("~/assets/images/icons8-rimuovere-l'utente-uomo-50.png")" style="width:30px;height:30px;">
</a>
</td>
</tr>
}
</tbody>
</table>
</div>
</div>
</div>
@* <h1>Index</h1>
<p>
<a asp-action="Create">Nuovo</a>
</p>
<table class="table">
<thead>
<tr>
<th> *@
@* @Html.DisplayNameFor(model => model.id) *@
@* ID
</th>
<th> *@
@* @Html.DisplayNameFor(model => model.nome) *@
@* NOME
</th>
<th> *@
@* @Html.DisplayNameFor(model => model.cognome) *@
@* COGNOME
</th>
<th> *@
@* @Html.DisplayNameFor(model => model.telefono) *@
@* TELEFONO
</th>
<th> *@
@* @Html.DisplayNameFor(model => model.cellulare) *@
@* CELLULARE
</th>
<th> *@
@* @Html.DisplayNameFor(model => model.email) *@
@* EMAIL
</th>
<th> *@
@* @Html.DisplayNameFor(model => model.emailConf) *@
@* EMAIL CONFERMA
</th>
<th> *@
@* @Html.DisplayNameFor(model => model.azienda) *@
@* AZIENDA
</th>
<th> *@
@* @Html.DisplayNameFor(model => model.username) *@
@* USERNAME
</th>
<th> *@
@* @Html.DisplayNameFor(model => model.passwd) *@
@* PASSWORD
</th>
<th> *@
@* @Html.DisplayNameFor(model => model.citta) *@
@* CITTA'
</th>
<th> *@
@* @Html.DisplayNameFor(model => model.provincia) *@
@* PROVINCIA
</th>
<th> *@
@* @Html.DisplayNameFor(model => model.nazione) *@
@* NAZIONE
</th>
<th> *@
@* @Html.DisplayNameFor(model => model.attivato) *@
@* ATTIVATO
</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.id)
</td>
<td>
@Html.DisplayFor(modelItem => item.nome)
</td>
<td>
@Html.DisplayFor(modelItem => item.cognome)
</td>
<td>
@Html.DisplayFor(modelItem => item.telefono)
</td>
<td>
@Html.DisplayFor(modelItem => item.cellulare)
</td>
<td>
@Html.DisplayFor(modelItem => item.email)
</td>
<td>
@Html.DisplayFor(modelItem => item.emailConf)
</td>
<td>
@Html.DisplayFor(modelItem => item.azienda)
</td>
<td>
@Html.DisplayFor(modelItem => item.username)
</td>
<td>
@Html.DisplayFor(modelItem => item.passwd)
</td>
<td>
@Html.DisplayFor(modelItem => item.citta)
</td>
<td>
@Html.DisplayFor(modelItem => item.provincia)
</td>
<td>
@Html.DisplayFor(modelItem => item.nazione)
</td>
<td>
@Html.DisplayFor(modelItem => item.attivato)
</td>
<td>
@Html.ActionLink("Modifica", "Edit", new { id=item.id }) |
@Html.ActionLink("Dettaglio", "Details", new { id=item.id }) |
@Html.ActionLink("Elimina", "Delete", new { id=item.id })
</td>
</tr>
}
</tbody>
</table> *@