This commit is contained in:
2013-02-17 14:30:25 -05:00
parent 07a7577d2d
commit 84e460bb51
7 changed files with 57 additions and 28 deletions
+12 -1
View File
@@ -41,6 +41,9 @@
<th>
Total Gas Purchased
</th>
<th>
Miles Per Gallon
</th>
</tr>
@foreach (var item in Model.Items)
{
@@ -60,7 +63,15 @@
<td>
@Html.DisplayTextFor(i => item.GasPurchased)
</td>
<td>@(item.MilesPerGallon > 0 ? string.Format("{0:0.000}", item.MilesPerGallon) : "")</td>
</tr>
}
<tfoot><tr><td colspan="2">Total:</td><td>@Html.DisplayTextFor(m => m.TotalMiles)</td><td>@Html.DisplayTextFor(m => m.TotalGasPurchased)</td></tr></tfoot>
<tfoot>
<tr>
<td colspan="2" style="text-align: right"><strong>Total:</strong></td>
<td><strong>@Html.DisplayTextFor(m => m.TotalMiles)</strong></td>
<td><strong>@Html.DisplayTextFor(m => m.TotalGasPurchased)</strong></td>
<td></td>
</tr>
</tfoot>
</table>