2016-12-17 14:41:16 +01:00
|
|
|
@model Microsoft.eShopOnContainers.WebMVC.Models.Order
|
|
|
|
|
|
|
|
|
2016-12-30 11:28:28 +01:00
|
|
|
<section class="esh-orders_new-section">
|
|
|
|
<article class="esh-orders_new-titles row">
|
|
|
|
<section class="esh-orders_new-title col-xs-12">Order details</section>
|
|
|
|
</article>
|
2016-12-17 14:41:16 +01:00
|
|
|
|
2016-12-30 11:28:28 +01:00
|
|
|
@for (int i = 0; i < Model.OrderItems.Count; i++)
|
|
|
|
{
|
|
|
|
var item = Model.OrderItems[i];
|
|
|
|
|
|
|
|
<article class="esh-orders_new-items esh-orders_new-items--border row">
|
|
|
|
<section class="esh-orders_new-item col-md-4 hidden-md-down">
|
|
|
|
<img class="esh-orders_new-image" src="@item.PictureUrl">
|
|
|
|
<input type="hidden" value="@item.PictureUrl" name=@("orderitems[" + i + "].PictureUrl") />
|
|
|
|
</section>
|
|
|
|
<section class="esh-orders_new-item esh-orders_new-item--middle col-xs-4">
|
|
|
|
@item.ProductName
|
|
|
|
<input type="hidden" value="@item.ProductName" name=@("orderitems[" + i + "].ProductName") />
|
|
|
|
</section>
|
|
|
|
<section class="esh-orders_new-item esh-orders_new-item--middle col-xs-1">
|
|
|
|
$ @item.UnitPrice
|
|
|
|
<input type="hidden" value="@item.UnitPrice" name=@("orderitems[" + i + "].UnitPrice") />
|
|
|
|
</section>
|
|
|
|
<section class="esh-orders_new-item esh-orders_new-item--middle col-xs-1">
|
|
|
|
@item.Units
|
|
|
|
<input type="hidden" value="@item.Units" name=@("orderitems[" + i + "].Units") />
|
|
|
|
</section>
|
|
|
|
<section class="esh-orders_new-item esh-orders_new-item--middle col-xs-2">$ @Math.Round(item.Units * item.UnitPrice, 2)</section>
|
|
|
|
</article>
|
|
|
|
}
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="esh-orders_new-section esh-orders_new-section--right">
|
|
|
|
<article class="esh-orders_new-titles row">
|
2016-12-30 11:33:57 +01:00
|
|
|
<section class="esh-orders_new-title col-xs-9"></section>
|
2016-12-30 11:28:28 +01:00
|
|
|
<section class="esh-orders_new-title col-xs-2">Total</section>
|
|
|
|
</article>
|
|
|
|
|
|
|
|
<article class="esh-orders_new-items row">
|
2016-12-30 11:33:57 +01:00
|
|
|
<section class="esh-orders_new-item col-xs-9"></section>
|
2016-12-30 11:28:28 +01:00
|
|
|
<section class="esh-orders_new-item esh-orders_new-item--mark col-xs-2">
|
|
|
|
$ @Model.Total
|
|
|
|
<input type="hidden" value="@Model.Total" name="Total"/>
|
|
|
|
</section>
|
|
|
|
</article>
|
|
|
|
</section>
|