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
@@ -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>