2019-06-01 22:59:18 +01:00
|
|
|
@using Cicm.Database.Models
|
|
|
|
|
@model IEnumerable<Cicm.Database.Models.ResolutionsByScreen>
|
|
|
|
|
|
|
|
|
|
@{
|
|
|
|
|
ViewData["Title"] = "Index";
|
|
|
|
|
}
|
|
|
|
|
|
2019-06-02 01:00:03 +01:00
|
|
|
<h1>Resolutions by screen</h1>
|
2019-06-01 22:59:18 +01:00
|
|
|
|
|
|
|
|
<p>
|
2019-06-02 01:00:03 +01:00
|
|
|
<a asp-action="Create"
|
|
|
|
|
class="btn btn-primary">
|
|
|
|
|
Create New
|
|
|
|
|
</a>
|
2019-06-01 22:59:18 +01:00
|
|
|
</p>
|
|
|
|
|
<table class="table">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>
|
|
|
|
|
@Html.DisplayNameFor(model => model.Screen)
|
|
|
|
|
</th>
|
|
|
|
|
<th>
|
|
|
|
|
@Html.DisplayNameFor(model => model.Resolution)
|
|
|
|
|
</th>
|
|
|
|
|
<th></th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
@foreach(ResolutionsByScreen item in Model)
|
|
|
|
|
{
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.DisplayFor(modelItem => item.Screen.Type)
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
@Html.DisplayFor(modelItem => item.Resolution.Id)
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<a asp-action="Details"
|
2019-06-02 01:00:03 +01:00
|
|
|
asp-route-id="@item.Id"
|
|
|
|
|
class="btn btn-primary">
|
2019-06-01 22:59:18 +01:00
|
|
|
Details
|
2019-06-02 01:00:03 +01:00
|
|
|
</a>
|
|
|
|
|
<a asp-action="Edit"
|
|
|
|
|
asp-route-id="@item.Id"
|
|
|
|
|
class="btn btn-secondary">
|
|
|
|
|
Edit
|
|
|
|
|
</a>
|
2019-06-01 22:59:18 +01:00
|
|
|
<a asp-action="Delete"
|
2019-06-02 01:00:03 +01:00
|
|
|
asp-route-id="@item.Id"
|
|
|
|
|
class="btn btn-danger">
|
2019-06-01 22:59:18 +01:00
|
|
|
Delete
|
|
|
|
|
</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|