yavsc/Yavsc/Views/Command/Index.cshtml

60 lines
1.4 KiB
Plaintext

8 years ago
@model IEnumerable<RdvQuery>
@{
ViewData["Title"] = "Index";
}
<h2>Index</h2>
<table class="table">
<tr>
<th>
@SR["DateCreated"]
</th>
<th>
@SR["EventDate"]
</th>
<th>
@SR["Location"]
</th>
<th>
@SR["Client"]
</th>
<th>
@SR["Performer"]
</th>
<th>
@SR["ValidationDate"]
</th>
<th></th>
</tr>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.DateCreated)
</td>
<td>
@Html.DisplayFor(modelItem => item.EventDate)
</td>
<td>
@Html.DisplayFor(modelItem => item.Location.Address)
</td>
<td>
@Html.DisplayFor(modelItem => item.Client.UserName)
</td>
<td>
@Html.DisplayFor(modelItem => item.PerformerProfile.Performer.UserName)
</td>
<td>
@Html.DisplayFor(modelItem => item.ValidationDate)
</td>
<td>
<a asp-action="Edit" asp-route-id="@item.Id">Edit</a> |
<a asp-action="Details" asp-route-id="@item.Id">Details</a> |
<a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
</td>
</tr>
}
</table>