Fix display fields for USB vendors.

This commit is contained in:
2019-11-17 22:34:21 +00:00
parent 2c6dd08004
commit 1e5f65104b
2 changed files with 6 additions and 18 deletions

View File

@@ -37,12 +37,6 @@
<h4>UsbVendor</h4>
<hr />
<dl class="row">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.VendorId)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.VendorId)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Vendor)
</dt>
@@ -50,16 +44,10 @@
@Html.DisplayFor(model => model.Vendor)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.AddedWhen)
@Html.DisplayNameFor(model => model.VendorId)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.AddedWhen)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.ModifiedWhen)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.ModifiedWhen)
@Html.DisplayFor(model => model.VendorId)
</dd>
</dl>
</div>

View File

@@ -37,10 +37,10 @@
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.VendorId)
@Html.DisplayNameFor(model => model.Vendor)
</th>
<th>
@Html.DisplayNameFor(model => model.Vendor)
@Html.DisplayNameFor(model => model.VendorId)
</th>
<th></th>
</tr>
@@ -50,10 +50,10 @@
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.VendorId)
@Html.DisplayFor(modelItem => item.Vendor)
</td>
<td>
@Html.DisplayFor(modelItem => item.Vendor)
@Html.DisplayFor(modelItem => item.VendorId)
</td>
<td>
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-primary">Details</a>