FakturyWeb/Pages/Zakaznik/Index.cshtml

85 lines
2.3 KiB
Plaintext

@page
@model FakturyWeb.Pages.Zakaznik.IndexModel
@{
ViewData["Title"] = "Index";
}
<h1>Index</h1>
<p>
<a asp-page="Create">Create New</a>
</p>
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.ZAKAZNIK[0].JMENO)
</th>
<th>
@Html.DisplayNameFor(model => model.ZAKAZNIK[0].PRIJMENI)
</th>
<th>
@Html.DisplayNameFor(model => model.ZAKAZNIK[0].ULICE)
</th>
<th>
@Html.DisplayNameFor(model => model.ZAKAZNIK[0].MESTO)
</th>
<th>
@Html.DisplayNameFor(model => model.ZAKAZNIK[0].PSC)
</th>
<th>
@Html.DisplayNameFor(model => model.ZAKAZNIK[0].IC)
</th>
<th>
@Html.DisplayNameFor(model => model.ZAKAZNIK[0].DIC)
</th>
<th>
@Html.DisplayNameFor(model => model.ZAKAZNIK[0].TELEFON)
</th>
<th>
@Html.DisplayNameFor(model => model.ZAKAZNIK[0].EMAIL)
</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.ZAKAZNIK) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.JMENO)
</td>
<td>
@Html.DisplayFor(modelItem => item.PRIJMENI)
</td>
<td>
@Html.DisplayFor(modelItem => item.ULICE)
</td>
<td>
@Html.DisplayFor(modelItem => item.MESTO)
</td>
<td>
@Html.DisplayFor(modelItem => item.PSC)
</td>
<td>
@Html.DisplayFor(modelItem => item.IC)
</td>
<td>
@Html.DisplayFor(modelItem => item.DIC)
</td>
<td>
@Html.DisplayFor(modelItem => item.TELEFON)
</td>
<td>
@Html.DisplayFor(modelItem => item.EMAIL)
</td>
<td>
<a asp-page="./Edit" asp-route-id="@item.ID">Edit</a> |
<a asp-page="./Details" asp-route-id="@item.ID">Details</a> |
<a asp-page="./Delete" asp-route-id="@item.ID">Delete</a>
</td>
</tr>
}
</tbody>
</table>