Orders: Detail Query, new field in OrderDetail.. Identity: Validations in Register View, ensure all claims are returned in user end point..
74 lines
2.9 KiB
Plaintext
74 lines
2.9 KiB
Plaintext
@model Microsoft.eShopOnContainers.WebMVC.Models.Order
|
|
|
|
<div class="col-md-12">
|
|
<section>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th class="cart-product-column">
|
|
PRODUCT
|
|
</th>
|
|
<th>
|
|
|
|
</th>
|
|
<th>
|
|
BRAND
|
|
</th>
|
|
<th>
|
|
PRICE
|
|
</th>
|
|
<th>
|
|
QUANTITY
|
|
</th>
|
|
<th>
|
|
COST
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@for (int i = 0; i < Model.OrderItems.Count; i++)
|
|
{
|
|
var item = Model.OrderItems[i];
|
|
|
|
<tr>
|
|
<td class="cart-product-column">
|
|
<img class="cart-product-image" src="@item.PictureUrl" />
|
|
<input type="hidden" value="@item.PictureUrl" name=@("orderitems[" + i + "].PictureUrl") />
|
|
</td>
|
|
<td class="cart-product-column">
|
|
<span class="cart-product-column-name">@item.ProductName</span>
|
|
<input type="hidden" value="@item.ProductName" name=@("orderitems[" + i + "].ProductName") />
|
|
</td>
|
|
<td class="cart-product-column">ROSLYN</td>
|
|
<td class="cart-product-column">$ @item.UnitPrice
|
|
<input type="hidden" value="@item.UnitPrice" name=@("orderitems[" + i + "].UnitPrice") />
|
|
</td>
|
|
<td class="cart-product-column">@item.Units
|
|
<input type="hidden" value="@item.Units" name=@("orderitems[" + i + "].Units") />
|
|
</td>
|
|
<td class="cart-product-column cart-total-value">$ @Math.Round(item.Units * item.UnitPrice, 2)</td>
|
|
</tr>
|
|
}
|
|
<tr class="cart-totals">
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td></td>
|
|
<td>
|
|
<input type="submit"
|
|
class="btn btn-default cart-refresh-button"
|
|
value=""
|
|
name="action" />
|
|
</td>
|
|
<td>
|
|
<div class="cart-total-value">
|
|
<div class="cart-total-label"><span>TOTAL</span></div>
|
|
<span>$ @Model.Total</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
</div>
|