From ad93bd3739ee8e5f8da90ff5c5b8bd75f08392e5 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Wed, 1 Mar 2023 09:58:35 +0100 Subject: [PATCH] Fix paginatore tipi locations in vers MVC --- .vs/StockManMVC/config/applicationhost.config | 4 ++-- StockManMVC/Views/Locations/_ListByType.cshtml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.vs/StockManMVC/config/applicationhost.config b/.vs/StockManMVC/config/applicationhost.config index 0152c4d..fd7cce8 100644 --- a/.vs/StockManMVC/config/applicationhost.config +++ b/.vs/StockManMVC/config/applicationhost.config @@ -162,7 +162,7 @@ - + @@ -170,7 +170,7 @@ - + diff --git a/StockManMVC/Views/Locations/_ListByType.cshtml b/StockManMVC/Views/Locations/_ListByType.cshtml index 8c7e7b5..6e3994e 100644 --- a/StockManMVC/Views/Locations/_ListByType.cshtml +++ b/StockManMVC/Views/Locations/_ListByType.cshtml @@ -1,6 +1,7 @@ @model IEnumerable @using X.PagedList.Mvc; @using X.PagedList; +@using X.PagedList.Mvc.Common;
@@ -21,7 +22,7 @@ var edtStyle = ""; if (item.ItemFlux.Count + item.ItemFlux1.Count > 0) { delStyle = "disabled invisible"; } // anche i codici con ID "-QUALCOSA" NON sono modificabili... - if(item.ID.StartsWith("-")) { delStyle = "disabled invisible"; edtStyle = "disabled invisible"; } + if (item.ID.StartsWith("-")) { delStyle = "disabled invisible"; edtStyle = "disabled invisible"; } @Html.DisplayFor(modelItem => item.Descr)