131 lines
3.9 KiB
Plaintext
131 lines
3.9 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>Tecnici</h1>
|
|
|
|
<p>
|
|
<a asp-action="Create">Crea nuovo tecnico</a>
|
|
</p>
|
|
@using (Html.BeginForm())
|
|
{
|
|
<p>
|
|
Find by Descrizione: @Html.TextBox("SearchString")
|
|
<input type="submit" value="Cerca" />
|
|
</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)*@
|
|
@Html.HiddenFor(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("Modifica", "Edit", new { id=item.tccodice }) |
|
|
@Html.ActionLink("Dettaglio", "Details", new { id=item.tccodice }) |
|
|
@Html.ActionLink("Elimina", "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 = "Successiva",
|
|
LinkToPreviousPageFormat = "Precedente",
|
|
MaximumPageNumbersToDisplay = 5,
|
|
DisplayLinkToPreviousPage = PagedListDisplayMode.Always,
|
|
DisplayLinkToNextPage = PagedListDisplayMode.Always
|
|
|
|
})
|
|
</nav>
|