diff --git a/StockManMVC/App_Start/MVCGridConfig.cs b/StockManMVC/App_Start/MVCGridConfig.cs index 4127de9..f49cc66 100644 --- a/StockManMVC/App_Start/MVCGridConfig.cs +++ b/StockManMVC/App_Start/MVCGridConfig.cs @@ -106,13 +106,13 @@ namespace StockManMVC .WithHtmlEncoding(false) .WithValueExpression((i, c) => c.UrlHelper.Action("Duplicate", "Items", new { id = i.ID })) .WithValueTemplate(""); - cols.Add("EditLink").WithColumnName("EditLink") - .WithSorting(false) - .WithVisibility(true, false) - .WithHeaderText("") - .WithHtmlEncoding(false) - .WithValueExpression((i, c) => c.UrlHelper.Action("Edit", "Items", new { id = i.ID, mode = "full" })) - .WithValueTemplate(""); + //cols.Add("EditLink").WithColumnName("EditLink") + // .WithSorting(false) + // .WithVisibility(true, false) + // .WithHeaderText("") + // .WithHtmlEncoding(false) + // .WithValueExpression((i, c) => c.UrlHelper.Action("Edit", "Items", new { id = i.ID, mode = "full" })) + // .WithValueTemplate(""); }) .WithRetrieveDataMethod((context) => { diff --git a/StockManMVC/Views/Items/_Edit.cshtml b/StockManMVC/Views/Items/_Edit.cshtml index e9110b5..10ad187 100644 --- a/StockManMVC/Views/Items/_Edit.cshtml +++ b/StockManMVC/Views/Items/_Edit.cshtml @@ -77,9 +77,9 @@
- @Html.LabelFor(model => model.UM, htmlAttributes: new { @class = "control-label col-md-2 col-lg-4" }) -
- @Html.EditorFor(model => model.UM, new { htmlAttributes = new { @class = "form-control", Value = "nr" } }) + @Html.LabelFor(model => model.UM, htmlAttributes: new { @class = "control-label col-md-2" }) +
+ @Html.EditorFor(model => model.UM, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.UM, "", new { @class = "text-danger" })
diff --git a/StockManMVC/Views/Items/_ItemDetail.cshtml b/StockManMVC/Views/Items/_ItemDetail.cshtml index 83c4359..9fc8096 100644 --- a/StockManMVC/Views/Items/_ItemDetail.cshtml +++ b/StockManMVC/Views/Items/_ItemDetail.cshtml @@ -66,6 +66,13 @@ @Html.DisplayFor(model => model.CurrValue) +
+ @Html.DisplayNameFor(model => model.UM) +
+ +
+ @Html.DisplayFor(model => model.UM) +
diff --git a/StockManMVC/bin/StockManMVC.dll b/StockManMVC/bin/StockManMVC.dll index 51f0490..acd6935 100644 Binary files a/StockManMVC/bin/StockManMVC.dll and b/StockManMVC/bin/StockManMVC.dll differ