Sort memories by machine in admin page.

This commit is contained in:
2019-05-18 22:03:59 +01:00
parent b916bcedfa
commit b8614aca51
8 changed files with 80 additions and 44 deletions

View File

@@ -48,20 +48,20 @@
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.Type)
@Html.DisplayNameFor(model => model.Machine)
</th>
<th>
@Html.DisplayNameFor(model => model.Usage)
</th>
<th>
@Html.DisplayNameFor(model => model.Type)
</th>
<th>
@Html.DisplayNameFor(model => model.Size)
</th>
<th>
@Html.DisplayNameFor(model => model.Speed)
</th>
<th>
@Html.DisplayNameFor(model => model.Machine)
</th>
<th></th>
</tr>
</thead>
@@ -70,20 +70,20 @@
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.Type)
@Html.DisplayFor(modelItem => item.Machine.Name)
</td>
<td>
@Html.DisplayFor(modelItem => item.Usage)
</td>
<td>
@Html.DisplayFor(modelItem => item.Type)
</td>
<td>
@Html.DisplayFor(modelItem => item.Size)
</td>
<td>
@Html.DisplayFor(modelItem => item.Speed)
</td>
<td>
@Html.DisplayFor(modelItem => item.Machine.Name)
</td>
<td>
<a asp-action="Details"
asp-route-id="@item.Id"