yavsc/src/Yavsc/Views/Bug/Index.cshtml

54 lines
1.3 KiB
Plaintext

8 years ago
@model IEnumerable<Yavsc.Models.IT.Fixing.Bug>
6 years ago
@inject IStringLocalizer<Yavsc.Models.IT.Fixing.Resources> SRR
8 years ago
@{
7 years ago
ViewData["Title"] = @SR["Index"];
8 years ago
}
7 years ago
<h2>@SR["Index"]</h2>
8 years ago
<p>
7 years ago
<a asp-action="Create">@SR["Create New"]</a>
8 years ago
</p>
6 years ago
8 years ago
<table class="table">
<tr>
<td>
6 years ago
@SR[Html.DisplayNameFor(model => model.Id)]
</td>
<td>
6 years ago
@SR[Html.DisplayNameFor(model => model.Title)]
</td>
8 years ago
<th>
6 years ago
@SR[Html.DisplayNameFor(model => model.FeatureId)]
8 years ago
</th>
<th>
6 years ago
@SR[Html.DisplayNameFor(model => model.Status)]
</th>
8 years ago
<th></th>
</tr>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(model => item.Id)
</td>
<td>
@Html.DisplayFor(model => item.Title)
</td>
8 years ago
<td>
@Html.DisplayFor(modelItem => item.FeatureId)
</td>
<td>
6 years ago
@SRR[typeof(Yavsc.Models.IT.Fixing.BugStatus).GetEnumNames()[(int)item.Status]]
</td>
8 years ago
<td>
6 years ago
<a asp-action="Edit" asp-route-id="@item.Id">@SR["Edit"]</a> |
<a asp-action="Details" asp-route-id="@item.Id">@SR["Details"]</a> |
<a asp-action="Delete" asp-route-id="@item.Id">@SR["Delete"]</a>
8 years ago
</td>
</tr>
}
</table>