55 lines
2.0 KiB
Plaintext

@using gehGassi.Permissions
@using gehGassi.Web.Auth
@using gehGassi.Web.Helper
@using gehGassi.Web.Models
@using Microsoft.AspNetCore.Mvc.Localization
@using Microsoft.EntityFrameworkCore
@model Guid
@inject IViewLocalizer Localizer
@{
ViewData["Title"] = Localizer["Menu_Cart"];
bool showConfirmation = ViewBag.ShowConfirmation;
}
@section pageTitle{
<a href="@Url.Action("ShowCart", "Shop")">@Localizer["Menu_Cart"]</a>
}
<section id="cartContainer">
<div id="cartDetail" style="display: none;">
</div>
@Html.Hidden("jsCartOverviewUrl", Url.Action("CartOverview", "Shop", new { customerUniqueId = Model }))
@Html.Hidden("jsCheckoutAddressUrl", Url.Action("CheckoutAddress", "Shop", new { customerUniqueId = Model }))
@Html.Hidden("jsCheckoutPaymentUrl", Url.Action("CheckoutPayment", "Shop", new { customerUniqueId = Model }))
@Html.Hidden("jsCheckoutOrderUrl", Url.Action("CheckoutOrder", "Shop", new { customerUniqueId = Model }))
@Html.Hidden("jsCheckoutConfirmationUrl", Url.Action("CheckoutConfirmation", "Shop", new { customerUniqueId = Model }))
@Html.Hidden("jsShowConfirmation", showConfirmation)
@section ScriptsExternal{
<environment names="Development">
<script src="~/lib/uppload/index.umd.js" asp-append-version="false"></script>
</environment>
<environment names="Production,Staging,Live">
<script src="~/lib/uppload/index.umd.min.js" asp-append-version="true"></script>
</environment>
}
@section Scripts{
<system-js url="~/scripts/Views/Shop/showCart.js" fresh-import="true"></system-js>
}
@section Css
{
<environment names="Development">
<link href="~/css/Uppload.css" rel="stylesheet" asp-append-version="false">
</environment>
<environment names="Production,Staging,Live">
<link href="~/css/Uppload.min.css" rel="stylesheet" asp-append-version="true">
</environment>
}
</section>