62 lines
1.6 KiB
Plaintext
62 lines
1.6 KiB
Plaintext
@model IEnumerable<VirtualTask.Models.DatiAziendaTable>
|
|
|
|
@{
|
|
ViewData["Title"] = "Index";
|
|
}
|
|
|
|
<h1>Index</h1>
|
|
|
|
<p>
|
|
<a asp-action="Create">Create New</a>
|
|
</p>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.tecnico)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.ragsoc)
|
|
</th>
|
|
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.logo)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.testo_buono)
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model) {
|
|
<tr>
|
|
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.tecnico)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.ragsoc)
|
|
</td>
|
|
|
|
<td>
|
|
@{
|
|
var base64 = Convert.ToBase64String(item.logo);
|
|
var imgSrc = String.Format("data:image/gif;base64,{0}", base64);
|
|
}
|
|
<img src="@imgSrc" height="80" />
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.testo_buono)
|
|
</td>
|
|
<td>
|
|
@Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
|
|
@Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
|
|
@Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|