Add filtering
Improve matching
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
@using MileageTraker.Web.Utility
|
||||
@model MileageTraker.Web.ViewModels.FuelLog.ResultsViewModel
|
||||
@model MileageTraker.Web.ViewModels.FuelLog.FuelLogResultsViewModel
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Fuel Logs";
|
||||
var grid = new WebGrid(Model.FuelLogs, rowsPerPage: 45);
|
||||
var parameters = new {Model.Year, Model.Month};
|
||||
var parameters = new {Year = Model.FiscalYear, Model.Month};
|
||||
}
|
||||
@section Styles {
|
||||
<link href="@Url.Content("~/Content/VehicleColors.css")" rel="stylesheet" type="text/css" />
|
||||
@@ -12,9 +12,9 @@
|
||||
@section Scripts {
|
||||
<script type="text/javascript">
|
||||
var availableLogYearMonths = @Html.Raw(Json.Encode(Model.AvailableYearMonths));
|
||||
@if (Model.Year != null)
|
||||
@if (Model.FiscalYear != null)
|
||||
{
|
||||
<text>var selectedYear = "@Model.Year";</text>
|
||||
<text>var selectedYear = "@Model.FiscalYear";</text>
|
||||
<text>var selectedMonth = "@Model.Month";</text>
|
||||
}
|
||||
</script>
|
||||
@@ -22,12 +22,10 @@
|
||||
|
||||
@Html.Partial("_StatusMessage")
|
||||
|
||||
<div class="btn-toolbar pull-right">
|
||||
@using (Html.BeginForm("Index", "Log", FormMethod.Get, new { id = "filter", @class = "form" }))
|
||||
<div class="btn-toolbar pull-right" style="width:400px">
|
||||
@using (Html.BeginForm("Index", "FuelLog", FormMethod.Get, new { id = "filter", @class = "form" }))
|
||||
{
|
||||
<div class="">
|
||||
@*@Html.EditorForModel()*@
|
||||
</div>
|
||||
@Html.EditorForModel()
|
||||
}
|
||||
</div>
|
||||
|
||||
@@ -54,8 +52,11 @@
|
||||
: Html.ActionLink("Match", "Match", new {id = item.FuelLogId}, new {@class = "btn btn-warning btn-mini", target="_blank"}))
|
||||
</text>)),
|
||||
htmlAttributes: new { @class = "table table-striped table-bordered table-hover table-condensed"},
|
||||
numericLinksCount: 20
|
||||
)
|
||||
numericLinksCount: 20
|
||||
)
|
||||
<div class="center-content webgrid-footer">
|
||||
Total Results: @Model.FuelLogs.Count()
|
||||
</div>
|
||||
</div>
|
||||
@if (!Model.FuelLogs.Any())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user