Styling
This commit is contained in:
+34
-11
@@ -157,22 +157,45 @@ dl.inline {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
td.nomatch {
|
||||
background-color: #f89406 !IMPORTANT;
|
||||
color: white !IMPORTANT;
|
||||
}
|
||||
|
||||
td.match {
|
||||
background-color: #468847 !IMPORTANT;
|
||||
color: white !IMPORTANT;
|
||||
}
|
||||
|
||||
#fuellogs th,
|
||||
#fuellog th,
|
||||
#currentlymatchedlog th,
|
||||
#matchedlogs th {
|
||||
width: 16.6%
|
||||
}
|
||||
|
||||
#fuellog th{
|
||||
background-color: black !IMPORTANT;
|
||||
color: white !IMPORTANT;
|
||||
}
|
||||
#fuellog tbody td{
|
||||
background-color: rgb(63, 63, 63) !IMPORTANT;
|
||||
color: white !IMPORTANT;
|
||||
}
|
||||
|
||||
td.nomatch {
|
||||
background-color: #f8ba62 !IMPORTANT;
|
||||
color: #64410f !IMPORTANT;
|
||||
}
|
||||
|
||||
td.match {
|
||||
background-color: #3a87ad !IMPORTANT;
|
||||
color: white !IMPORTANT;
|
||||
}
|
||||
|
||||
#currentlymatchedlog th{
|
||||
background-color: #3a713b !IMPORTANT;
|
||||
color: white !IMPORTANT;
|
||||
}
|
||||
|
||||
#currentlymatchedlog td.match {
|
||||
background-color: #468847 !IMPORTANT;
|
||||
}
|
||||
|
||||
#matchedlogs th{
|
||||
background-color: #2b6481 !IMPORTANT;
|
||||
color: white !IMPORTANT;
|
||||
}
|
||||
|
||||
@media print {
|
||||
header,
|
||||
footer,
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
var matchedLogs = Model.MatchedLogs;
|
||||
var currentlyMatchedLog = Model.CurrentlyMatchedLog;
|
||||
var logViewModel = fuelLog.GetLogViewModel();
|
||||
//logViewModel.LogType = MileageLogType.GasPurchase;
|
||||
}
|
||||
@section Styles
|
||||
{
|
||||
@@ -18,9 +17,9 @@
|
||||
|
||||
<h2>@ViewBag.Title</h2>
|
||||
|
||||
<p id="page-match-status"></p>
|
||||
<h4>Fuel Log</h4>
|
||||
|
||||
<table id="fuellogs" class="table table-striped table-bordered table-hover table-condensed">
|
||||
<table id="fuellog" class="table table-striped table-bordered table-hover table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
@@ -43,95 +42,86 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@if (currentlyMatchedLog != null)
|
||||
{
|
||||
<h5>Currently Matched Mileage Log</h5>
|
||||
|
||||
<table id="currentlymatchedlog" class="table table-striped table-bordered table-hover table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Driver</th>
|
||||
<th>Tag Number</th>
|
||||
<th>Odometer</th>
|
||||
<th>Gas Purchased</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<h4>Currently Matched Mileage Log</h4>
|
||||
|
||||
<table id="currentlymatchedlog" class="table table-striped table-bordered table-hover table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Driver</th>
|
||||
<th>Tag Number</th>
|
||||
<th>Odometer</th>
|
||||
<th>Gas Purchased</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (currentlyMatchedLog == null) {
|
||||
<tr><td colspan="6"><span class="label label-important">Not Currently Matched</span></td></tr>
|
||||
}
|
||||
else {
|
||||
<tr>
|
||||
<td class="@if (!currentlyMatchedLog.DateMatch)
|
||||
{<text>nomatch</text>}else{<text>match</text>}">@Html.ValueFor(x => currentlyMatchedLog.Date, "{0:d}")</td>
|
||||
{<text>nomatch</text>}else{<text>match</text>}">@Html.ValueFor(x => currentlyMatchedLog.Date, "{0:d}")</td>
|
||||
<td class="@if (!currentlyMatchedLog.UserFullNameMatch)
|
||||
{<text>nomatch</text>}else{<text>match</text>}">@Html.ValueFor(x => currentlyMatchedLog.UserFullName)</td>
|
||||
{<text>nomatch</text>}else{<text>match</text>}">@Html.ValueFor(x => currentlyMatchedLog.UserFullName)</td>
|
||||
<td class="@if (!currentlyMatchedLog.VehicleTagMatch)
|
||||
{<text>nomatch</text>}else{<text>match</text>}">@Html.ValueFor(x => currentlyMatchedLog.VehicleTagNumber)</td>
|
||||
{<text>nomatch</text>}else{<text>match</text>}">@Html.ValueFor(x => currentlyMatchedLog.VehicleTagNumber)</td>
|
||||
<td class="@if (!currentlyMatchedLog.OdometerMatch)
|
||||
{<text>nomatch</text>}else{<text>match</text>}">@Html.ValueFor(x => currentlyMatchedLog.EndOdometer)</td>
|
||||
{<text>nomatch</text>}else{<text>match</text>}">@Html.ValueFor(x => currentlyMatchedLog.EndOdometer)</td>
|
||||
<td class="@if (!currentlyMatchedLog.GasPurchasedMatch)
|
||||
{<text>nomatch</text>}else{<text>match</text>}">@Html.ValueFor(x => currentlyMatchedLog.GasPurchased, "{0:0.000}")</td>
|
||||
{<text>nomatch</text>}else{<text>match</text>}">@Html.ValueFor(x => currentlyMatchedLog.GasPurchased, "{0:0.000}")</td>
|
||||
<td>@Html.ActionLink("Details", "Details", "Log", new { id = currentlyMatchedLog.LogId }, new { @class = "btn btn-mini", target="_blank" })</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
}
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
<hr/>
|
||||
<h4>Similiar Mileage Log entries</h4>
|
||||
|
||||
@if (!matchedLogs.Any())
|
||||
{
|
||||
if (currentlyMatchedLog == null)
|
||||
{
|
||||
<p>
|
||||
No matches.
|
||||
</p>
|
||||
}
|
||||
else
|
||||
{
|
||||
<p>
|
||||
No additional matches.
|
||||
</p>
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
<h5>Matching Mileage Logs based on Date, Vehicle, and Gas Purchased</h5>
|
||||
|
||||
<table id="matchedlogs" class="table table-striped table-bordered table-hover table-condensed">
|
||||
<thead>
|
||||
<table id="matchedlogs" class="table table-striped table-bordered table-hover table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Driver</th>
|
||||
<th>Tag Number</th>
|
||||
<th>Odometer</th>
|
||||
<th>Gas Purchased</th>
|
||||
<th>Match</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (!matchedLogs.Any())
|
||||
{
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Driver</th>
|
||||
<th>Tag Number</th>
|
||||
<th>Odometer</th>
|
||||
<th>Gas Purchased</th>
|
||||
<th>Match</th>
|
||||
<td colspan="6"><span class="label @if (currentlyMatchedLog == null){<text>label-important</text>}">No Results</span></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var matchedLog in matchedLogs)
|
||||
}
|
||||
else {
|
||||
foreach (var matchedLog in matchedLogs)
|
||||
{
|
||||
<tr>
|
||||
|
||||
<td class="@if (!matchedLog.DateMatch)
|
||||
{<text>nomatch</text>}else{<text>match</text>}">@Html.ValueFor(x => matchedLog.Date, "{0:d}")</td>
|
||||
{<text>nomatch</text>}else{<text>match</text>}">@Html.ValueFor(x => matchedLog.Date, "{0:d}")</td>
|
||||
<td class="@if (!matchedLog.UserFullNameMatch)
|
||||
{<text>nomatch</text>}else{<text>match</text>}">@Html.ValueFor(x => matchedLog.UserFullName)</td>
|
||||
{<text>nomatch</text>}else{<text>match</text>}">@Html.ValueFor(x => matchedLog.UserFullName)</td>
|
||||
<td class="@if (!matchedLog.VehicleTagMatch)
|
||||
{<text>nomatch</text>}else{<text>match</text>}">@Html.ValueFor(x => matchedLog.VehicleTagNumber)</td>
|
||||
{<text>nomatch</text>}else{<text>match</text>}">@Html.ValueFor(x => matchedLog.VehicleTagNumber)</td>
|
||||
<td class="@if (!matchedLog.OdometerMatch)
|
||||
{<text>nomatch</text>}else{<text>match</text>}">@Html.ValueFor(x => matchedLog.EndOdometer)</td>
|
||||
{<text>nomatch</text>}else{<text>match</text>}">@Html.ValueFor(x => matchedLog.EndOdometer)</td>
|
||||
<td class="@if (!matchedLog.GasPurchasedMatch)
|
||||
{<text>nomatch</text>}else{<text>match</text>}">@Html.ValueFor(x => matchedLog.GasPurchased, "{0:0.000}")</td>
|
||||
{<text>nomatch</text>}else{<text>match</text>}">@Html.ValueFor(x => matchedLog.GasPurchased, "{0:0.000}")</td>
|
||||
<td>@using (Html.BeginForm("Match", "FuelLog", FormMethod.Post))
|
||||
{
|
||||
<input type="hidden" name="fuelLogId" value="@fuelLog.FuelLogId"/>
|
||||
<input type="hidden" name="logId" value="@matchedLog.LogId"/>
|
||||
<input type="submit" class="btn btn-mini" value="Match"/>
|
||||
}
|
||||
{
|
||||
<input type="hidden" name="fuelLogId" value="@fuelLog.FuelLogId"/>
|
||||
<input type="hidden" name="logId" value="@matchedLog.LogId"/>
|
||||
<input type="submit" class="btn btn-mini" value="Match"/>
|
||||
}
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
}
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
@Html.Partial("MatchLogViewModelPartial", logViewModel)
|
||||
|
||||
Reference in New Issue
Block a user