95 lines
2.3 KiB
Plaintext
95 lines
2.3 KiB
Plaintext
@model IEnumerable<MileageTraker.Web.Models.Vehicle>
|
|
|
|
@{
|
|
ViewBag.Title = "Vehicles";
|
|
}
|
|
|
|
@section Styles {
|
|
<link href="@Url.Content("~/Content/VehicleColors.css")" rel="stylesheet" type="text/css" />
|
|
}
|
|
|
|
<h2>@ViewBag.Title</h2>
|
|
|
|
<p>
|
|
@Html.ActionLink("Add another vehicle", "Create", null, new{@class="ui-button"})
|
|
@Html.ActionLink("Export", "Export", null, new { @class = "ui-button" })
|
|
</p>
|
|
<table>
|
|
<tr>
|
|
<th>
|
|
Key
|
|
</th>
|
|
<th>
|
|
EthraId
|
|
</th>
|
|
<th>
|
|
Model Yr
|
|
</th>
|
|
<th>
|
|
Make
|
|
</th>
|
|
<th>
|
|
Model
|
|
</th>
|
|
<th>
|
|
Type
|
|
</th>
|
|
<th>
|
|
TagNumber
|
|
</th>
|
|
<th>
|
|
Prog
|
|
</th>
|
|
<th>
|
|
Assigned
|
|
</th>
|
|
<th>
|
|
ODO
|
|
</th>
|
|
<th></th><th></th><th></th>
|
|
</tr>
|
|
|
|
@foreach (var item in Model) {
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayTextFor(m => item.Key)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayTextFor(m => item.VehicleId)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayTextFor(m => item.ModelYear)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayTextFor(m => item.Make)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayTextFor(m => item.CarModel)
|
|
</td>
|
|
<td class="@item.Color">
|
|
@Html.DisplayTextFor(m => item.Type)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayTextFor(m => item.TagNumber)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayTextFor(m => item.Prog)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayTextFor(m => item.Assigned) @if(!string.IsNullOrEmpty(item.Notes)) {
|
|
<span class="format-hint">@Html.DisplayTextFor(m => item.Notes)</span>
|
|
}
|
|
</td>
|
|
<td>
|
|
@Html.DisplayTextFor(m => item.CurrentOdometer)
|
|
</td>
|
|
<td>
|
|
@Html.ActionLink("Edit", "Edit", new { id=item.VehicleId }) </td>
|
|
<td> @Html.ActionLink("Details", "Details", new { id=item.VehicleId }) </td>
|
|
<td> @Html.ActionLink("New log", "Create", "Log", new { vehicleId = item.VehicleId }, null)
|
|
</td>
|
|
</tr>
|
|
}
|
|
|
|
</table>
|