Error executing template "Designs/Tefcold/_parsed/Basic_News.parsed.cshtml"
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at Dynamicweb.Ecommerce.Frontend.NavigationProviders.GroupNavigationProvider.MakeGroupTree(GroupCollection groups, Page page, NavigationItem parentNode, Int32 thisLevel, Int32 maxLevel, Page productPage)
   at Dynamicweb.Ecommerce.Frontend.NavigationProviders.GroupNavigationProvider.MakeGroupTree(Page page, NavigationItem parentNode)
   at Dynamicweb.Ecommerce.Frontend.NavigationProviders.GroupNavigationProvider.Process(NavigationItem node)
   at Dynamicweb.Ecommerce.Frontend.NavigationProviders.GroupNavigationProvider.ProcessTree(RootNavigationItem rootNode, NavigationType navigationType)
   at Dynamicweb.Frontend.XmlNavigation.MakeXml(Int32 parentId, Int32 levelStart, Int32 levelStop, Expand expand, Int32 selectedAreaId)
   at Dynamicweb.Frontend.XmlNavigation.GetNavigationHtml(Int32 parentId, Int32 levelStart, Int32 levelStop, Expand expand, String name, String xsltPath, Int32 selectedAreaId, Boolean sitemapMode, NameValueCollection settings, NameValueCollection attributes, IncludeMode mode)
   at Dynamicweb.Frontend.XmlNavigation.GetNavigationHtml(NameValueCollection settings, NameValueCollection attributes)
   at Dynamicweb.Rendering.TemplateBase`1.RenderNavigation(Object settings)
   at CompiledRazorTemplates.Dynamic.RazorEngine_9dd3472e36164f52bc7dda8c137b0ff7.Execute() in E:\Solutions\Live\Tefcold.Web\Files\Templates\Designs\Tefcold\_parsed\Basic_News.parsed.cshtml:line 511
   at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)
   at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)
   at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)
   at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)
   at Dynamicweb.Rendering.Template.RenderRazorTemplate()

1 @using Dynamicweb.Content 2 @using Dynamicweb.Frontend; 3 @using Dynamicweb.Security.UserManagement 4 @using NLWI.Core.Factory 5 @using NORRIQ.SalesPersonLogin.Services 6 @using Dynamicweb.Ecommerce.International 7 @using Tefcold.Web.CustomCode.Extensions 8 @using Tefcold.Web.CustomCode.Items.Properties 9 @using Tefcold.Web.CustomCode.LanguageSwitch 10 @using Tefcold.Web.CustomCode.Razor 11 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 12 @{ 13 //Heine: Understående kan bruges såfremt der skal tjekkes på om man er i impersonation mode: 14 var isImpersonating = ImpersonationService.IsCurrentlyImpersonating(); 15 var locationName = Pageview.User?.Name; 16 var websiteSettings = Pageview.Area.Item.ToCodeFirstItem<Websites>(); 17 LanguageService languageService = new LanguageService(); 18 var languagesJson = Newtonsoft.Json.JsonConvert.SerializeObject(languageService.GetLanguages()); 19 } 20 21 <!DOCTYPE html> 22 <html lang="@Pageview.Area.Culture"> 23 <head> 24 <meta charset='utf-8' /> 25 <meta name="description" content="@Model.Description" /> 26 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, user-scalable=yes, shrink-to-fit=no" /> 27 <meta http-equiv="x-ua-compatible" content="ie=edge"> 28 @if (Model.Area.Item.GetBoolean("NoIndex")) 29 { 30 <!-- TODO: remove on launch--> 31 <meta name="robots" content="noindex, nofollow" /> 32 } 33 34 @if (!string.IsNullOrWhiteSpace(websiteSettings.HeaderScript)) 35 { 36 @websiteSettings.HeaderScript 37 } 38 39 @if (!string.IsNullOrWhiteSpace(websiteSettings.GoogleTagManagerId)) 40 { 41 <script> 42 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 43 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 44 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 45 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 46 })(window,document,'script','dataLayer','@websiteSettings.GoogleTagManagerId'); 47 </script> 48 } 49 50 <title>@Model.Title</title> 51 @Model.MetaTags 52 @if (Model.Area.Item.GetFile("Icon") != null) 53 { 54 <link href="@Model.Area.Item.GetFile("Icon").Path" rel="icon" type="image/png"> 55 } 56 <link async href="@NORRIQ.Common8.Razor.TimestampSource.GetSourceWithTimestamp("/Files/dist/css/Tefcold-min.css")" rel="stylesheet" /> 57 </head> 58 <body> 59 @if (!string.IsNullOrWhiteSpace(websiteSettings.GoogleTagManagerId)) 60 { 61 <!-- Google Tag Manager (noscript) --> 62 <noscript> 63 <iframe src="https://www.googletagmanager.com/ns.html?id=@websiteSettings.GoogleTagManagerId" 64 height="0" width="0" style="display: none; visibility: hidden"></iframe> 65 </noscript> 66 <!-- End Google Tag Manager (noscript) --> 67 } 68 <div id="app"> 69 @{ 70 string basicNavbarPrefix = "Header "; 71 var logo = Model.Area.Item.GetFile("Logo"); 72 var currencyCode = Pageview.User?.Currency ?? Pageview.Area.EcomCurrencyId; 73 } 74 <header class="basic_navbar" id="header"> 75 @if (isImpersonating) 76 { 77 <div class="impersonation-bar"> 78 <div class="basic_navbar-container"> 79 <p> 80 @Translate(basicNavbarPrefix + "debitor", "Debitor"): <b>@locationName</b> | <a href="@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("impersonation-choose-customer")?action=changeuser">@Translate("Change customer")</a> 81 </p> 82 </div> 83 </div> 84 } 85 <div class="basic_navbar-main"> 86 <div class="basic_navbar-container"> 87 88 <button type="button" 89 class="basic_navbar-burger" 90 aria-label="@Translate(basicNavbarPrefix + "Open main navigation", "Open main navigation")" 91 v-b-toggle.basic_navigation> 92 <span></span> 93 <span></span> 94 <span></span> 95 </button> 96 <a href="/" class="basic_navbar-logo" title="@Translate(basicNavbarPrefix + "Go to frontpage", "Go to frontpage")"> 97 @if (logo != null) 98 { 99 <img class="img-fluid" src="@logo.Path" alt="@Translate(basicNavbarPrefix + "Website Logo Alttext", "Website Logo Alttext")" /> 100 } 101 else 102 { 103 <i>@Translate(basicNavbarPrefix + "No logo found", "No logo found, please configure it in the Dynamicweb Administration")</i> 104 } 105 </a> 106 <collapse-hack inline-template> 107 <b-collapse class="basic_navbar-navigation" id="basic_navigation" tag="nav"> 108 @RenderNavigation(new { Template = "basic_navbar.xslt", Expandmode = "all", StartLevel = 1, EndLevel = 4 }) 109 <ul class="basic_navbar-subnav"> 110 <li> 111 <button type="button" 112 v-b-toggle.languages 113 aria-label="@Translate(basicNavbarPrefix + "Choose Language", "Choose Language")"> 114 <img src="@Pageview.Area.Flag32X32" alt="@Pageview.Area.CultureInfo.EnglishName" /> 115 <span class="sr-only">@Pageview.Area.CultureInfo.EnglishName</span> 116 </button> 117 </li> 118 <li> 119 <button v-b-toggle.contacts 120 type="button" 121 aria-label="@Translate(basicNavbarPrefix + "Show contacts", "Show contacts")"> 122 <svg> 123 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#phone-alt"></use> 124 </svg> 125 <span class="sr-only">@Translate(basicNavbarPrefix + "Contacts", "Contacts")</span> 126 </button> 127 </li> 128 <li> 129 <button v-b-toggle.customer-center 130 type="button" 131 aria-label="@Translate(basicNavbarPrefix + "Show Webshop Login", "Show Webshop Login")"> 132 @if (Pageview.User == null) 133 { 134 <svg> 135 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#user"></use> 136 </svg> 137 } 138 else 139 { 140 <svg style="width: 30px; height: 30px;"> 141 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#user-check"></use> 142 </svg> 143 } 144 <span class="sr-only">@Translate(basicNavbarPrefix + "Login", "Login")</span> 145 </button> 146 </li> 147 @if (Pageview.User != null) 148 { 149 <li> 150 <a href="@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("quickorder")" title="@Translate(basicNavbarPrefix + "Quickorder", "Quickorder")"> 151 <svg width="28px" height="28px"> 152 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#quickorder"></use> 153 </svg> 154 <span class="sr-only">@Translate(basicNavbarPrefix + "Quickorder", "Quickorder")</span> 155 </a> 156 </li> 157 } 158 @if (Pageview.User != null && Pageview.User.AllowMediaBank()) 159 { 160 <media-bank inline-template> 161 <li> 162 163 <form id="mediabankform" action="https://imagebank.tefcold.com/Home/LoginUser" method="post"> 164 <input id="mediabankformname" type="hidden" name="username" /> 165 <input id="mediabankformpassword" type="hidden" name="password" /> 166 <input type="hidden" value="false" name="persistent" /> 167 </form> 168 <a v-on:click="connect($event)" href="#"> 169 <svg width="28px" height="28px" fill="currentColor"> 170 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#photo-video"></use> 171 </svg> 172 <span class="sr-only">@Translate(basicNavbarPrefix + "Mediabank", "Mediabank")</span> 173 </a> 174 </li> 175 </media-bank> 176 } 177 <li> 178 <button type="button" 179 class="btn-close" 180 @@click="collapseAll" 181 aria-label="@Translate(basicNavbarPrefix + "Close Navigation", "Close Navigation")"> 182 <span></span> 183 <span></span> 184 </button> 185 </li> 186 </ul> 187 </b-collapse> 188 </collapse-hack> 189 <form class="basic_navbar-search" action="/Default.aspx"> 190 <search-shortcut inline-template> 191 <div style="display: none"></div> 192 </search-shortcut> 193 <label for="productsearch">Search</label> 194 <input name="ID" type="hidden" value="@NORRIQ.Common8.Razor.Navigation.GetPageIdByNavigationTag("searchresult")"> 195 <input name="PageSize" type="hidden" value="99" /> 196 <input type="search" placeholder="@Translate(basicNavbarPrefix + "Search", "Search")" id="productsearch" name="productsearch"> 197 <button type="submit"> 198 <span class="sr-only">@Translate(basicNavbarPrefix + "Search", "Search")</span> 199 <svg> 200 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#search"></use> 201 </svg> 202 </button> 203 </form> 204 <ul class="basic_navbar-functions"> 205 <li class="basic_navbar-languages relative"> 206 <button type="button" v-b-toggle.languages aria-label="@Translate(basicNavbarPrefix + "Choose Language", "Choose Language")"> 207 <span class="sr-only">@Pageview.Area.CultureInfo.EnglishName</span> 208 <img src="@Pageview.Area.Flag32X32" alt="@Pageview.Area.Culture - Flag" /> 209 </button> 210 <b-collapse id="languages" class="basic_navbar-dropdown" accordion="header" v-auto-close> 211 <div class="basic_navbar-body"> 212 <ul> 213 @foreach (var lang in Model.Area.Languages.Where(a => !a.IsCurrent)) 214 { 215 string langUrl; 216 string countryCode = lang.Culture.Split('-').Last(); 217 218 if (Dynamicweb.Context.Current.Request["GroupID"] != null) 219 { 220 langUrl = this.GetGroupUrl(Dynamicweb.Context.Current.Request["GroupID"], countryCode); 221 } 222 223 else if (Dynamicweb.Context.Current.Request["ProductID"] != null) 224 { 225 try 226 { 227 var uriBuilder = new UriBuilder(Pageview.SearchFriendlyUrl); 228 uriBuilder.Host = !lang.PrimaryDomain.Contains("http") ? lang.PrimaryDomain : "https://" + lang.PrimaryDomain; 229 langUrl = uriBuilder.Uri.AbsoluteUri; 230 } 231 catch (Exception e) 232 { 233 langUrl = Pageview.SearchFriendlyUrl; 234 } 235 236 } 237 238 else //if (!string.IsNullOrEmpty(lang.PrimaryDomain)) 239 { 240 try 241 { 242 243 var lss = ObjectFactory.GetInstance<LanguageSwitchService>(); 244 langUrl = lss.GetLanguagePage(lang.Culture, this.Pageview.ID); 245 } 246 catch (Exception) 247 { 248 langUrl = Pageview.SearchFriendlyUrl; 249 } 250 } 251 252 <li> 253 <a href="@langUrl"> 254 <img src="/Admin/Images/Flags/flag_@(countryCode).png" alt="@lang.Culture - Flag" loading="lazy" /> 255 <span>@Translate("lang_" + lang.Culture.Split('-').First(), lang.Culture.Split('-').First())</span> 256 </a> 257 </li> 258 } 259 <li> 260 <hr class="m-0" /> 261 <a href="/Default.aspx?ID=@GetPageIdByNavigationTag("CzechRedirect")"> 262 <img src="/Admin/Images/Flags/flag_cz.png" alt="cs-CZ - Flag" loading="lazy" /> 263 <span>@Translate("lang_cs", "cs")</span> 264 </a> 265 </li> 266 <li> 267 <a href="/Default.aspx?ID=@GetPageIdByNavigationTag("SlovakRedirect")"> 268 <img src="/Admin/Images/Flags/flag_sk.png" alt="sk-SK - Flag" loading="lazy" /> 269 <span>@Translate("lang_sk", "sk")</span> 270 </a> 271 </li> 272 273 </ul> 274 </div> 275 </b-collapse> 276 </li> 277 <li class="basic_navbar-contacts @(Pageview.User != null ? "static" : "relative")"> 278 <button v-b-toggle.contacts 279 type="button" 280 aria-label="@Translate(basicNavbarPrefix + "Show contacts", "Show contacts")"> 281 <svg> 282 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#phone-alt"></use> 283 </svg> 284 <span class="sr-only">@Translate(basicNavbarPrefix + "Contacts", "Contacts")</span> 285 </button> 286 @{ 287 var impersonationGroupId = websiteSettings.ImpersonationGroup.FirstOrDefault(); 288 IEnumerable<User> users = null; 289 IEnumerable<User> salesPersons = new List<User>(); 290 if (Pageview.User != null) 291 { 292 var salesPersonCode = Pageview.User.CustomFieldValues.FirstOrDefault(field => field.CustomField.Name == "Sales Person Code"); 293 var salesPersonsInitials = salesPersonCode?.Value?.ToString().Split(',') ?? new string[] { }; 294 salesPersonsInitials = salesPersonsInitials.Select(x => x.ToLower()).ToArray(); 295 296 if (!string.IsNullOrEmpty(impersonationGroupId)) 297 { 298 users = Group.GetGroupByID(int.Parse(impersonationGroupId)).Users; 299 } 300 if (users == null || Pageview.User == null) 301 { 302 salesPersons = new List<User>(); 303 } 304 else 305 { 306 salesPersons = users.Where(user => salesPersonsInitials.Contains(user.Email.ToLower().Split('@').FirstOrDefault() ?? "")); 307 } 308 } 309 310 } 311 <b-collapse id="contacts" class="@(Pageview.User != null ? "basic_navbar-megamenu" : "basic_navbar-dropdown")" v-auto-close accordion="header"> 312 <div class="basic_navbar-body"> 313 @if (Pageview.User != null) 314 { 315 if (salesPersons.Any()) 316 { 317 <p class="tefcold_salesperson-byline h1">@Translate(basicNavbarPrefix + "Your Sales Team", "Your Sales Team")</p> 318 } 319 foreach (var salesPerson in salesPersons) 320 { 321 <div class="tefcold_salesperson" itemscope itemtype="http://schema.org/Person"> 322 <figure> 323 <img src="@salesPerson.Image" class="img-fluid" alt="@salesPerson.Name" itemprop="image" loading="lazy" /> 324 </figure> 325 <p itemprop="name">@salesPerson.Name</p> 326 <p itemprop="jobTitle">@salesPerson.JobTitle</p> 327 <p itemprop="telephone"> 328 <svg> 329 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#phone-alt"></use> 330 </svg> 331 <span>@salesPerson.PhonePrivate</span> 332 </p> 333 <p itemprop="telephone"> 334 <svg> 335 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#mobile-alt"></use> 336 </svg> 337 <span>@salesPerson.PhoneMobile</span> 338 </p> 339 <a href="@("mailto:" + @salesPerson.Email)" itemprop="email"> 340 <svg> 341 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#envelope"></use> 342 </svg> 343 <span>@salesPerson.Email</span> 344 </a> 345 </div> 346 } 347 } 348 <ul> 349 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("PhoneLabel")) 350 && !string.IsNullOrEmpty(Model.Area.Item.GetString("Phonenumber"))) 351 { 352 <li class="head"> 353 <strong> 354 @Model.Area.Item.GetString("PhoneLabel") 355 </strong> 356 <strong> 357 @Model.Area.Item.GetString("Phonenumber") 358 </strong> 359 </li> 360 } 361 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("ContactPage")) 362 && !string.IsNullOrEmpty(Model.Area.Item.GetString("ContactLabel"))) 363 { 364 <li> 365 <a href="@Model.Area.Item.GetString("ContactPage")"> 366 @Model.Area.Item.GetString("ContactLabel") 367 </a> 368 </li> 369 } 370 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("SalesPage")) 371 && !string.IsNullOrEmpty(Model.Area.Item.GetString("SalesLabel"))) 372 { 373 <li> 374 <a href="@Model.Area.Item.GetString("SalesPage")"> 375 @Model.Area.Item.GetString("SalesLabel") 376 </a> 377 </li> 378 } 379 </ul> 380 381 </div> 382 </b-collapse> 383 </li> 384 <li class="basic_navbar-user"> 385 <button v-b-toggle.customer-center type="button" aria-label="@Translate(basicNavbarPrefix + "Show Webshop Login", "Show Webshop Login")"> 386 @if (Pageview.User == null) 387 { 388 <svg> 389 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#user"></use> 390 </svg> 391 } 392 else 393 { 394 <svg style="width: 30px; height: 30px;"> 395 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#user-check"></use> 396 </svg> 397 } 398 <span class="sr-only">@Translate(basicNavbarPrefix + "Login", "Login")</span> 399 </button> 400 401 402 <b-collapse id="customer-center" class="basic_navbar-dropdown" accordion="header" v-auto-close> 403 <div class="basic_navbar-body"> 404 @if (Pageview.User == null) 405 { 406 <head-login-form inline-template> 407 <form name="ExtUserForm" id="loginForm" method="post" class="form" role="form" v-on:submit="submitLogin"> 408 <p> 409 <strong> 410 @Translate(basicNavbarPrefix + "Webshop Login", "Webshop Login") 411 </strong> 412 </p> 413 <input type="hidden" name="ID" id="ID" value="" /> 414 <div class="form-group"> 415 <label for="Username">@Translate(basicNavbarPrefix + "Username", "Username")</label> 416 <input id="Username" v-model="username" name="Username" type="text" value="" class="form-control" autocomplete="off"> 417 </div> 418 <div class="form-group"> 419 <label for="Password">@Translate(basicNavbarPrefix + "Password", "Password")</label> 420 <input id="Password" v-model="password" name="Password" type="password" value="" class="form-control" autocomplete="off"> 421 </div> 422 <div v-if="loginFailed"> 423 <p class="alert alert-warning"> 424 @Translate("Login failed", "Invalid credentials") 425 </p> 426 </div> 427 <div class="basic_login-buttons"> 428 <button type="submit" role="button" class="btn btn-primary btn-block" v-bind:class='{"loading": loading}' v-on:click="loading=true" id="loginBtn"> 429 @Translate(basicNavbarPrefix + "Login", "Login") 430 </button> 431 </div> 432 </form> 433 </head-login-form> 434 <ul> 435 <li> 436 <a href="/Default.aspx?ID=@NORRIQ.Common8.Razor.Navigation.GetPageIdByNavigationTag("forgotpassword")&amp;LoginAction=Recovery"> 437 @Translate(basicNavbarPrefix + "Forgot password", "Forgot password") 438 </a> 439 </li> 440 <li> 441 <a href="@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("contact")"> 442 @Translate(basicNavbarPrefix + "Create Webshop Account", "Create Webshop Account") 443 </a> 444 </li> 445 </ul> 446 } 447 else 448 { 449 <div class="active-user"> 450 <p><strong>@Pageview.User.Name</strong></p> 451 <p> 452 <a v-clear-cache:click.user href='/admin/public/extranetlogoff.aspx?ID=@(NORRIQ.Common8.Razor.Navigation.GetPageIdByNavigationTag("home"))'> 453 @Translate(basicNavbarPrefix + "Sign out", "Sign out") 454 </a> 455 </p> 456 </div> 457 @RenderNavigation(new { Template = "basic_Footer.xslt", Expandmode = "all", StartLevel = 1, EndLevel = 4, NavigationTag = "customer-portal" }) 458 } 459 </div> 460 </b-collapse> 461 </li> 462 @if (Pageview.User != null && Pageview.User.AllowMediaBank()) 463 { 464 <media-bank inline-template> 465 <li class="basic_navbar-media"> 466 <form id="mediabankform" action="https://imagebank.tefcold.com/Home/LoginUser" method="post"> 467 <input id="mediabankformname" type="hidden" name="username" /> 468 <input id="mediabankformpassword" type="hidden" name="password" /> 469 <input type="hidden" value="false" name="persistent" /> 470 </form> 471 <a v-on:click="connect($event)" href="#" class="media"> 472 <svg width="28px" height="28px"> 473 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#photo-video"></use> 474 </svg> 475 <span class="sr-only">@Translate(basicNavbarPrefix + "Mediabank", "Mediabank")</span> 476 </a> 477 </li> 478 </media-bank> 479 480 } 481 @if (Pageview.User != null) 482 { 483 <li class="basic_navbar-quick"> 484 <a href="@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("quickorder")" title="@Translate(basicNavbarPrefix + "Quickorder", "Quickorder")"> 485 <svg width="28px" height="28px"> 486 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#quickorder"></use> 487 </svg> 488 <span class="sr-only">@Translate(basicNavbarPrefix + "Quickorder", "Quickorder")</span> 489 </a> 490 </li> 491 } 492 @if (Pageview.Area.Culture == "da-DK" || Pageview.User != null) 493 { 494 <cart-icon cartlink="@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("checkout")"></cart-icon> 495 } 496 </ul> 497 </div> 498 </div> 499 </header> 500 @using Dynamicweb.Frontend; 501 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> 502 503 @Title("News") 504 @Description("Default news template") 505 @{ 506 string basicPagePrefix = "Page "; 507 } 508 <figure> 509 <img src="~/Files/Images/Grafik/webbanner.jpg" alt="webbanner" class="img-fluid" /> 510 </figure> 511 @RenderNavigation(new { Template = "basic_Breadcrumb.xslt", Expandmode = "all", StartLevel = 1, EndLevel = 5 }) 512 513 <main class="basic_page"> 514 <aside class="basic_page-sidebar"> 515 @RenderNavigation(new { Template = "basic_Page.xslt", StartLevel = 1, EndLevel = 3 }) 516 </aside> 517 <section class="basic_page-content"> 518 @if (Model.Item.GetFile("Image") != null) 519 { 520 <figure> 521 <img src="@Model.Item.GetFile("Image").Path.ToString()" class="img-fluid" alt="@Model.Item.GetString("Title").ToString()" /> 522 </figure> 523 } 524 @if (!string.IsNullOrEmpty(Model.Item.GetString("Title").ToString())) 525 { 526 <header class="basic_page-header news-header"> 527 <h1> 528 @Model.Item.GetString("Title").ToString() 529 </h1> 530 <a href="@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("news")" class="btn btn-sm btn-secondary"> 531 @Translate(basicPagePrefix + "back to news","Go back") 532 </a> 533 </header> 534 } 535 @if (!string.IsNullOrEmpty(Model.Item.GetString("Text").ToString())) 536 { 537 <div class="basic_page-text"> 538 <small>@Model.Item.GetDateTime("Date").ToShortDateString()</small> 539 @Model.Item.GetString("Text") 540 </div> 541 } 542 </section> 543 </main> 544 545 @{ 546 string footerPrefix = "Footer "; 547 } 548 <footer class="basic_footer"> 549 <div class="basic_footer-wrap basic_footer-main"> 550 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FooterOneTitle")) && !string.IsNullOrEmpty(Model.Area.Item.GetString("FooterOneText"))) 551 { 552 <div class="basic_footer-box"> 553 <div class="basic_footer-head" role="button" v-b-toggle.footer-one> 554 <h3>@Model.Area.Item.GetString("FooterOneTitle")</h3> 555 </div> 556 <b-collapse id="footer-one" class="basic_footer-collapse"> 557 <div class="basic_footer-body"> 558 @Model.Area.Item.GetString("FooterOneText") 559 </div> 560 </b-collapse> 561 </div> 562 } 563 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FooterTwoTitle")) 564 && !string.IsNullOrEmpty(Model.Area.Item.GetString("FooterTwoText")) 565 || !string.IsNullOrEmpty(Model.Area.Item.GetString("FooterTwoTag"))) 566 { 567 <div class="basic_footer-box"> 568 <div class="basic_footer-head" role="button" v-b-toggle.footer-two> 569 <h3>@Model.Area.Item.GetString("FooterTwoTitle")</h3> 570 </div> 571 <b-collapse id="footer-two" class="basic_footer-collapse"> 572 <div class="basic_footer-body"> 573 @Model.Area.Item.GetString("FooterTwoText") 574 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FooterTwoTag"))) 575 { 576 @RenderNavigation(new { Template = "basic_Footer.xslt", Expandmode = "all", StartLevel = 1, EndLevel = 4, NavigationTag = @Model.Area.Item.GetString("FooterTwoTag").ToString() }) 577 } 578 </div> 579 </b-collapse> 580 </div> 581 } 582 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FooterThreeTitle")) 583 && !string.IsNullOrEmpty(Model.Area.Item.GetString("FooterThreeText")) 584 || !string.IsNullOrEmpty(Model.Area.Item.GetString("FooterThreeTag"))) 585 { 586 <div class="basic_footer-box"> 587 <div class="basic_footer-head" role="button" v-b-toggle.footer-three> 588 <h3>@Model.Area.Item.GetString("FooterThreeTitle")</h3> 589 </div> 590 <b-collapse id="footer-three" class="basic_footer-collapse"> 591 <div class="basic_footer-body"> 592 @Model.Area.Item.GetString("FooterThreeText") 593 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FooterThreeTag"))) 594 { 595 @RenderNavigation(new { Template = "basic_Footer.xslt", Expandmode = "all", StartLevel = 1, EndLevel = 4, NavigationTag = @Model.Area.Item.GetString("FooterThreeTag").ToString() }) 596 } 597 </div> 598 </b-collapse> 599 </div> 600 } 601 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FooterFourTitle")) && !string.IsNullOrEmpty(Model.Area.Item.GetString("FooterFourText"))) 602 { 603 <div class="basic_footer-box"> 604 <div class="basic_footer-head" role="button" v-b-toggle.footer-four> 605 <h3>@Model.Area.Item.GetString("FooterFourTitle")</h3> 606 </div> 607 <b-collapse id="footer-four" class="basic_footer-collapse"> 608 <div class="basic_footer-body"> 609 @Model.Area.Item.GetString("FooterFourText") 610 </div> 611 </b-collapse> 612 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FacebookUrl")) 613 || !string.IsNullOrEmpty(Model.Area.Item.GetString("LinkedInUrl")) 614 || !string.IsNullOrEmpty(Model.Area.Item.GetString("YoutubeUrl"))) 615 { 616 <div class="some"> 617 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FacebookUrl"))) 618 { 619 <a href="@Model.Area.Item.GetString("FacebookUrl")" target="_blank" aria-label="Facebook" rel="noreferrer"> 620 <svg> 621 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#facebook-square"></use> 622 </svg> 623 </a> 624 } 625 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("LinkedInUrl"))) 626 { 627 <a href="@Model.Area.Item.GetString("LinkedInUrl")" target="_blank" aria-label="LinkedIn" rel="noreferrer"> 628 <svg> 629 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#linkedin"></use> 630 </svg> 631 </a> 632 } 633 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("YoutubeUrl"))) 634 { 635 <a href="@Model.Area.Item.GetString("YoutubeUrl")" target="_blank" aria-label="Youtube" rel="noreferrer"> 636 <svg> 637 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#youtube-square"></use> 638 </svg> 639 </a> 640 } 641 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("SmileyUrl"))) 642 { 643 <a href="@Model.Area.Item.GetString("SmileyUrl")" target="_blank" aria-label="@Translate(footerPrefix + "smiley", "Elite Smiley")" rel="noreferrer"> 644 <svg> 645 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#elite-smiley-nocolor"></use> 646 </svg> 647 </a> 648 } 649 </div> 650 } 651 </div> 652 } 653 </div> 654 @if (Model.Area.Item.GetFile("GroupLogo") != null) 655 { 656 <div class="basic_footer-group"> 657 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("GroupLogo"))) 658 { 659 <a href="@Model.Area.Item.GetString("GroupLink")" target="_blank" title="@Translate(footerPrefix + "tefcold group logo alt", "Part of Tefcold Group")"> 660 <img src="@Model.Area.Item.GetFile("GroupLogo").Path" class="img-fluid" alt="@Translate(footerPrefix + "tefcold group logo alt", "Part of Tefcold Group")" /> 661 </a> 662 } 663 else 664 { 665 <img src="@Model.Area.Item.GetFile("GroupLogo").Path" class="img-fluid" alt="@Translate(footerPrefix + "tefcold group logo alt", "Part of Tefcold Group")" /> 666 } 667 </div> 668 } 669 @if (!string.IsNullOrEmpty(Model.Area.Item.GetString("FooterCopyright"))) 670 { 671 672 <div class="basic_footer-sub"> 673 <div class="basic_footer-wrap"> 674 675 <p> 676 &copy; @DateTime.Now.Year @Model.Area.Item.GetString("FooterCopyright") 677 </p> 678 @RenderNavigation(new { Template = "basic_Footer.xslt", Expandmode = "all", StartLevel = 1, EndLevel = 4, NavigationTag = "footer" }) 679 680 @if (Model.Area.Item.GetValue<ListViewModel>("Cards").SelectedValues.Any()) 681 { 682 <div class="text-center cards"> 683 @foreach (var cards in Model.Area.Item.GetValue<ListViewModel>("Cards").SelectedValues) 684 { 685 <img src="/Files/Images/cards/@cards" alt="@cards.Split('.').First()" loading="lazy" /> 686 } 687 </div> 688 } 689 690 </div> 691 </div> 692 } 693 </footer> 694 <basic-alert inline-template alertmessage='@Translate("Internet Explore Alert Message", "Website does not work properly on Internet Explorer, change browser for optimal user experience")' sessionstoragekey='IEHasBeenAlert'> 695 <div></div> 696 </basic-alert> 697 </div> 698 699 <script type="text/x-template" id="cart-icon-template"> 700 @{ 701 string cartIconPrefix = "Minicart "; 702 } 703 <li> 704 <a :href="cartlink"> 705 <svg> 706 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#shopping-cart"></use> 707 </svg> 708 <span class="label">@Translate(cartIconPrefix + "Checkout", "Checkout")</span> 709 <strong v-if="!cartEmpty" class="cart-quantity">{{quantity}}</strong> 710 </a> 711 </li> 712 </script> 713 714 715 716 <script type="text/x-template" id="basic-facet-filter-template"> 717 @{ 718 string basicFacetPrefix = "Filter "; 719 } 720 <aside> 721 <template v-if="HasActiveFilter()"> 722 723 <p id="selected-filter-label" class="sr-only"> 724 @Translate(basicFacetPrefix + "Active", "Active") 725 </p> 726 <div class="basic_filter-active" aria-labelledby="selected-filter-label"> 727 <template v-for="facetFilter in facetFilters"> 728 <span v-for="option in SelectedOptions(facetFilter)" class="custom-control custom-filter"> 729 <input type="checkbox" 730 :id="'Selected-' + facetFilter.name + '-' + option.name" 731 :name="facetFilter.name" 732 :value="option.value" 733 :v-model="option.selected" 734 :checked="option.selected" 735 v-on:click="ToggleFilter(facetFilter.name,option)" 736 class="custom-control-input" /> 737 <label :for="'Selected-' + facetFilter.name + '-' + option.name" class="custom-control-label" :data-name="facetFilter.name"> 738 <span> 739 {{option.label}} 740 </span> 741 <svg> 742 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#times"></use> 743 </svg> 744 </label> 745 </span> 746 </template> 747 </div> 748 </template> 749 <b-collapse class="basic_filter" id="sidebar-filter"> 750 <template v-if="!error && facetFilters"> 751 <button type="button" class="btn-close" v-b-toggle.sidebar-filter.sidebar-overlay aria-label="@Translate(basicFacetPrefix + "Close Filter", "Close Filter")"> 752 <span></span> 753 <span></span> 754 </button> 755 <div class="basic_filter-groups"> 756 <div class="basic_filter-group" v-for="(facetFilter, index) in facetFilters"> 757 <p :id="'filter-group-' + facetFilter.name.toLowerCase().trim()" v-b-toggle="'filter-collapse-' + facetFilter.name.toLowerCase().trim()"> 758 <template v-if="facetFilter.name === 'ModelType'"> 759 @Translate(basicFacetPrefix + "ModelType", "Model / Type") 760 </template> 761 <template v-else-if="facetFilter.name === 'DoorType'"> 762 @Translate(basicFacetPrefix + "DoorType", " Door type") 763 </template> 764 <template v-else-if="facetFilter.name === 'ExternalHeight'"> 765 @Translate(basicFacetPrefix + "ExternalHeight", "External Height") (mm) 766 </template> 767 <template v-else-if="facetFilter.name === 'NetVolume'"> 768 @Translate(basicFacetPrefix + "NetVolume", "Net Volume") (l) 769 </template> 770 <template v-else-if="facetFilter.name === 'DoorNumber'"> 771 @Translate(basicFacetPrefix + "DoorNumber", " Number of doors") 772 </template> 773 <template v-else-if="facetFilter.name === 'ExteriorFinish'"> 774 @Translate(basicFacetPrefix + "ExteriorFinish", "Exterior Finish") 775 </template> 776 <template v-else-if="facetFilter.name === 'ExternalWidth'"> 777 @Translate(basicFacetPrefix + "ExternalWidth", "External Width") (mm) 778 </template> 779 <template v-else-if="facetFilter.name === 'GrossVolume'"> 780 @Translate(basicFacetPrefix + "GrossVolume", "Gross Volume") (l) 781 </template> 782 <template v-else-if="facetFilter.name === 'Bottles330'"> 783 @Translate(basicFacetPrefix + "Bottles330", "Capacity 330ml bottles") 784 </template> 785 <template v-else-if="facetFilter.name === 'Bottles500'"> 786 @Translate(basicFacetPrefix + "Bottles500", "Capacity 500ml bottles") 787 </template> 788 <template v-else-if="facetFilter.name === 'Cans330'"> 789 @Translate(basicFacetPrefix + "Cans330", "Capacity 300ml cans") 790 </template> 791 <template v-else-if="facetFilter.name === 'Cans500'"> 792 @Translate(basicFacetPrefix + "Cans500", "Capacity 500ml cans") 793 </template> 794 <template v-else-if="facetFilter.name === 'TemperatureRange'"> 795 @Translate(basicFacetPrefix + "TemperatureRange", "Temperature Range") 796 </template> 797 <template v-else-if="facetFilter.name === 'TemperatureRangeZone2'"> 798 @Translate(basicFacetPrefix + "TemperatureRangeZone2", "Tempature Range 2") 799 </template> 800 <template v-else-if="facetFilter.name === 'ShelfNumber'"> 801 @Translate(basicFacetPrefix + "ShelfNumber", "Number of shelfs") 802 </template> 803 <template v-else-if="facetFilter.name === 'LidType'"> 804 @Translate(basicFacetPrefix + "LidType", "Lid Type") 805 </template> 806 <template v-else-if="facetFilter.name === 'InteriorFinish'"> 807 @Translate(basicFacetPrefix + "InteriorFinish", "Interior Finish") 808 </template> 809 <template v-else-if="facetFilter.name === 'WineBottles750'"> 810 @Translate(basicFacetPrefix + "WineBottles750", "Capacity 750ml winebottles") 811 </template> 812 <template v-else> 813 {{facetFilter.name}} 814 </template> 815 <svg> 816 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/Files/dist/icons/icons.svg#chevron-up"></use> 817 </svg> 818 </p> 819 <b-collapse :id="'filter-collapse-' + facetFilter.name.toLowerCase().trim()" :visible="ShowGroupIfSelected(facetFilter.options, index)" class="basic_filter-collapsing" :aria-labelledby="'filter-group-' + facetFilter.name.toLowerCase().trim()"> 820 <template v-if="facetFilter.optionActiveCount > 5"> 821 <span v-for="option in facetFilter.options.slice(0, 5)" class="custom-control custom-checkbox facet-option"> 822 <input type="checkbox" class="custom-control-input" 823 :id="'UnSelected-' + facetFilter.name + '-' + option.name" 824 :name="facetFilter.name" 825 :value="option.value" 826 :v-model="option.selected" 827 :checked="option.selected" 828 v-on:click="ToggleFilter(facetFilter.name,option)" /> 829 <label :for="'UnSelected-' + facetFilter.name + '-' + option.name" class="custom-control-label"> 830 {{option.label}} <span class="count">({{option.count}})</span> 831 </label> 832 </span> 833 <b-collapse class="basic_filter-expand" :id="'filter-expand-' + facetFilter.name.toLowerCase().trim()" :visible="ShowMoreIfSelected(facetFilter.options, index)"> 834 <span v-for="option in facetFilter.options.slice(5)" class="custom-control custom-checkbox facet-option"> 835 <input type="checkbox" class="custom-control-input" 836 :id="'UnSelected-' + facetFilter.name + '-' + option.name" 837 :name="facetFilter.name" 838 :value="option.value" 839 :v-model="option.selected" 840 :checked="option.selected" 841 v-on:click="ToggleFilter(facetFilter.name,option)" /> 842 <label :for="'UnSelected-' + facetFilter.name + '-' + option.name" class="custom-control-label"> 843 {{option.label}} <span class="count">({{option.count}})</span> 844 </label> 845 </span> 846 </b-collapse> 847 <a v-b-toggle="'filter-expand-' + facetFilter.name.toLowerCase().trim()" class="basic_filter-expanding" v-if="facetFilter.optionActiveCount > 6"> 848 <span class="show-more">+ @Translate(basicFacetPrefix + "show more", "show more")</span> 849 <span class="show-less">- @Translate(basicFacetPrefix + "show less", "show less")</span> 850 </a> 851 </template> 852 <template v-else> 853 <span v-for="option in facetFilter.options" class="custom-control custom-checkbox facet-option"> 854 <input type="checkbox" class="custom-control-input" 855 :id="'UnSelected-' + facetFilter.name + '-' + option.name" 856 :name="facetFilter.name" 857 :value="option.value" 858 :v-model="option.selected" 859 :checked="option.selected" 860 v-on:click="ToggleFilter(facetFilter.name,option)" /> 861 <label :for="'UnSelected-' + facetFilter.name + '-' + option.name" class="custom-control-label"> 862 {{option.label}} <span class="count">({{option.count}})</span> 863 </label> 864 </span> 865 </template> 866 </b-collapse> 867 </div> 868 </div> 869 </template> 870 </b-collapse> 871 </aside> 872 </script> 873 <script type="text/x-template" id="add-to-basket-simple-template"> 874 @{ 875 string addToBasketSimplePrifix = "BuyButton "; 876 } 877 <div class="form-flex" v-if="priceWithoutVat > 0" v-bind:class="[{added: IsAdded}, {adding: IsAdding}, {disabled: !canAdd}]"> 878 879 <label for="quantity">@Translate(addToBasketSimplePrifix + "Quantity", "Quantity")</label> 880 <input class="form-control" type="number" name="quantity" v-model="quantity" autocomplete="off" onclick="this.setSelectionRange(0, this.value.length)"> 881 <button :disabled="!canAdd" :class="buttonClass" v-on:click="addToBasketAndResetQuantity()" aria-label="@Translate(addToBasketSimplePrifix + "Add", "Add")"> 882 <slot> 883 <svg> 884 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#shopping-cart"> 885 </use> 886 </svg> 887 <span> 888 @Translate(addToBasketSimplePrifix + "Add to basket", "Add to basket") 889 </span> 890 </slot> 891 892 </button> 893 894 <span v-if="itemStockLocationState == 5" v-b-tooltip.hover.focus="'@Translate(addToBasketSimplePrifix + "The item is out of stock","The item is out of stock").Replace(System.Environment.NewLine,"").Replace("'","\\'")'" class="addtobasket-help">?</span> 895 <span v-if="itemStockLocationState == 4" v-b-tooltip.hover.focus="'@Translate(addToBasketSimplePrifix + "cant buy this product info","This product is not available from the currently chosen stock location!").Replace(System.Environment.NewLine,"").Replace("'","\\'")'" class="addtobasket-help">?</span> 896 <span v-if="itemStockLocationState == 50" v-b-tooltip.hover.focus="'@Translate(addToBasketSimplePrifix + "no stock information available","Could not find any stock information on this product!").Replace(System.Environment.NewLine,"").Replace("'","\\'")'" class="addtobasket-help">?</span> 897 </div> 898 </script> 899 900 <script type="text/x-template" id="quick-add-template"> 901 @{ 902 string quickAddPrifix = "BuyButton "; 903 } 904 <div v-bind:class="[{added: IsAdded}, {adding: IsAdding}]"> 905 <label for="quantity">@Translate(quickAddPrifix + "Quantity", "Quantity")</label> 906 <input class="form-control" type="number" id="quantity" name="quantity" v-model="quantity" autocomplete="off"> 907 </div> 908 </script> 909 910 <script type="text/x-template" id="add-to-basket-button-only-template"> 911 @{ 912 string addToBasketPrefix = "BuyButton "; 913 } 914 <div v-bind:class="[{added: IsAdded}, {adding: IsAdding}]"> 915 <button :class="buttonClass" v-on:click="addToBasket()"> 916 <slot> 917 @Translate(addToBasketPrefix + "Add to basket", "Add to basket") 918 </slot> 919 </button> 920 </div> 921 </script> 922 <script type="text/x-template" id="async-price-template"> 923 @{ 924 string asyncPrefix = "Async "; 925 926 } 927 928 <div :class="classType + (loading ? ' loading' : '')"> 929 <template> 930 <p :class="classType + '--error'" v-if="error">{{error}}</p> 931 </template> 932 <template v-if="!loading"> 933 <template v-if="!forceAskForPrice && price.netUnitPrice.priceWithoutVat"> 934 935 <p class="price"> 936 <span itemprop="price" :content="price.netUnitPrice.priceWithoutVat">{{ price.netUnitPrice.priceWithoutVat | currency(price.currencyCode) }}</span> 937 <span class="sr-only" itemprop="priceCurrency" content="@(Pageview.User?.Currency ?? Pageview.Area.EcomCurrencyId)">@(Pageview.User?.Currency ?? Pageview.Area.EcomCurrencyId)</span> 938 </p> 939 <small>@Translate(asyncPrefix + "price without vat", "Price without VAT")</small> 940 </template> 941 <template v-if="!price?.netUnitPrice?.priceWithoutVat || forceAskForPrice"> 942 <a :href="'mailto:@Translate("Ask for a price EMAIL.","info@tefcold.dk")?subject=' + '@Translate("Ask for a price.")' + ' - ' + product.product.name + ' - ' + product.product.shortDescription + '&body=@Translate("ProductName EMAIL (BODY)", "Produktnavn: ") ' + product.product.name + ' - @Translate("ProductShortName EMAIL (BODY)", "Kort produktnavn: ") ' + product.product.shortDescription" class="btn btn-outline-secondary btn-sm">@Translate("Ask for a price.", "Spørg om pris.")</a> 943 </template> 944 </template> 945 </div> 946 </script> 947 <script type="text/x-template" id="pagination-template"> 948 @{ 949 string paginationPrefix = "Pagination "; 950 } 951 <nav aria-label="@Translate(paginationPrefix + "Productlist pagination", "Productlist pagination")"> 952 <ul class="pagination"> 953 <li :class="['page-item', currentPage == 1 ? 'disabled' : '' ]"> 954 <a class="page-link" v-on:click="togglePrevPage()" aria-label="@Translate(paginationPrefix + "Previous Page", "Previous Page")" v-bind:aria-disabled="currentPage > 1 ? 'true' : null"> 955 <svg> 956 <use xmlns:xlink="http://www.w3.org/1999/xlink" 957 xlink:href="/files/dist/icons/icons.svg#chevron-left"> 958 </use> 959 </svg> 960 </a> 961 </li> 962 <template v-if="hasGroupId"> 963 <li v-if="showPage(n)" v-for="n in totalPages" :key="n" :class="(n == currentPage ? 'page-item active' : 'page-item')"> 964 <a v-on:click="togglePage(n)" v-bind:aria-current="(n == currentPage ? 'true' : '')" class="page-link"> 965 {{n}} 966 </a> 967 </li> 968 </template> 969 <template v-else> 970 <li class="page-item"> 971 <span class="page-label"> 972 {{currentPage}} 973 </span> 974 </li> 975 <li class="page-item"> 976 <span class="page-label"> 977 @Translate(paginationPrefix + "of", "of") 978 </span> 979 </li> 980 <li class="page-item"> 981 <span class="page-label"> 982 {{totalPages}} 983 </span> 984 </li> 985 </template> 986 <li :class="'page-item' + (currentPage >= totalPages ? ' disabled' : '')"> 987 <a v-on:click="toggleNextPage()" aria-label="@Translate(paginationPrefix + "Next Page", "Next Page")" class="page-link" v-bind:aria-disabled="totalPages > currentPage ? 'true' : null"> 988 <svg class="icon-pagination"> 989 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#chevron-right"></use> 990 </svg> 991 </a> 992 </li> 993 </ul> 994 </nav> 995 </script> 996 <script type="text/x-template" id="product-specification-list-view-template"> 997 <div class="basic_listview-data"> 998 <template v-if="!isSparePart"> 999 <p itemprop="description"> 1000 {{ SpecificationHelpers.GetFirstSpecificationValueOrDefault('GrossNetVolume',productSpecifications)}} {{ SpecificationHelpers.GetSpecificationUnit(SpecificationHelpers.GetSpecificationByKey('GrossNetVolume',productSpecifications))}} 1001 <br /> 1002 {{ SpecificationHelpers.GetFirstSpecificationValueOrDefault('ExternalDimensionWeb',productSpecifications)}} 1003 1004 </p> 1005 </template> 1006 <p itemprop="sku">@Translate("PLP No.", "No.") {{productNumber}}</p> 1007 </div> 1008 </script> 1009 <script type="text/x-template" id="product-spare-parts-view-template"> 1010 @{ 1011 string basicPimPrefix = "PDP "; 1012 } 1013 <div> 1014 <button class="btn-collapse" id="spareparts" v-b-toggle.spareparts-list> 1015 @Translate(basicPimPrefix + "spare parts", "Spare Parts") 1016 </button> 1017 <template> 1018 <b-collapse id="spareparts-list" visible accordion="specs2"> 1019 <template> 1020 <div class="body-collapse full pb-0"> 1021 <ul class="basic_pim-spares"> 1022 <template v-if="sparePartReportExist"> 1023 <li> 1024 <a href="#" v-on:click="getSparePartReport($event)" target="_blank"> 1025 <svg> 1026 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#download"></use> 1027 </svg> 1028 @Translate(basicPimPrefix + "spare part list", "Spare part list") 1029 </a> 1030 </li> 1031 </template> 1032 <li> 1033 <a :href="explodedDrawing" target="_blank"> 1034 <svg> 1035 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#download"></use> 1036 </svg> 1037 @Translate(basicPimPrefix + "view exploded drawing of spare parts", "View exploded drawing of spare parts") 1038 </a> 1039 </li> 1040 <li :data-point="spare.product.position" class="basic_pim-spare" v-for="spare in spareParts"> 1041 <div class="head"> 1042 <a href="#" v-on:click="navigateToSpare($event,spare.product.id)" class="name">{{spare.product.productName}}</a> 1043 <p class="sku">{{spare.product.number}}</p> 1044 </div> 1045 1046 @if (Pageview.IsAllowedToShop()) 1047 { 1048 <div class="foot"> 1049 <async-price class-type="asyncprice-spare" 1050 :product="spare" 1051 :default-price="spare.product.price" 1052 list-price="true" 1053 :only-standard-price="@(Pageview.IsCurrentlyB2C().ToString().ToLower())" 1054 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))"> 1055 > 1056 </async-price> 1057 <add-to-basket-simple 1058 :product="spare" 1059 :unit-of-measure="'PCS'" 1060 button-class="btn btn-primary" 1061 class="addtobasketsimple-plp" 1062 :price-without-vat="spare.product.price" 1063 language-id="@Pageview.Area.EcomLanguageId" 1064 :only-spare-parts="@(Pageview.User.OnlySpareParts().ToString().ToLower())" 1065 :is-marketing-user="@(Pageview.User.OnlyView().ToString().ToLower())" 1066 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))"> 1067 </add-to-basket-simple> 1068 </div> 1069 } 1070 @*<p>DEBUG: {{spare}}</p>*@ 1071 </li> 1072 1073 </ul> 1074 </div> 1075 </template> 1076 </b-collapse> 1077 </template> 1078 </div> 1079 1080 </script> 1081 <script type="text/x-template" id="variant-list-template"> 1082 <ul class="variants" v-if="initialVariant.product.hasVariants" > 1083 <li> 1084 <input v-model="variantId" @@click="changeVariantClickHandler($event)" :value="initialVariant.product.variantId" type="radio" :name="'main-' + initialVariant.product.id" :id="'main-' + initialVariant.product.id" :disabled="readOnly"/> 1085 <label :for="'main-' + initialVariant.product.id" :style="getImageOrColor(initialVariant.product.variantImage,initialVariant.product.variantValue)"></label> 1086 </li> 1087 <li v-for="variant in initialVariant.product.simpleVariants"> 1088 <input v-model="variantId" @@click="changeVariantClickHandler($event)" :value="variant.product.variantId" type="radio" :name="'color-'+variant.product.id + '-' + variant.product.variantId" :id="'color-'+variant.product.id + '-' + variant.product.variantId" /> 1089 <label :for="'color-'+variant.product.id+ '-' + variant.product.variantId" :style="getImageOrColor(variant.product.variantImage,variant.product.variantValue)"> 1090 </label> 1091 </li> 1092 </ul> 1093 </script> 1094 @using Dynamicweb.Ecommerce.International 1095 <script type="text/x-template" id="product-template"> 1096 1097 <article itemscope itemtype="https://schema.org/Product" v-if="product.product" v-bind:key="product.product.number"> 1098 <span class="badge"> 1099 <img v-if="SpecificationHelpers.GetFirstSpecificationValueOrDefault('Stickers',product.specifications)" :src="'/Admin/Public/GetImage.ashx?Height=50&amp;Compression=85&amp;Image=' + SpecificationHelpers.GetFirstSpecificationValueOrDefault('Stickers',product.specifications)" alt="@Translate(basicPimPrefix + "Sticker", "Sticker")" v-bind:alt="product.product.name" itemprop="image" class="img-fluid" /> 1100 </span> 1101 <a :href="product.product.url" itemprop="url"> 1102 <figure style="min-height: 1px;"> 1103 1104 <img v-if="SpecificationHelpers.GetFirstSpecificationValueOrDefault('WebPrimaryImage',product.specifications)" :src="'/Admin/Public/GetImage.ashx?Width=427&amp;Height=427&amp;Compression=85&amp;Crop=5&amp;fillcanvas=true&amp;Image=' + SpecificationHelpers.GetFirstSpecificationValueOrDefault('WebPrimaryImage',product.specifications)" 1105 v-bind:alt="product.product.name" itemprop="image" class="img-fluid" /> 1106 <img v-if="!SpecificationHelpers.GetFirstSpecificationValueOrDefault('WebPrimaryImage',product.specifications)" :src="'/Admin/Public/GetImage.ashx?Width=427&amp;Height=427&amp;Compression=85&amp;Crop=5&amp;fillcanvas=true&amp;Image=/Files/Images/default.jpg'" 1107 v-bind:alt="product.product.name" itemprop="image" class="img-fluid" /> 1108 </figure> 1109 <header> 1110 <h1 itemprop="name">{{product.product.name}}</h1> 1111 <p itemprop="category">{{product.product.shortDescription}}</p> 1112 <div class="flex-list"> 1113 <product-specification-list-view :product-specifications="product.specifications" 1114 :product-number="product.product.number" 1115 :is-spare-part="product.product.isSparePart"> 1116 </product-specification-list-view> 1117 @if (Pageview.IsAllowedToShop()) 1118 { 1119 <template v-if="plpClass=='basic_listview-grid'"> 1120 <buying-component inline-template :selected-product="product" :initial-product="initialProduct"> 1121 <template v-if="SpecificationHelpers.GetFirstSpecificationValueOrDefault('EnergyArrow',selectedProduct.specifications)"> 1122 <div class="energy-data"> 1123 <a :href="SpecificationHelpers.GetFirstSpecificationValueOrDefault('EnergyLabel',selectedProduct.specifications)" target="_blank" class="energy-label"> 1124 <img :src="SpecificationHelpers.GetFirstSpecificationValueOrDefault('EnergyArrow',selectedProduct.specifications)" alt="Energy Label" class="img-fluid img-energy" height="25" /> 1125 </a> 1126 <a href="#" v-on:click="getProductReport($event,selectedProduct.product.number,selectedProduct.product.name,selectedProduct.product.languageId)" target="_blank" class="energy-link"> 1127 <small>@Translate("PDP product sheet", "Product Sheet")</small> 1128 </a> 1129 </div> 1130 </template> 1131 </buying-component> 1132 </template> 1133 } 1134 </div> 1135 </header> 1136 </a> 1137 <template v-if="plpClass=='basic_listview-list'"> 1138 <ul class="basic_listview-specs"> 1139 <li v-for="item in SpecificationHelpers.GetPrettyBulletPoints(product.specifications)"> 1140 {{item}} 1141 </li> 1142 </ul> 1143 @*{{ product.Product.LongDescription }}*@ 1144 </template> 1145 1146 @if (!Pageview.IsAllowedToShop()) 1147 { 1148 <footer> 1149 <a href="@NORRIQ.Common8.Razor.Navigation.GetUrlByNavigationTag("contact")" class="btn btn-outline-secondary btn-sm"> 1150 @Translate("create account", "Create account") 1151 </a> 1152 <buying-component inline-template :selected-product="product" :initial-product="initialProduct"> 1153 <variant-list :initial-variant="initialProduct" :currently-selected="selectedProduct"></variant-list> 1154 </buying-component> 1155 </footer> 1156 } 1157 else 1158 { 1159 <buying-component inline-template :selected-product="product" :plp-class="plpClass" :initial-product="initialProduct"> 1160 <footer itemprop="offers" itemscope="" itemtype="https://schema.org/Offer"> 1161 <variant-list :initial-variant="initialProduct" :currently-selected="selectedProduct"></variant-list> 1162 <template v-if="SpecificationHelpers.GetFirstSpecificationValueOrDefault('EnergyArrow',selectedProduct.specifications) && plpClass == 'basic_listview-list'"> 1163 <div class="energy-price"> 1164 <async-price class-type="asyncprice-plp" 1165 :product="selectedProduct" 1166 :default-price="selectedProduct.product.defaultPrice.priceWithoutVat" 1167 :only-standard-price="@(Pageview.IsCurrentlyB2C().ToString().ToLower())" 1168 list-price="true" 1169 :should-emit-warranties="@((Pageview.IsAllowedToShop()).ToString().ToLower())" 1170 :force-ask-for-price="(!selectedProduct.product.isSparePart && @((Pageview.User.OnlySpareParts()).ToString().ToLower())) || @(Pageview.User.OnlyView().ToString().ToLower())" 1171 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))"> 1172 </async-price> 1173 <div class="energy-data"> 1174 <a :href="SpecificationHelpers.GetFirstSpecificationValueOrDefault('EnergyLabel',selectedProduct.specifications)" class="energy-label" target="_blank"> 1175 <img :src="SpecificationHelpers.GetFirstSpecificationValueOrDefault('EnergyArrow',selectedProduct.specifications)" alt="Energy Label" class="img-fluid img-energy" height="25" /> 1176 </a> 1177 <a href="#" v-on:click="getProductReport($event,selectedProduct.product.number,selectedProduct.product.name,selectedProduct.product.languageId)" target="_blank" class="energy-link"> 1178 <small>@Translate("PDP product sheet", "Product Sheet")</small> 1179 </a> 1180 </div> 1181 </div> 1182 </template> 1183 <template v-else> 1184 <async-price class-type="asyncprice-plp" 1185 :product="selectedProduct" 1186 :default-price="selectedProduct.product.defaultPrice.priceWithoutVat" 1187 :only-standard-price="@(Pageview.IsCurrentlyB2C().ToString().ToLower())" 1188 list-price="true" 1189 :should-emit-warranties="@((Pageview.IsAllowedToShop()).ToString().ToLower())" 1190 :force-ask-for-price="(!selectedProduct.product.isSparePart && @((Pageview.User.OnlySpareParts()).ToString().ToLower())) || @(Pageview.User.OnlyView().ToString().ToLower())" 1191 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))"> 1192 </async-price> 1193 </template> 1194 1195 <add-to-basket-simple :product="selectedProduct" 1196 :unit-of-measure="'PCS'" 1197 button-class="btn btn-primary" 1198 class="addtobasketsimple-plp" 1199 :price-without-vat="currentItemPriceWithoutVat" 1200 language-id="@Pageview.Area.EcomLanguageId" 1201 :only-spare-parts="@(Pageview.User.OnlySpareParts().ToString().ToLower())" 1202 :is-marketing-user="@(Pageview.User.OnlyView().ToString().ToLower())" 1203 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))"> 1204 </add-to-basket-simple> 1205 </footer> 1206 </buying-component> 1207 } 1208 1209 </article> 1210 1211 </script> 1212 <script type="text/x-template" id="quick-search-template"> 1213 <div class="quicksearch-component"> 1214 <div class="quickorder-form"> 1215 <slot name="right-box"></slot> 1216 <div class="quickorder-box"> 1217 <h2>@Translate("Find products")</h2> 1218 <div class="quickorder-input"> 1219 <label for="quickOrderSearch">@Translate("Product name or number")</label> 1220 <input type="text" 1221 :id="id" 1222 v-model="search" 1223 @@keydown.enter="enter" 1224 @@keydown.down="down" 1225 @@keydown.up="up" 1226 @@input="onSearchInput" 1227 class="form-control form-control-lg" 1228 autocomplete="chrome-off" 1229 placeholder="@Translate("Quick order search term")" 1230 :disabled="disabled"/> 1231 <label for="quickOrderQty">@Translate("Quantity")</label> 1232 <input type="number" 1233 v-model.number="quantity" 1234 @@change="chosenProduct()" 1235 @@keydown.enter="chosenProduct()" 1236 class="form-control form-control-lg" 1237 id="quickOrderQty" 1238 placeholder="0" 1239 autocomplete="chrome-off" 1240 :disabled="disabled"/> 1241 1242 </div> 1243 <ul v-if="filterList.length > 0 && open" class="quickorder-list"> 1244 <li v-for="(product,index) in filterList" 1245 :class="{'active': isSelected(index)}"> 1246 <button @@click="suggestClick(index)"> 1247 {{concatNameAndNumber(product)}} 1248 </button> 1249 1250 </li> 1251 </ul> 1252 1253 <div class="quickorder-product" v-if="currentChosenProduct"> 1254 <p><strong>{{currentChosenProduct.name}}</strong><small>{{currentChosenProduct.shortDescription}}</small></p> 1255 <product-specification-list-view v-if="searchProductSpecs !== null" 1256 :product-specifications="searchProductSpecs" 1257 :product-number="currentChosenProduct.number"> 1258 </product-specification-list-view> 1259 <async-price class-type="quickorder-product-price" 1260 :product="currentChosenProduct" 1261 unit-of-measure="" 1262 :only-price="true" 1263 default-price-without-vat="0" 1264 :force-ask-for-price="(!currentChosenProduct.isSparePart && @(Pageview.User.OnlySpareParts().ToString().ToLower())) || @(Pageview.User.OnlyView().ToString().ToLower())" 1265 @@price="handlePriceUpdate" 1266 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))"> 1267 </async-price> 1268 </div> 1269 </div> 1270 </div> 1271 <p v-if="showPriceError">@Translate("QuickOrderZeroPriceError","Can not add product with zero price")</p> 1272 <div class="quickorder-cart" v-if="productsToOrder.length > 0"> 1273 <table class="table table-striped table-flex"> 1274 <thead> 1275 <tr> 1276 <th>@Translate("Product")</th> 1277 <th>@Translate("Specifications")</th> 1278 <th>@Translate("Quantity")</th> 1279 <th class="cell-right">@Translate("Price")</th> 1280 <th>&nbsp;</th> 1281 </tr> 1282 </thead> 1283 <tbody> 1284 <tr v-for="(product,index) in productsToOrder"> 1285 <td class="cell-prod"> 1286 <strong>{{product.name}}</strong> 1287 <small>{{product.shortDescription}}</small> 1288 </td> 1289 <td class="cell-specs"> 1290 <product-specification-list-view :product-specifications="product.productSpecifications" 1291 :product-number="product.number"> 1292 </product-specification-list-view> 1293 </td> 1294 <td class="cell-specs"> 1295 <input class="form-control" type="number" v-model="product.quantity" @@input="updateQuantity()" /> 1296 </td> 1297 <td class="cell-price cell-right"> 1298 <async-price class-type="quickorder-product-price" 1299 :product="quickOrderProductToSimpleProduct(product)" 1300 unit-of-measure="" 1301 :only-price="true" 1302 default-price-without-vat="0" 1303 :should-emit-warranties="true" 1304 @@qo-warranty-update="setWarranty($event,product)" 1305 :force-ask-for-price="(!product.isSparePart && @(Pageview.User.OnlySpareParts().ToString().ToLower())) || @(Pageview.User.OnlyView().ToString().ToLower())" 1306 standard-customer="@(string.IsNullOrEmpty(Pageview.AreaSettings.GetString("StandardCustomer")) ? "" : Pageview.AreaSettings.GetString("StandardCustomer"))"> 1307 1308 </async-price> 1309 </td> 1310 <td class="cell-trash"> 1311 <button @@click="removeOrderline(index)" aria-label="@Translate("Delete product")" class="text-danger"> 1312 <svg> 1313 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/files/dist/icons/icons.svg#trash-alt"></use> 1314 </svg> 1315 </button> 1316 </td> 1317 </tr> 1318 </tbody> 1319 </table> 1320 <slot name="button"></slot> 1321 1322 </div> 1323 </div> 1324 </script> 1325 <script src="@NORRIQ.Common8.Razor.TimestampSource.GetSourceWithTimestamp("/Files/dist/scripts/vendors~bundle.min.js")"></script> 1326 <script src="@NORRIQ.Common8.Razor.TimestampSource.GetSourceWithTimestamp("/Files/dist/scripts/bundle.min.js")"></script> 1327 <script async> 1328 AppStart.VueProvider.init({ 1329 webApiUrl: '@System.Web.Configuration.WebConfigurationManager.AppSettings["WebApiProxyUrl"]', 1330 currencyCode: '@currencyCode', 1331 locale: '@Pageview.Area.Culture', 1332 currencyLeft: false, 1333 currencySpacing: true, 1334 currencySymbol: '@currencyCode', 1335 currencyDecimalSeparator: ',', 1336 currencyGroupSeparator: '.', 1337 currencyDecimalDigits: 2, 1338 dateFormatShort: '@Pageview.Area.Dateformat', 1339 languages: `@languagesJson` 1340 }); 1341 </script> 1342 1343 <script append="replace"></script> 1344 </body> 1345 </html>