Add vehicle filtering for fuellog and vehicle service

This commit is contained in:
2015-10-26 10:09:12 -04:00
parent ad0b04695d
commit 9177a8dbb3
10 changed files with 63 additions and 9 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
@{
ViewBag.Title = "Vehicle Service";
var grid = new WebGrid(Model.ServiceItems, rowsPerPage: 45);
var queryParams = new { Model.Year, Model.Month, Model.MonthRange };
var queryParams = new { Model.Year, Model.Month, Model.MonthRange, Model.VehicleId };
}
@section Scripts {
@@ -19,7 +19,7 @@
@Html.Partial("_StatusMessage")
<div class="btn-toolbar pull-right" style="width:400px">
<div class="btn-toolbar pull-right" style="width:600px">
@using (Html.BeginForm("Index", "VehicleService", FormMethod.Get, new { id = "filter", @class = "form" }))
{
@Html.EditorForModel()