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";
|
|
|
|
|
}
|
|
|
|
|
|
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>
|
2019-06-02 01:39:51 +01:00
|
|
|
@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>
|
2019-06-02 01:39:51 +01:00
|
|
|
@item.Resolution.ToString()
|
2019-06-01 22:59:18 +01:00
|
|
|
</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>
|