Annotate GPU fields.

This commit is contained in:
2019-05-18 20:28:51 +01:00
parent c93b42e38e
commit 8bedb56cb7
5 changed files with 38 additions and 23 deletions

View File

@@ -64,7 +64,7 @@
@Html.DisplayNameFor(model => model.Introduced)
</dt>
<dd>
@Html.DisplayFor(model => model.Introduced)
@Html.DisplayFor(model => model.IntroducedView)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Package)

View File

@@ -41,6 +41,12 @@
<h4>GPU</h4>
<hr />
<dl class="dl-horizontal">
<dt>
@Html.DisplayNameFor(model => model.Company)
</dt>
<dd>
@Html.DisplayFor(model => model.Company.Name)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Name)
</dt>
@@ -57,7 +63,7 @@
@Html.DisplayNameFor(model => model.Introduced)
</dt>
<dd>
@Html.DisplayFor(model => model.Introduced)
@Html.DisplayFor(model => model.IntroducedView)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Package)
@@ -89,15 +95,16 @@
<dd>
@Html.DisplayFor(model => model.Transistors)
</dd>
<dt>
@Html.DisplayNameFor(model => model.Company)
</dt>
<dd>
@Html.DisplayFor(model => model.Company.Name)
</dd>
</dl>
</div>
<div>
<a asp-action="Edit" asp-route-id="@Model.Id" class="btn btn-primary">Edit</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>
<a asp-action="Edit"
asp-route-id="@Model.Id"
class="btn btn-primary">
Edit
</a>
<a asp-action="Index"
class="btn btn-secondary">
Back to List
</a>
</div>

View File

@@ -76,7 +76,7 @@
@Html.DisplayFor(modelItem => item.ModelCode)
</td>
<td>
@Html.DisplayFor(modelItem => item.Introduced)
@Html.DisplayFor(modelItem => item.IntroducedView)
</td>
<td>
<a asp-action="Details"