Initial
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
@using MileageTraker.Web.Models
|
||||
@using MileageTraker.Web.Utility
|
||||
@model IEnumerable<Log>
|
||||
|
||||
@if (Model.Any())
|
||||
{
|
||||
<h4>Recent Logs for @ViewData["employeeName"]</h4>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
Date
|
||||
</th>
|
||||
<th>
|
||||
City
|
||||
</th>
|
||||
<th>
|
||||
End ODO
|
||||
</th>
|
||||
<th>
|
||||
Type
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@foreach (var log in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
@Html.Encode(log.Date.ToShortDateString())
|
||||
</td>
|
||||
<td>
|
||||
@Html.Encode(log.CityName)
|
||||
</td>
|
||||
<td>
|
||||
@Html.Encode(log.EndOdometer)
|
||||
</td>
|
||||
<td>
|
||||
@Html.Encode(log.LogType.Enum.GetDisplayName())
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
}
|
||||
else
|
||||
{
|
||||
<h4>Mileage history not found for for "@ViewData["employeeName"]"</h4>
|
||||
}
|
||||
Reference in New Issue
Block a user