forked from vippsas/vipps-episerver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Index.cshtml
52 lines (47 loc) · 2.21 KB
/
Index.cshtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
@model EPiServer.Reference.Commerce.Site.Features.Cart.ViewModels.WishListViewModel
@{ ViewBag.IsWishList = true;
string displayNoItemMsg = Model.CartItems.Any() ? "none" : string.Empty;
}
<div class="container-fluid">
<div class="row wishlist">
@Html.Partial("_CmsNavigation", Model.CurrentPage)
<div class="col-xs-12 col-sm-9">
<h2>@Html.PropertyFor(x => x.CurrentPage.Name)</h2>
<div class="wishlist-noitem" style="display: @displayNoItemMsg">
@Html.Translate("/WishList/NoItems")
</div>
<div id="CartWarningMessage" class="col-md-12 alert alert-danger" hidden>
<button type="button" class="close" data-hide="alert">×</button>
<span class="warning-message"></span>
</div>
<div class="product-row">
<div class="row">
@foreach (var product in Model.CartItems)
{
@Html.Partial("_ProductTile", product)
}
</div>
</div>
<hr>
@if (Model.CartItems.Any())
{
<div class="action-buttons delete-wishlist">
@using (Html.BeginForm("DeleteWishList", "WishList"))
{
if (!(bool)ViewData["IsReadOnly"])
{
<button role="button" type="submit" class="btn btn-default btn--blue"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span> <span class="wishlist-footer-text"></span>@Html.Translate("/WishList/DeleteButton")</button>
}
}
</div>
using (Html.BeginForm("wishlistexpress", "vippsexpress", FormMethod.Get, new { @class = "vipps-express-form" }))
{
<button type="submit" role="button" class="btn-link btn-link-vipps" style="padding: 2px 0">
<img src="~/Styles/Images/vipps.png" alt="Vipps Hurtigkasse" />
</button>
<p class="vipps-express-error" style="color: #d2691e"></p>
}
}
</div>
</div>
</div>