@using Microsoft.AspNetCore.Builder @using Microsoft.AspNetCore.Mvc.Localization @using Microsoft.AspNetCore.Mvc.TagHelpers @using Microsoft.Extensions.Localization @using Microsoft.Extensions.Options @using gehGassi.Web.Helper @using gehGassi.Web.Models @model gehGassi.Web.Models.BannerCartItemCrudVm @inject IViewLocalizer Localizer @{ string selectedLanguage = ViewBag.SelectedLanguage; string fallbackLanguage = ViewBag.FallbackLanguage; IStringLocalizer annotationsLocalizer = ViewBag.AnnotationsLocalizer; ViewData["Title"] = Localizer["Button_AddToCart"]; string folderToUse = "temp"; string budgetText = Localizer["Banner_Budget_Net"].Value; if (Model.Tax > 0) { budgetText = Localizer["Banner_Budget_Gross"].Value; } }
@Localizer["Banner_AddToCart_Desc"]
@Localizer["Common_Tab_Details"]
@Localizer["Common_Tab_Description"]

@Model.ProductName

@annotationsLocalizer["Banner_BannerLocation"]: @Model.BannerLocation.GetDisplayName(annotationsLocalizer) | @annotationsLocalizer["Banner_BannerSize"]: @Model.BannerSize.GetDisplayName(annotationsLocalizer)
@if (Model.Tax > 0) {
@if (Model.PriceGross > 0) { @Localizer["Common_Price"]: € @Model.PriceGross.ToString("n2") @Localizer["Common_InclTax"] / @Localizer["Common_Per_View"] } @if (Model.Price2Gross > 0) { @Localizer["Common_Price"]: € @Model.Price2Gross.ToString("n2") @Localizer["Common_InclTax"] / @Localizer["Common_Per_Click"] }
} else {
@if (Model.PriceGross > 0) { @Localizer["Common_Price"]: € @Model.Price.ToString("n2") / @Localizer["Common_Per_View"] } @if (Model.Price2Gross > 0) { @Localizer["Common_Price"]: € @Model.Price2.ToString("n2") / @Localizer["Common_Per_Click"] }
}
@annotationsLocalizer["Product_ProductStartType"]: @Model.ProductStartType.GetDisplayName(annotationsLocalizer)
@if (!string.IsNullOrWhiteSpace(Model.Image)) { } else { }

@Localizer["Banner_AddToCart_Image_Desc"]

@foreach (var item in Model.TextVms) {
@item.Language
}
@Html.EditorFor(m => m.TextVms, new{FolderToUse = folderToUse})
@Html.Hidden("jsLookupCountriesUrl", Url.Action("LookupCountries", "Country")) @Html.Hidden("jsLookupStatesUrl", Url.Action("LookupStates", "Country")) @Html.Hidden("jsUploadUrl", Url.Action("UploadTempFile", "Common")) @Html.Hidden("jsRemoveUrl", Url.Action("RemoveTempFile", "Common"))