Correct reports not having all query parameters

Other small corrections
This commit is contained in:
2014-05-21 10:55:24 -04:00
parent 365aa47328
commit 750450f1f9
10 changed files with 54 additions and 43 deletions
+5
View File
@@ -0,0 +1,5 @@
@if (Session["LogPage"] != null) {
<ul class="no-print breadcrumb">
<li><a href="@Session["LogPage"]">&larr; Back To Logs</a></li>
</ul>
}
@@ -0,0 +1,37 @@
@model MileageTraker.Web.ViewModels.Log.LogQueryViewModel
<div>
<dl class="inline">
<dt>@Html.DisplayNameFor(m => m.Year)</dt>
<dd>@Html.Encode(Model.Year)</dd>
</dl>
<dl class="inline">
<dt>@Html.DisplayNameFor(m => m.Month)</dt>
<dd>@Html.Encode(Model.Month)</dd>
</dl>
<dl class="inline">
<dt>@Html.DisplayNameFor(m => m.MonthRange)</dt>
<dd>@Html.Encode(Model.MonthRange)</dd>
</dl>
@if (Model.LogType.HasValue)
{
<dl class="inline">
<dt>Type</dt>
<dd>@Html.Encode(Model.LogType)</dd>
</dl>
}
@if (!string.IsNullOrEmpty(Model.VehicleId))
{
<dl class="inline">
<dt>Vehicle</dt>
<dd>@Html.Encode(Model.VehicleId)</dd>
</dl>
}
@if (!string.IsNullOrEmpty(Model.EmployeeName))
{
<dl class="inline">
<dt>Driver</dt>
<dd>@Html.Encode(Model.EmployeeName)</dd>
</dl>
}
</div>
@@ -1,5 +1,4 @@
@using System.Xml
@using MileageTraker.Web.Models
@using MileageTraker.Web.Models
@using MileageTraker.Web.Utility
@model MileageTraker.Web.ViewModels.Log.LogResultsViewModel
@{
@@ -33,7 +32,7 @@
@Html.TextBoxFor(m => m.VehicleId, new {@class="search-query input-mini", placeholder="Vehicle"})
</div>
<div class="span4">
@Html.Label("EmployeeName", "User")
@Html.Label("EmployeeName", "Driver")
@Html.TextBoxFor(m => m.EmployeeName, new {@class="search-query input-small", placeholder="User"})
</div>
</div>