186 lines
7.1 KiB
Plaintext
186 lines
7.1 KiB
Plaintext
@model IPagedList<VirtualTask.Models.AziendaRif>
|
|
@using X.PagedList;
|
|
@using X.PagedList.Mvc.Core;
|
|
@using X.PagedList.Web.Common;
|
|
|
|
@{
|
|
ViewData["Title"] = "Dati Azienda";
|
|
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>
|
|
|
|
@using (Html.BeginForm())
|
|
{
|
|
|
|
<div>
|
|
<div style="float:left;width:40%;padding:0 20px;">@Html.TextBox("SearchString", null, new { placeholder = "Cerca per tecnico", @class = "agy-form-field require" })</div>
|
|
<div style="float:left;width:2%;"> </div>
|
|
<div style="float:left;width:57%;"><input type="submit" value="Cerca" class="agy-btn submitForm" /></div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Azienda</th>
|
|
<th>Codice tecnico</th>
|
|
<th>Azienda riferimento</th>
|
|
<th>Azienda collegata</th>
|
|
<th>Url logo</th>
|
|
<th>Testo rapportino</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.piazihoc)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.picodtec)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.pirifazi)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.pinomede)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.pilogurl)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.pitextin)
|
|
</td>
|
|
<td>
|
|
<a href="@Url.Action("Edit", "AziendaRif", new { id=item.picodtec })" 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", "AziendaRif", new { id=item.picodtec })" 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", "AziendaRif", new { id=item.picodtec })" title="Elimina" class="links">
|
|
<img alt="Elimina" src="@Url.Content("~/assets/images/icons8-elimina-50.png")" style="width:30px;height:30px;">
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
<br />
|
|
<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>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@*
|
|
<h1>Dati azienda</h1>
|
|
|
|
@using (Html.BeginForm())
|
|
{
|
|
<p>
|
|
Cerca per tecnico: @Html.TextBox("SearchString")
|
|
<input type="submit" value="Cerca" />
|
|
</p>
|
|
}
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th> *@
|
|
@*@Html.DisplayNameFor(model => model.piazihoc)*@
|
|
@* Azienda
|
|
</th>
|
|
<th> *@
|
|
@*@Html.DisplayNameFor(model => model.picodtec)*@
|
|
@* Codice tecnico
|
|
</th>
|
|
<th> *@
|
|
@*@Html.DisplayNameFor(model => model.pirifazi)*@
|
|
@* Azienda riferimento
|
|
</th>
|
|
<th> *@
|
|
@*@Html.DisplayNameFor(model => model.pinomede)*@
|
|
@* Azienda collegata
|
|
</th>
|
|
<th> *@
|
|
@*@Html.DisplayNameFor(model => model.pilogurl)*@
|
|
@* Url logo
|
|
</th>
|
|
<th> *@
|
|
@*@Html.DisplayNameFor(model => model.pitextin)*@
|
|
@* Testo rapportino
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model) {
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.piazihoc)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.picodtec)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.pirifazi)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.pinomede)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.pilogurl)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.pitextin)
|
|
</td>
|
|
<td>
|
|
@Html.ActionLink("Modifica", "Edit", new { id=item.picodtec }) |
|
|
@Html.ActionLink("Dettaglio", "Details", new { id=item.picodtec }) |
|
|
@Html.ActionLink("Elimina", "Delete", new { id=item.picodtec })
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
<br />
|
|
<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> *@
|