Format the criteria for the reports

This commit is contained in:
2012-12-16 13:45:01 -05:00
parent 19705f8f38
commit fbe55081f5
4 changed files with 47 additions and 12 deletions
+8
View File
@@ -66,6 +66,14 @@ footer {
background-position: 0 0; background-position: 0 0;
} }
dl.inline, dl.inline dt, dl.inline dd {
float: left;
}
dl.inline {
margin-right: 30px;
}
@media print { @media print {
header, header,
footer, footer,
+4
View File
@@ -53,4 +53,8 @@ body {
.employeeName input { .employeeName input {
width: 120px; width: 120px;
} }
.form-horizontal .control-group.endOdometer {
margin-bottom: 0;
}
} }
+17 -6
View File
@@ -14,12 +14,23 @@
<h2>@ViewBag.Title</h2> <h2>@ViewBag.Title</h2>
@Html.DisplayFor(m => m.Query.Year) <div>
@Html.DisplayFor(m => m.Query.Month) <dl class="inline">
@if (Model.Query.LogType.HasValue) <dt>Year</dt>
{ <dd>@Html.Encode(Model.Query.Year)</dd>
@Html.DisplayFor(m => m.Query.LogType) </dl>
} <dl class="inline">
<dt>Month</dt>
<dd>@Html.Encode(Model.Query.Month)</dd>
</dl>
@if (Model.Query.LogType.HasValue)
{
<dl class="inline">
<dt>Type</dt>
<dd>@Html.Encode(Model.Query.LogType)</dd>
</dl>
}
</div>
<table class="table"> <table class="table">
<tr> <tr>
+18 -6
View File
@@ -15,12 +15,24 @@
<h2>@ViewBag.Title</h2> <h2>@ViewBag.Title</h2>
@Html.DisplayFor(m => m.Query.Year) <div>
@Html.DisplayFor(m => m.Query.Month) <dl class="inline">
@if (Model.Query.LogType.HasValue) <dt>Year</dt>
{ <dd>@Html.Encode(Model.Query.Year)</dd>
@Html.DisplayFor(m => m.Query.LogType) </dl>
} <dl class="inline">
<dt>Month</dt>
<dd>@Html.Encode(Model.Query.Month)</dd>
</dl>
@if (Model.Query.LogType.HasValue)
{
<dl class="inline">
<dt>Type</dt>
<dd>@Html.Encode(Model.Query.LogType)</dd>
</dl>
}
</div>
<table class="table"> <table class="table">
<tr> <tr>
<th> <th>