@model MileageTraker.Web.ViewModels.VehicleService.VehicleServiceResultsViewModel @{ ViewBag.Title = "Vehicle Service"; var grid = new WebGrid(Model.ServiceItems, rowsPerPage: 45); var queryParams = new { Model.Year, Model.Month, Model.MonthRange }; } @section Scripts { } @Html.Partial("_StatusMessage")
@using (Html.BeginForm("Index", "VehicleService", FormMethod.Get, new { id = "filter", @class = "form" })) { @Html.EditorForModel() }

@ViewBag.Title

@Html.ActionLink("Add Service", "Create", null, new{@class="btn"}) @Html.ActionLink("Export", "Export", queryParams, new{@class="btn"})
@grid.GetHtml(columns: grid.Columns( grid.Column("InvoiceDate", "Invoice Date", item => item.InvoiceDate.ToString("d")), grid.Column("VehicleID", "Vehicle Id"), grid.Column("ServiceCenterName", "Service Center Name"), grid.Column("Price", "Price"), grid.Column("Description", "Description"), grid.Column(format: @
@Html.ActionLink("Details / Edit", "Details", new { id = item.VehicleServiceId }, new { @class = "btn btn-mini" })
) ), htmlAttributes: new { @class = "table table-striped table-bordered table-hover table-condensed"}, numericLinksCount: 20 )