Merge
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user