Service reminder implemented.

This commit is contained in:
2015-10-21 20:32:37 -04:00
parent e42fcd16fa
commit 93065de77f
26 changed files with 652 additions and 89 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
<ul class="no-print breadcrumb">
<li>
<a href="@Url.Action("Index", "Vehicle")">&larr; Back to Vehicles</a>
<a href="@Url.Action("Index", "Vehicle")"><i class="fa fa-arrow-circle-left"></i> Back to Vehicles</a>
</li>
</ul>
+2 -2
View File
@@ -34,10 +34,10 @@
</a>
<ul class="dropdown-menu">
<li>
@Html.ActionLink("View Service Reminders", "Index", "ServiceReminder", new { VehicleId = Model.VehicleId }, null)
@Html.ActionLink("View Reminders", "Index", "ServiceReminder", new { VehicleId = Model.VehicleId }, null)
</li>
<li>
@Html.ActionLink("Add Completed Service", "Create", "VehicleService", new { VehicleId = Model.VehicleId }, null)
@Html.ActionLink("Add Service", "Create", "VehicleService", new { VehicleId = Model.VehicleId }, null)
</li>
</ul>
</div>
+20 -22
View File
@@ -13,7 +13,7 @@
<h2 id="vehicle-title"><i class="fa fa-car"></i> @ViewBag.Title</h2>
<div class="btn-toolbar">
@Html.ActionLink("Add Another Vehicle", "Create", null, new{@class="btn"})
@Html.ActionLink("Add Vehicle", "Create", null, new{@class="btn"})
@Html.ActionLink("Export All", "Export", null, new { @class = "btn" })
@Html.ActionLink(Model.Inactive ? "Show Active" : "Show Inactive", "Index", new {inactive = !Model.Inactive}, new { @class = "btn" })
</div>
@@ -26,13 +26,7 @@
Ethra Id
</th>
<th>
Model Yr
</th>
<th>
Make
</th>
<th>
Model
Year, Make, Model
</th>
<th>
Type
@@ -46,9 +40,12 @@
<th>
Assigned
</th>
<th>
ODO
</th>
<th>
ODO
</th>
<th>
Next Service
</th>
<th></th>
</tr>
@@ -61,13 +58,7 @@
@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)
@Html.DisplayTextFor(m => item.ModelYear) @Html.DisplayTextFor(m => item.Make) @Html.DisplayTextFor(m => item.CarModel)
</td>
<td>
<span class="label @item.Color">
@@ -85,13 +76,20 @@
<small class="muted"><em>@Html.DisplayTextFor(m => item.Notes)</em></small>
}
</td>
<td>
@Html.DisplayTextFor(m => item.CurrentOdometer)
</td>
<td>
@Html.DisplayTextFor(m => item.CurrentOdometer)
</td>
<td>
@Html.DisplayTextFor(m => item.NextServiceOdometer)
@if (item.IsNextServiceOverdue)
{
<span class="badge badge-warning" title="overdue @(-item.NextServiceDueInMiles) miles">!</span>
}
@Html.ActionLink("Reminder", "Index", "ServiceReminder", new { vehicleId = item.VehicleId }, new { @class = "btn btn-mini pull-right" })
</td>
<td>
<div class='btn-group'>
@Html.ActionLink("Details", "Details", new { id = item.VehicleId }, new { @class = "btn btn-mini" })
@Html.ActionLink("Svc Reminder", "Index", "ServiceReminder", new { vehicleId = item.VehicleId }, new { @class = "btn btn-mini" })
</div>
</td>
</tr>