VirtualTask/Views/Tecnici/Index.cshtml
2023-09-27 09:28:06 +02:00

130 lines
3.8 KiB
Plaintext

@* @model IEnumerable<VirtualTask.Models.Tecnici> *@
@model IPagedList<VirtualTask.Models.Tecnici>
@using X.PagedList;
@using X.PagedList.Mvc.Core;
@using X.PagedList.Web.Common;
<link href="~/Content/PagedList.css" rel="stylesheet" type="text/css" />
@{
ViewData["Title"] = "Index";
}
<h1>Index</h1>
<p>
<a asp-action="Create">Create New</a>
</p>
@using (Html.BeginForm())
{
<p>
Find by name: @Html.TextBox("SearchString")
<input type="submit" value="Search" />
</p>
}
<table class="table">
<thead>
<tr>
<th>
@* @Html.DisplayNameFor(model => model.tccodazi) *@
AZIENDA
</th>
<th>
@* @Html.DisplayNameFor(model => model.tccodice) *@
CODICE
</th>
<th>
@* @Html.DisplayNameFor(model => model.tcdescri) *@
DESCRIZIONE
</th>
<th>
@* @Html.DisplayNameFor(model => model.tctelef1) *@
TEL.
</th>
<th>
@* @Html.DisplayNameFor(model => model.tcuser) *@
UTENTE
</th>
<th>
@* @Html.DisplayNameFor(model => model.tcpwd) *@
PASSWORD
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.tccoor) *@
COSTO ORDINARIO
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.tccono) *@
COSTO NOTTURNO
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.tccost) *@
COSTO STRAORDINARIO
</th>
<th hidden>
@* @Html.DisplayNameFor(model => model.tccofe) *@
COSTO FESTIVO
</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.tccodazi)
</td>
<td>
@Html.DisplayFor(modelItem => item.tccodice)
</td>
<td>
@Html.DisplayFor(modelItem => item.tcdescri)
</td>
<td>
@Html.DisplayFor(modelItem => item.tctelef1)
</td>
<td>
@Html.DisplayFor(modelItem => item.tcuser)
</td>
<td>
@Html.DisplayFor(modelItem => item.tcpwd)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.tccoor)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.tccono)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.tccost)
</td>
<td hidden>
@Html.DisplayFor(modelItem => item.tccofe)
</td>
<td>
@Html.ActionLink("Edit", "Edit", new { id=item.tccodice }) |
@Html.ActionLink("Details", "Details", new { id=item.tccodice }) |
@Html.ActionLink("Delete", "Delete", new { id=item.tccodice })
</td>
</tr>
}
</tbody>
</table>
<nav>
@Html.PagedListPager(Model, page => Url.Action("index", new { page = page, searchString=@ViewData["CurrentFilter"] }), new PagedListRenderOptions()
{
ActiveLiElementClass = "active",
PageClasses = new[]{ "page-link"},
LiElementClasses=new[] { "page-item" },
UlElementClasses = new[] { "pagination","justify-content-center", "mt-3" },
LinkToNextPageFormat = "Next",
LinkToPreviousPageFormat = "Previous",
MaximumPageNumbersToDisplay = 5,
DisplayLinkToPreviousPage = PagedListDisplayMode.Always,
DisplayLinkToNextPage = PagedListDisplayMode.Always
})
</nav>