Files
marechai/cicm_web/Areas/Admin/Views/ResolutionsByScreen/Index.cshtml

60 lines
1.5 KiB
Plaintext
Raw Normal View History

2020-02-10 02:10:18 +00:00
@using Marechai.Database.Models
@model IEnumerable<Marechai.Database.Models.ResolutionsByScreen>
2019-06-01 22:59:18 +01:00
@{
ViewData["Title"] = "Index";
}
<h1>Resolutions by screen</h1>
2019-06-01 22:59:18 +01:00
<p>
<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>
@if(item.Screen.NativeResolution != null) { @($"{item.Screen.Diagonal}\" {item.Screen.Type} with {item.Screen.NativeResolution}") }
else
{ @($"{item.Screen.Diagonal}\" {item.Screen.Type}") }
2019-06-01 22:59:18 +01:00
</td>
<td>
@item.Resolution.ToString()
2019-06-01 22:59:18 +01:00
</td>
<td>
<a asp-action="Details"
asp-route-id="@item.Id"
class="btn btn-primary">
2019-06-01 22:59:18 +01:00
Details
</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"
asp-route-id="@item.Id"
class="btn btn-danger">
2019-06-01 22:59:18 +01:00
Delete
</a>
</td>
</tr>
}
</tbody>
</table>