This repository has been archived on 2022-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
DevOpsOpenHack/support/tripviewer/web/Views/UserProfile/Index.cshtml

85 lines
2.2 KiB
Plaintext
Raw Normal View History

2022-11-03 20:41:13 +00:00
@model IEnumerable<Simulator.DataObjects.User>
@{
ViewData["Title"] = "DriverProfiles";
}
<h2>Driver Profile</h2>
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.FirstName)
</th>
<th>
@Html.DisplayNameFor(model => model.LastName)
</th>
<th>
@Html.DisplayNameFor(model => model.ProfilePictureUri)
</th>
<th>
@Html.DisplayNameFor(model => model.Rating)
</th>
<th>
@Html.DisplayNameFor(model => model.Ranking)
</th>
<th>
@Html.DisplayNameFor(model => model.TotalDistance)
</th>
<th>
@Html.DisplayNameFor(model => model.TotalTrips)
</th>
<th>
@Html.DisplayNameFor(model => model.HardStops)
</th>
<th>
@Html.DisplayNameFor(model => model.HardAccelerations)
</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.FirstName)
</td>
<td>
@Html.DisplayFor(modelItem => item.LastName)
</td>
<td>
<img src="@Url.Content(item.ProfilePictureUri)" alt="test" height="100" />
</td>
<td>
@Html.DisplayFor(modelItem => item.Rating)
</td>
<td>
@Html.DisplayFor(modelItem => item.Ranking)
</td>
<td>
@Html.DisplayFor(modelItem => item.TotalDistance)
</td>
<td>
@Html.DisplayFor(modelItem => item.TotalTrips)
</td>
<td>
@Html.DisplayFor(modelItem => item.HardStops)
</td>
<td>
@Html.DisplayFor(modelItem => item.HardAccelerations)
</td>
</tr>
}
</tbody>
</table>