nascondo campo ID diventato inutile x locations
This commit is contained in:
@@ -15,13 +15,6 @@
|
||||
<div class="panel-body">
|
||||
<div class="form-horizontal">
|
||||
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
|
||||
@*<div class="form-group">
|
||||
@Html.LabelFor(model => model.ID, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
<div class="col-md-10">
|
||||
@Html.EditorFor(model => model.ID, new { htmlAttributes = new { @class = "form-control" } })
|
||||
@Html.ValidationMessageFor(model => model.ID, "", new { @class = "text-danger" })
|
||||
</div>
|
||||
</div>*@
|
||||
|
||||
<div class="form-group">
|
||||
@Html.LabelFor(model => model.Descr, htmlAttributes: new { @class = "control-label col-md-2" })
|
||||
|
||||
@@ -6,9 +6,6 @@
|
||||
<div class="col-sm-12">
|
||||
<table class="table table-condensed table-responsive table-striped table-hover table-bordered">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.ID)
|
||||
</th>
|
||||
<th>
|
||||
@Html.ActionLink(Html.DisplayNameFor(model => model.Descr).ToString(), "Index", new { LocTypeID = ViewBag.LocTypeID, SearchVal = ViewBag.SearchVal, SortOrd = ViewBag.DescrSortParm, page = 1, pageSize = ViewBag.pageSize })
|
||||
</th>
|
||||
@@ -23,12 +20,9 @@
|
||||
var delStyle = "";
|
||||
var edtStyle = "";
|
||||
if (item.ItemFlux.Count + item.ItemFlux1.Count > 0) { delStyle = "disabled invisible"; }
|
||||
// anche i codici "#QUALCOSA#" NON sono modificabili...
|
||||
// anche i codici con ID "#QUALCOSA" NON sono modificabili...
|
||||
if(item.ID.StartsWith("#")) { delStyle = "disabled invisible"; edtStyle = "disabled invisible"; }
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ID)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Descr)
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user