fix minore: tolto edit item da pagina generale (da fare in itemDetail...)

update su IIS e update ZIP!
This commit is contained in:
Samuele E. Locatelli
2016-10-21 17:48:08 +02:00
parent cd3ba349ea
commit 61049cb38b
4 changed files with 17 additions and 10 deletions
+7 -7
View File
@@ -106,13 +106,13 @@ namespace StockManMVC
.WithHtmlEncoding(false)
.WithValueExpression((i, c) => c.UrlHelper.Action("Duplicate", "Items", new { id = i.ID }))
.WithValueTemplate("<a href='{Value}' title='Duplica Articolo' class='btn btn-xs btn-warning'><i class='glyphicon glyphicon-duplicate' aria-hidden='true'></i></a>");
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("<a href='{Value}' data-toggle=\"tooltip\" title=\"Modifica\" class='btn btn-xs btn-primary'><i class=\"glyphicon glyphicon-edit\"></i></a>");
//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("<a href='{Value}' data-toggle=\"tooltip\" title=\"Modifica\" class='btn btn-xs btn-primary'><i class=\"glyphicon glyphicon-edit\"></i></a>");
})
.WithRetrieveDataMethod((context) =>
{
+3 -3
View File
@@ -77,9 +77,9 @@
</div>
<div class="form-group">
@Html.LabelFor(model => model.UM, htmlAttributes: new { @class = "control-label col-md-2 col-lg-4" })
<div class="col-md-10 col-lg-8">
@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" })
<div class="col-md-10">
@Html.EditorFor(model => model.UM, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.UM, "", new { @class = "text-danger" })
</div>
</div>
@@ -66,6 +66,13 @@
@Html.DisplayFor(model => model.CurrValue)
</dd>
<dt>
@Html.DisplayNameFor(model => model.UM)
</dt>
<dd>
@Html.DisplayFor(model => model.UM)
</dd>
</dl>
</div>
Binary file not shown.