Files
StockMan/StockManMVC/Views/Locations/Index.cshtml
T
Samuele E. Locatelli ca4cd6c15c Rifacimento DB e sync
ora la struttura è + coerente, iniziato emrge dati, chiavi tutte SURROGATE con ID
2016-09-21 16:14:09 +02:00

40 lines
916 B
Plaintext

@model IEnumerable<StockManMVC.Models.Location>
@{
ViewBag.Title = "Index";
}
<h2>Index</h2>
<p>
@Html.ActionLink("Create New", "Create")
</p>
<table class="table table-condensed table-responsive table-striped table-hover">
<tr>
<th>
@Html.DisplayNameFor(model => model.Descr)
</th>
<th>
@Html.DisplayNameFor(model => model.LocType.Descr)
</th>
<th></th>
</tr>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.Descr)
</td>
<td>
@Html.DisplayFor(modelItem => item.LocType.Descr)
</td>
<td>
@Html.ActionLink("Edit", "Edit", new { id=item.ID }) |
@Html.ActionLink("Details", "Details", new { id=item.ID }) |
@Html.ActionLink("Delete", "Delete", new { id=item.ID })
</td>
</tr>
}
</table>