Error compiling template "Designs/SkanskaMaskin/_parsed/page-mv.parsed.cshtml"
Line 1174: The name 'isCheckMeRole' does not exist in the current context
Line 1509: The name 'isCheckMeRole' does not exist in the current context
Line 2119: The name 'isCheckMeRole' does not exist in the current context
Line 2474: The name 'isCheckMeRole' does not exist in the current context
Line 3203: The name 'isCheckMeRole' does not exist in the current context
Line 3557: The name 'isCheckMeRole' does not exist in the current context
1 //------------------------------------------------------------------------------
2 // <auto-generated>
3 // This code was generated by a tool.
4 // Runtime Version:4.0.30319.42000
5 //
6 // Changes to this file may cause incorrect behavior and will be lost if
7 // the code is regenerated.
8 // </auto-generated>
9 //------------------------------------------------------------------------------
10
11 namespace CompiledRazorTemplates.Dynamic {
12
13 #line 1196 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
14 using System;
15
16 #line default
17 #line hidden
18 using System.Collections.Generic;
19 using System.Linq;
20
21 #line 3 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
22 using Newtonsoft.Json;
23
24 #line default
25 #line hidden
26
27 #line 1027 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
28 using Newtonsoft.Json.Linq;
29
30 #line default
31 #line hidden
32
33 #line 5 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
34 using System.Xml;
35
36 #line default
37 #line hidden
38
39 #line 6 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
40 using System.Web;
41
42 #line default
43 #line hidden
44
45 #line 7 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
46 using Dynamicweb;
47
48 #line default
49 #line hidden
50
51 #line 8 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
52 using Dynamicweb.Environment;
53
54 #line default
55 #line hidden
56
57 #line 9 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
58 using Softgear.SkanskaMaskin.DataAccess.Helpers;
59
60 #line default
61 #line hidden
62
63 #line 1028 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
64 using Softgear.SkanskaMaskin.Data.Business;
65
66 #line default
67 #line hidden
68
69 #line 1030 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
70 using Softgear.SkanskaMaskin.Data.Entities.Common;
71
72 #line default
73 #line hidden
74
75 #line 1031 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
76 using Softgear.SkanskaMaskin.Data.Entities.Product;
77
78 #line default
79 #line hidden
80
81 #line 13 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
82 using Dynamicweb.Security.UserManagement;
83
84 #line default
85 #line hidden
86
87 #line 14 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
88 using Softgear.SkanskaMaskin.Se.Helpers;
89
90 #line default
91 #line hidden
92
93 #line 1025 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
94 using Dynamicweb.Frontend;
95
96 #line default
97 #line hidden
98
99 #line 1026 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
100 using Dynamicweb.Rendering;
101
102 #line default
103 #line hidden
104
105 #line 1029 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
106 using Softgear.SkanskaMaskin.Data.Entities.Cart;
107
108 #line default
109 #line hidden
110
111
112 public class RazorEngine_8ec6a5f922d649e5bbf68608df1ee4aa : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel> {
113
114 #line hidden
115
116 #line 1120 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
117
118 string GetRentalPeriod(Dynamicweb.Ecommerce.Orders.OrderLine item)
119 {
120 var rentalPeriod = string.Empty;
121
122 rentalPeriod = item.GetOrderLineFieldValue("RentalPeriod").Value;
123
124 /*
125 foreach (var i in item. GetLoop("Order.OrderLineFields"))
126 {
127 if (i.GetString("Ecom:Order:OrderLine.OrderLineField.SystemName") == "RentalPeriod")
128 {
129 rentalPeriod = i.GetString("Ecom:Order:OrderLine.OrderLineField.Value");
130 break;
131 }
132 }
133 */
134 return rentalPeriod;
135 }
136
137 #line default
138 #line hidden
139
140
141 public RazorEngine_8ec6a5f922d649e5bbf68608df1ee4aa() {
142 }
143
144 public override void Execute() {
145 WriteLiteral("<!DOCTYPE html>\r\n");
146
147 WriteLiteral("\r\n");
148
149
150 #line 16 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
151
152 var currentUser = Dynamicweb.Security.UserManagement.User.GetCurrentFrontendUser();
153 var isLoggedIn = currentUser != null ? true : false;
154 var isinternalCustomer = isLoggedIn ? ProjectManager.IsInternalCustomer(currentUser) : false;
155 var permissionCreateNewProjectExternalUser = false;
156 var hasExternalCustomerAccess = ProjectManager.HasExternalCustomerAccess(currentUser);
157 var currentProjectData = new Softgear.SkanskaMaskin.Data.Entities.Account.ProjectData();
158 var loginHelper = new AdfsLoginHelper(HttpContext.Current);
159 //var userOnInternalNetwork = loginHelper.IsFromSkanskaNetwork();
160 var userName = "";
161
162 var onrentEditHref = "/form/editonrent";
163 var editOnRent = "js-editOnRent";
164 var topProjectsForUser = new List<string>();
165
166 if (currentUser != null)
167 {
168 currentProjectData = AccountManager.getCurrentProject(currentUser);
169 //userName = userOnInternalNetwork ? currentUser.UserName : $"{currentUser.FirstName} {currentUser.LastName}";
170 userName = currentUser.UserName;
171
172 topProjectsForUser = AccountManager.GetTopThreeFavoritProjectsForUser();
173 }
174
175 if (currentProjectData != null)
176 {
177 if (currentProjectData.CustomerType == "External")
178 {
179 onrentEditHref = "/form/editonrentexternal";
180 editOnRent = "js-editOnRentExternal";
181 if (isLoggedIn && !isinternalCustomer)
182 {
183 permissionCreateNewProjectExternalUser = isLoggedIn && !isinternalCustomer ? PermissionManager.HasPermission(PermissionManager.CREATE_NEW_PROJECT, currentUser) : false;
184 }
185 else if (isLoggedIn && isinternalCustomer && hasExternalCustomerAccess)
186 {
187 permissionCreateNewProjectExternalUser = true;
188 }
189 }
190 }
191
192 /* Header */
193 var hbh = new HandleBarsHelper();
194 var inputsList = new List<object>();
195
196 var textData = new
197 {
198 empty = "Inga produkter hittades",
199 more = "Visa fler"
200 };
201
202 inputsList.Add(new { name = "id", value = "" });
203 inputsList.Add(new { name = "pid", value = "" });
204
205 var autoCompleteData = new
206 {
207 method = "get",
208 action = "/service/search"
209 };
210
211 var queryData = new
212 {
213 name = "q",
214 placeholder = @Translate("SOK_PRODUKT", "Sök produkt")
215 };
216
217 var formData = new
218 {
219 method = "get",
220 action = "/sok",
221 useLoader = true,
222 autocomplete = autoCompleteData,
223 query = queryData,
224 inputs = inputsList.ToArray()
225 };
226
227 var searchData = new
228 {
229 text = textData,
230 form = formData
231 };
232
233 bool empty = true, single = false, plural = false;
234 if (string.IsNullOrWhiteSpace(Convert.ToString(Model.Cart.TotalProductsCount)))
235 {
236 empty = true;
237 single = false;
238 plural = false;
239 }
240 else if (Convert.ToString(Model.Cart.TotalProductsCount) == "1")
241 {
242 empty = false;
243 single = true;
244 plural = false;
245 }
246 else
247 {
248 empty = false;
249 single = false;
250 plural = true;
251 }
252
253 var cartToggle = new
254 {
255 href = "/varukorg/",
256 textEmpty = @Translate("KUNDVAGNEN_AR_TOM", "Varukorgen är tom"),
257 textSingle = @Translate("PRODUKT_SINGULAR", "Produkt"),
258 textPlural = @Translate("PRODUKT_PLURAL", "Produkter"),
259 isEmpty = empty,
260 isSingle = single,
261 isPlural = plural,
262 count = string.IsNullOrWhiteSpace(Convert.ToString(Model.Cart.TotalProductsCount)) ? "0" : Convert.ToString(Model.Cart.TotalProductsCount)
263 };
264
265 /* Navigering */
266 var navigationSettings = new Dynamicweb.Frontend.Navigation.NavigationSettings()
267 {
268 StartLevel = 1,
269 StopLevel = 2,
270 ExpandMode = Dynamicweb.Frontend.Navigation.ExpandMode.All
271 };
272
273 var formInputs = new List<object>();
274 var formInput1 = new { name = "id", value = "" };
275 var formInput2 = new { name = "pid", value = "" };
276
277 formInputs.Add(formInput1);
278 formInputs.Add(formInput2);
279
280 var doc = new XmlDocument();
281
282 /* Footer */
283 var primaryFooterNavData = RenderNavigation(new { template = "footer-primary-navigation.xslt", parenttag = "FooterPrimary" });
284 doc.LoadXml(primaryFooterNavData);
285 var primaryJson = JObject.Parse(JsonConvert.SerializeXmlNode(doc));
286
287 var secondaryFooterNavData = RenderNavigation(new { template = "footer-secondary-navigation.xslt", parenttag = "FooterSecondary" });
288 doc.LoadXml(secondaryFooterNavData);
289 var secondaryJson = JObject.Parse(JsonConvert.SerializeXmlNode(doc));
290
291 var footerText = Model.Area.Item.GetString("Footer_Content");
292 var copyrightText = Model.Area.Item.GetString("Copyright");
293 var customerCenters = CacheManager.GetFromCache<Dynamicweb.Security.UserManagement.UserCollection>(60, "customerCentersGroup4", () => Dynamicweb.Security.UserManagement.User.GetUsersByGroupID(4));
294 var storeList = (from user in customerCenters.Where(y => y.Active && !y.GroupsIds.Contains(10) && !y.GroupsIds.Contains(11))
295 select new
296 {
297 value = string.Format("?id=5&ObjectID={0}&Action=Detail", user.ID),
298 text = user.Name
299 }).OrderBy(x => x.text).ToList();
300
301 storeList.Insert(0, new { value = "choose", text = Translate("Kontakta kundcenter") });
302
303 var preSelectedKc = ProjectManager.GetDefaultKcOnProject(currentProjectData.code);
304 var selectedKC = "";
305 if (preSelectedKc != null)
306 {
307 selectedKC = string.Format("?id=5&ObjectID={0}&Action=Detail", preSelectedKc);
308 }
309
310 var storesData = new
311 {
312 baseUrl = "/default.aspx",
313 redirect = "true",
314 className = "Control--light",
315 items = storeList.ToArray()
316 };
317
318 var secondaryNavData = new
319 {
320 copyright = copyrightText,
321 target = "_blank",
322 items = secondaryJson.SelectToken("nav.secondaryNav"),
323 stores = storesData
324 };
325
326 var footerJson2 = new
327 {
328 about = footerText,
329 primaryNav = primaryJson.SelectToken("nav.primaryNav"),
330 secondaryNav = secondaryNavData,
331 stores = storesData
332 };
333
334 var scriptloggedinhead = Model.Area.Item.GetString("ScriptInloggadIHead");
335 var scriptloggedinbody = Model.Area.Item.GetString("ScriptInloggadIBody");
336
337
338 #line default
339 #line hidden
340 WriteLiteral("\r\n\r\n<html");
341
342 WriteLiteral(" class=\"App\"");
343
344 WriteLiteral(" lang=\"sv-se\"");
345
346 WriteLiteral(">\r\n<head>\r\n");
347
348 WriteLiteral(" ");
349
350
351 #line 205 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
352 Write(Model.Area.Item.GetString("Script"));
353
354
355 #line default
356 #line hidden
357 WriteLiteral("\r\n");
358
359 WriteLiteral(" ");
360
361
362 #line 206 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
363 Write(RenderSnippet("scriptIHeadSnippet"));
364
365
366 #line default
367 #line hidden
368 WriteLiteral("\r\n");
369
370
371 #line 207 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
372
373
374 #line default
375 #line hidden
376
377 #line 207 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
378 if (isLoggedIn)
379 {
380 if (Context.Current.Request.GetString("authcmd") == "login")
381 {
382
383
384 #line default
385 #line hidden
386
387 #line 211 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
388 Write(scriptloggedinhead);
389
390
391 #line default
392 #line hidden
393
394 #line 211 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
395
396 }
397
398
399 #line default
400 #line hidden
401
402 #line 213 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
403 Write(RenderSnippet("scriptInloggadIHeadSnippet"));
404
405
406 #line default
407 #line hidden
408
409 #line 213 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
410
411
412 if (!string.IsNullOrWhiteSpace(currentProjectData.code))
413 {
414
415
416 #line default
417 #line hidden
418 WriteLiteral(" <script>\r\n gtag(\'set\', \'user_properties\', {\r\n " +
419 " project_code: \'");
420
421
422 #line 219 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
423 Write(currentProjectData.code);
424
425
426 #line default
427 #line hidden
428 WriteLiteral("\',\r\n customer_type: \'");
429
430
431 #line 220 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
432 Write(currentProjectData.CustomerType);
433
434
435 #line default
436 #line hidden
437 WriteLiteral("\'\r\n });\r\n </script>\r\n");
438
439
440 #line 223 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
441 }
442 }
443
444
445 #line default
446 #line hidden
447 WriteLiteral("\r\n <!-- Begin Inspectlet Embed Code -->\r\n ");
448
449 WriteLiteral("\r\n <!-- End Inspectlet Embed Code -->\r\n <meta");
450
451 WriteLiteral(" charset=\"utf-8\"");
452
453 WriteLiteral(">\r\n <meta");
454
455 WriteLiteral(" name=\"viewport\"");
456
457 WriteLiteral(" content=\"width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=n" +
458 "o\"");
459
460 WriteLiteral(">\r\n");
461
462 WriteLiteral(" ");
463
464
465 #line 241 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
466 Write(Model.MetaTags);
467
468
469 #line default
470 #line hidden
471 WriteLiteral("\r\n\r\n");
472
473 WriteLiteral(" ");
474
475
476 #line 243 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
477 Write(RenderSnippet("OGMetaTags"));
478
479
480 #line default
481 #line hidden
482 WriteLiteral("\r\n\r\n <title>\r\n");
483
484 WriteLiteral(" ");
485
486
487 #line 246 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
488 Write(Model.Title);
489
490
491 #line default
492 #line hidden
493 WriteLiteral("\r\n </title>\r\n");
494
495 WriteLiteral(" ");
496
497
498 #line 248 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
499 Write(WebHelper.renderIcons());
500
501
502 #line default
503 #line hidden
504 WriteLiteral("\r\n");
505
506
507 #line 249 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
508
509
510 #line default
511 #line hidden
512
513 #line 249 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
514
515 var eyeBg = "url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDIwMDEwOTA0Ly9FTiIKICJodHRwOi8vd3d3LnczLm9yZy9UUi8yMDAxL1JFQy1TVkctMjAwMTA5MDQvRFREL3N2ZzEwLmR0ZCI+CjxzdmcgdmVyc2lvbj0iMS4wIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiB3aWR0aD0iMTYwMC4wMDAwMDBwdCIgaGVpZ2h0PSIxNjAwLjAwMDAwMHB0IiB2aWV3Qm94PSIwIDAgMTYwMC4wMDAwMDAgMTYwMC4wMDAwMDAiCiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0Ij4KPG1ldGFkYXRhPgpDcmVhdGVkIGJ5IHBvdHJhY2UgMS4xNSwgd3JpdHRlbiBieSBQZXRlciBTZWxpbmdlciAyMDAxLTIwMTcKPC9tZXRhZGF0YT4KPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wMDAwMDAsMTYwMC4wMDAwMDApIHNjYWxlKDAuMTAwMDAwLC0wLjEwMDAwMCkiCmZpbGw9IiMwMDAwMDAiIHN0cm9rZT0ibm9uZSI+CjxwYXRoIGQ9Ik03NDI1IDExOTgwIGMtMjU4IC0yMiAtNTI5IC01OSAtNzgwIC0xMDYgLTE4NzQgLTM1MSAtMzg1OCAtMTQ1MgotNTU5OSAtMzEwOSAtMTcyIC0xNjMgLTczNiAtNzUwIC03MzYgLTc2NSAwIC0xNSA1NjQgLTYwMiA3MzYgLTc2NSAxNzQxCi0xNjU3IDM3MjUgLTI3NTggNTU5OSAtMzEwOSA5MDYgLTE3MCAxODA0IC0xNzAgMjcxMCAwIDE4NzQgMzUxIDM4NTggMTQ1Mgo1NTk5IDMxMDkgMTcyIDE2MyA3MzYgNzUwIDczNiA3NjUgMCAxNSAtNTY0IDYwMiAtNzM2IDc2NSAtMTc0MSAxNjU3IC0zNzI1CjI3NTggLTU1OTkgMzEwOSAtMjYzIDQ5IC01MTggODMgLTgwMCAxMDYgLTMxMyAyNiAtODIzIDI2IC0xMTMwIDB6IG0xMDQyCi0xMDA1IGM3OTUgLTY2IDE1ODcgLTI3NCAyNDA1IC02MzMgbDEyOCAtNTUgMzkgLTY2IGMyMDYgLTM0OCAzNjIgLTgxMiA0MjgKLTEyNzIgMjIgLTE1OCAyNiAtNzEwIDUgLTg1OSAtMTE1IC04MjAgLTQzNSAtMTQ4MiAtOTkwIC0yMDQ0IC01MTIgLTUxOAotMTE2MyAtODYxIC0xODY5IC05ODUgLTIzMyAtNDEgLTI5NCAtNDYgLTYxMyAtNDYgLTMxOSAwIC0zODAgNSAtNjEzIDQ2IC05MzYKMTY0IC0xNzc2IDcxOSAtMjMwNiAxNTIxIC0yOTAgNDQxIC00NjYgOTExIC01NDcgMTQ2OCAtMjQgMTY4IC0zMCA2MDEgLTEwCjc5MiA0OSA0NjYgMTcyIDg3NyAzOTAgMTI5MyBsNzMgMTQwIDY0IDMyIGM5NCA0NyA0MDIgMTczIDU3NCAyMzYgNjUyIDIzNwoxMjI2IDM3MCAxODUwIDQyNyAyNjIgMjMgNzMxIDI2IDk5MiA1eiBtLTQ4NjEgLTE0ODEgYy0xNiAtNDMgLTY4IC0zNzEgLTg2Ci01NDQgLTMyIC0zMDMgLTI3IC03MTYgMTEgLTEwMTUgNTYgLTQ0NSAxODUgLTkwMCAzNzIgLTEzMTAgNTMgLTExNyAxNzYgLTM1MQoyMjMgLTQyNyAxNCAtMjEgMjEgLTM4IDE2IC0zOCAtNCAwIC04NCA0NiAtMTc3IDEwMyAtNzA3IDQyOCAtMTMyOSA4OTQgLTE5NjUKMTQ2OCAtMTAyIDkyIC0yMDcgMTkwIC0yMzUgMjE4IGwtNDkgNTEgNDkgNTEgYzI4IDI4IDEzMyAxMjYgMjM1IDIxOCA0MjggMzg3Cjg1MCA3MjMgMTI5NSAxMDMzIDMyNSAyMjYgMzI0IDIyNSAzMTEgMTkyeiBtODg4NyAtNDYgYzI3MyAtMTgyIDYzOSAtNDUxIDg3NwotNjQyIDI4NSAtMjI5IDczNCAtNjIwIDg2NSAtNzU1IGw0OSAtNTEgLTQ5IC01MSBjLTI4IC0yOCAtMTMzIC0xMjYgLTIzNQotMjE4IC02MzYgLTU3NCAtMTI1OCAtMTA0MCAtMTk2NSAtMTQ2OCAtOTMgLTU3IC0xNzMgLTEwMyAtMTc3IC0xMDMgLTUgMCAyCjE3IDE2IDM4IDQ3IDc2IDE3MCAzMTAgMjIzIDQyNyAxOTMgNDI1IDMxNyA4NzAgMzc5IDEzNTUgMjEgMTcxIDMwIDY4OCAxNQo4NzMgLTE4IDIxMyAtNzQgNTgwIC05OCA2NDQgLTggMjIgNCAxNiAxMDAgLTQ5eiIvPgo8cGF0aCBkPSJNNzc2MCA5OTg1IGMtNTQ4IC05NCAtOTg4IC00NTkgLTExNzUgLTk3NSAtNjAgLTE2NCAtODUgLTMxNyAtODUKLTUxMCAwIC0xNTEgMTAgLTIzOCA0MSAtMzY1IDY2IC0yNjUgMTkzIC00OTEgMzg3IC02ODkgMjMyIC0yMzYgNTI1IC0zODUgODU5Ci00MzUgOTMgLTE0IDMzMyAtMTQgNDI2IDAgMzI2IDQ5IDYwNyAxODggODQxIDQxNyAyMzYgMjMyIDM4NSA1MjUgNDM1IDg1OSAxNAo5MyAxNCAzMzMgMCA0MjYgLTQ5IDMyNiAtMTg4IDYwNyAtNDE3IDg0MSAtMjMyIDIzNiAtNTI1IDM4NSAtODU5IDQzNSAtOTUgMTUKLTM1OSAxMiAtNDUzIC00eiIvPgo8L2c+Cjwvc3ZnPgo=');";
516
517
518 #line default
519 #line hidden
520 WriteLiteral("\r\n <link");
521
522 WriteLiteral(" rel=\"stylesheet\"");
523
524 WriteAttribute("href", Tuple.Create(" href=\"", 12121), Tuple.Create("\"", 12195)
525 , Tuple.Create(Tuple.Create("", 12128), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/css/bootstrap-iso.css?v1.01")
526 , 12128), false)
527 );
528
529 WriteLiteral(">\r\n <link");
530
531 WriteLiteral(" rel=\"stylesheet\"");
532
533 WriteAttribute("href", Tuple.Create(" href=\"", 12225), Tuple.Create("\"", 12291)
534 , Tuple.Create(Tuple.Create("", 12232), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/css/swift/swift.css")
535 , 12232), false)
536 );
537
538 WriteLiteral(">\r\n <link");
539
540 WriteLiteral(" rel=\"stylesheet\"");
541
542 WriteAttribute("href", Tuple.Create(" href=\"", 12321), Tuple.Create("\"", 12390)
543 , Tuple.Create(Tuple.Create("", 12328), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/css/slimselect.min.css")
544 , 12328), false)
545 );
546
547 WriteLiteral(">\r\n <link");
548
549 WriteLiteral(" rel=\"stylesheet\"");
550
551 WriteAttribute("href", Tuple.Create(" href=\"", 12420), Tuple.Create("\"", 12480)
552 , Tuple.Create(Tuple.Create("", 12427), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/css/index.css")
553 , 12427), false)
554 );
555
556 WriteLiteral(">\r\n <link");
557
558 WriteLiteral(" rel=\"stylesheet\"");
559
560 WriteAttribute("href", Tuple.Create(" href=\"", 12510), Tuple.Create("\"", 12588)
561 , Tuple.Create(Tuple.Create("", 12517), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/css/rental/rental.min.css?v1.55")
562 , 12517), false)
563 );
564
565 WriteLiteral(">\r\n <link");
566
567 WriteLiteral(" rel=\"stylesheet\"");
568
569 WriteAttribute("href", Tuple.Create(" href=\"", 12618), Tuple.Create("\"", 12689)
570 , Tuple.Create(Tuple.Create("", 12625), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/css/sg/product-panel.css")
571 , 12625), false)
572 );
573
574 WriteLiteral(">\r\n <link");
575
576 WriteLiteral(" rel=\"stylesheet\"");
577
578 WriteAttribute("href", Tuple.Create(" href=\"", 12719), Tuple.Create("\"", 12793)
579 , Tuple.Create(Tuple.Create("", 12726), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/css/swiffy-slider.css?v1.01")
580 , 12726), false)
581 );
582
583 WriteLiteral(" />\r\n <style>\r\n .Icon--eye {\r\n background-image: ");
584
585
586 #line 261 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
587 Write(eyeBg);
588
589
590 #line default
591 #line hidden
592 WriteLiteral(" width: 25px;\r\n }\r\n </style>\r\n <script");
593
594 WriteLiteral(" type=\"text/javascript\"");
595
596 WriteLiteral(" async");
597
598 WriteLiteral(" src=\"https://bot.leadoo.com/bot/dynamic.js?company=abc85229\"");
599
600 WriteLiteral("></script>\r\n <!--Swift JS-->\r\n <script");
601
602 WriteAttribute("src", Tuple.Create(" src=\"", 13055), Tuple.Create("\"", 13130)
603 , Tuple.Create(Tuple.Create("", 13061), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/js/vendor/swift/plyr.js?v=1.1")
604 , 13061), false)
605 );
606
607 WriteLiteral(" defer></script>\r\n <script");
608
609 WriteAttribute("src", Tuple.Create(" src=\"", 13160), Tuple.Create("\"", 13244)
610 , Tuple.Create(Tuple.Create("", 13166), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/js/vendor/swift/swiffy-slider.js?v=1.1")
611 , 13166), false)
612 );
613
614 WriteLiteral(" defer></script>\r\n <script");
615
616 WriteAttribute("src", Tuple.Create(" src=\"", 13274), Tuple.Create("\"", 13356)
617 , Tuple.Create(Tuple.Create("", 13280), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/js/vendor/swift/tiny-slider.js?v=1.1")
618 , 13280), false)
619 );
620
621 WriteLiteral(" defer></script>\r\n <script");
622
623 WriteAttribute("src", Tuple.Create(" src=\"", 13386), Tuple.Create("\"", 13466)
624 , Tuple.Create(Tuple.Create("", 13392), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/js/vendor/swift/flatpickr.js?v=1.1")
625 , 13392), false)
626 );
627
628 WriteLiteral(" defer></script>\r\n <script");
629
630 WriteAttribute("src", Tuple.Create(" src=\"", 13496), Tuple.Create("\"", 13570)
631 , Tuple.Create(Tuple.Create("", 13502), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/js/vendor/swift/aos.js?v=1.1")
632 , 13502), false)
633 );
634
635 WriteLiteral(" defer></script>\r\n\r\n <script");
636
637 WriteAttribute("src", Tuple.Create(" src=\"", 13602), Tuple.Create("\"", 13673)
638 , Tuple.Create(Tuple.Create("", 13608), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/js/softgear/lottiefile.js")
639 , 13608), false)
640 );
641
642 WriteLiteral("></script>\r\n <script");
643
644 WriteAttribute("src", Tuple.Create(" src=\"", 13697), Tuple.Create("\"", 13767)
645 , Tuple.Create(Tuple.Create("", 13703), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/js/softgear/sorttable.js")
646 , 13703), false)
647 );
648
649 WriteLiteral("></script>\r\n</head>\r\n<body");
650
651 WriteLiteral(" class=\"App-body\"");
652
653 WriteLiteral(" onload=\"swift.Scroll.init();AOS.init({ offset: 240, duration: 600, delay: 100 })" +
654 ";disable: window.matchMedia(\'(prefers-reduced-motion: reduce)\');\"");
655
656 WriteLiteral(" data-aos-easing=\"ease\"");
657
658 WriteLiteral(" data-aos-duration=\"600\"");
659
660 WriteLiteral(" data-aos-delay=\"100\"");
661
662 WriteLiteral(">\r\n <div hidden");
663
664 WriteLiteral(" id=\"sprite-plyr\"");
665
666 WriteLiteral("><!--?xml version=\"1.0\" encoding=\"UTF-8\"?--><svg");
667
668 WriteLiteral(" xmlns=\"http://www.w3.org/2000/svg\"");
669
670 WriteLiteral(" xmlns:xlink=\"http://www.w3.org/1999/xlink\"");
671
672 WriteLiteral("><symbol");
673
674 WriteLiteral(" id=\"plyr-airplay\"");
675
676 WriteLiteral(" viewBox=\"0 0 18 18\"");
677
678 WriteLiteral("><path");
679
680 WriteLiteral(" d=\"M16 1H2a1 1 0 00-1 1v10a1 1 0 001 1h3v-2H3V3h12v8h-2v2h3a1 1 0 001-1V2a1 1 0 " +
681 "00-1-1z\"");
682
683 WriteLiteral("></path><path");
684
685 WriteLiteral(" d=\"M4 17h10l-5-6z\"");
686
687 WriteLiteral("></path></symbol><symbol");
688
689 WriteLiteral(" id=\"plyr-captions-off\"");
690
691 WriteLiteral(" viewBox=\"0 0 18 18\"");
692
693 WriteLiteral("><path");
694
695 WriteLiteral(@" d=""M1 1c-.6 0-1 .4-1 1v11c0 .6.4 1 1 1h4.6l2.7 2.7c.2.2.4.3.7.3.3 0 .5-.1.7-.3l2.7-2.7H17c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1H1zm4.52 10.15c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41C8.47 4.96 7.46 3.76 5.5 3.76c-1.9 0-3.61 1.44-3.61 3.7 0 2.26 1.65 3.69 3.63 3.69zm7.57 0c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41c-.28-1.15-1.29-2.35-3.25-2.35-1.9 0-3.61 1.44-3.61 3.7 0 2.26 1.65 3.69 3.63 3.69z""");
696
697 WriteLiteral(" fill-rule=\"evenodd\"");
698
699 WriteLiteral(" fill-opacity=\".5\"");
700
701 WriteLiteral("></path></symbol><symbol");
702
703 WriteLiteral(" id=\"plyr-captions-on\"");
704
705 WriteLiteral(" viewBox=\"0 0 18 18\"");
706
707 WriteLiteral("><path");
708
709 WriteLiteral(@" d=""M1 1c-.6 0-1 .4-1 1v11c0 .6.4 1 1 1h4.6l2.7 2.7c.2.2.4.3.7.3.3 0 .5-.1.7-.3l2.7-2.7H17c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1H1zm4.52 10.15c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41C8.47 4.96 7.46 3.76 5.5 3.76c-1.9 0-3.61 1.44-3.61 3.7 0 2.26 1.65 3.69 3.63 3.69zm7.57 0c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41c-.28-1.15-1.29-2.35-3.25-2.35-1.9 0-3.61 1.44-3.61 3.7 0 2.26 1.65 3.69 3.63 3.69z""");
710
711 WriteLiteral(" fill-rule=\"evenodd\"");
712
713 WriteLiteral("></path></symbol><symbol");
714
715 WriteLiteral(" id=\"plyr-download\"");
716
717 WriteLiteral(" viewBox=\"0 0 18 18\"");
718
719 WriteLiteral("><path");
720
721 WriteLiteral(" d=\"M9 13c.3 0 .5-.1.7-.3L15.4 7 14 5.6l-4 4V1H8v8.6l-4-4L2.6 7l5.7 5.7c.2.2.4.3." +
722 "7.3zm-7 2h14v2H2z\"");
723
724 WriteLiteral("></path></symbol><symbol");
725
726 WriteLiteral(" id=\"plyr-enter-fullscreen\"");
727
728 WriteLiteral(" viewBox=\"0 0 18 18\"");
729
730 WriteLiteral("><path");
731
732 WriteLiteral(" d=\"M10 3h3.6l-4 4L11 8.4l4-4V8h2V1h-7zM7 9.6l-4 4V10H1v7h7v-2H4.4l4-4z\"");
733
734 WriteLiteral("></path></symbol><symbol");
735
736 WriteLiteral(" id=\"plyr-exit-fullscreen\"");
737
738 WriteLiteral(" viewBox=\"0 0 18 18\"");
739
740 WriteLiteral("><path");
741
742 WriteLiteral(" d=\"M1 12h3.6l-4 4L2 17.4l4-4V17h2v-7H1zM16 .6l-4 4V1h-2v7h7V6h-3.6l4-4z\"");
743
744 WriteLiteral("></path></symbol><symbol");
745
746 WriteLiteral(" id=\"plyr-fast-forward\"");
747
748 WriteLiteral(" viewBox=\"0 0 18 18\"");
749
750 WriteLiteral("><path");
751
752 WriteLiteral(" d=\"M7.875 7.171L0 1v16l7.875-6.171V17L18 9 7.875 1z\"");
753
754 WriteLiteral("></path></symbol><symbol");
755
756 WriteLiteral(" id=\"plyr-logo-vimeo\"");
757
758 WriteLiteral(" viewBox=\"0 0 18 18\"");
759
760 WriteLiteral("><path");
761
762 WriteLiteral(@" d=""M17 5.3c-.1 1.6-1.2 3.7-3.3 6.4-2.2 2.8-4 4.2-5.5 4.2-.9 0-1.7-.9-2.4-2.6C5 10.9 4.4 6 3 6c-.1 0-.5.3-1.2.8l-.8-1c.8-.7 3.5-3.4 4.7-3.5 1.2-.1 2 .7 2.3 2.5.3 2 .8 6.1 1.8 6.1.9 0 2.5-3.4 2.6-4 .1-.9-.3-1.9-2.3-1.1.8-2.6 2.3-3.8 4.5-3.8 1.7.1 2.5 1.2 2.4 3.3z""");
763
764 WriteLiteral("></path></symbol><symbol");
765
766 WriteLiteral(" id=\"plyr-logo-youtube\"");
767
768 WriteLiteral(" viewBox=\"0 0 18 18\"");
769
770 WriteLiteral("><path");
771
772 WriteLiteral(" d=\"M16.8 5.8c-.2-1.3-.8-2.2-2.2-2.4C12.4 3 9 3 9 3s-3.4 0-5.6.4C2 3.6 1.3 4.5 1." +
773 "2 5.8 1 7.1 1 9 1 9s0 1.9.2 3.2c.2 1.3.8 2.2 2.2 2.4C5.6 15 9 15 9 15s3.4 0 5.6-" +
774 ".4c1.4-.3 2-1.1 2.2-2.4.2-1.3.2-3.2.2-3.2s0-1.9-.2-3.2zM7 12V6l5 3-5 3z\"");
775
776 WriteLiteral("></path></symbol><symbol");
777
778 WriteLiteral(" id=\"plyr-muted\"");
779
780 WriteLiteral(" viewBox=\"0 0 18 18\"");
781
782 WriteLiteral("><path");
783
784 WriteLiteral(@" d=""M12.4 12.5l2.1-2.1 2.1 2.1 1.4-1.4L15.9 9 18 6.9l-1.4-1.4-2.1 2.1-2.1-2.1L11 6.9 13.1 9 11 11.1zM3.786 6.008H.714C.286 6.008 0 6.31 0 6.76v4.512c0 .452.286.752.714.752h3.072l4.071 3.858c.5.3 1.143 0 1.143-.602V2.752c0-.601-.643-.977-1.143-.601L3.786 6.008z""");
785
786 WriteLiteral("></path></symbol><symbol");
787
788 WriteLiteral(" id=\"plyr-pause\"");
789
790 WriteLiteral(" viewBox=\"0 0 18 18\"");
791
792 WriteLiteral("><path");
793
794 WriteLiteral(" d=\"M6 1H3c-.6 0-1 .4-1 1v14c0 .6.4 1 1 1h3c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1zm6 0c-." +
795 "6 0-1 .4-1 1v14c0 .6.4 1 1 1h3c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1h-3z\"");
796
797 WriteLiteral("></path></symbol><symbol");
798
799 WriteLiteral(" id=\"plyr-pip\"");
800
801 WriteLiteral(" viewBox=\"0 0 18 18\"");
802
803 WriteLiteral("><path");
804
805 WriteLiteral(" d=\"M13.293 3.293L7.022 9.564l1.414 1.414 6.271-6.271L17 7V1h-6z\"");
806
807 WriteLiteral("></path><path");
808
809 WriteLiteral(" d=\"M13 15H3V5h5V3H2a1 1 0 00-1 1v12a1 1 0 001 1h12a1 1 0 001-1v-6h-2v5z\"");
810
811 WriteLiteral("></path></symbol><symbol");
812
813 WriteLiteral(" id=\"plyr-play\"");
814
815 WriteLiteral(" viewBox=\"0 0 18 18\"");
816
817 WriteLiteral("><path");
818
819 WriteLiteral(" d=\"M15.562 8.1L3.87.225c-.818-.562-1.87 0-1.87.9v15.75c0 .9 1.052 1.462 1.87.9L1" +
820 "5.563 9.9c.584-.45.584-1.35 0-1.8z\"");
821
822 WriteLiteral("></path></symbol><symbol");
823
824 WriteLiteral(" id=\"plyr-restart\"");
825
826 WriteLiteral(" viewBox=\"0 0 18 18\"");
827
828 WriteLiteral("><path");
829
830 WriteLiteral(@" d=""M9.7 1.2l.7 6.4 2.1-2.1c1.9 1.9 1.9 5.1 0 7-.9 1-2.2 1.5-3.5 1.5-1.3 0-2.6-.5-3.5-1.5-1.9-1.9-1.9-5.1 0-7 .6-.6 1.4-1.1 2.3-1.3l-.6-1.9C6 2.6 4.9 3.2 4 4.1 1.3 6.8 1.3 11.2 4 14c1.3 1.3 3.1 2 4.9 2 1.9 0 3.6-.7 4.9-2 2.7-2.7 2.7-7.1 0-9.9L16 1.9l-6.3-.7z""");
831
832 WriteLiteral("></path></symbol><symbol");
833
834 WriteLiteral(" id=\"plyr-rewind\"");
835
836 WriteLiteral(" viewBox=\"0 0 18 18\"");
837
838 WriteLiteral("><path");
839
840 WriteLiteral(" d=\"M10.125 1L0 9l10.125 8v-6.171L18 17V1l-7.875 6.171z\"");
841
842 WriteLiteral("></path></symbol><symbol");
843
844 WriteLiteral(" id=\"plyr-settings\"");
845
846 WriteLiteral(" viewBox=\"0 0 18 18\"");
847
848 WriteLiteral("><path");
849
850 WriteLiteral(@" d=""M16.135 7.784a2 2 0 01-1.23-2.969c.322-.536.225-.998-.094-1.316l-.31-.31c-.318-.318-.78-.415-1.316-.094a2 2 0 01-2.969-1.23C10.065 1.258 9.669 1 9.219 1h-.438c-.45 0-.845.258-.997.865a2 2 0 01-2.969 1.23c-.536-.322-.999-.225-1.317.093l-.31.31c-.318.318-.415.781-.093 1.317a2 2 0 01-1.23 2.969C1.26 7.935 1 8.33 1 8.781v.438c0 .45.258.845.865.997a2 2 0 011.23 2.969c-.322.536-.225.998.094 1.316l.31.31c.319.319.782.415 1.316.094a2 2 0 012.969 1.23c.151.607.547.865.997.865h.438c.45 0 .845-.258.997-.865a2 2 0 012.969-1.23c.535.321.997.225 1.316-.094l.31-.31c.318-.318.415-.781.094-1.316a2 2 0 011.23-2.969c.607-.151.865-.547.865-.997v-.438c0-.451-.26-.846-.865-.997zM9 12a3 3 0 110-6 3 3 0 010 6z""");
851
852 WriteLiteral("></path></symbol><symbol");
853
854 WriteLiteral(" id=\"plyr-volume\"");
855
856 WriteLiteral(" viewBox=\"0 0 18 18\"");
857
858 WriteLiteral("><path");
859
860 WriteLiteral(" d=\"M15.6 3.3c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4C15.4 5.9 16 7.4 16 9c0 1.6-.6 3.1" +
861 "-1.8 4.3-.4.4-.4 1 0 1.4.2.2.5.3.7.3.3 0 .5-.1.7-.3C17.1 13.2 18 11.2 18 9s-.9-4" +
862 ".2-2.4-5.7z\"");
863
864 WriteLiteral("></path><path");
865
866 WriteLiteral(@" d=""M11.282 5.282a.909.909 0 000 1.316c.735.735.995 1.458.995 2.402 0 .936-.425 1.917-.995 2.487a.909.909 0 000 1.316c.145.145.636.262 1.018.156a.725.725 0 00.298-.156C13.773 11.733 14.13 10.16 14.13 9c0-.17-.002-.34-.011-.51-.053-.992-.319-2.005-1.522-3.208a.909.909 0 00-1.316 0zm-7.496.726H.714C.286 6.008 0 6.31 0 6.76v4.512c0 .452.286.752.714.752h3.072l4.071 3.858c.5.3 1.143 0 1.143-.602V2.752c0-.601-.643-.977-1.143-.601L3.786 6.008z""");
867
868 WriteLiteral("></path></symbol></svg></div>\r\n\r\n");
869
870 WriteLiteral(" ");
871
872
873 #line 278 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
874 Write(Model.Area.Item.GetString("ScriptBody"));
875
876
877 #line default
878 #line hidden
879 WriteLiteral("\r\n");
880
881 WriteLiteral(" ");
882
883
884 #line 279 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
885 Write(WebHelper.renderIconHtml());
886
887
888 #line default
889 #line hidden
890 WriteLiteral("\r\n");
891
892
893 #line 280 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
894
895
896 #line default
897 #line hidden
898
899 #line 280 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
900
901 var loggedInClass = isLoggedIn ? "js-IsLoggedIn" : "";
902
903
904 #line default
905 #line hidden
906 WriteLiteral("\r\n");
907
908
909 #line 283 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
910
911
912 #line default
913 #line hidden
914
915 #line 283 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
916 if (Pageview.Device == Dynamicweb.Frontend.Devices.DeviceType.Desktop)
917 {
918
919
920
921 #line default
922 #line hidden
923 WriteLiteral(" <header");
924
925 WriteAttribute("class", Tuple.Create(" class=\"", 20142), Tuple.Create("\"", 20185)
926 , Tuple.Create(Tuple.Create("", 20150), Tuple.Create("Header", 20150), true)
927 , Tuple.Create(Tuple.Create(" ", 20156), Tuple.Create("js-pageHeader", 20157), true)
928
929 #line 286 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
930 , Tuple.Create(Tuple.Create(" ", 20170), Tuple.Create<System.Object, System.Int32>(loggedInClass
931
932 #line default
933 #line hidden
934 , 20171), false)
935 );
936
937 WriteLiteral(" data-controller=\"header\"");
938
939 WriteLiteral(">\r\n <div");
940
941 WriteLiteral(" class=\"Header-brand\"");
942
943 WriteLiteral(">\r\n <a");
944
945 WriteLiteral(" href=\"/\"");
946
947 WriteLiteral(" class=\"Header-brandLogo\"");
948
949 WriteLiteral(" style=\" position: inherit; margin-top: 22px; z-index: 10\"");
950
951 WriteLiteral("></a>\r\n <div");
952
953 WriteLiteral(" class=\"Header-brandAccount\"");
954
955 WriteLiteral(" >\r\n <div");
956
957 WriteLiteral(" class=\"Grid Grid--withGutter\"");
958
959 WriteLiteral(" style=\"height:20px; justify-content: end\"");
960
961 WriteLiteral(">\r\n <div");
962
963 WriteLiteral(" class=\"Grid-cell u-size7of12 u-md-size7of12 u-lg-size11of12 topUserMenu\"");
964
965 WriteLiteral(" style=\"display: inline-flex; justify-content: end\"");
966
967 WriteLiteral(">\r\n\r\n <div");
968
969 WriteLiteral(" class=\"Header-search\"");
970
971 WriteLiteral(" style=\"display: inline-flex; width: 25%\"");
972
973 WriteLiteral(">\r\n <div");
974
975 WriteLiteral(" class=\"Search\"");
976
977 WriteLiteral(" data-controller=\"search\"");
978
979 WriteLiteral(" style=\"height: 26px; width: 95%\"");
980
981 WriteLiteral(">\r\n <form");
982
983 WriteLiteral(" action=\"/sok\"");
984
985 WriteLiteral(" method=\"get\"");
986
987 WriteLiteral(" class=\"Search-form js-autocompleteForm\"");
988
989 WriteLiteral(" data-action=\"/service/search\"");
990
991 WriteLiteral(" data-method=\"get\"");
992
993 WriteLiteral(" data-loader=\"True\"");
994
995 WriteLiteral(">\r\n <div");
996
997 WriteLiteral(" class=\"Search-inputs js-searchInputs\"");
998
999 WriteLiteral(">\r\n <input");
1000
1001 WriteLiteral(" type=\"text\"");
1002
1003 WriteLiteral(" name=\"q\"");
1004
1005 WriteLiteral(" placeholder=\"Vad letar du efter?\"");
1006
1007 WriteLiteral(" autocomplete=\"off\"");
1008
1009 WriteLiteral(" class=\"Search-input\"");
1010
1011 WriteLiteral(" id=\"js-searchBarInput\"");
1012
1013 WriteLiteral(" style=\"height: 30px\"");
1014
1015 WriteLiteral(">\r\n <div");
1016
1017 WriteLiteral(" class=\"Search-icon\"");
1018
1019 WriteLiteral(" id=\"insideInputSearchIcon\"");
1020
1021 WriteLiteral(">\r\n <svg");
1022
1023 WriteLiteral(" class=\"Icon Icon--magnifier\"");
1024
1025 WriteLiteral(" role=\"presentational\"");
1026
1027 WriteLiteral(">\r\n <use");
1028
1029 WriteLiteral(" xlink:href=\"#Icon--magnifier\"");
1030
1031 WriteLiteral("></use>\r\n </svg>\r\n " +
1032 " </div>\r\n <div");
1033
1034 WriteLiteral(" class=\"Search-loader js-searchLoader\"");
1035
1036 WriteLiteral("></div>\r\n <ul");
1037
1038 WriteLiteral(" id=\"js-searchContent2\"");
1039
1040 WriteLiteral(" class=\"Search-result js-searchContent\"");
1041
1042 WriteLiteral(" data-empty-text=\"Inga produkter hittades\"");
1043
1044 WriteLiteral(" data-more-text=\"Visa fler\"");
1045
1046 WriteLiteral("></ul>\r\n </div>\r\n <" +
1047 "button");
1048
1049 WriteLiteral(" type=\"button\"");
1050
1051 WriteLiteral(" class=\"Search-toggle js-searchToggle\"");
1052
1053 WriteLiteral(" style=\"right: 10px; margin-top: 2px\"");
1054
1055 WriteLiteral(">\r\n <div");
1056
1057 WriteLiteral(" class=\"Search-toggleContent\"");
1058
1059 WriteLiteral(">\r\n <div");
1060
1061 WriteLiteral(" class=\"Search-toggleMinified\"");
1062
1063 WriteLiteral(" id=\"searchIcon\"");
1064
1065 WriteLiteral(" onclick=\"focusMethod()\"");
1066
1067 WriteLiteral(">\r\n </div>\r\n " +
1068 " <div");
1069
1070 WriteLiteral(" class=\"Search-toggleExpanded\"");
1071
1072 WriteLiteral(">\r\n <svg");
1073
1074 WriteLiteral(" class=\"Icon Icon--close\"");
1075
1076 WriteLiteral(" role=\"presentational\"");
1077
1078 WriteLiteral(">\r\n <use");
1079
1080 WriteLiteral(" xlink:href=\"#Icon--close\"");
1081
1082 WriteLiteral("></use>\r\n </svg>\r\n " +
1083 " </div>\r\n </div>\r\n " +
1084 " </button>\r\n <input");
1085
1086 WriteLiteral(" type=\"hidden\"");
1087
1088 WriteLiteral(" name=\"id\"");
1089
1090 WriteLiteral(" value=\"\"");
1091
1092 WriteLiteral(" class=\"js-searchInput\"");
1093
1094 WriteLiteral(">\r\n <input");
1095
1096 WriteLiteral(" type=\"hidden\"");
1097
1098 WriteLiteral(" name=\"pid\"");
1099
1100 WriteLiteral(" value=\"\"");
1101
1102 WriteLiteral(" class=\"js-searchInput\"");
1103
1104 WriteLiteral(">\r\n </form>\r\n </div>\r\n " +
1105 " </div>\r\n");
1106
1107
1108 #line 322 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1109
1110
1111 #line default
1112 #line hidden
1113
1114 #line 322 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1115 if (isLoggedIn)
1116 {
1117
1118
1119 #line default
1120 #line hidden
1121 WriteLiteral(" <div");
1122
1123 WriteLiteral(" class=\"showUserDropdown mr-10\"");
1124
1125 WriteLiteral(">\r\n <i");
1126
1127 WriteLiteral(" class=\"userIcon\"");
1128
1129 WriteLiteral("></i>\r\n <span");
1130
1131 WriteLiteral(" class=\"js-headerUsername colorBlue\"");
1132
1133 WriteLiteral(" style=\"display: inline-flex; font-size: 16px; margin-top: 1px\"");
1134
1135 WriteLiteral(">");
1136
1137
1138 #line 326 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1139 Write(userName);
1140
1141
1142 #line default
1143 #line hidden
1144 WriteLiteral(" <lottie-player");
1145
1146 WriteLiteral(" speed=\"5\"");
1147
1148 WriteLiteral(" id=\"userLottie\"");
1149
1150 WriteLiteral(" src=\"/Files/Templates/Designs/SkanskaMaskin/css/plus_minus.json\"");
1151
1152 WriteLiteral(" style=\"width: 28px; margin-top: -2px; margin-left:3px;\"");
1153
1154 WriteLiteral("></lottie-player></span>\r\n <div");
1155
1156 WriteLiteral(" class=\"dropdown\"");
1157
1158 WriteLiteral(">\r\n <div");
1159
1160 WriteLiteral(" id=\"userHeaderDropdown\"");
1161
1162 WriteLiteral(" class=\"dropdown-content\"");
1163
1164 WriteLiteral(">\r\n");
1165
1166
1167 #line 329 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1168
1169
1170 #line default
1171 #line hidden
1172
1173 #line 329 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1174 if (isCheckMeRole)
1175 {
1176
1177
1178 #line default
1179 #line hidden
1180 WriteLiteral(" <a");
1181
1182 WriteLiteral(" class=\"userLink boldFont\"");
1183
1184 WriteLiteral(" href=\"/dashboard/minsida/\"");
1185
1186 WriteLiteral(">Min sida</a>\r\n");
1187
1188
1189 #line 332 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1190 }
1191 else
1192 {
1193
1194
1195 #line default
1196 #line hidden
1197 WriteLiteral(" <a");
1198
1199 WriteLiteral(" class=\"userLink boldFont\"");
1200
1201 WriteLiteral(" href=\"/dashboard/minsida/\"");
1202
1203 WriteLiteral(">Min sida</a>\r\n");
1204
1205 WriteLiteral(" <a");
1206
1207 WriteLiteral(" class=\"userLink boldFont\"");
1208
1209 WriteLiteral(" href=\"/dashboard/minafavoriter/\"");
1210
1211 WriteLiteral(">Mina favoriter</a>\r\n");
1212
1213 WriteLiteral(" <a");
1214
1215 WriteLiteral(" class=\"userLink boldFont\"");
1216
1217 WriteLiteral(" href=\"/dashboard/minaprojekt/\"");
1218
1219 WriteLiteral(">Mina Projekt</a>\r\n");
1220
1221
1222 #line 338 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1223 foreach (var item in topProjectsForUser)
1224 {
1225
1226
1227 #line default
1228 #line hidden
1229 WriteLiteral(" <a");
1230
1231 WriteLiteral(" style=\"margin-left: 10px; margin-top: -10px; font-size: 16px !important;\"");
1232
1233 WriteLiteral(" class=\"favProject\"");
1234
1235 WriteAttribute("title", Tuple.Create(" title=\"", 24633), Tuple.Create("\"", 24646)
1236
1237 #line 340 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1238 , Tuple.Create(Tuple.Create("", 24641), Tuple.Create<System.Object, System.Int32>(item
1239
1240 #line default
1241 #line hidden
1242 , 24641), false)
1243 );
1244
1245 WriteLiteral(" data-projectid=\"");
1246
1247
1248 #line 340 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1249 Write(item);
1250
1251
1252 #line default
1253 #line hidden
1254 WriteLiteral("\"");
1255
1256 WriteLiteral(">");
1257
1258
1259 #line 340 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1260 Write(item);
1261
1262
1263 #line default
1264 #line hidden
1265 WriteLiteral("</a>\r\n");
1266
1267
1268 #line 341 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1269 }
1270 if (topProjectsForUser != null && topProjectsForUser.Count > 0)
1271 {
1272
1273
1274 #line default
1275 #line hidden
1276 WriteLiteral(" <a");
1277
1278 WriteLiteral(" href=\"/dashboard/minaprojekt/\"");
1279
1280 WriteLiteral(" style=\"margin-left: 10px; margin-top: -10px; font-size: 16px !important;\"");
1281
1282 WriteLiteral(">Visa fler...</a>\r\n");
1283
1284
1285 #line 345 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1286 }
1287
1288 if (currentProjectData != null)
1289 {
1290 if (currentProjectData.CustomerType == "Skanska")
1291 {
1292
1293
1294 #line default
1295 #line hidden
1296 WriteLiteral(" <a");
1297
1298 WriteLiteral(" class=\"boldFont\"");
1299
1300 WriteLiteral(" href=\"/dashboard/projektanmalanintern\"");
1301
1302 WriteLiteral(">Lägg till nytt projekt</a>\r\n");
1303
1304
1305 #line 352 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1306 }
1307 else if (permissionCreateNewProjectExternalUser)
1308 {
1309
1310
1311 #line default
1312 #line hidden
1313 WriteLiteral(" <a");
1314
1315 WriteLiteral(" class=\"boldFont\"");
1316
1317 WriteLiteral(" href=\"/dashboard/projektanmalan/\"");
1318
1319 WriteLiteral(">Lägg till nytt projekt</a>\r\n");
1320
1321
1322 #line 356 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1323 }
1324 }
1325 }
1326
1327
1328 #line default
1329 #line hidden
1330 WriteLiteral("\r\n\r\n <a");
1331
1332 WriteLiteral(" class=\"userLink boldFont\"");
1333
1334 WriteLiteral(" href=\"/Admin/Public/extranetlogoff.aspx?ID=1\"");
1335
1336 WriteLiteral(">Logga ut</a>\r\n </div>\r\n " +
1337 " </div>\r\n </div>\r\n");
1338
1339 WriteLiteral(" <div");
1340
1341 WriteLiteral(" class=\"SliceItem\"");
1342
1343 WriteLiteral("></div>\r\n");
1344
1345
1346 #line 366 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1347 }
1348
1349
1350 #line default
1351 #line hidden
1352 WriteLiteral(" <div");
1353
1354 WriteLiteral(" class=\"NavAccount\"");
1355
1356 WriteLiteral(">\r\n ");
1357
1358 WriteLiteral("\r\n");
1359
1360
1361 #line 369 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1362
1363
1364 #line default
1365 #line hidden
1366
1367 #line 369 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1368 if (isLoggedIn)
1369 {
1370 if (currentProjectData != null && currentProjectData.code != null)
1371 {
1372
1373
1374 #line default
1375 #line hidden
1376 WriteLiteral(" <div");
1377
1378 WriteLiteral(" class=\"NavAccount-wrapper showProjectDropdown\"");
1379
1380 WriteLiteral(">\r\n <div");
1381
1382 WriteLiteral(" class=\"NavAccount-active\"");
1383
1384 WriteLiteral(">\r\n");
1385
1386
1387 #line 375 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1388
1389
1390 #line default
1391 #line hidden
1392
1393 #line 375 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1394 if (!string.IsNullOrEmpty(currentProjectData.ProjectNoIRIS))
1395 {
1396
1397
1398 #line default
1399 #line hidden
1400 WriteLiteral(" <a");
1401
1402 WriteLiteral(" class=\"NavAccountCurrent\"");
1403
1404 WriteLiteral(" style=\"font-size: 16px !important\"");
1405
1406 WriteLiteral(" data-controller=\"overlay\"");
1407
1408 WriteLiteral(">");
1409
1410
1411 #line 377 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1412 Write(currentProjectData.ProjectNoIRIS);
1413
1414
1415 #line default
1416 #line hidden
1417 WriteLiteral(" (");
1418
1419
1420 #line 377 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1421 Write(currentProjectData.title);
1422
1423
1424 #line default
1425 #line hidden
1426 WriteLiteral(") <lottie-player");
1427
1428 WriteLiteral(" speed=\"5\"");
1429
1430 WriteLiteral(" id=\"projectLottie\"");
1431
1432 WriteLiteral(" src=\"/Files/Templates/Designs/SkanskaMaskin/css/plus_minus.json\"");
1433
1434 WriteLiteral(" style=\"width: 28px; margin-top: -2px; margin-left:3px;\"");
1435
1436 WriteLiteral("></lottie-player></a>\r\n");
1437
1438
1439 #line 378 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1440 }
1441 else
1442 {
1443
1444
1445 #line default
1446 #line hidden
1447 WriteLiteral(" <a");
1448
1449 WriteLiteral(" class=\"NavAccountCurrent\"");
1450
1451 WriteLiteral(" style=\"font-size: 16px !important\"");
1452
1453 WriteLiteral(" data-controller=\"overlay\"");
1454
1455 WriteLiteral(">");
1456
1457
1458 #line 381 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1459 Write(currentProjectData.code);
1460
1461
1462 #line default
1463 #line hidden
1464 WriteLiteral(" (");
1465
1466
1467 #line 381 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1468 Write(currentProjectData.title);
1469
1470
1471 #line default
1472 #line hidden
1473 WriteLiteral(") <lottie-player");
1474
1475 WriteLiteral(" speed=\"5\"");
1476
1477 WriteLiteral(" id=\"projectLottie\"");
1478
1479 WriteLiteral(" src=\"/Files/Templates/Designs/SkanskaMaskin/css/plus_minus.json\"");
1480
1481 WriteLiteral(" style=\"width: 28px; margin-top: -2px; margin-left:3px;\"");
1482
1483 WriteLiteral("></lottie-player></a>\r\n");
1484
1485
1486 #line 382 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1487 }
1488
1489
1490 #line default
1491 #line hidden
1492 WriteLiteral(" </div>\r\n <" +
1493 "div>\r\n <div");
1494
1495 WriteLiteral(" id=\"projectHeaderDropdown\"");
1496
1497 WriteLiteral(" class=\"dropdownProject-content\"");
1498
1499 WriteLiteral(">\r\n");
1500
1501
1502 #line 386 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1503
1504
1505 #line default
1506 #line hidden
1507
1508 #line 386 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1509 if (isCheckMeRole)
1510 {
1511
1512
1513 #line default
1514 #line hidden
1515 WriteLiteral(" <a");
1516
1517 WriteLiteral(" class=\"boldFont\"");
1518
1519 WriteLiteral(" href=\"/dashboard/dagligtillsyn\"");
1520
1521 WriteLiteral(">Daglig tillsyn</a>\r\n");
1522
1523
1524 #line 389 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1525 }
1526 else
1527 {
1528
1529
1530 #line default
1531 #line hidden
1532 WriteLiteral(" <a");
1533
1534 WriteLiteral(" class=\"boldFont\"");
1535
1536 WriteLiteral(" href=\"/dashboard/pahyra\"");
1537
1538 WriteLiteral(">På hyra</a>\r\n");
1539
1540 WriteLiteral(" <a");
1541
1542 WriteLiteral(" class=\"boldFont\"");
1543
1544 WriteLiteral(" href=\"/dashboard/orderhistorik/\"");
1545
1546 WriteLiteral(">Orderhistorik</a>\r\n");
1547
1548 WriteLiteral(" <a");
1549
1550 WriteLiteral(" class=\"boldFont\"");
1551
1552 WriteLiteral(" href=\"/dashboard/fakturor/\"");
1553
1554 WriteLiteral(">Fakturor</a>\r\n");
1555
1556 WriteLiteral(" <a");
1557
1558 WriteLiteral(" class=\"boldFont\"");
1559
1560 WriteLiteral(" href=\"/dashboard/dagligtillsyn\"");
1561
1562 WriteLiteral(">Daglig tillsyn</a>\r\n");
1563
1564 WriteLiteral(" <a");
1565
1566 WriteLiteral(" class=\"boldFont\"");
1567
1568 WriteLiteral(" href=\"/dashboard/projekt/\"");
1569
1570 WriteLiteral(">Projektinformation</a>\r\n");
1571
1572 WriteLiteral(" <a");
1573
1574 WriteLiteral(" class=\"boldFont\"");
1575
1576 WriteLiteral(" href=\"/dashboard/oversiktsvy/\"");
1577
1578 WriteLiteral(">Översiktsvy</a>\r\n");
1579
1580 WriteLiteral(" <a");
1581
1582 WriteLiteral(" class=\"boldFont\"");
1583
1584 WriteLiteral(" href=\"/dashboard/projektdokument/\"");
1585
1586 WriteLiteral(">Projektdokument</a>\r\n");
1587
1588
1589 #line 399 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1590 }
1591
1592
1593 #line default
1594 #line hidden
1595 WriteLiteral("\r\n </div>\r\n " +
1596 " </div>\r\n </div>\r\n");
1597
1598
1599 #line 404 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1600 }
1601 else
1602 {
1603
1604
1605 #line default
1606 #line hidden
1607 WriteLiteral(" <div");
1608
1609 WriteLiteral(" class=\"NavAccount-wrapper\"");
1610
1611 WriteLiteral(">\r\n <div");
1612
1613 WriteLiteral(" class=\"NavAccount-active\"");
1614
1615 WriteLiteral(">\r\n <a");
1616
1617 WriteLiteral(" href=\"/dashboard/minaprojekt/\"");
1618
1619 WriteLiteral(" class=\"NavAccount-current colorBlue\"");
1620
1621 WriteLiteral(">(Välj ett projekt)</a>\r\n </div>\r\n " +
1622 " </div>\r\n");
1623
1624
1625 #line 412 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1626 }
1627 }
1628 else
1629 {
1630
1631
1632 #line default
1633 #line hidden
1634 WriteLiteral(" <div");
1635
1636 WriteLiteral(" class=\"NavAccount-wrapper\"");
1637
1638 WriteLiteral(">\r\n <div");
1639
1640 WriteLiteral(" class=\"NavAccount-active\"");
1641
1642 WriteLiteral(">\r\n <a");
1643
1644 WriteLiteral(" href=\"/form/login\"");
1645
1646 WriteLiteral(" class=\"NavAccount-unauthorized js-overlayTrigger colorBlue\"");
1647
1648 WriteLiteral(" data-controller=\"overlay\"");
1649
1650 WriteLiteral(">Logga in</a>\r\n </div>\r\n " +
1651 " </div>\r\n");
1652
1653
1654 #line 421 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1655 }
1656
1657
1658 #line default
1659 #line hidden
1660 WriteLiteral("\r\n <div");
1661
1662 WriteLiteral(" data-controller=\"overlay\"");
1663
1664 WriteLiteral("></div>\r\n <script");
1665
1666 WriteLiteral(" class=\"js-navAccountModel\"");
1667
1668 WriteLiteral(" type=\"application/json\"");
1669
1670 WriteLiteral(@">
1671 {""authorized"":{""href"":""/dashboard/projekt"",""toggle"":""Byt""},""unauthorized"":{""href"":""/form/login"",""text"":""Logga in""},""form"":{""method"":""post"",""actions"":{""number"":{""name"":""code"",""type"":""tel"",""pattern"":""^[0-9-]{3,30}$"",""placeholder"":""Projektnr t.ex. 12345 eller 1234-56""}},""inputs"":[{""name"":""accountcmd"",""value"":""changeProject""}]}}
1672 </script>
1673 </div>
1674 <div");
1675
1676 WriteLiteral(" class=\"SliceItemToCart\"");
1677
1678 WriteLiteral("></div>\r\n <div");
1679
1680 WriteLiteral(" class=\"Header-cart js-headerCart\"");
1681
1682 WriteLiteral(" id=\"headerCartDesktop\"");
1683
1684 WriteLiteral(">\r\n <a");
1685
1686 WriteLiteral(" class=\"CartToggle\"");
1687
1688 WriteLiteral(" href=\"/varukorg/\"");
1689
1690 WriteLiteral(" data-controller=\"\"");
1691
1692 WriteLiteral(" data-canvas=\"right\"");
1693
1694 WriteLiteral(" data-count=\"\"");
1695
1696 WriteLiteral(" data-empty-text=\"Varukorgen är tom\"");
1697
1698 WriteLiteral(" data-single-text=\"Produkt\"");
1699
1700 WriteLiteral(" data-plural-text=\"Produkter\"");
1701
1702 WriteLiteral(">\r\n <div");
1703
1704 WriteLiteral(" class=\"CartToggle-wrapper\"");
1705
1706 WriteLiteral(" id=\"cartToggleWrapperDesktop\"");
1707
1708 WriteLiteral(">\r\n <span");
1709
1710 WriteLiteral(" class=\"CartToggle-alt1\"");
1711
1712 WriteLiteral("></span>\r\n");
1713
1714
1715 #line 433 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1716
1717
1718 #line default
1719 #line hidden
1720
1721 #line 433 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1722 if (cartToggle.isEmpty)
1723 {
1724
1725
1726 #line default
1727 #line hidden
1728 WriteLiteral(" <span");
1729
1730 WriteLiteral(" class=\"CartToggle-alt2 cartToggleDesktop colorBlue\"");
1731
1732 WriteLiteral(" style=\"font-size:16px\"");
1733
1734 WriteLiteral(">");
1735
1736
1737 #line 435 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1738 Write(cartToggle.textEmpty);
1739
1740
1741 #line default
1742 #line hidden
1743 WriteLiteral("</span>\r\n");
1744
1745
1746 #line 436 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1747 }
1748 else
1749 {
1750 if (cartToggle.isSingle)
1751 {
1752
1753
1754 #line default
1755 #line hidden
1756 WriteLiteral(" <span");
1757
1758 WriteLiteral(" class=\"CartToggle-alt2 cartToggleDesktop colorBlue\"");
1759
1760 WriteLiteral(" style=\"font-size:16px\"");
1761
1762 WriteLiteral(">");
1763
1764
1765 #line 441 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1766 Write(cartToggle.count);
1767
1768
1769 #line default
1770 #line hidden
1771 WriteLiteral(" ");
1772
1773
1774 #line 441 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1775 Write(cartToggle.textSingle);
1776
1777
1778 #line default
1779 #line hidden
1780 WriteLiteral("</span>\r\n");
1781
1782
1783 #line 442 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1784 }
1785 else
1786 {
1787
1788
1789 #line default
1790 #line hidden
1791 WriteLiteral(" <span");
1792
1793 WriteLiteral(" class=\"CartToggle-alt2 cartToggleDesktop colorBlue\"");
1794
1795 WriteLiteral(" style=\"font-size:16px\"");
1796
1797 WriteLiteral(">");
1798
1799
1800 #line 445 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1801 Write(cartToggle.count);
1802
1803
1804 #line default
1805 #line hidden
1806 WriteLiteral(" ");
1807
1808
1809 #line 445 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1810 Write(cartToggle.textPlural);
1811
1812
1813 #line default
1814 #line hidden
1815 WriteLiteral("</span>\r\n");
1816
1817
1818 #line 446 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1819 }
1820 }
1821
1822
1823 #line default
1824 #line hidden
1825 WriteLiteral(" </div>\r\n </a>\r\n " +
1826 " </div>\r\n\r\n </div>\r\n");
1827
1828
1829 #line 453 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1830
1831
1832 #line default
1833 #line hidden
1834
1835 #line 453 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1836
1837 var small = isLoggedIn ? "u-size5of12" : "u-size12of12";
1838 var medium = isLoggedIn ? "u-md-size5of12" : "u-md-size12of12";
1839 var large = isLoggedIn && currentProjectData.code != null ? "u-lg-size2of12" : "u-lg-size2of12";
1840
1841
1842 #line default
1843 #line hidden
1844 WriteLiteral("\r\n </div>\r\n </div>\r\n </div>\r\n <div");
1845
1846 WriteLiteral(" class=\"Header-main\"");
1847
1848 WriteLiteral(">\r\n\r\n <button");
1849
1850 WriteLiteral(" class=\"Header-toggle showHamburgerMenuOnSmallDesktop\"");
1851
1852 WriteLiteral(" role=\"button\"");
1853
1854 WriteLiteral(" aria-pressed=\"false\"");
1855
1856 WriteLiteral(" data-canvas=\"left\"");
1857
1858 WriteLiteral(">\r\n <div");
1859
1860 WriteLiteral(" class=\"Header-toggleBars\"");
1861
1862 WriteLiteral(">\r\n <span");
1863
1864 WriteLiteral(" class=\"Header-toggleBar\"");
1865
1866 WriteLiteral("></span>\r\n <span");
1867
1868 WriteLiteral(" class=\"Header-toggleBar\"");
1869
1870 WriteLiteral("></span>\r\n <span");
1871
1872 WriteLiteral(" class=\"Header-toggleBar\"");
1873
1874 WriteLiteral("></span>\r\n </div>\r\n </button>\r\n\r\n <div");
1875
1876 WriteLiteral(" class=\"Container hideNavBarOnSmallDesktops\"");
1877
1878 WriteLiteral(" style=\"max-width: 1272px\"");
1879
1880 WriteLiteral(">\r\n <nav");
1881
1882 WriteLiteral(" class=\"NavHorizontal Grid Grid--alignMiddle\"");
1883
1884 WriteLiteral(" style=\"margin-left:35px; position: absolute\"");
1885
1886 WriteLiteral(">\r\n");
1887
1888 WriteLiteral(" ");
1889
1890
1891 #line 473 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1892 Write(Navigation.RenderNavigation("master/navigationDesignHeader.cshtml", navigationSettings));
1893
1894
1895 #line default
1896 #line hidden
1897 WriteLiteral("\r\n </nav>\r\n </div>\r\n\r\n <form");
1898
1899 WriteLiteral(" action=\"service/return\"");
1900
1901 WriteLiteral(" method=\"get\"");
1902
1903 WriteLiteral(" class=\"OrderList-counter js-selectedCounter background-Green\"");
1904
1905 WriteLiteral(">\r\n <button");
1906
1907 WriteLiteral(" class=\"OrderList-counterClose js-toggleSelectMode\"");
1908
1909 WriteLiteral(" data-action=\"disable\"");
1910
1911 WriteLiteral(">\r\n <svg");
1912
1913 WriteLiteral(" class=\"Icon Icon--close\"");
1914
1915 WriteLiteral(" role=\"presentational\"");
1916
1917 WriteLiteral(">\r\n <use");
1918
1919 WriteLiteral(" xlink:href=\"#Icon--close\"");
1920
1921 WriteLiteral("></use>\r\n </svg>\r\n </button>\r\n <div");
1922
1923 WriteLiteral(" class=\"OrderList-counterCount\"");
1924
1925 WriteLiteral("><span");
1926
1927 WriteLiteral(" class=\"js-selectedCountText\"");
1928
1929 WriteLiteral(" style=\"font-size: 24px\"");
1930
1931 WriteLiteral(" data-emptycount=\"Inga\"");
1932
1933 WriteLiteral(">Inga</span> produkter valda</div>\r\n\r\n <ul");
1934
1935 WriteLiteral(" class=\"OrderList-counterActions\"");
1936
1937 WriteLiteral(">\r\n\r\n <li");
1938
1939 WriteAttribute("class", Tuple.Create(" class=\"", 34311), Tuple.Create("\"", 34373)
1940 , Tuple.Create(Tuple.Create("", 34319), Tuple.Create("OrderList-counterAction", 34319), true)
1941 , Tuple.Create(Tuple.Create(" ", 34342), Tuple.Create("js-orderListAction", 34343), true)
1942
1943 #line 487 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1944 , Tuple.Create(Tuple.Create(" ", 34361), Tuple.Create<System.Object, System.Int32>(editOnRent
1945
1946 #line default
1947 #line hidden
1948 , 34362), false)
1949 );
1950
1951 WriteLiteral(" data-enable=\"returns.selected\"");
1952
1953 WriteLiteral(">\r\n <a");
1954
1955 WriteAttribute("href", Tuple.Create(" href=\"", 34430), Tuple.Create("\"", 34452)
1956
1957 #line 488 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
1958 , Tuple.Create(Tuple.Create("", 34437), Tuple.Create<System.Object, System.Int32>(onrentEditHref
1959
1960 #line default
1961 #line hidden
1962 , 34437), false)
1963 );
1964
1965 WriteLiteral(" class=\"Button Button--light ButtonRental js-overlayTrigger\"");
1966
1967 WriteLiteral(">Redigera egenskaper</a>\r\n </li>\r\n\r\n\r\n <li");
1968
1969 WriteLiteral(" class=\"OrderList-counterAction js-orderListAction\"");
1970
1971 WriteLiteral(">\r\n <a");
1972
1973 WriteLiteral(" href=\"/form/sort_activity\"");
1974
1975 WriteLiteral(" class=\"Button Button--light Button--secondary js-overlayTrigger\"");
1976
1977 WriteLiteral("></a>\r\n </li>\r\n <li");
1978
1979 WriteLiteral(" class=\"OrderList-counterAction js-orderListAction\"");
1980
1981 WriteLiteral(" data-enable=\"returns.selected\"");
1982
1983 WriteLiteral(">\r\n <a");
1984
1985 WriteLiteral(" href=\"/form/return\"");
1986
1987 WriteLiteral(" class=\"Return-confirmButton Button Button--light ButtonRental js-overlayTrigger\"" +
1988 "");
1989
1990 WriteLiteral(" data-controller=\"return\"");
1991
1992 WriteLiteral(">Beställ retur</a>\r\n </li>\r\n </ul>\r\n </form>\r\n " +
1993 " </div>\r\n\r\n <script");
1994
1995 WriteLiteral(" class=\"js-loginReminderModel\"");
1996
1997 WriteLiteral(" type=\"application/json\"");
1998
1999 WriteLiteral(@">
2000 {
2001 ""isBubble"": true,
2002 ""heading"": ""Är du redan kund?"",
2003 ""body"": ""Glöm då inte att logga in för att se priser och dina påbörjade varukorgar! <a href='/form/login' class='js-overlayTrigger'>Logga in</a>.""
2004 }
2005 </script>
2006 </header>
2007 ");
2008
2009
2010 #line 510 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2011 }
2012 else if (Pageview.Device == Dynamicweb.Frontend.Devices.DeviceType.Tablet)
2013 {
2014
2015
2016 #line default
2017 #line hidden
2018 WriteLiteral(" <header");
2019
2020 WriteAttribute("class", Tuple.Create(" class=\"", 35587), Tuple.Create("\"", 35630)
2021 , Tuple.Create(Tuple.Create("", 35595), Tuple.Create("Header", 35595), true)
2022 , Tuple.Create(Tuple.Create(" ", 35601), Tuple.Create("js-pageHeader", 35602), true)
2023
2024 #line 513 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2025 , Tuple.Create(Tuple.Create(" ", 35615), Tuple.Create<System.Object, System.Int32>(loggedInClass
2026
2027 #line default
2028 #line hidden
2029 , 35616), false)
2030 );
2031
2032 WriteLiteral(" data-controller=\"header\"");
2033
2034 WriteLiteral(">\r\n <div");
2035
2036 WriteLiteral(" class=\"Header-brand\"");
2037
2038 WriteLiteral(">\r\n <a");
2039
2040 WriteLiteral(" href=\"/\"");
2041
2042 WriteLiteral(" class=\"Header-brandLogo\"");
2043
2044 WriteLiteral("></a>\r\n <div");
2045
2046 WriteLiteral(" class=\"Header-brandAccount\"");
2047
2048 WriteLiteral(">\r\n <div");
2049
2050 WriteLiteral(" class=\"Grid Grid--withGutter\"");
2051
2052 WriteLiteral(" style=\"height:20px;\"");
2053
2054 WriteLiteral(">\r\n <div");
2055
2056 WriteLiteral(" class=\"Grid-cell u-size7of12 u-md-size7of12 u-lg-size8of12 topUserMenu\"");
2057
2058 WriteLiteral(">\r\n");
2059
2060
2061 #line 519 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2062
2063
2064 #line default
2065 #line hidden
2066
2067 #line 519 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2068 if (isLoggedIn)
2069 {
2070
2071
2072 #line default
2073 #line hidden
2074 WriteLiteral(" <div");
2075
2076 WriteLiteral(" class=\"showUserDropdown\"");
2077
2078 WriteLiteral(">\r\n ");
2079
2080 WriteLiteral("\r\n <i");
2081
2082 WriteLiteral(" class=\"userIcon\"");
2083
2084 WriteLiteral("></i>\r\n <span");
2085
2086 WriteLiteral(" class=\"js-headerUsername colorBlue\"");
2087
2088 WriteLiteral(" style=\"display: inline-flex\"");
2089
2090 WriteLiteral(">");
2091
2092
2093 #line 524 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2094 Write(userName);
2095
2096
2097 #line default
2098 #line hidden
2099 WriteLiteral(" </span>\r\n <div");
2100
2101 WriteLiteral(" class=\"dropdown\"");
2102
2103 WriteLiteral(">\r\n <div");
2104
2105 WriteLiteral(" id=\"userHeaderDropdown\"");
2106
2107 WriteLiteral(" class=\"dropdown-content\"");
2108
2109 WriteLiteral(">\r\n");
2110
2111
2112 #line 527 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2113
2114
2115 #line default
2116 #line hidden
2117
2118 #line 527 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2119 if (isCheckMeRole)
2120 {
2121
2122
2123 #line default
2124 #line hidden
2125 WriteLiteral(" <a");
2126
2127 WriteLiteral(" class=\"userLink boldFont\"");
2128
2129 WriteLiteral(" href=\"/dashboard/minsida/\"");
2130
2131 WriteLiteral(">Min sida</a>\r\n");
2132
2133
2134 #line 530 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2135
2136 }
2137 else
2138 {
2139
2140
2141 #line default
2142 #line hidden
2143 WriteLiteral(" <a");
2144
2145 WriteLiteral(" class=\"userLink boldFont\"");
2146
2147 WriteLiteral(" href=\"/dashboard/minsida/\"");
2148
2149 WriteLiteral(">Min sida</a>\r\n");
2150
2151 WriteLiteral(" <a");
2152
2153 WriteLiteral(" class=\"userLink boldFont\"");
2154
2155 WriteLiteral(" href=\"/dashboard/minafavoriter/\"");
2156
2157 WriteLiteral(">Mina favoriter</a>\r\n");
2158
2159 WriteLiteral(" <a");
2160
2161 WriteLiteral(" class=\"userLink boldFont\"");
2162
2163 WriteLiteral(" href=\"/dashboard/minaprojekt/\"");
2164
2165 WriteLiteral(">Mina projekt</a>\r\n");
2166
2167
2168 #line 537 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2169 foreach (var item in topProjectsForUser)
2170 {
2171
2172
2173 #line default
2174 #line hidden
2175 WriteLiteral(" <a");
2176
2177 WriteLiteral(" style=\"margin-left: 10px; margin-top: -10px; font-size: 16px !important;\"");
2178
2179 WriteLiteral(" class=\"favProject\"");
2180
2181 WriteAttribute("title", Tuple.Create(" title=\"", 37411), Tuple.Create("\"", 37424)
2182
2183 #line 539 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2184 , Tuple.Create(Tuple.Create("", 37419), Tuple.Create<System.Object, System.Int32>(item
2185
2186 #line default
2187 #line hidden
2188 , 37419), false)
2189 );
2190
2191 WriteLiteral(" data-projectid=\"");
2192
2193
2194 #line 539 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2195 Write(item);
2196
2197
2198 #line default
2199 #line hidden
2200 WriteLiteral("\"");
2201
2202 WriteLiteral(">");
2203
2204
2205 #line 539 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2206 Write(item);
2207
2208
2209 #line default
2210 #line hidden
2211 WriteLiteral("</a>\r\n");
2212
2213
2214 #line 540 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2215 }
2216 if (topProjectsForUser != null && topProjectsForUser.Count > 0)
2217 {
2218
2219
2220 #line default
2221 #line hidden
2222 WriteLiteral(" <a");
2223
2224 WriteLiteral(" href=\"/dashboard/minaprojekt/\"");
2225
2226 WriteLiteral(" style=\"margin-left: 10px; margin-top: -10px; font-size: 16px !important;\"");
2227
2228 WriteLiteral(">Visa fler...</a>\r\n");
2229
2230
2231 #line 544 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2232 }
2233
2234 if (currentProjectData != null)
2235 {
2236 if (currentProjectData.CustomerType == "Skanska")
2237 {
2238
2239
2240 #line default
2241 #line hidden
2242 WriteLiteral(" <a");
2243
2244 WriteLiteral(" class=\"boldFont\"");
2245
2246 WriteLiteral(" href=\"/dashboard/projektanmalanintern\"");
2247
2248 WriteLiteral(">Lägg till nytt projekt</a>\r\n");
2249
2250
2251 #line 551 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2252 }
2253 else if (permissionCreateNewProjectExternalUser)
2254 {
2255
2256
2257 #line default
2258 #line hidden
2259 WriteLiteral(" <a");
2260
2261 WriteLiteral(" class=\"boldFont\"");
2262
2263 WriteLiteral(" href=\"/dashboard/projektanmalan/\"");
2264
2265 WriteLiteral(">Lägg till nytt projekt</a>\r\n");
2266
2267
2268 #line 555 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2269 }
2270 }
2271 }
2272
2273
2274 #line default
2275 #line hidden
2276 WriteLiteral("\r\n <a");
2277
2278 WriteLiteral(" class=\"userLink boldFont\"");
2279
2280 WriteLiteral(" href=\"/Admin/Public/extranetlogoff.aspx?ID=1\"");
2281
2282 WriteLiteral(">Logga ut</a>\r\n </div>\r\n " +
2283 " </div>\r\n </div>\r\n");
2284
2285
2286 #line 563 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2287 }
2288
2289
2290 #line default
2291 #line hidden
2292 WriteLiteral(" </div>\r\n");
2293
2294
2295 #line 565 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2296
2297
2298 #line default
2299 #line hidden
2300
2301 #line 565 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2302
2303 var small = isLoggedIn ? "u-size5of12" : "u-size12of12";
2304 var medium = isLoggedIn ? "u-md-size5of12" : "u-md-size12of12";
2305 var large = isLoggedIn && currentProjectData.code != null ? "u-lg-size2of12" : "u-lg-size2of12";
2306
2307
2308 #line default
2309 #line hidden
2310 WriteLiteral("\r\n <div");
2311
2312 WriteAttribute("class", Tuple.Create(" class=\"", 39328), Tuple.Create("\"", 39367)
2313 , Tuple.Create(Tuple.Create("", 39336), Tuple.Create("Grid-cell", 39336), true)
2314
2315 #line 570 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2316 , Tuple.Create(Tuple.Create(" ", 39345), Tuple.Create<System.Object, System.Int32>(small
2317
2318 #line default
2319 #line hidden
2320 , 39346), false)
2321
2322 #line 570 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2323 , Tuple.Create(Tuple.Create(" ", 39352), Tuple.Create<System.Object, System.Int32>(medium
2324
2325 #line default
2326 #line hidden
2327 , 39353), false)
2328
2329 #line 570 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2330 , Tuple.Create(Tuple.Create(" ", 39360), Tuple.Create<System.Object, System.Int32>(large
2331
2332 #line default
2333 #line hidden
2334 , 39361), false)
2335 );
2336
2337 WriteLiteral(" style=\"height: 26px; margin-top: -3px\"");
2338
2339 WriteLiteral(">\r\n <div");
2340
2341 WriteLiteral(" class=\"NavAccount\"");
2342
2343 WriteLiteral(">\r\n ");
2344
2345 WriteLiteral("\r\n ");
2346
2347 WriteLiteral("\r\n");
2348
2349
2350 #line 578 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2351
2352
2353 #line default
2354 #line hidden
2355
2356 #line 578 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2357 if (isLoggedIn)
2358 {
2359 if (currentProjectData != null && currentProjectData.code != null)
2360 {
2361
2362
2363 #line default
2364 #line hidden
2365 WriteLiteral(" <div");
2366
2367 WriteLiteral(" class=\"NavAccount-wrapper showProjectDropdown\"");
2368
2369 WriteLiteral(">\r\n <div");
2370
2371 WriteLiteral(" class=\"NavAccount-activeTablet\"");
2372
2373 WriteLiteral(">\r\n");
2374
2375
2376 #line 584 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2377
2378
2379 #line default
2380 #line hidden
2381
2382 #line 584 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2383 if (!string.IsNullOrEmpty(currentProjectData.ProjectNoIRIS))
2384 {
2385
2386
2387 #line default
2388 #line hidden
2389 WriteLiteral(" <a");
2390
2391 WriteLiteral(" class=\"NavAccount-current colorBlue\"");
2392
2393 WriteLiteral(" data-controller=\"overlay\"");
2394
2395 WriteLiteral(">");
2396
2397
2398 #line 586 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2399 Write(currentProjectData.ProjectNoIRIS);
2400
2401
2402 #line default
2403 #line hidden
2404 WriteLiteral(" (");
2405
2406
2407 #line 586 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2408 Write(currentProjectData.title);
2409
2410
2411 #line default
2412 #line hidden
2413 WriteLiteral(")</a>\r\n");
2414
2415
2416 #line 587 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2417 }
2418 else
2419 {
2420
2421
2422 #line default
2423 #line hidden
2424 WriteLiteral(" <a");
2425
2426 WriteLiteral(" class=\"NavAccount-current colorBlue\"");
2427
2428 WriteLiteral(" data-controller=\"overlay\"");
2429
2430 WriteLiteral(">");
2431
2432
2433 #line 590 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2434 Write(currentProjectData.code);
2435
2436
2437 #line default
2438 #line hidden
2439 WriteLiteral(" (");
2440
2441
2442 #line 590 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2443 Write(currentProjectData.title);
2444
2445
2446 #line default
2447 #line hidden
2448 WriteLiteral(") </a>\r\n");
2449
2450
2451 #line 591 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2452 }
2453
2454
2455 #line default
2456 #line hidden
2457 WriteLiteral(" </div>\r\n <" +
2458 "div>\r\n <div");
2459
2460 WriteLiteral(" id=\"projectHeaderDropdown\"");
2461
2462 WriteLiteral(" class=\"dropdownProject-content\"");
2463
2464 WriteLiteral(">\r\n");
2465
2466
2467 #line 595 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2468
2469
2470 #line default
2471 #line hidden
2472
2473 #line 595 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2474 if (isCheckMeRole)
2475 {
2476
2477
2478 #line default
2479 #line hidden
2480 WriteLiteral(" <a");
2481
2482 WriteLiteral(" class=\"boldFont\"");
2483
2484 WriteLiteral(" href=\"/dashboard/dagligtillsyn\"");
2485
2486 WriteLiteral(">Daglig tillsyn</a>\r\n");
2487
2488
2489 #line 598 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2490 }
2491 else
2492 {
2493
2494
2495 #line default
2496 #line hidden
2497 WriteLiteral(" <a");
2498
2499 WriteLiteral(" class=\"boldFont\"");
2500
2501 WriteLiteral(" href=\"/dashboard/pahyra\"");
2502
2503 WriteLiteral(">På hyra</a>\r\n");
2504
2505 WriteLiteral(" <a");
2506
2507 WriteLiteral(" class=\"boldFont\"");
2508
2509 WriteLiteral(" href=\"/dashboard/orderhistorik/\"");
2510
2511 WriteLiteral(">Orderhistorik</a>\r\n");
2512
2513 WriteLiteral(" <a");
2514
2515 WriteLiteral(" class=\"boldFont\"");
2516
2517 WriteLiteral(" href=\"/dashboard/fakturor/\"");
2518
2519 WriteLiteral(">Fakturor</a>\r\n");
2520
2521 WriteLiteral(" <a");
2522
2523 WriteLiteral(" class=\"boldFont\"");
2524
2525 WriteLiteral(" href=\"/dashboard/dagligtillsyn\"");
2526
2527 WriteLiteral(">Daglig tillsyn</a>\r\n");
2528
2529 WriteLiteral(" <a");
2530
2531 WriteLiteral(" class=\"boldFont\"");
2532
2533 WriteLiteral(" href=\"/dashboard/projekt/\"");
2534
2535 WriteLiteral(">Projektinformation</a>\r\n");
2536
2537 WriteLiteral(" <a");
2538
2539 WriteLiteral(" class=\"boldFont\"");
2540
2541 WriteLiteral(" href=\"/dashboard/oversiktsvy/\"");
2542
2543 WriteLiteral(">Översiktsvy</a>\r\n");
2544
2545 WriteLiteral(" <a");
2546
2547 WriteLiteral(" class=\"boldFont\"");
2548
2549 WriteLiteral(" href=\"/dashboard/projektdokument/\"");
2550
2551 WriteLiteral(">Projektdokument</a>\r\n");
2552
2553
2554 #line 608 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2555 }
2556
2557
2558 #line default
2559 #line hidden
2560 WriteLiteral("\r\n </div>\r\n " +
2561 " </div>\r\n </div>\r\n");
2562
2563
2564 #line 613 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2565 }
2566 else
2567 {
2568
2569
2570 #line default
2571 #line hidden
2572 WriteLiteral(" <div");
2573
2574 WriteLiteral(" class=\"NavAccount-wrapper\"");
2575
2576 WriteLiteral(">\r\n <div");
2577
2578 WriteLiteral(" class=\"NavAccount-active\"");
2579
2580 WriteLiteral(">\r\n <a");
2581
2582 WriteLiteral(" href=\"/dashboard/minaprojekt/\"");
2583
2584 WriteLiteral(" style=\"color: black;\"");
2585
2586 WriteLiteral(" class=\"NavAccount-current\"");
2587
2588 WriteLiteral(">(Välj ett projekt)</a>\r\n </div>\r\n " +
2589 " </div>\r\n");
2590
2591
2592 #line 621 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2593 }
2594 }
2595 else
2596 {
2597
2598
2599 #line default
2600 #line hidden
2601 WriteLiteral(" <div");
2602
2603 WriteLiteral(" class=\"NavAccount-wrapper\"");
2604
2605 WriteLiteral(">\r\n <div");
2606
2607 WriteLiteral(" class=\"NavAccount-active\"");
2608
2609 WriteLiteral(">\r\n <a");
2610
2611 WriteLiteral(" href=\"/form/login\"");
2612
2613 WriteLiteral(" class=\"NavAccount-unauthorized js-overlayTrigger\"");
2614
2615 WriteLiteral(" data-controller=\"overlay\"");
2616
2617 WriteLiteral(">Logga in</a>\r\n </div>\r\n " +
2618 " </div>\r\n");
2619
2620
2621 #line 630 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2622 }
2623
2624
2625 #line default
2626 #line hidden
2627 WriteLiteral("\r\n <div");
2628
2629 WriteLiteral(" data-controller=\"overlay\"");
2630
2631 WriteLiteral("></div>\r\n <script");
2632
2633 WriteLiteral(" class=\"js-navAccountModel\"");
2634
2635 WriteLiteral(" type=\"application/json\"");
2636
2637 WriteLiteral(@">
2638 {""authorized"":{""href"":""/dashboard/projekt"",""toggle"":""Byt""},""unauthorized"":{""href"":""/form/login"",""text"":""Logga in""},""form"":{""method"":""post"",""actions"":{""number"":{""name"":""code"",""type"":""tel"",""pattern"":""^[0-9-]{3,30}$"",""placeholder"":""Projektnr t.ex. 12345 eller 1234-56""}},""inputs"":[{""name"":""accountcmd"",""value"":""changeProject""}]}}
2639 </script>
2640 </div>
2641 </div>
2642 </div>
2643 </div>
2644 </div>
2645 <div");
2646
2647 WriteLiteral(" class=\"Header-main\"");
2648
2649 WriteLiteral(">\r\n <button");
2650
2651 WriteLiteral(" class=\"Header-toggle\"");
2652
2653 WriteLiteral(" role=\"button\"");
2654
2655 WriteLiteral(" aria-pressed=\"false\"");
2656
2657 WriteLiteral(" data-canvas=\"left\"");
2658
2659 WriteLiteral(">\r\n <div");
2660
2661 WriteLiteral(" class=\"Header-toggleBars\"");
2662
2663 WriteLiteral(">\r\n <span");
2664
2665 WriteLiteral(" class=\"Header-toggleBar\"");
2666
2667 WriteLiteral("></span>\r\n <span");
2668
2669 WriteLiteral(" class=\"Header-toggleBar\"");
2670
2671 WriteLiteral("></span>\r\n <span");
2672
2673 WriteLiteral(" class=\"Header-toggleBar\"");
2674
2675 WriteLiteral("></span>\r\n </div>\r\n </button>\r\n\r\n <div");
2676
2677 WriteLiteral(" class=\"Header-actions Header-actionsTablet js-headerActions\"");
2678
2679 WriteLiteral(">\r\n <div");
2680
2681 WriteLiteral(" class=\"Header-search\"");
2682
2683 WriteLiteral(">\r\n <div");
2684
2685 WriteLiteral(" class=\"Search\"");
2686
2687 WriteLiteral(" data-controller=\"search\"");
2688
2689 WriteLiteral(">\r\n <form");
2690
2691 WriteLiteral(" action=\"/sok\"");
2692
2693 WriteLiteral(" method=\"get\"");
2694
2695 WriteLiteral(" class=\"Search-form js-autocompleteForm\"");
2696
2697 WriteLiteral(" data-action=\"/service/search\"");
2698
2699 WriteLiteral(" data-method=\"get\"");
2700
2701 WriteLiteral(" data-loader=\"True\"");
2702
2703 WriteLiteral(">\r\n <div");
2704
2705 WriteLiteral(" class=\"Search-inputs js-searchInputs\"");
2706
2707 WriteLiteral(">\r\n <input");
2708
2709 WriteLiteral(" type=\"text\"");
2710
2711 WriteLiteral(" name=\"q\"");
2712
2713 WriteLiteral(" placeholder=\"Sök\"");
2714
2715 WriteLiteral(" autocomplete=\"off\"");
2716
2717 WriteLiteral(" class=\"Search-input\"");
2718
2719 WriteLiteral(" id=\"js-searchBarInput\"");
2720
2721 WriteLiteral(">\r\n <div");
2722
2723 WriteLiteral(" class=\"Search-icon\"");
2724
2725 WriteLiteral(">\r\n <svg");
2726
2727 WriteLiteral(" class=\"Icon Icon--magnifier\"");
2728
2729 WriteLiteral(" role=\"presentational\"");
2730
2731 WriteLiteral(">\r\n <use");
2732
2733 WriteLiteral(" xlink:href=\"#Icon--magnifier\"");
2734
2735 WriteLiteral("></use>\r\n </svg>\r\n </di" +
2736 "v>\r\n <div");
2737
2738 WriteLiteral(" class=\"Search-loader js-searchLoader\"");
2739
2740 WriteLiteral("></div>\r\n <ul");
2741
2742 WriteLiteral(" id=\"js-searchContent2\"");
2743
2744 WriteLiteral(" class=\"Search-result js-searchContent js-searchContentTablet\"");
2745
2746 WriteLiteral(" data-empty-text=\"Inga produkter hittades\"");
2747
2748 WriteLiteral(" data-more-text=\"Visa fler\"");
2749
2750 WriteLiteral("></ul>\r\n </div>\r\n <button");
2751
2752 WriteLiteral(" type=\"button\"");
2753
2754 WriteLiteral(" class=\"Search-toggle js-searchToggle\"");
2755
2756 WriteLiteral(">\r\n <div");
2757
2758 WriteLiteral(" class=\"Search-toggleContent\"");
2759
2760 WriteLiteral(">\r\n <div");
2761
2762 WriteLiteral(" class=\"Search-toggleMinified\"");
2763
2764 WriteLiteral(">\r\n <svg");
2765
2766 WriteLiteral(" onclick=\"focusMethod()\"");
2767
2768 WriteLiteral(" class=\"Icon Icon--magnifier\"");
2769
2770 WriteLiteral(" role=\"presentational\"");
2771
2772 WriteLiteral(">\r\n <use");
2773
2774 WriteLiteral(" xlink:href=\"#Icon--magnifier\"");
2775
2776 WriteLiteral("></use>\r\n </svg>\r\n " +
2777 " </div>\r\n <div");
2778
2779 WriteLiteral(" class=\"Search-toggleExpanded\"");
2780
2781 WriteLiteral(">\r\n <svg");
2782
2783 WriteLiteral(" class=\"Icon Icon--close\"");
2784
2785 WriteLiteral(" role=\"presentational\"");
2786
2787 WriteLiteral(">\r\n <use");
2788
2789 WriteLiteral(" xlink:href=\"#Icon--close\"");
2790
2791 WriteLiteral("></use>\r\n </svg>\r\n " +
2792 " </div>\r\n </div>\r\n </button" +
2793 ">\r\n <input");
2794
2795 WriteLiteral(" type=\"hidden\"");
2796
2797 WriteLiteral(" name=\"id\"");
2798
2799 WriteLiteral(" value=\"\"");
2800
2801 WriteLiteral(" class=\"js-searchInput\"");
2802
2803 WriteLiteral(">\r\n <input");
2804
2805 WriteLiteral(" type=\"hidden\"");
2806
2807 WriteLiteral(" name=\"pid\"");
2808
2809 WriteLiteral(" value=\"\"");
2810
2811 WriteLiteral(" class=\"js-searchInput\"");
2812
2813 WriteLiteral(">\r\n </form>\r\n </div>\r\n </div>\r\n " +
2814 " <div");
2815
2816 WriteLiteral(" class=\"Header-cart js-headerCart\"");
2817
2818 WriteLiteral(">\r\n <a");
2819
2820 WriteLiteral(" class=\"CartToggle\"");
2821
2822 WriteLiteral(" href=\"/varukorg/\"");
2823
2824 WriteLiteral(" data-controller=\"\"");
2825
2826 WriteLiteral(" data-canvas=\"right\"");
2827
2828 WriteLiteral(" data-count=\"\"");
2829
2830 WriteLiteral(" data-empty-text=\"Varukorgen är tom\"");
2831
2832 WriteLiteral(" data-single-text=\"Produkt\"");
2833
2834 WriteLiteral(" data-plural-text=\"Produkter\"");
2835
2836 WriteLiteral(">\r\n <button");
2837
2838 WriteLiteral(" class=\"CartToggle-close\"");
2839
2840 WriteLiteral(" role=\"button\"");
2841
2842 WriteLiteral(" aria-pressed=\"false\"");
2843
2844 WriteLiteral(">\r\n <div");
2845
2846 WriteLiteral(" class=\"CartToggle-closeBars\"");
2847
2848 WriteLiteral(">\r\n <span");
2849
2850 WriteLiteral(" class=\"CartToggle-closeBar\"");
2851
2852 WriteLiteral("></span>\r\n <span");
2853
2854 WriteLiteral(" class=\"CartToggle-closeBar\"");
2855
2856 WriteLiteral("></span>\r\n </div>\r\n </button>\r\n " +
2857 " <div");
2858
2859 WriteLiteral(" class=\"CartToggle-wrapper\"");
2860
2861 WriteLiteral(">\r\n <span");
2862
2863 WriteLiteral(" class=\"CartToggle-alt1\"");
2864
2865 WriteLiteral("></span>\r\n");
2866
2867
2868 #line 693 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2869
2870
2871 #line default
2872 #line hidden
2873
2874 #line 693 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2875 if (cartToggle.isEmpty)
2876 {
2877
2878
2879 #line default
2880 #line hidden
2881 WriteLiteral(" <span");
2882
2883 WriteLiteral(" class=\"CartToggle-alt2\"");
2884
2885 WriteLiteral(">");
2886
2887
2888 #line 695 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2889 Write(cartToggle.textEmpty);
2890
2891
2892 #line default
2893 #line hidden
2894 WriteLiteral("</span>\r\n");
2895
2896
2897 #line 696 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2898 }
2899 else
2900 {
2901 if (cartToggle.isSingle)
2902 {
2903
2904
2905 #line default
2906 #line hidden
2907 WriteLiteral(" <span");
2908
2909 WriteLiteral(" class=\"CartToggle-alt2\"");
2910
2911 WriteLiteral(">");
2912
2913
2914 #line 701 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2915 Write(cartToggle.count);
2916
2917
2918 #line default
2919 #line hidden
2920 WriteLiteral(" ");
2921
2922
2923 #line 701 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2924 Write(cartToggle.textSingle);
2925
2926
2927 #line default
2928 #line hidden
2929 WriteLiteral("</span>\r\n");
2930
2931
2932 #line 702 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2933 }
2934 else
2935 {
2936
2937
2938 #line default
2939 #line hidden
2940 WriteLiteral(" <span");
2941
2942 WriteLiteral(" class=\"CartToggle-alt2\"");
2943
2944 WriteLiteral(">");
2945
2946
2947 #line 705 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2948 Write(cartToggle.count);
2949
2950
2951 #line default
2952 #line hidden
2953 WriteLiteral(" ");
2954
2955
2956 #line 705 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2957 Write(cartToggle.textPlural);
2958
2959
2960 #line default
2961 #line hidden
2962 WriteLiteral("</span>\r\n");
2963
2964
2965 #line 706 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
2966 }
2967 }
2968
2969
2970 #line default
2971 #line hidden
2972 WriteLiteral(" </div>\r\n </a>\r\n </div>\r\n </d" +
2973 "iv>\r\n <form");
2974
2975 WriteLiteral(" action=\"service/return\"");
2976
2977 WriteLiteral(" method=\"get\"");
2978
2979 WriteLiteral(" class=\"OrderList-counter js-selectedCounter background-Green\"");
2980
2981 WriteLiteral(">\r\n <button");
2982
2983 WriteLiteral(" class=\"OrderList-counterClose js-toggleSelectMode\"");
2984
2985 WriteLiteral(" data-action=\"disable\"");
2986
2987 WriteLiteral(">\r\n <svg");
2988
2989 WriteLiteral(" class=\"Icon Icon--close\"");
2990
2991 WriteLiteral(" role=\"presentational\"");
2992
2993 WriteLiteral(">\r\n <use");
2994
2995 WriteLiteral(" xlink:href=\"#Icon--close\"");
2996
2997 WriteLiteral("></use>\r\n </svg>\r\n </button>\r\n <div");
2998
2999 WriteLiteral(" class=\"OrderList-counterCount\"");
3000
3001 WriteLiteral("><span");
3002
3003 WriteLiteral(" class=\"js-selectedCountText\"");
3004
3005 WriteLiteral(" style=\"font-size: 24px\"");
3006
3007 WriteLiteral(" data-emptycount=\"Inga\"");
3008
3009 WriteLiteral(">Inga</span> produkter valda</div>\r\n\r\n <ul");
3010
3011 WriteLiteral(" class=\"OrderList-counterActions\"");
3012
3013 WriteLiteral(">\r\n\r\n <li");
3014
3015 WriteAttribute("class", Tuple.Create(" class=\"", 48982), Tuple.Create("\"", 49044)
3016 , Tuple.Create(Tuple.Create("", 48990), Tuple.Create("OrderList-counterAction", 48990), true)
3017 , Tuple.Create(Tuple.Create(" ", 49013), Tuple.Create("js-orderListAction", 49014), true)
3018
3019 #line 722 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3020 , Tuple.Create(Tuple.Create(" ", 49032), Tuple.Create<System.Object, System.Int32>(editOnRent
3021
3022 #line default
3023 #line hidden
3024 , 49033), false)
3025 );
3026
3027 WriteLiteral(" data-enable=\"returns.selected\"");
3028
3029 WriteLiteral(">\r\n <a");
3030
3031 WriteAttribute("href", Tuple.Create(" href=\"", 49101), Tuple.Create("\"", 49123)
3032
3033 #line 723 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3034 , Tuple.Create(Tuple.Create("", 49108), Tuple.Create<System.Object, System.Int32>(onrentEditHref
3035
3036 #line default
3037 #line hidden
3038 , 49108), false)
3039 );
3040
3041 WriteLiteral(" class=\"Button Button--light ButtonRental js-overlayTrigger\"");
3042
3043 WriteLiteral(">Redigera egenskaper</a>\r\n </li>\r\n\r\n\r\n <li");
3044
3045 WriteLiteral(" class=\"OrderList-counterAction js-orderListAction\"");
3046
3047 WriteLiteral(">\r\n <a");
3048
3049 WriteLiteral(" href=\"/form/sort_activity\"");
3050
3051 WriteLiteral(" class=\"Button Button--light Button--secondary js-overlayTrigger\"");
3052
3053 WriteLiteral("></a>\r\n </li>\r\n <li");
3054
3055 WriteLiteral(" class=\"OrderList-counterAction js-orderListAction\"");
3056
3057 WriteLiteral(" data-enable=\"returns.selected\"");
3058
3059 WriteLiteral(">\r\n <a");
3060
3061 WriteLiteral(" href=\"/form/return\"");
3062
3063 WriteLiteral(" class=\"Return-confirmButton Button Button--light ButtonRental js-overlayTrigger\"" +
3064 "");
3065
3066 WriteLiteral(" data-controller=\"return\"");
3067
3068 WriteLiteral(">Beställ retur</a>\r\n </li>\r\n </ul>\r\n </form>\r\n " +
3069 " </div>\r\n\r\n <script");
3070
3071 WriteLiteral(" class=\"js-loginReminderModel\"");
3072
3073 WriteLiteral(" type=\"application/json\"");
3074
3075 WriteLiteral(@">
3076 {
3077 ""isBubble"": true,
3078 ""heading"": ""Är du redan kund?"",
3079 ""body"": ""Glöm då inte att logga in för att se priser och dina påbörjade varukorgar! <a href='/form/login' class='js-overlayTrigger'>Logga in</a>.""
3080 }
3081 </script>
3082 </header>
3083 ");
3084
3085
3086 #line 745 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3087 }
3088 else
3089 {
3090
3091
3092 #line default
3093 #line hidden
3094
3095 #line 748 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3096
3097
3098
3099
3100 #line default
3101 #line hidden
3102 WriteLiteral(" <header");
3103
3104 WriteAttribute("class", Tuple.Create(" class=\"", 50214), Tuple.Create("\"", 50257)
3105 , Tuple.Create(Tuple.Create("", 50222), Tuple.Create("Header", 50222), true)
3106 , Tuple.Create(Tuple.Create(" ", 50228), Tuple.Create("js-pageHeader", 50229), true)
3107
3108 #line 750 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3109 , Tuple.Create(Tuple.Create(" ", 50242), Tuple.Create<System.Object, System.Int32>(loggedInClass
3110
3111 #line default
3112 #line hidden
3113 , 50243), false)
3114 );
3115
3116 WriteLiteral(" data-controller=\"header\"");
3117
3118 WriteLiteral(">\r\n <div");
3119
3120 WriteLiteral(" class=\"Header-brand\"");
3121
3122 WriteLiteral(">\r\n <a");
3123
3124 WriteLiteral(" href=\"/\"");
3125
3126 WriteLiteral(" class=\"Header-brandLogo\"");
3127
3128 WriteLiteral("></a>\r\n <div");
3129
3130 WriteLiteral(" class=\"Header-brandAccount\"");
3131
3132 WriteLiteral(">\r\n <div");
3133
3134 WriteLiteral(" class=\"Grid Grid--withGutter\"");
3135
3136 WriteLiteral(" style=\"height:20px;\"");
3137
3138 WriteLiteral(">\r\n <div");
3139
3140 WriteLiteral(" class=\"Grid-cell u-size7of12 u-md-size7of12 u-lg-size8of12 topUserMenu\"");
3141
3142 WriteLiteral(">\r\n");
3143
3144
3145 #line 756 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3146
3147
3148 #line default
3149 #line hidden
3150
3151 #line 756 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3152 if (isLoggedIn)
3153 {
3154
3155
3156 #line default
3157 #line hidden
3158 WriteLiteral(" <div");
3159
3160 WriteLiteral(" class=\"showUserDropdown\"");
3161
3162 WriteLiteral(">\r\n ");
3163
3164 WriteLiteral("\r\n <i");
3165
3166 WriteLiteral(" class=\"userIcon\"");
3167
3168 WriteLiteral("></i>\r\n <span");
3169
3170 WriteLiteral(" class=\"js-headerUsername colorBlue\"");
3171
3172 WriteLiteral(" style=\"display: inline-flex\"");
3173
3174 WriteLiteral(">");
3175
3176
3177 #line 761 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3178 Write(userName);
3179
3180
3181 #line default
3182 #line hidden
3183 WriteLiteral("</span>\r\n <div");
3184
3185 WriteLiteral(" class=\"dropdown\"");
3186
3187 WriteLiteral(">\r\n <div");
3188
3189 WriteLiteral(" id=\"userHeaderDropdown\"");
3190
3191 WriteLiteral(" class=\"dropdown-content\"");
3192
3193 WriteLiteral(">\r\n");
3194
3195
3196 #line 764 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3197
3198
3199 #line default
3200 #line hidden
3201
3202 #line 764 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3203 if (isCheckMeRole)
3204 {
3205
3206
3207 #line default
3208 #line hidden
3209 WriteLiteral(" <a");
3210
3211 WriteLiteral(" class=\"userLink boldFont\"");
3212
3213 WriteLiteral(" href=\"/dashboard/minsida/\"");
3214
3215 WriteLiteral(">Min sida</a>\r\n");
3216
3217
3218 #line 767 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3219 }
3220 else
3221 {
3222
3223
3224 #line default
3225 #line hidden
3226 WriteLiteral(" <a");
3227
3228 WriteLiteral(" class=\"userLink boldFont\"");
3229
3230 WriteLiteral(" href=\"/dashboard/minsida/\"");
3231
3232 WriteLiteral(">Min sida</a>\r\n");
3233
3234 WriteLiteral(" <a");
3235
3236 WriteLiteral(" class=\"userLink boldFont\"");
3237
3238 WriteLiteral(" href=\"/dashboard/minafavoriter/\"");
3239
3240 WriteLiteral(">Mina favoriter</a>\r\n");
3241
3242 WriteLiteral(" <a");
3243
3244 WriteLiteral(" class=\"userLink boldFont\"");
3245
3246 WriteLiteral(" href=\"/dashboard/minaprojekt/\"");
3247
3248 WriteLiteral(">Mina projekt</a>\r\n");
3249
3250
3251 #line 773 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3252 foreach (var item in topProjectsForUser)
3253 {
3254
3255
3256 #line default
3257 #line hidden
3258 WriteLiteral(" <a");
3259
3260 WriteLiteral(" style=\"margin-left: 10px; margin-top: -10px; font-size: 16px !important;\"");
3261
3262 WriteLiteral(" class=\"favProject\"");
3263
3264 WriteAttribute("title", Tuple.Create(" title=\"", 52035), Tuple.Create("\"", 52048)
3265
3266 #line 775 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3267 , Tuple.Create(Tuple.Create("", 52043), Tuple.Create<System.Object, System.Int32>(item
3268
3269 #line default
3270 #line hidden
3271 , 52043), false)
3272 );
3273
3274 WriteLiteral(" data-projectid=\"");
3275
3276
3277 #line 775 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3278 Write(item);
3279
3280
3281 #line default
3282 #line hidden
3283 WriteLiteral("\"");
3284
3285 WriteLiteral(">");
3286
3287
3288 #line 775 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3289 Write(item);
3290
3291
3292 #line default
3293 #line hidden
3294 WriteLiteral("</a>\r\n");
3295
3296
3297 #line 776 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3298 }
3299 if (topProjectsForUser != null && topProjectsForUser.Count > 0)
3300 {
3301
3302
3303 #line default
3304 #line hidden
3305 WriteLiteral(" <a");
3306
3307 WriteLiteral(" href=\"/dashboard/minaprojekt/\"");
3308
3309 WriteLiteral(" style=\"margin-left: 10px; margin-top: -10px; font-size: 16px !important;\"");
3310
3311 WriteLiteral(">Visa fler...</a>\r\n");
3312
3313
3314 #line 780 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3315 }
3316
3317 if (currentProjectData != null)
3318 {
3319 if (currentProjectData.CustomerType == "Skanska")
3320 {
3321
3322
3323 #line default
3324 #line hidden
3325 WriteLiteral(" <a");
3326
3327 WriteLiteral(" class=\"boldFont\"");
3328
3329 WriteLiteral(" href=\"/dashboard/projektanmalanintern\"");
3330
3331 WriteLiteral(">Lägg till nytt projekt</a>\r\n");
3332
3333
3334 #line 787 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3335 }
3336 else if (permissionCreateNewProjectExternalUser)
3337 {
3338
3339
3340 #line default
3341 #line hidden
3342 WriteLiteral(" <a");
3343
3344 WriteLiteral(" class=\"boldFont\"");
3345
3346 WriteLiteral(" href=\"/dashboard/projektanmalan/\"");
3347
3348 WriteLiteral(">Lägg till nytt projekt</a>\r\n");
3349
3350
3351 #line 791 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3352 }
3353 }
3354 }
3355
3356
3357 #line default
3358 #line hidden
3359 WriteLiteral("\r\n\r\n <a");
3360
3361 WriteLiteral(" class=\"userLink boldFont\"");
3362
3363 WriteLiteral(" href=\"/Admin/Public/extranetlogoff.aspx?ID=1\"");
3364
3365 WriteLiteral(">Logga ut</a>\r\n </div>\r\n " +
3366 " </div>\r\n </div>\r\n");
3367
3368
3369 #line 800 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3370 }
3371
3372
3373 #line default
3374 #line hidden
3375 WriteLiteral(" </div>\r\n");
3376
3377
3378 #line 802 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3379
3380
3381 #line default
3382 #line hidden
3383
3384 #line 802 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3385
3386 var small = isLoggedIn ? "u-size5of12" : "u-size12of12";
3387 var medium = isLoggedIn ? "u-md-size5of12" : "u-md-size12of12";
3388 var large = isLoggedIn && currentProjectData.code != null ? "u-lg-size2of12" : "u-lg-size2of12";
3389
3390
3391 #line default
3392 #line hidden
3393 WriteLiteral("\r\n <div");
3394
3395 WriteAttribute("class", Tuple.Create(" class=\"", 53954), Tuple.Create("\"", 53993)
3396 , Tuple.Create(Tuple.Create("", 53962), Tuple.Create("Grid-cell", 53962), true)
3397
3398 #line 807 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3399 , Tuple.Create(Tuple.Create(" ", 53971), Tuple.Create<System.Object, System.Int32>(small
3400
3401 #line default
3402 #line hidden
3403 , 53972), false)
3404
3405 #line 807 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3406 , Tuple.Create(Tuple.Create(" ", 53978), Tuple.Create<System.Object, System.Int32>(medium
3407
3408 #line default
3409 #line hidden
3410 , 53979), false)
3411
3412 #line 807 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3413 , Tuple.Create(Tuple.Create(" ", 53986), Tuple.Create<System.Object, System.Int32>(large
3414
3415 #line default
3416 #line hidden
3417 , 53987), false)
3418 );
3419
3420 WriteLiteral(" style=\"height: 26px; margin-top: -3px; z-index: 1\"");
3421
3422 WriteLiteral(">\r\n <div");
3423
3424 WriteLiteral(" class=\"NavAccount\"");
3425
3426 WriteLiteral(">\r\n ");
3427
3428 WriteLiteral("\r\n ");
3429
3430 WriteLiteral("\r\n");
3431
3432
3433 #line 815 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3434
3435
3436 #line default
3437 #line hidden
3438
3439 #line 815 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3440 if (isLoggedIn)
3441 {
3442 if (currentProjectData != null && currentProjectData.code != null)
3443 {
3444
3445
3446 #line default
3447 #line hidden
3448 WriteLiteral(" <div");
3449
3450 WriteLiteral(" class=\"NavAccount-wrapper showProjectDropdown\"");
3451
3452 WriteLiteral(">\r\n <div");
3453
3454 WriteLiteral(" class=\"NavAccount-active\"");
3455
3456 WriteLiteral(">\r\n");
3457
3458
3459 #line 821 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3460
3461
3462 #line default
3463 #line hidden
3464
3465 #line 821 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3466 if (!string.IsNullOrEmpty(currentProjectData.ProjectNoIRIS))
3467 {
3468
3469
3470 #line default
3471 #line hidden
3472 WriteLiteral(" <a");
3473
3474 WriteLiteral(" class=\"NavAccount-current colorBlue\"");
3475
3476 WriteLiteral(" data-controller=\"overlay\"");
3477
3478 WriteLiteral(">");
3479
3480
3481 #line 823 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3482 Write(currentProjectData.ProjectNoIRIS);
3483
3484
3485 #line default
3486 #line hidden
3487 WriteLiteral(" (");
3488
3489
3490 #line 823 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3491 Write(currentProjectData.title);
3492
3493
3494 #line default
3495 #line hidden
3496 WriteLiteral(") </a>\r\n");
3497
3498
3499 #line 824 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3500 }
3501 else
3502 {
3503
3504
3505 #line default
3506 #line hidden
3507 WriteLiteral(" <a");
3508
3509 WriteLiteral(" class=\"NavAccount-current colorBlue\"");
3510
3511 WriteLiteral(" data-controller=\"overlay\"");
3512
3513 WriteLiteral(">");
3514
3515
3516 #line 827 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3517 Write(currentProjectData.code);
3518
3519
3520 #line default
3521 #line hidden
3522 WriteLiteral(" (");
3523
3524
3525 #line 827 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3526 Write(currentProjectData.title);
3527
3528
3529 #line default
3530 #line hidden
3531 WriteLiteral(") </a>\r\n");
3532
3533
3534 #line 828 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3535 }
3536
3537
3538 #line default
3539 #line hidden
3540 WriteLiteral(" </div>\r\n <" +
3541 "div>\r\n <div");
3542
3543 WriteLiteral(" id=\"projectHeaderDropdown\"");
3544
3545 WriteLiteral(" class=\"dropdownProject-content\"");
3546
3547 WriteLiteral(">\r\n");
3548
3549
3550 #line 832 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3551
3552
3553 #line default
3554 #line hidden
3555
3556 #line 832 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3557 if (isCheckMeRole)
3558 {
3559
3560
3561 #line default
3562 #line hidden
3563 WriteLiteral(" <a");
3564
3565 WriteLiteral(" class=\"boldFont\"");
3566
3567 WriteLiteral(" href=\"/dashboard/dagligtillsyn\"");
3568
3569 WriteLiteral(">Daglig tillsyn</a>\r\n");
3570
3571
3572 #line 835 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3573 }
3574 else
3575 {
3576
3577
3578 #line default
3579 #line hidden
3580 WriteLiteral(" <a");
3581
3582 WriteLiteral(" class=\"boldFont\"");
3583
3584 WriteLiteral(" href=\"/dashboard/pahyra\"");
3585
3586 WriteLiteral(">På hyra</a>\r\n");
3587
3588 WriteLiteral(" <a");
3589
3590 WriteLiteral(" class=\"boldFont\"");
3591
3592 WriteLiteral(" href=\"/dashboard/orderhistorik/\"");
3593
3594 WriteLiteral(">Orderhistorik</a>\r\n");
3595
3596 WriteLiteral(" <a");
3597
3598 WriteLiteral(" class=\"boldFont\"");
3599
3600 WriteLiteral(" href=\"/dashboard/fakturor/\"");
3601
3602 WriteLiteral(">Fakturor</a>\r\n");
3603
3604 WriteLiteral(" <a");
3605
3606 WriteLiteral(" class=\"boldFont\"");
3607
3608 WriteLiteral(" href=\"/dashboard/dagligtillsyn\"");
3609
3610 WriteLiteral(">Daglig tillsyn</a>\r\n");
3611
3612 WriteLiteral(" <a");
3613
3614 WriteLiteral(" class=\"boldFont\"");
3615
3616 WriteLiteral(" href=\"/dashboard/projekt/\"");
3617
3618 WriteLiteral(">Projektinformation</a>\r\n");
3619
3620 WriteLiteral(" <a");
3621
3622 WriteLiteral(" class=\"boldFont\"");
3623
3624 WriteLiteral(" href=\"/dashboard/oversiktsvy/\"");
3625
3626 WriteLiteral(">Översiktsvy</a>\r\n");
3627
3628 WriteLiteral(" <a");
3629
3630 WriteLiteral(" class=\"boldFont\"");
3631
3632 WriteLiteral(" href=\"/dashboard/projektdokument/\"");
3633
3634 WriteLiteral(">Projektdokument</a>\r\n");
3635
3636
3637 #line 845 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3638 }
3639
3640
3641 #line default
3642 #line hidden
3643 WriteLiteral(" </div>\r\n " +
3644 " </div>\r\n </div>\r\n");
3645
3646
3647 #line 849 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3648 }
3649 else
3650 {
3651
3652
3653 #line default
3654 #line hidden
3655 WriteLiteral(" <div");
3656
3657 WriteLiteral(" class=\"NavAccount-wrapper\"");
3658
3659 WriteLiteral(">\r\n <div");
3660
3661 WriteLiteral(" class=\"NavAccount-active\"");
3662
3663 WriteLiteral(">\r\n <a");
3664
3665 WriteLiteral(" href=\"/dashboard/minaprojekt/\"");
3666
3667 WriteLiteral(" style=\"color: black;\"");
3668
3669 WriteLiteral(" class=\"NavAccount-current\"");
3670
3671 WriteLiteral(">(Välj ett projekt)</a>\r\n </div>\r\n " +
3672 " </div>\r\n");
3673
3674
3675 #line 857 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3676 }
3677 }
3678 else
3679 {
3680
3681
3682 #line default
3683 #line hidden
3684 WriteLiteral(" <div");
3685
3686 WriteLiteral(" class=\"NavAccount-wrapper\"");
3687
3688 WriteLiteral(">\r\n <div");
3689
3690 WriteLiteral(" class=\"NavAccount-active\"");
3691
3692 WriteLiteral(">\r\n <a");
3693
3694 WriteLiteral(" href=\"/form/login\"");
3695
3696 WriteLiteral(" class=\"NavAccount-unauthorized js-overlayTrigger\"");
3697
3698 WriteLiteral(" data-controller=\"overlay\"");
3699
3700 WriteLiteral(">Logga in</a>\r\n </div>\r\n " +
3701 " </div>\r\n");
3702
3703
3704 #line 866 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3705 }
3706
3707
3708 #line default
3709 #line hidden
3710 WriteLiteral("\r\n <div");
3711
3712 WriteLiteral(" data-controller=\"overlay\"");
3713
3714 WriteLiteral("></div>\r\n <script");
3715
3716 WriteLiteral(" class=\"js-navAccountModel\"");
3717
3718 WriteLiteral(" type=\"application/json\"");
3719
3720 WriteLiteral(@">
3721 {""authorized"":{""href"":""/dashboard/projekt"",""toggle"":""Byt""},""unauthorized"":{""href"":""/form/login"",""text"":""Logga in""},""form"":{""method"":""post"",""actions"":{""number"":{""name"":""code"",""type"":""tel"",""pattern"":""^[0-9-]{3,30}$"",""placeholder"":""Projektnr t.ex. 12345 eller 1234-56""}},""inputs"":[{""name"":""accountcmd"",""value"":""changeProject""}]}}
3722 </script>
3723 </div>
3724 </div>
3725 </div>
3726 </div>
3727 </div>
3728 <div");
3729
3730 WriteLiteral(" class=\"Header-main\"");
3731
3732 WriteLiteral(">\r\n <button");
3733
3734 WriteLiteral(" class=\"Header-toggle\"");
3735
3736 WriteLiteral(" role=\"button\"");
3737
3738 WriteLiteral(" aria-pressed=\"false\"");
3739
3740 WriteLiteral(" data-canvas=\"left\"");
3741
3742 WriteLiteral(">\r\n <div");
3743
3744 WriteLiteral(" class=\"Header-toggleBars\"");
3745
3746 WriteLiteral(">\r\n <span");
3747
3748 WriteLiteral(" class=\"Header-toggleBar\"");
3749
3750 WriteLiteral("></span>\r\n <span");
3751
3752 WriteLiteral(" class=\"Header-toggleBar\"");
3753
3754 WriteLiteral("></span>\r\n <span");
3755
3756 WriteLiteral(" class=\"Header-toggleBar\"");
3757
3758 WriteLiteral("></span>\r\n </div>\r\n </button>\r\n\r\n <div");
3759
3760 WriteLiteral(" class=\"Header-actions js-headerActions\"");
3761
3762 WriteLiteral(">\r\n <div");
3763
3764 WriteLiteral(" class=\"Header-search\"");
3765
3766 WriteLiteral(">\r\n <div");
3767
3768 WriteLiteral(" class=\"Search\"");
3769
3770 WriteLiteral(" data-controller=\"search\"");
3771
3772 WriteLiteral(">\r\n <form");
3773
3774 WriteLiteral(" action=\"/sok\"");
3775
3776 WriteLiteral(" method=\"get\"");
3777
3778 WriteLiteral(" class=\"Search-form js-autocompleteForm\"");
3779
3780 WriteLiteral(" data-action=\"/service/search\"");
3781
3782 WriteLiteral(" data-method=\"get\"");
3783
3784 WriteLiteral(" data-loader=\"True\"");
3785
3786 WriteLiteral(">\r\n <div");
3787
3788 WriteLiteral(" class=\"Search-inputs js-searchInputs\"");
3789
3790 WriteLiteral(">\r\n <input");
3791
3792 WriteLiteral(" type=\"text\"");
3793
3794 WriteLiteral(" name=\"q\"");
3795
3796 WriteLiteral(" placeholder=\"Sök\"");
3797
3798 WriteLiteral(" autocomplete=\"off\"");
3799
3800 WriteLiteral(" class=\"Search-input\"");
3801
3802 WriteLiteral(" id=\"js-searchBarInput\"");
3803
3804 WriteLiteral(">\r\n <div");
3805
3806 WriteLiteral(" class=\"Search-icon\"");
3807
3808 WriteLiteral(">\r\n <svg");
3809
3810 WriteLiteral(" class=\"Icon Icon--magnifier\"");
3811
3812 WriteLiteral(" role=\"presentational\"");
3813
3814 WriteLiteral(">\r\n <use");
3815
3816 WriteLiteral(" xlink:href=\"#Icon--magnifier\"");
3817
3818 WriteLiteral("></use>\r\n </svg>\r\n </di" +
3819 "v>\r\n <div");
3820
3821 WriteLiteral(" class=\"Search-loader js-searchLoader\"");
3822
3823 WriteLiteral("></div>\r\n <ul");
3824
3825 WriteLiteral(" id=\"js-searchContent2\"");
3826
3827 WriteLiteral(" class=\"Search-result js-searchContent js-searchContentMobile\"");
3828
3829 WriteLiteral(" data-empty-text=\"Inga produkter hittades\"");
3830
3831 WriteLiteral(" data-more-text=\"Visa fler\"");
3832
3833 WriteLiteral("></ul>\r\n </div>\r\n <button");
3834
3835 WriteLiteral(" type=\"button\"");
3836
3837 WriteLiteral(" class=\"Search-toggle js-searchToggle\"");
3838
3839 WriteLiteral(">\r\n <div");
3840
3841 WriteLiteral(" class=\"Search-toggleContent\"");
3842
3843 WriteLiteral(">\r\n <div");
3844
3845 WriteLiteral(" class=\"Search-toggleMinified\"");
3846
3847 WriteLiteral(">\r\n <svg");
3848
3849 WriteLiteral(" onclick=\"focusMethod()\"");
3850
3851 WriteLiteral(" class=\"Icon Icon--magnifier\"");
3852
3853 WriteLiteral(" role=\"presentational\"");
3854
3855 WriteLiteral(">\r\n <use");
3856
3857 WriteLiteral(" xlink:href=\"#Icon--magnifier\"");
3858
3859 WriteLiteral("></use>\r\n </svg>\r\n " +
3860 " </div>\r\n <div");
3861
3862 WriteLiteral(" class=\"Search-toggleExpanded\"");
3863
3864 WriteLiteral(">\r\n <svg");
3865
3866 WriteLiteral(" class=\"Icon Icon--close\"");
3867
3868 WriteLiteral(" role=\"presentational\"");
3869
3870 WriteLiteral(">\r\n <use");
3871
3872 WriteLiteral(" xlink:href=\"#Icon--close\"");
3873
3874 WriteLiteral("></use>\r\n </svg>\r\n " +
3875 " </div>\r\n </div>\r\n </button" +
3876 ">\r\n <input");
3877
3878 WriteLiteral(" type=\"hidden\"");
3879
3880 WriteLiteral(" name=\"id\"");
3881
3882 WriteLiteral(" value=\"\"");
3883
3884 WriteLiteral(" class=\"js-searchInput\"");
3885
3886 WriteLiteral(">\r\n <input");
3887
3888 WriteLiteral(" type=\"hidden\"");
3889
3890 WriteLiteral(" name=\"pid\"");
3891
3892 WriteLiteral(" value=\"\"");
3893
3894 WriteLiteral(" class=\"js-searchInput\"");
3895
3896 WriteLiteral(">\r\n </form>\r\n </div>\r\n </div>\r\n " +
3897 " <div");
3898
3899 WriteLiteral(" class=\"Header-cart js-headerCart\"");
3900
3901 WriteLiteral(">\r\n <a");
3902
3903 WriteLiteral(" class=\"CartToggle\"");
3904
3905 WriteLiteral(" href=\"/varukorg/\"");
3906
3907 WriteLiteral(" data-controller=\"\"");
3908
3909 WriteLiteral(" data-canvas=\"right\"");
3910
3911 WriteLiteral(" data-count=\"\"");
3912
3913 WriteLiteral(" data-empty-text=\"Varukorgen är tom\"");
3914
3915 WriteLiteral(" data-single-text=\"Produkt\"");
3916
3917 WriteLiteral(" data-plural-text=\"Produkter\"");
3918
3919 WriteLiteral(">\r\n <button");
3920
3921 WriteLiteral(" class=\"CartToggle-close\"");
3922
3923 WriteLiteral(" role=\"button\"");
3924
3925 WriteLiteral(" aria-pressed=\"false\"");
3926
3927 WriteLiteral(">\r\n <div");
3928
3929 WriteLiteral(" class=\"CartToggle-closeBars\"");
3930
3931 WriteLiteral(">\r\n <span");
3932
3933 WriteLiteral(" class=\"CartToggle-closeBar\"");
3934
3935 WriteLiteral("></span>\r\n <span");
3936
3937 WriteLiteral(" class=\"CartToggle-closeBar\"");
3938
3939 WriteLiteral("></span>\r\n </div>\r\n </button>\r\n " +
3940 " <div");
3941
3942 WriteLiteral(" class=\"CartToggle-wrapper\"");
3943
3944 WriteLiteral(">\r\n <span");
3945
3946 WriteLiteral(" class=\"CartToggle-alt1\"");
3947
3948 WriteLiteral("></span>\r\n");
3949
3950
3951 #line 929 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3952
3953
3954 #line default
3955 #line hidden
3956
3957 #line 929 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3958 if (cartToggle.isEmpty)
3959 {
3960
3961
3962 #line default
3963 #line hidden
3964 WriteLiteral(" <span");
3965
3966 WriteLiteral(" class=\"CartToggle-alt2\"");
3967
3968 WriteLiteral(">");
3969
3970
3971 #line 931 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3972 Write(cartToggle.textEmpty);
3973
3974
3975 #line default
3976 #line hidden
3977 WriteLiteral("</span>\r\n");
3978
3979
3980 #line 932 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3981 }
3982 else
3983 {
3984 if (cartToggle.isSingle)
3985 {
3986
3987
3988 #line default
3989 #line hidden
3990 WriteLiteral(" <span");
3991
3992 WriteLiteral(" class=\"CartToggle-alt2\"");
3993
3994 WriteLiteral(">");
3995
3996
3997 #line 937 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
3998 Write(cartToggle.count);
3999
4000
4001 #line default
4002 #line hidden
4003 WriteLiteral(" ");
4004
4005
4006 #line 937 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4007 Write(cartToggle.textSingle);
4008
4009
4010 #line default
4011 #line hidden
4012 WriteLiteral("</span>\r\n");
4013
4014
4015 #line 938 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4016 }
4017 else
4018 {
4019
4020
4021 #line default
4022 #line hidden
4023 WriteLiteral(" <span");
4024
4025 WriteLiteral(" class=\"CartToggle-alt2\"");
4026
4027 WriteLiteral(">");
4028
4029
4030 #line 941 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4031 Write(cartToggle.count);
4032
4033
4034 #line default
4035 #line hidden
4036 WriteLiteral(" ");
4037
4038
4039 #line 941 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4040 Write(cartToggle.textPlural);
4041
4042
4043 #line default
4044 #line hidden
4045 WriteLiteral("</span>\r\n");
4046
4047
4048 #line 942 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4049 }
4050 }
4051
4052
4053 #line default
4054 #line hidden
4055 WriteLiteral(" </div>\r\n </a>\r\n </div>\r\n </d" +
4056 "iv>\r\n <form");
4057
4058 WriteLiteral(" action=\"service/return\"");
4059
4060 WriteLiteral(" method=\"get\"");
4061
4062 WriteLiteral(" class=\"OrderList-counter js-selectedCounter background-Green\"");
4063
4064 WriteLiteral(">\r\n <button");
4065
4066 WriteLiteral(" class=\"OrderList-counterClose js-toggleSelectMode\"");
4067
4068 WriteLiteral(" data-action=\"disable\"");
4069
4070 WriteLiteral(">\r\n <svg");
4071
4072 WriteLiteral(" class=\"Icon Icon--close\"");
4073
4074 WriteLiteral(" role=\"presentational\"");
4075
4076 WriteLiteral(">\r\n <use");
4077
4078 WriteLiteral(" xlink:href=\"#Icon--close\"");
4079
4080 WriteLiteral("></use>\r\n </svg>\r\n </button>\r\n <div");
4081
4082 WriteLiteral(" class=\"OrderList-counterCount\"");
4083
4084 WriteLiteral("><span");
4085
4086 WriteLiteral(" class=\"js-selectedCountText\"");
4087
4088 WriteLiteral(" style=\"font-size: 24px\"");
4089
4090 WriteLiteral(" data-emptycount=\"Inga\"");
4091
4092 WriteLiteral(">Inga</span> produkter valda</div>\r\n\r\n <ul");
4093
4094 WriteLiteral(" class=\"OrderList-counterActions\"");
4095
4096 WriteLiteral(">\r\n\r\n <li");
4097
4098 WriteAttribute("class", Tuple.Create(" class=\"", 63596), Tuple.Create("\"", 63658)
4099 , Tuple.Create(Tuple.Create("", 63604), Tuple.Create("OrderList-counterAction", 63604), true)
4100 , Tuple.Create(Tuple.Create(" ", 63627), Tuple.Create("js-orderListAction", 63628), true)
4101
4102 #line 958 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4103 , Tuple.Create(Tuple.Create(" ", 63646), Tuple.Create<System.Object, System.Int32>(editOnRent
4104
4105 #line default
4106 #line hidden
4107 , 63647), false)
4108 );
4109
4110 WriteLiteral(" data-enable=\"returns.selected\"");
4111
4112 WriteLiteral(">\r\n <a");
4113
4114 WriteAttribute("href", Tuple.Create(" href=\"", 63715), Tuple.Create("\"", 63737)
4115
4116 #line 959 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4117 , Tuple.Create(Tuple.Create("", 63722), Tuple.Create<System.Object, System.Int32>(onrentEditHref
4118
4119 #line default
4120 #line hidden
4121 , 63722), false)
4122 );
4123
4124 WriteLiteral(" class=\"Button Button--light ButtonRental js-overlayTrigger\"");
4125
4126 WriteLiteral(">Redigera egenskaper</a>\r\n </li>\r\n\r\n\r\n <li");
4127
4128 WriteLiteral(" class=\"OrderList-counterAction js-orderListAction\"");
4129
4130 WriteLiteral(">\r\n <a");
4131
4132 WriteLiteral(" href=\"/form/sort_activity\"");
4133
4134 WriteLiteral(" class=\"Button Button--light Button--secondary js-overlayTrigger\"");
4135
4136 WriteLiteral("></a>\r\n </li>\r\n <li");
4137
4138 WriteLiteral(" class=\"OrderList-counterAction js-orderListAction\"");
4139
4140 WriteLiteral(" data-enable=\"returns.selected\"");
4141
4142 WriteLiteral(">\r\n <a");
4143
4144 WriteLiteral(" href=\"/form/return\"");
4145
4146 WriteLiteral(" class=\"Return-confirmButton Button Button--light ButtonRental js-overlayTrigger\"" +
4147 "");
4148
4149 WriteLiteral(" data-controller=\"return\"");
4150
4151 WriteLiteral(">Beställ retur</a>\r\n </li>\r\n </ul>\r\n </form>\r\n " +
4152 " </div>\r\n\r\n <script");
4153
4154 WriteLiteral(" class=\"js-loginReminderModel\"");
4155
4156 WriteLiteral(" type=\"application/json\"");
4157
4158 WriteLiteral(@">
4159 {
4160 ""isBubble"": true,
4161 ""heading"": ""Är du redan kund?"",
4162 ""body"": ""Glöm då inte att logga in för att se priser och dina påbörjade varukorgar! <a href='/form/login' class='js-overlayTrigger'>Logga in</a>.""
4163 }
4164 </script>
4165 </header>
4166 ");
4167
4168
4169 #line 981 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4170 }
4171
4172
4173 #line default
4174 #line hidden
4175 WriteLiteral("\r\n <div");
4176
4177 WriteLiteral(" class=\"Canvas\"");
4178
4179 WriteLiteral(" data-controller=\"canvas\"");
4180
4181 WriteLiteral(">\r\n <div");
4182
4183 WriteLiteral(" class=\"Canvas-body\"");
4184
4185 WriteLiteral(">\r\n <div");
4186
4187 WriteLiteral(" class=\"Canvas-col Canvas-col--left\"");
4188
4189 WriteLiteral(">\r\n <nav");
4190
4191 WriteLiteral(" class=\"Nav\"");
4192
4193 WriteLiteral(" data-controller=\"nav\"");
4194
4195 WriteLiteral(">\r\n");
4196
4197
4198 #line 987 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4199
4200
4201 #line default
4202 #line hidden
4203
4204 #line 987 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4205 if (isLoggedIn)
4206 {
4207
4208
4209 #line default
4210 #line hidden
4211 WriteLiteral(" <div");
4212
4213 WriteLiteral(" id=\"isUserValid\"");
4214
4215 WriteLiteral(" data-isinternalcustomer=");
4216
4217
4218 #line 989 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4219 Write(isinternalCustomer);
4220
4221
4222 #line default
4223 #line hidden
4224 WriteLiteral(" data-has-external-customer-access=\"");
4225
4226
4227 #line 989 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4228 Write(hasExternalCustomerAccess);
4229
4230
4231 #line default
4232 #line hidden
4233 WriteLiteral("\"");
4234
4235 WriteLiteral("></div>\r\n");
4236
4237
4238 #line 990 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4239 }
4240
4241
4242 #line default
4243 #line hidden
4244 WriteLiteral(" ");
4245
4246
4247 #line 991 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4248 Write(Navigation.RenderNavigation("master/navigationDesign.cshtml", navigationSettings));
4249
4250
4251 #line default
4252 #line hidden
4253 WriteLiteral("\r\n\r\n <script");
4254
4255 WriteLiteral(" class=\"js-navModel\"");
4256
4257 WriteLiteral(" type=\"application/json\"");
4258
4259 WriteLiteral(@">
4260 {
4261 ""profile"": {
4262 ""text"": """",
4263 ""items"": []
4264 },
4265 ""project"": {
4266 ""form"": {
4267 ""actions"": {
4268 ""number"": {
4269 ""name"": """",
4270 ""pattern"": """",
4271 ""placeholder"": """",
4272 ""isFullWidth"": false,
4273 ""type"": """"
4274 },
4275 ""submit"": {
4276 ""label"": ""Byt"",
4277 ""isFullWidth"": false
4278 }
4279 },
4280 ""method"": ""post"",
4281 ""inputs"": []
4282 }
4283 },
4284 ""items"": []
4285 }
4286 </script>
4287 </nav>
4288 </div>
4289 <div");
4290
4291 WriteLiteral(" class=\"Canvas-col Canvas-col--right\"");
4292
4293 WriteLiteral(">\r\n");
4294
4295
4296 #line 1024 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4297
4298
4299 #line default
4300 #line hidden
4301
4302 #line 1032 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4303
4304 var cartPreview = new CartPreview();
4305 var jr = new JsonRenderer();
4306
4307 cartPreview.text = new CartText { empty = @Translate("Din varukorg är tom"), count = "Antal" };
4308 cartPreview.products = new List<ProductHolder>();
4309
4310 /*
4311 foreach (var orderLine in Model.CartOrderlines)
4312 {
4313 cartPreview.products.Add(new ProductHolder { product = WebHelper.populateProduct(orderLine) });
4314 }
4315 */
4316 cartPreview.button = new Link { text = @Translate("Till varukorgen"), href = "/varukorg/" };
4317
4318 //var hbh2 = new HandleBarsHelper();
4319 //var partialPathList2 = new List<string> { "cart-preview/items.hbs" };
4320 //hbh2.registerHelper("json", WebHelper.serializeToJson(cartPreview));
4321 //var cartPreviewHtml = hbh2.render("cart-preview/index.hbs", partialPathList2, cartPreview);
4322
4323 /*
4324 foreach (LoopItem orderLine in GetLoop("OrderLines"))
4325 {
4326 cartPreview.products.Add(new ProductHolder { product = WebHelper.populateProduct(orderLine) });
4327 }
4328 */
4329 //var cartItems = GetLoop("OrderLines");
4330 //cartItems = cartItems.OrderBy(item => item.GetString("Ecom:Product.Number")).ToList();
4331 var order = Dynamicweb.Ecommerce.Services.Orders.GetById(Convert.ToString(Model.ID));
4332 var orderlineFields = Dynamicweb.Ecommerce.Services.OrderLines.GetByOrder(order);
4333
4334
4335 #line default
4336 #line hidden
4337 WriteLiteral("\r\n\r\n<div");
4338
4339 WriteLiteral(" class=\"CartPreview\"");
4340
4341 WriteLiteral(" data-controller=\"\"");
4342
4343 WriteLiteral(">\r\n <div");
4344
4345 WriteLiteral(" class=\"CartPreview-content js-cartPreviewContent\"");
4346
4347 WriteLiteral(">\r\n <div");
4348
4349 WriteLiteral(" class=\"Grid Grid--withGutter Grid--push\"");
4350
4351 WriteLiteral(">\r\n <div");
4352
4353 WriteLiteral(" class=\"CartPreview-wrapper\"");
4354
4355 WriteLiteral(">\r\n <a");
4356
4357 WriteLiteral(" href=\"/varukorg/\"");
4358
4359 WriteLiteral(" class=\"Button Button--fill ButtonRental\"");
4360
4361 WriteLiteral(">\r\n");
4362
4363 WriteLiteral(" ");
4364
4365
4366 #line 1069 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4367 Write(Translate("Till varukorgen"));
4368
4369
4370 #line default
4371 #line hidden
4372 WriteLiteral("\r\n </a>\r\n </div>\r\n <ul");
4373
4374 WriteLiteral(" class=\"CartPreview-list\"");
4375
4376 WriteLiteral(" id=\"js-CartPreviewList\"");
4377
4378 WriteLiteral(">\r\n\r\n");
4379
4380
4381 #line 1074 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4382
4383
4384 #line default
4385 #line hidden
4386
4387 #line 1074 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4388 foreach (var orderLine in orderlineFields)
4389 {
4390 var imageSrc = WebHelper.getCdnImageUrl(orderLine.ProductNumber);
4391 var productName = orderLine.ProductName;
4392 var productNumber = orderLine.ProductNumber;
4393 var quantity = orderLine.Quantity;
4394 var orderLineId = orderLine.Id;
4395
4396
4397
4398 #line default
4399 #line hidden
4400 WriteLiteral(" <li");
4401
4402 WriteLiteral(" class=\"CartPreview-listItem js-CartPreview-listItem\"");
4403
4404 WriteLiteral(" data-productid=\"");
4405
4406
4407 #line 1082 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4408 Write(productNumber);
4409
4410
4411 #line default
4412 #line hidden
4413 WriteLiteral("\"");
4414
4415 WriteLiteral(" data-quantity=\"");
4416
4417
4418 #line 1082 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4419 Write(quantity);
4420
4421
4422 #line default
4423 #line hidden
4424 WriteLiteral("\"");
4425
4426 WriteLiteral(" data-rentalperiod=\"");
4427
4428
4429 #line 1082 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4430 Write(GetRentalPeriod(orderLine));
4431
4432
4433 #line default
4434 #line hidden
4435 WriteLiteral("\"");
4436
4437 WriteLiteral(" data-orderlineid=\"");
4438
4439
4440 #line 1082 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4441 Write(orderLineId);
4442
4443
4444 #line default
4445 #line hidden
4446 WriteLiteral("\"");
4447
4448 WriteLiteral(">\r\n <div");
4449
4450 WriteLiteral(" class=\"Grid Grid--alignMiddle\"");
4451
4452 WriteLiteral(">\r\n <div");
4453
4454 WriteLiteral(" class=\"Grid-cell u-size4of4\"");
4455
4456 WriteLiteral(">\r\n <div");
4457
4458 WriteLiteral(" class=\"Product-tag\"");
4459
4460 WriteLiteral(">\r\n <div");
4461
4462 WriteLiteral(" class=\"Product-tagText\"");
4463
4464 WriteLiteral(">\r\n");
4465
4466 WriteLiteral(" ");
4467
4468
4469 #line 1087 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4470 Write(productNumber);
4471
4472
4473 #line default
4474 #line hidden
4475 WriteLiteral("\r\n </div>\r\n </d" +
4476 "iv>\r\n\r\n <div");
4477
4478 WriteLiteral(" class=\"CartPreview-description\"");
4479
4480 WriteLiteral(">\r\n <img");
4481
4482 WriteAttribute("src", Tuple.Create(" src=\"", 69820), Tuple.Create("\"", 69835)
4483
4484 #line 1092 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4485 , Tuple.Create(Tuple.Create("", 69826), Tuple.Create<System.Object, System.Int32>(imageSrc
4486
4487 #line default
4488 #line hidden
4489 , 69826), false)
4490 );
4491
4492 WriteAttribute("alt", Tuple.Create(" alt=\"", 69836), Tuple.Create("\"", 69854)
4493
4494 #line 1092 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4495 , Tuple.Create(Tuple.Create("", 69842), Tuple.Create<System.Object, System.Int32>(productName
4496
4497 #line default
4498 #line hidden
4499 , 69842), false)
4500 );
4501
4502 WriteLiteral(" class=\"CartPreview-image\"");
4503
4504 WriteLiteral(">\r\n <div");
4505
4506 WriteLiteral(" class=\"CartPreview-header\"");
4507
4508 WriteLiteral(">\r\n\r\n <div><strong>");
4509
4510
4511 #line 1095 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4512 Write(productName);
4513
4514
4515 #line default
4516 #line hidden
4517 WriteLiteral("</strong></div>\r\n <div");
4518
4519 WriteLiteral(" class=\"js-CartPreview-price\"");
4520
4521 WriteLiteral(">308,00 kr/kalenderdag </div>\r\n <div><stro" +
4522 "ng><span");
4523
4524 WriteLiteral(" class=\"CartPreview-countValue js-CartPreview-countValue\"");
4525
4526 WriteLiteral(">");
4527
4528
4529 #line 1097 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4530 Write(quantity);
4531
4532
4533 #line default
4534 #line hidden
4535 WriteLiteral("</span> st</strong> <span");
4536
4537 WriteLiteral(" class=\"js-cartPreview-RentalPeriod\"");
4538
4539 WriteLiteral(">");
4540
4541
4542 #line 1097 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4543 Write(GetRentalPeriod(orderLine));
4544
4545
4546 #line default
4547 #line hidden
4548 WriteLiteral("</span> </div>\r\n <div");
4549
4550 WriteLiteral(" class=\"CartPreview-price js-CartPreview-totalPrice\"");
4551
4552 WriteLiteral("> 3 0000 kr(616 kr/dag)</div>\r\n <p");
4553
4554 WriteLiteral(" class=\"ProductPrice-error\"");
4555
4556 WriteLiteral(">Exakt pris kan ej hämtas</p>\r\n </div>\r\n " +
4557 " </div>\r\n </div>\r\n " +
4558 " </div>\r\n </li>\r\n");
4559
4560
4561 #line 1105 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4562
4563 }
4564
4565
4566 #line default
4567 #line hidden
4568 WriteLiteral(" </ul>\r\n <div");
4569
4570 WriteLiteral(" class=\"CartPreview-wrapper\"");
4571
4572 WriteLiteral(">\r\n <a");
4573
4574 WriteLiteral(" href=\"/varukorg/\"");
4575
4576 WriteLiteral(" class=\"Button Button--fill ButtonRental\"");
4577
4578 WriteLiteral(">\r\n");
4579
4580 WriteLiteral(" ");
4581
4582
4583 #line 1110 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4584 Write(Translate("Till varukorgen"));
4585
4586
4587 #line default
4588 #line hidden
4589 WriteLiteral("\r\n </a>\r\n </div>\r\n </div>\r\n </div>\r\n <scri" +
4590 "pt");
4591
4592 WriteLiteral(" class=\"js-cartPreviewModel\"");
4593
4594 WriteLiteral(" type=\"application/json\"");
4595
4596 WriteLiteral(">\r\n ");
4597
4598 WriteLiteral("\r\n </script>\r\n</div>\r\n\r\n");
4599
4600 WriteLiteral("\r\n<script");
4601
4602 WriteLiteral(" id=\"hb-cartPreview\"");
4603
4604 WriteLiteral(" type=\"text/x-handlebars-template\"");
4605
4606 WriteLiteral(">\r\n {{#each ./cartPreviewOrderlineList}}\r\n <li class=\"CartPreview-listItem " +
4607 "js-CartPreview-listItem\" data-productid=\"{{productNumber}}\" data-quantity=\"{{pro" +
4608 "ductQuantity}}\" data-rentalperiod=\"{{productRentalPeriod}}\" data-orderlineid=\"{{" +
4609 "productOrderLineId}}\" data-rent=\"{{productIsRent}}\">\r\n <div class=\"Grid G" +
4610 "rid--alignMiddle\">\r\n <div class=\"Grid-cell u-size4of4\">\r\n " +
4611 " <div {{#if productIsRent}} class=\"Product-tag\" {{else}} class=\"Product-tag P" +
4612 "roduct-tag-SaleProduct\" {{/if}}>\r\n <div {{#if productIsRent}}" +
4613 " class=\"Product-tagText\" {{else}} class=\"Product-tagText Product-tagText-SalePro" +
4614 "duct\" {{/if}}>\r\n {{productNumber}}\r\n <" +
4615 "/div>\r\n {{#unless productIsRent}}\r\n <div c" +
4616 "lass=\"Product-tagText Product-tagText-ProductType\">\r\n Köp" +
4617 "\r\n </div>\r\n {{/unless}}\r\n <" +
4618 "/div>\r\n\r\n <div class=\"CartPreview-description\">\r\n " +
4619 " <img src=\"{{productImage}}\" alt=\"{{productName}}\" class=\"CartPreview-image\">" +
4620 "\r\n <div class=\"CartPreview-header\">\r\n\r\n " +
4621 " <div><strong>{{productName}}</strong></div>\r\n {{#if pro" +
4622 "ductVariantColor}}<p>Färg: {{productVariantColor}}, Storlek: {{productVariantSiz" +
4623 "e}}</p>{{/if}}\r\n <div class=\"js-CartPreview-price\"></div>" +
4624 "\r\n <div><strong><span class=\"CartPreview-countValue js-Ca" +
4625 "rtPreview-countValue\">{{productQuantity}}</span> st</strong> " +
4626 "<span class=\"js-cartPreview-RentalPeriod\">{{productRentalPeriod}}</span> </div>\r" +
4627 "\n <div class=\"CartPreview-price js-CartPreview-totalPrice" +
4628 "\"></div>\r\n <p class=\"ProductPrice-error\">Exakt pris kan e" +
4629 "j hämtas</p>\r\n </div>\r\n </div>\r\n </" +
4630 "div>\r\n </div>\r\n </li>\r\n {{/each}}\r\n</script>\r\n<script");
4631
4632 WriteLiteral(" id=\"hb-cartTotalQuantity\"");
4633
4634 WriteLiteral(" type=\"text/x-handlebars-template\"");
4635
4636 WriteLiteral(">\r\n <a class=\"CartToggle\" href=\"/varukorg/\" data-controller=\"cart-toggle\" data" +
4637 "-canvas=\"right\" data-count=\"{{totalQuantity}}\" data-empty-text=\"");
4638
4639
4640 #line 1175 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4641 Write(Translate("Varukorgen är tom"));
4642
4643
4644 #line default
4645 #line hidden
4646 WriteLiteral(@""" data-single-text=""Produkt"" data-plural-text=""Produkter"">
4647 <button class=""CartToggle-close"" role=""button"" aria-pressed=""false"">
4648 <div class=""CartToggle-closeBars"">
4649 <span class=""CartToggle-closeBar""></span>
4650 <span class=""CartToggle-closeBar""></span>
4651 </div>
4652 </button>
4653 <div class=""CartToggle-wrapper"">
4654
4655 <span class=""CartToggle-alt1"">{{totalQuantity}}</span>
4656 <span class=""CartToggle-alt2"">{{totalQuantity}} Produkt</span>
4657 </div>
4658 </a>
4659 </script>
4660 </div>
4661 <div");
4662
4663 WriteLiteral(" class=\"Canvas-bodyInner\"");
4664
4665 WriteLiteral(">\r\n <div");
4666
4667 WriteLiteral(" id=\"overlayPanel\"");
4668
4669 WriteLiteral(" style=\"display: none\"");
4670
4671 WriteLiteral(">\r\n </div>\r\n <div");
4672
4673 WriteLiteral(" class=\"Canvas-bodyState\"");
4674
4675 WriteLiteral("></div>\r\n <div");
4676
4677 WriteLiteral(" class=\"Canvas-bodyContent\"");
4678
4679 WriteLiteral(">\r\n");
4680
4681
4682 #line 1195 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4683
4684
4685 #line default
4686 #line hidden
4687 WriteLiteral("\r\n\r\n");
4688
4689
4690 #line 1199 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4691
4692 var gridContent = string.Empty;
4693
4694 if (Model.Item != null)
4695 {
4696
4697 }
4698
4699 gridContent = Model.Grid("Grid", "Grid", "default:true;sort:1", "Page");
4700
4701
4702
4703 #line default
4704 #line hidden
4705 WriteLiteral(" <div");
4706
4707 WriteLiteral(" class=\"bootstrap-iso\"");
4708
4709 WriteLiteral(">\r\n");
4710
4711 WriteLiteral(" ");
4712
4713
4714 #line 1210 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4715 Write(gridContent);
4716
4717
4718 #line default
4719 #line hidden
4720 WriteLiteral("\r\n </div>\r\n");
4721
4722
4723 #line 1212 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4724
4725
4726 #line default
4727 #line hidden
4728 WriteLiteral("\r\n </div>\r\n <footer");
4729
4730 WriteLiteral(" class=\"Footer\"");
4731
4732 WriteLiteral(" style=\"background-color: rgb(236, 236, 236);\"");
4733
4734 WriteLiteral(">\r\n <div");
4735
4736 WriteLiteral(" class=\"Container\"");
4737
4738 WriteLiteral(">\r\n <div");
4739
4740 WriteLiteral(" class=\"Grid Grid--withGutter\"");
4741
4742 WriteLiteral(">\r\n <div");
4743
4744 WriteLiteral(" class=\"Grid-cell u-md-size1of2 u-lg-size2of3\"");
4745
4746 WriteLiteral(">\r\n <div");
4747
4748 WriteLiteral(" class=\"Grid Grid--withGutter\"");
4749
4750 WriteLiteral(">\r\n <div");
4751
4752 WriteLiteral(" class=\"Grid-cell u-md-size1of2 u-lg-size1of2\"");
4753
4754 WriteLiteral(">\r\n <div");
4755
4756 WriteLiteral(" class=\"Footer-control\"");
4757
4758 WriteLiteral(">\r\n <div");
4759
4760 WriteLiteral(" class=\"Control Control--light\"");
4761
4762 WriteLiteral(" data-controller=\"control\"");
4763
4764 WriteLiteral(" style=\"display: flex\"");
4765
4766 WriteLiteral(">\r\n <select");
4767
4768 WriteLiteral(" id=\"footerDropdown\"");
4769
4770 WriteLiteral(" class=\"Control-select js-footerStoreList\"");
4771
4772 WriteLiteral(" data-baseurl=\"");
4773
4774
4775 #line 1222 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4776 Write(storesData.baseUrl);
4777
4778
4779 #line default
4780 #line hidden
4781 WriteLiteral("\"");
4782
4783 WriteLiteral(">\r\n");
4784
4785
4786 #line 1223 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4787
4788
4789 #line default
4790 #line hidden
4791
4792 #line 1223 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4793 foreach (var item in footerJson2.stores.items)
4794 {
4795 var selected = !string.IsNullOrEmpty(selectedKC) && item.value.ToString() == selectedKC ? "selected" : string.Empty;
4796
4797
4798 #line default
4799 #line hidden
4800 WriteLiteral(" <option");
4801
4802 WriteAttribute("value", Tuple.Create(" value=\"", 76519), Tuple.Create("\"", 76538)
4803
4804 #line 1226 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4805 , Tuple.Create(Tuple.Create("", 76527), Tuple.Create<System.Object, System.Int32>(item.value
4806
4807 #line default
4808 #line hidden
4809 , 76527), false)
4810 );
4811
4812 WriteLiteral(" ");
4813
4814
4815 #line 1226 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4816 Write(selected);
4817
4818
4819 #line default
4820 #line hidden
4821 WriteLiteral(">");
4822
4823
4824 #line 1226 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4825 Write(item.text);
4826
4827
4828 #line default
4829 #line hidden
4830 WriteLiteral("</option>\r\n");
4831
4832
4833 #line 1227 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4834 }
4835
4836
4837 #line default
4838 #line hidden
4839 WriteLiteral(" </select>\r\n\r\n " +
4840 " </div>\r\n");
4841
4842
4843 #line 1231 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4844
4845
4846 #line default
4847 #line hidden
4848
4849 #line 1231 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4850 if (preSelectedKc != null)
4851 {
4852
4853
4854 #line default
4855 #line hidden
4856 WriteLiteral(" <button");
4857
4858 WriteLiteral(" class=\"js-footerStoreListButton ButtonRental\"");
4859
4860 WriteLiteral(">\r\n Gå\r\n " +
4861 " </button>\r\n");
4862
4863
4864 #line 1236 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4865 }
4866 else
4867 {
4868
4869
4870 #line default
4871 #line hidden
4872 WriteLiteral(" <button");
4873
4874 WriteLiteral(" class=\"js-footerStoreListButton ButtonRental Button\"");
4875
4876 WriteLiteral(" disabled>Gå</button>\r\n");
4877
4878
4879 #line 1240 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4880 }
4881
4882
4883 #line default
4884 #line hidden
4885 WriteLiteral(" </div>\r\n " +
4886 " </div>\r\n <div");
4887
4888 WriteLiteral(" class=\"Grid-cell u-md-size1of2 u-lg-size1of2\"");
4889
4890 WriteLiteral(">\r\n <nav");
4891
4892 WriteLiteral(" role=\"navigation\"");
4893
4894 WriteLiteral(">\r\n <ul>\r\n");
4895
4896
4897 #line 1246 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4898
4899
4900 #line default
4901 #line hidden
4902
4903 #line 1246 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4904 if (footerJson2.secondaryNav.copyright != "")
4905 {
4906
4907
4908 #line default
4909 #line hidden
4910 WriteLiteral(" <li");
4911
4912 WriteLiteral(" class=\"Footer-secondaryNavItem\"");
4913
4914 WriteLiteral(">\r\n");
4915
4916 WriteLiteral(" ");
4917
4918
4919 #line 1249 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4920 Write(footerJson2.secondaryNav.copyright);
4921
4922
4923 #line default
4924 #line hidden
4925 WriteLiteral("\r\n </li>\r\n");
4926
4927
4928 #line 1251 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4929 }
4930
4931
4932 #line default
4933 #line hidden
4934 WriteLiteral(" ");
4935
4936
4937 #line 1252 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4938
4939 if (footerJson2.secondaryNav.items != null)
4940 {
4941 if (footerJson2.secondaryNav.items.Type == JTokenType.Array)
4942 {
4943 foreach (var item in footerJson2.secondaryNav.items.Children())
4944 {
4945 var text = item["text"];
4946 var href = item["href"];
4947 var target = item["target"];
4948
4949
4950
4951 #line default
4952 #line hidden
4953 WriteLiteral(" <li>\r\n " +
4954 " <div");
4955
4956 WriteLiteral(" class=\"Type\"");
4957
4958 WriteLiteral(">\r\n <a");
4959
4960 WriteAttribute("href", Tuple.Create(" href=\"", 79213), Tuple.Create("\"", 79225)
4961
4962 #line 1265 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4963 , Tuple.Create(Tuple.Create("", 79220), Tuple.Create<System.Object, System.Int32>(href
4964
4965 #line default
4966 #line hidden
4967 , 79220), false)
4968 );
4969
4970 WriteAttribute("target", Tuple.Create(" target=\"", 79226), Tuple.Create("\"", 79242)
4971
4972 #line 1265 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4973 , Tuple.Create(Tuple.Create("", 79235), Tuple.Create<System.Object, System.Int32>(target
4974
4975 #line default
4976 #line hidden
4977 , 79235), false)
4978 );
4979
4980 WriteLiteral(">\r\n");
4981
4982 WriteLiteral(" ");
4983
4984
4985 #line 1266 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4986 Write(text);
4987
4988
4989 #line default
4990 #line hidden
4991 WriteLiteral("\r\n </a>\r\n " +
4992 " </div>\r\n " +
4993 " </li>\r\n");
4994
4995
4996 #line 1270 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
4997 }
4998 }
4999 else if (footerJson2.secondaryNav.items.Type == JTokenType.Object)
5000 {
5001 var text = (string)footerJson2.secondaryNav.items.Root.SelectToken("nav.secondaryNav.text");
5002 var href = (string)footerJson2.secondaryNav.items.Root.SelectToken("nav.secondaryNav.href");
5003 var target = (string)footerJson2.secondaryNav.items.Root.SelectToken("nav.secondaryNav.target");
5004
5005 if (href != "" && target != "" && text != "")
5006 {
5007
5008
5009 #line default
5010 #line hidden
5011 WriteLiteral(" <li>\r\n " +
5012 " <div");
5013
5014 WriteLiteral(" class=\"Type\"");
5015
5016 WriteLiteral(">\r\n <a");
5017
5018 WriteAttribute("href", Tuple.Create(" href=\"", 80729), Tuple.Create("\"", 80741)
5019
5020 #line 1282 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5021 , Tuple.Create(Tuple.Create("", 80736), Tuple.Create<System.Object, System.Int32>(href
5022
5023 #line default
5024 #line hidden
5025 , 80736), false)
5026 );
5027
5028 WriteAttribute("target", Tuple.Create(" target=\"", 80742), Tuple.Create("\"", 80758)
5029
5030 #line 1282 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5031 , Tuple.Create(Tuple.Create("", 80751), Tuple.Create<System.Object, System.Int32>(target
5032
5033 #line default
5034 #line hidden
5035 , 80751), false)
5036 );
5037
5038 WriteLiteral(">\r\n");
5039
5040 WriteLiteral(" ");
5041
5042
5043 #line 1283 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5044 Write(text);
5045
5046
5047 #line default
5048 #line hidden
5049 WriteLiteral("\r\n </a>\r\n " +
5050 " </div>\r\n " +
5051 " </li>\r\n");
5052
5053
5054 #line 1287 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5055 }
5056 }
5057 }
5058
5059
5060 #line default
5061 #line hidden
5062 WriteLiteral("\r\n\r\n");
5063
5064
5065 #line 1292 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5066
5067
5068 #line default
5069 #line hidden
5070
5071 #line 1292 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5072
5073 if (footerJson2.primaryNav != null)
5074 {
5075 if (footerJson2.primaryNav.Type == JTokenType.Array)
5076 {
5077 foreach (var item in footerJson2.primaryNav.Children())
5078 {
5079 var text = item["text"].ToString();
5080 var href = item["href"].ToString();
5081
5082
5083
5084 #line default
5085 #line hidden
5086 WriteLiteral(" <li>\r\n " +
5087 " <div");
5088
5089 WriteLiteral(" class=\"Type\"");
5090
5091 WriteLiteral(">\r\n <a");
5092
5093 WriteAttribute("href", Tuple.Create(" href=\"", 82281), Tuple.Create("\"", 82293)
5094
5095 #line 1304 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5096 , Tuple.Create(Tuple.Create("", 82288), Tuple.Create<System.Object, System.Int32>(href
5097
5098 #line default
5099 #line hidden
5100 , 82288), false)
5101 );
5102
5103 WriteLiteral(">");
5104
5105
5106 #line 1304 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5107 Write(text);
5108
5109
5110 #line default
5111 #line hidden
5112 WriteLiteral("</a>\r\n </div>\r" +
5113 "\n </li>\r\n");
5114
5115
5116 #line 1307 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5117 }
5118 }
5119 else if (footerJson2.primaryNav.Type == JTokenType.Object)
5120 {
5121 var text = (string)footerJson2.primaryNav.Root.SelectToken("nav.primaryNav.text");
5122 var href = (string)footerJson2.primaryNav.Root.SelectToken("nav.primaryNav.href");
5123
5124 if (href != "" && text != "")
5125 {
5126
5127
5128 #line default
5129 #line hidden
5130 WriteLiteral(" <li>\r\n " +
5131 " <div");
5132
5133 WriteLiteral(" class=\"Type\"");
5134
5135 WriteLiteral(">\r\n <a");
5136
5137 WriteAttribute("href", Tuple.Create(" href=\"", 83426), Tuple.Create("\"", 83438)
5138
5139 #line 1318 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5140 , Tuple.Create(Tuple.Create("", 83433), Tuple.Create<System.Object, System.Int32>(href
5141
5142 #line default
5143 #line hidden
5144 , 83433), false)
5145 );
5146
5147 WriteLiteral(">");
5148
5149
5150 #line 1318 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5151 Write(text);
5152
5153
5154 #line default
5155 #line hidden
5156 WriteLiteral("</a>\r\n </div>\r" +
5157 "\n </li>\r\n");
5158
5159
5160 #line 1321 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5161 }
5162 }
5163 }
5164
5165
5166 #line default
5167 #line hidden
5168 WriteLiteral("\r\n\r\n </ul>\r\n " +
5169 " </nav>\r\n </div>\r\n " +
5170 " </div>\r\n </div>\r\n " +
5171 " <div");
5172
5173 WriteLiteral(" class=\"Grid-cell u-md-size1of2 u-lg-size1of3\"");
5174
5175 WriteLiteral(">\r\n <div");
5176
5177 WriteLiteral(" class=\"Footer-about\"");
5178
5179 WriteLiteral(">\r\n");
5180
5181
5182 #line 1333 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5183
5184
5185 #line default
5186 #line hidden
5187
5188 #line 1333 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5189 if (footerJson2.about != "")
5190 {
5191
5192
5193 #line default
5194 #line hidden
5195 WriteLiteral(" <div");
5196
5197 WriteLiteral(" class=\"Type Type--push\"");
5198
5199 WriteLiteral(">\r\n");
5200
5201 WriteLiteral(" ");
5202
5203
5204 #line 1336 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5205 Write(footerJson2.about);
5206
5207
5208 #line default
5209 #line hidden
5210 WriteLiteral("\r\n </div>\r\n");
5211
5212
5213 #line 1338 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5214 }
5215
5216
5217 #line default
5218 #line hidden
5219 WriteLiteral(" </div>\r\n </div>\r\n " +
5220 " </div>\r\n </div>\r\n <hr /" +
5221 ">\r\n <div");
5222
5223 WriteLiteral(" class=\"Container\"");
5224
5225 WriteLiteral(">\r\n <div");
5226
5227 WriteLiteral(" class=\"Grid Grid--withGutter\"");
5228
5229 WriteLiteral(">\r\n <div");
5230
5231 WriteLiteral(" class=\"Grid-cell u-md-size1of2 u-lg-size1of2\"");
5232
5233 WriteLiteral(">\r\n <img");
5234
5235 WriteLiteral(" src=\"/Files/Images/Headerbilder/Skanska-logotype_Rental_blue_RGB.png\"");
5236
5237 WriteLiteral(" style=\"width: 111px; height: 30px;\"");
5238
5239 WriteLiteral(" />\r\n </div>\r\n <div");
5240
5241 WriteLiteral(" class=\"Grid-cell u-md-size1of2 u-lg-size1of2\"");
5242
5243 WriteLiteral(">\r\n <p");
5244
5245 WriteLiteral(" style=\"color: rgb(20, 50, 117); float: right;\"");
5246
5247 WriteLiteral(@">Powered by Skanska</p>
5248 </div>
5249 </div>
5250 </div>
5251
5252 </footer>
5253 </div>
5254 </div>
5255 </div>
5256 <script>
5257 (function(global) {
5258 global.SKANSKA = ");
5259
5260
5261 #line 1361 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5262 Write(AccountManager.setGlobalState());
5263
5264
5265 #line default
5266 #line hidden
5267 WriteLiteral("\r\n }(window));\r\n </script>\r\n");
5268
5269 WriteLiteral(" ");
5270
5271
5272 #line 1364 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5273 Write(Model.Area.Item.GetString("ScriptBody"));
5274
5275
5276 #line default
5277 #line hidden
5278 WriteLiteral("\r\n");
5279
5280 WriteLiteral(" ");
5281
5282
5283 #line 1365 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5284 Write(RenderSnippet("scriptIBodySnippet"));
5285
5286
5287 #line default
5288 #line hidden
5289 WriteLiteral("\r\n");
5290
5291
5292 #line 1366 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5293
5294
5295 #line default
5296 #line hidden
5297
5298 #line 1366 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5299 if (isLoggedIn)
5300 {
5301
5302
5303 #line default
5304 #line hidden
5305
5306 #line 1368 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5307 Write(scriptloggedinbody);
5308
5309
5310 #line default
5311 #line hidden
5312
5313 #line 1368 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5314
5315
5316
5317 #line default
5318 #line hidden
5319
5320 #line 1369 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5321 Write(RenderSnippet("scriptInloggadIBodySnippet"));
5322
5323
5324 #line default
5325 #line hidden
5326
5327 #line 1369 "D:\wwwroot\rental.skanska.se\Files\Templates\Designs\SkanskaMaskin\_parsed\page-mv.parsed.cshtml"
5328
5329 }
5330
5331
5332 #line default
5333 #line hidden
5334 WriteLiteral(" <script");
5335
5336 WriteLiteral(" src=\"https://cdn.jsdelivr.net/npm/handlebars@latest/dist/handlebars.js\"");
5337
5338 WriteLiteral(@"></script>
5339 <!-- Polyfill to make LitePicker work with IE11 -->
5340 <script>
5341 window.MSInputMethodContext &&
5342 document.documentMode &&
5343 document.write('<script src = ""https://cdn.jsdelivr.net/npm/ie11-custom-properties@latest/ie11CustomProperties.js"" ><\x2fscript > ');
5344 </script>
5345
5346 <script");
5347
5348 WriteAttribute("src", Tuple.Create(" src=\"", 86166), Tuple.Create("\"", 86245)
5349 , Tuple.Create(Tuple.Create("", 86172), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/js/vendor/litepicker.min.js?v=1.0")
5350 , 86172), false)
5351 );
5352
5353 WriteLiteral(" defer></script>\r\n <script");
5354
5355 WriteAttribute("src", Tuple.Create(" src=\"", 86275), Tuple.Create("\"", 86354)
5356 , Tuple.Create(Tuple.Create("", 86281), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/js/vendor/slimselect.min.js?v=1.0")
5357 , 86281), false)
5358 );
5359
5360 WriteLiteral(" defer></script>\r\n <script");
5361
5362 WriteAttribute("src", Tuple.Create(" src=\"", 86384), Tuple.Create("\"", 86463)
5363 , Tuple.Create(Tuple.Create("", 86390), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/js/vendor/apexcharts.min.js?v=1.1")
5364 , 86390), false)
5365 );
5366
5367 WriteLiteral(" defer></script>\r\n\r\n <!--Bootstrap JS-->\r\n <script");
5368
5369 WriteAttribute("src", Tuple.Create(" src=\"", 86520), Tuple.Create("\"", 86602)
5370 , Tuple.Create(Tuple.Create("", 86526), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/js/vendor/bootstrap/scripts.js?v=1.1")
5371 , 86526), false)
5372 );
5373
5374 WriteLiteral(" defer></script>\r\n\r\n <script");
5375
5376 WriteAttribute("src", Tuple.Create(" src=\"", 86634), Tuple.Create("\"", 86713)
5377 , Tuple.Create(Tuple.Create("", 86640), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/js/public/index.es5.min.js?v=1.10")
5378 , 86640), false)
5379 );
5380
5381 WriteLiteral(" defer></script>\r\n <script");
5382
5383 WriteAttribute("src", Tuple.Create(" src=\"", 86743), Tuple.Create("\"", 86827)
5384 , Tuple.Create(Tuple.Create("", 86749), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/js/public/sg.skanska.es5.min.js?v=2.04")
5385 , 86749), false)
5386 );
5387
5388 WriteLiteral(" defer></script>\r\n <script");
5389
5390 WriteLiteral(" src=\"https://kit.fontawesome.com/10e31dd42d.js\"");
5391
5392 WriteLiteral(" crossorigin=\"anonymous\"");
5393
5394 WriteLiteral(" defer></script>\r\n <script");
5395
5396 WriteAttribute("src", Tuple.Create(" src=\"", 86958), Tuple.Create("\"", 87036)
5397 , Tuple.Create(Tuple.Create("", 86964), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/js/dist/onrent.es5.min.js?v=1.84")
5398 , 86964), false)
5399 );
5400
5401 WriteLiteral(" defer></script>\r\n <script");
5402
5403 WriteAttribute("src", Tuple.Create(" src=\"", 87066), Tuple.Create("\"", 87148)
5404 , Tuple.Create(Tuple.Create("", 87072), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/js/dist/myprojects.es5.min.js?v=1.02")
5405 , 87072), false)
5406 );
5407
5408 WriteLiteral(" defer></script>\r\n <script");
5409
5410 WriteAttribute("src", Tuple.Create(" src=\"", 87178), Tuple.Create("\"", 87262)
5411 , Tuple.Create(Tuple.Create("", 87184), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/js/dist/orderhistory.es5.min.js?v=1.02")
5412 , 87184), false)
5413 );
5414
5415 WriteLiteral(" defer></script>\r\n <script");
5416
5417 WriteAttribute("src", Tuple.Create(" src=\"", 87292), Tuple.Create("\"", 87373)
5418 , Tuple.Create(Tuple.Create("", 87298), Tuple.Create<System.Object, System.Int32>(ResolveUrl("~/Files/Templates/Designs/SkanskaMaskin/js/dist/dashboard.es5.min.js?v=1.60")
5419 , 87298), false)
5420 );
5421
5422 WriteLiteral(" defer></script>\r\n\r\n <script");
5423
5424 WriteLiteral(" type=\"text/javascript\"");
5425
5426 WriteLiteral(" src=\"//code.jquery.com/jquery-3.6.1.min.js\"");
5427
5428 WriteLiteral("></script>\r\n\r\n <script");
5429
5430 WriteLiteral(" id=\"hb-searchBarItems\"");
5431
5432 WriteLiteral(" type=\"text/x-handlebars-template\"");
5433
5434 WriteLiteral(">\r\n ");
5435
5436 WriteLiteral(@"
5437 {{#if products}}
5438 <li class=""Search-resultItem Search-resultCategoryHeader"">
5439 <span class=""Search-resultHeading Search-resultCategory"">Produkter</span>
5440 </li>
5441 {{#each products}}
5442 <li class=""Search-resultItem"">
5443 <a href=""{{href}}"" class=""Search-resultLink"" style=""text-align: initial"">
5444 <span class=""Search-resultHeading"">{{Name}}</span>
5445 </a>
5446 </li>
5447 {{/each}}
5448
5449 <li class=""Search-resultItem"">
5450 <button type=""submit"" class=""Search-resultLink Search-resultLink--secondary"">
5451 <span class=""Search-resultHeading xxx"">Visa alla resultat</span>
5452 </button>
5453 </li>
5454
5455 {{else}}
5456 <li class=""Search-resultItem"">
5457 <div class=""Search-resultWrapper"">
5458 <span class=""Search-resultHeading italicStyle"" style=""text-align: initial"">Inga produkter hittades</span>
5459 </div>
5460 </li>
5461 {{/if}}
5462
5463 ");
5464
5465 WriteLiteral(@"
5466 {{#if users}}
5467 <li class=""Search-resultItem Search-resultCategoryHeader"">
5468 <span class=""Search-resultHeading Search-resultCategory"">Kontaktpersoner</span>
5469 </li>
5470 {{#each users}}
5471 <li class=""Search-resultItem"">
5472 <a href=""/konktakter-soekresultat?q={{userName}}"" class=""Search-resultLink"" style=""text-align: initial"">
5473 <span class=""Search-resultHeading"">{{userName}}, {{jobTitle}}</span>
5474 </a>
5475 </li>
5476 {{/each}}
5477
5478 <li class=""Search-resultItem"">
5479 <button formaction=""/konktakter-soekresultat"" type=""submit"" class=""Search-resultLink Search-resultLink--secondary"">
5480 <span class=""Search-resultHeading xxx"">Visa alla resultat</span>
5481 </button>
5482 </li>
5483
5484 {{else}}
5485 <li class=""Search-resultItem"">
5486 <div class=""Search-resultWrapper"">
5487 <span class=""Search-resultHeading italicStyle"" style=""text-align: initial"">Inga kontaktpersoner hittades</span>
5488 </div>
5489 </li>
5490 {{/if}}
5491
5492 ");
5493
5494 WriteLiteral(@"
5495 {{#if content}}
5496 <li class=""Search-resultItem Search-resultCategoryHeader"">
5497 <span class=""Search-resultHeading Search-resultCategory"">Innehållssidor</span>
5498 </li>
5499 {{#each content}}
5500 <li class=""Search-resultItem"">
5501 <a href=""/Default.aspx?ID={{id}}"" class=""Search-resultLink"" style=""text-align: initial"">
5502 <span class=""Search-resultHeading"">{{name}}</span>
5503 </a>
5504 </li>
5505 {{/each}}
5506
5507 <li class=""Search-resultItem"">
5508 <button formaction=""/innehaall-soekresultat"" type=""submit"" class=""Search-resultLink Search-resultLink--secondary"">
5509 <span class=""Search-resultHeading xxx"">Visa alla resultat</span>
5510 </button>
5511 </li>
5512
5513 {{else}}
5514 <li class=""Search-resultItem"">
5515 <div class=""Search-resultWrapper"">
5516 <span class=""Search-resultHeading italicStyle"" style=""text-align: initial"">Inga Innehållssidor hittades</span>
5517 </div>
5518 </li>
5519 {{/if}}
5520 </script>
5521 </body>
5522 </html>");
5523
5524 }
5525 }
5526 }
5527
1 <!DOCTYPE html>
2 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
3 @using Newtonsoft.Json
4 @using Newtonsoft.Json.Linq
5 @using System.Xml
6 @using System.Web
7 @using Dynamicweb
8 @using Dynamicweb.Environment
9 @using Softgear.SkanskaMaskin.DataAccess.Helpers
10 @using Softgear.SkanskaMaskin.Data.Business
11 @using Softgear.SkanskaMaskin.Data.Entities.Common
12 @using Softgear.SkanskaMaskin.Data.Entities.Product
13 @using Dynamicweb.Security.UserManagement
14 @using Softgear.SkanskaMaskin.Se.Helpers
15
16 @{
17 var currentUser = Dynamicweb.Security.UserManagement.User.GetCurrentFrontendUser();
18 var isLoggedIn = currentUser != null ? true : false;
19 var isinternalCustomer = isLoggedIn ? ProjectManager.IsInternalCustomer(currentUser) : false;
20 var permissionCreateNewProjectExternalUser = false;
21 var hasExternalCustomerAccess = ProjectManager.HasExternalCustomerAccess(currentUser);
22 var currentProjectData = new Softgear.SkanskaMaskin.Data.Entities.Account.ProjectData();
23 var loginHelper = new AdfsLoginHelper(HttpContext.Current);
24 //var userOnInternalNetwork = loginHelper.IsFromSkanskaNetwork();
25 var userName = "";
26
27 var onrentEditHref = "/form/editonrent";
28 var editOnRent = "js-editOnRent";
29 var topProjectsForUser = new List<string>();
30
31 if (currentUser != null)
32 {
33 currentProjectData = AccountManager.getCurrentProject(currentUser);
34 //userName = userOnInternalNetwork ? currentUser.UserName : $"{currentUser.FirstName} {currentUser.LastName}";
35 userName = currentUser.UserName;
36
37 topProjectsForUser = AccountManager.GetTopThreeFavoritProjectsForUser();
38 }
39
40 if (currentProjectData != null)
41 {
42 if (currentProjectData.CustomerType == "External")
43 {
44 onrentEditHref = "/form/editonrentexternal";
45 editOnRent = "js-editOnRentExternal";
46 if (isLoggedIn && !isinternalCustomer)
47 {
48 permissionCreateNewProjectExternalUser = isLoggedIn && !isinternalCustomer ? PermissionManager.HasPermission(PermissionManager.CREATE_NEW_PROJECT, currentUser) : false;
49 }
50 else if (isLoggedIn && isinternalCustomer && hasExternalCustomerAccess)
51 {
52 permissionCreateNewProjectExternalUser = true;
53 }
54 }
55 }
56
57 /* Header */
58 var hbh = new HandleBarsHelper();
59 var inputsList = new List<object>();
60
61 var textData = new
62 {
63 empty = "Inga produkter hittades",
64 more = "Visa fler"
65 };
66
67 inputsList.Add(new { name = "id", value = "" });
68 inputsList.Add(new { name = "pid", value = "" });
69
70 var autoCompleteData = new
71 {
72 method = "get",
73 action = "/service/search"
74 };
75
76 var queryData = new
77 {
78 name = "q",
79 placeholder = @Translate("SOK_PRODUKT", "Sök produkt")
80 };
81
82 var formData = new
83 {
84 method = "get",
85 action = "/sok",
86 useLoader = true,
87 autocomplete = autoCompleteData,
88 query = queryData,
89 inputs = inputsList.ToArray()
90 };
91
92 var searchData = new
93 {
94 text = textData,
95 form = formData
96 };
97
98 bool empty = true, single = false, plural = false;
99 if (string.IsNullOrWhiteSpace(Convert.ToString(Model.Cart.TotalProductsCount)))
100 {
101 empty = true;
102 single = false;
103 plural = false;
104 }
105 else if (Convert.ToString(Model.Cart.TotalProductsCount) == "1")
106 {
107 empty = false;
108 single = true;
109 plural = false;
110 }
111 else
112 {
113 empty = false;
114 single = false;
115 plural = true;
116 }
117
118 var cartToggle = new
119 {
120 href = "/varukorg/",
121 textEmpty = @Translate("KUNDVAGNEN_AR_TOM", "Varukorgen är tom"),
122 textSingle = @Translate("PRODUKT_SINGULAR", "Produkt"),
123 textPlural = @Translate("PRODUKT_PLURAL", "Produkter"),
124 isEmpty = empty,
125 isSingle = single,
126 isPlural = plural,
127 count = string.IsNullOrWhiteSpace(Convert.ToString(Model.Cart.TotalProductsCount)) ? "0" : Convert.ToString(Model.Cart.TotalProductsCount)
128 };
129
130 /* Navigering */
131 var navigationSettings = new Dynamicweb.Frontend.Navigation.NavigationSettings()
132 {
133 StartLevel = 1,
134 StopLevel = 2,
135 ExpandMode = Dynamicweb.Frontend.Navigation.ExpandMode.All
136 };
137
138 var formInputs = new List<object>();
139 var formInput1 = new { name = "id", value = "" };
140 var formInput2 = new { name = "pid", value = "" };
141
142 formInputs.Add(formInput1);
143 formInputs.Add(formInput2);
144
145 var doc = new XmlDocument();
146
147 /* Footer */
148 var primaryFooterNavData = RenderNavigation(new { template = "footer-primary-navigation.xslt", parenttag = "FooterPrimary" });
149 doc.LoadXml(primaryFooterNavData);
150 var primaryJson = JObject.Parse(JsonConvert.SerializeXmlNode(doc));
151
152 var secondaryFooterNavData = RenderNavigation(new { template = "footer-secondary-navigation.xslt", parenttag = "FooterSecondary" });
153 doc.LoadXml(secondaryFooterNavData);
154 var secondaryJson = JObject.Parse(JsonConvert.SerializeXmlNode(doc));
155
156 var footerText = Model.Area.Item.GetString("Footer_Content");
157 var copyrightText = Model.Area.Item.GetString("Copyright");
158 var customerCenters = CacheManager.GetFromCache<Dynamicweb.Security.UserManagement.UserCollection>(60, "customerCentersGroup4", () => Dynamicweb.Security.UserManagement.User.GetUsersByGroupID(4));
159 var storeList = (from user in customerCenters.Where(y => y.Active && !y.GroupsIds.Contains(10) && !y.GroupsIds.Contains(11))
160 select new
161 {
162 value = string.Format("?id=5&ObjectID={0}&Action=Detail", user.ID),
163 text = user.Name
164 }).OrderBy(x => x.text).ToList();
165
166 storeList.Insert(0, new { value = "choose", text = Translate("Kontakta kundcenter") });
167
168 var preSelectedKc = ProjectManager.GetDefaultKcOnProject(currentProjectData.code);
169 var selectedKC = "";
170 if (preSelectedKc != null)
171 {
172 selectedKC = string.Format("?id=5&ObjectID={0}&Action=Detail", preSelectedKc);
173 }
174
175 var storesData = new
176 {
177 baseUrl = "/default.aspx",
178 redirect = "true",
179 className = "Control--light",
180 items = storeList.ToArray()
181 };
182
183 var secondaryNavData = new
184 {
185 copyright = copyrightText,
186 target = "_blank",
187 items = secondaryJson.SelectToken("nav.secondaryNav"),
188 stores = storesData
189 };
190
191 var footerJson2 = new
192 {
193 about = footerText,
194 primaryNav = primaryJson.SelectToken("nav.primaryNav"),
195 secondaryNav = secondaryNavData,
196 stores = storesData
197 };
198
199 var scriptloggedinhead = Model.Area.Item.GetString("ScriptInloggadIHead");
200 var scriptloggedinbody = Model.Area.Item.GetString("ScriptInloggadIBody");
201 }
202
203 <html class="App" lang="sv-se">
204 <head>
205 @Model.Area.Item.GetString("Script")
206 @RenderSnippet("scriptIHeadSnippet")
207 @if (isLoggedIn)
208 {
209 if (Context.Current.Request.GetString("authcmd") == "login")
210 {
211 @scriptloggedinhead
212 }
213 @RenderSnippet("scriptInloggadIHeadSnippet")
214
215 if (!string.IsNullOrWhiteSpace(currentProjectData.code))
216 {
217 <script>
218 gtag('set', 'user_properties', {
219 project_code: '@currentProjectData.code',
220 customer_type: '@currentProjectData.CustomerType'
221 });
222 </script>
223 }
224 }
225
226 <!-- Begin Inspectlet Embed Code -->
227 @*<script type="text/javascript" id="inspectletjs">
228 window
229 .__insp = window.__insp || [];
230 __insp
231 .push(['wid', 992683141]);
232 (function () {
233 function ldinsp() { if (typeof window.__inspld != "undefined") return; window.__inspld = 1; var insp = document.createElement('script'); insp.type = 'text/javascript'; insp.async = true; insp.id = "inspsync"; insp.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://cdn.inspectlet.com/inspectlet.js'; var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(insp, x); };
234 setTimeout
235 (ldinsp, 500); document.readyState != "complete" ? (window.attachEvent ? window.attachEvent('onload', ldinsp) : window.addEventListener('load', ldinsp, false)) : ldinsp();
236 })();
237 </script>*@
238 <!-- End Inspectlet Embed Code -->
239 <meta charset="utf-8">
240 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
241 @Model.MetaTags
242
243 @RenderSnippet("OGMetaTags")
244
245 <title>
246 @Model.Title
247 </title>
248 @WebHelper.renderIcons()
249 @{
250 var eyeBg = "url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pgo8IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDIwMDEwOTA0Ly9FTiIKICJodHRwOi8vd3d3LnczLm9yZy9UUi8yMDAxL1JFQy1TVkctMjAwMTA5MDQvRFREL3N2ZzEwLmR0ZCI+CjxzdmcgdmVyc2lvbj0iMS4wIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiB3aWR0aD0iMTYwMC4wMDAwMDBwdCIgaGVpZ2h0PSIxNjAwLjAwMDAwMHB0IiB2aWV3Qm94PSIwIDAgMTYwMC4wMDAwMDAgMTYwMC4wMDAwMDAiCiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0Ij4KPG1ldGFkYXRhPgpDcmVhdGVkIGJ5IHBvdHJhY2UgMS4xNSwgd3JpdHRlbiBieSBQZXRlciBTZWxpbmdlciAyMDAxLTIwMTcKPC9tZXRhZGF0YT4KPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wMDAwMDAsMTYwMC4wMDAwMDApIHNjYWxlKDAuMTAwMDAwLC0wLjEwMDAwMCkiCmZpbGw9IiMwMDAwMDAiIHN0cm9rZT0ibm9uZSI+CjxwYXRoIGQ9Ik03NDI1IDExOTgwIGMtMjU4IC0yMiAtNTI5IC01OSAtNzgwIC0xMDYgLTE4NzQgLTM1MSAtMzg1OCAtMTQ1MgotNTU5OSAtMzEwOSAtMTcyIC0xNjMgLTczNiAtNzUwIC03MzYgLTc2NSAwIC0xNSA1NjQgLTYwMiA3MzYgLTc2NSAxNzQxCi0xNjU3IDM3MjUgLTI3NTggNTU5OSAtMzEwOSA5MDYgLTE3MCAxODA0IC0xNzAgMjcxMCAwIDE4NzQgMzUxIDM4NTggMTQ1Mgo1NTk5IDMxMDkgMTcyIDE2MyA3MzYgNzUwIDczNiA3NjUgMCAxNSAtNTY0IDYwMiAtNzM2IDc2NSAtMTc0MSAxNjU3IC0zNzI1CjI3NTggLTU1OTkgMzEwOSAtMjYzIDQ5IC01MTggODMgLTgwMCAxMDYgLTMxMyAyNiAtODIzIDI2IC0xMTMwIDB6IG0xMDQyCi0xMDA1IGM3OTUgLTY2IDE1ODcgLTI3NCAyNDA1IC02MzMgbDEyOCAtNTUgMzkgLTY2IGMyMDYgLTM0OCAzNjIgLTgxMiA0MjgKLTEyNzIgMjIgLTE1OCAyNiAtNzEwIDUgLTg1OSAtMTE1IC04MjAgLTQzNSAtMTQ4MiAtOTkwIC0yMDQ0IC01MTIgLTUxOAotMTE2MyAtODYxIC0xODY5IC05ODUgLTIzMyAtNDEgLTI5NCAtNDYgLTYxMyAtNDYgLTMxOSAwIC0zODAgNSAtNjEzIDQ2IC05MzYKMTY0IC0xNzc2IDcxOSAtMjMwNiAxNTIxIC0yOTAgNDQxIC00NjYgOTExIC01NDcgMTQ2OCAtMjQgMTY4IC0zMCA2MDEgLTEwCjc5MiA0OSA0NjYgMTcyIDg3NyAzOTAgMTI5MyBsNzMgMTQwIDY0IDMyIGM5NCA0NyA0MDIgMTczIDU3NCAyMzYgNjUyIDIzNwoxMjI2IDM3MCAxODUwIDQyNyAyNjIgMjMgNzMxIDI2IDk5MiA1eiBtLTQ4NjEgLTE0ODEgYy0xNiAtNDMgLTY4IC0zNzEgLTg2Ci01NDQgLTMyIC0zMDMgLTI3IC03MTYgMTEgLTEwMTUgNTYgLTQ0NSAxODUgLTkwMCAzNzIgLTEzMTAgNTMgLTExNyAxNzYgLTM1MQoyMjMgLTQyNyAxNCAtMjEgMjEgLTM4IDE2IC0zOCAtNCAwIC04NCA0NiAtMTc3IDEwMyAtNzA3IDQyOCAtMTMyOSA4OTQgLTE5NjUKMTQ2OCAtMTAyIDkyIC0yMDcgMTkwIC0yMzUgMjE4IGwtNDkgNTEgNDkgNTEgYzI4IDI4IDEzMyAxMjYgMjM1IDIxOCA0MjggMzg3Cjg1MCA3MjMgMTI5NSAxMDMzIDMyNSAyMjYgMzI0IDIyNSAzMTEgMTkyeiBtODg4NyAtNDYgYzI3MyAtMTgyIDYzOSAtNDUxIDg3NwotNjQyIDI4NSAtMjI5IDczNCAtNjIwIDg2NSAtNzU1IGw0OSAtNTEgLTQ5IC01MSBjLTI4IC0yOCAtMTMzIC0xMjYgLTIzNQotMjE4IC02MzYgLTU3NCAtMTI1OCAtMTA0MCAtMTk2NSAtMTQ2OCAtOTMgLTU3IC0xNzMgLTEwMyAtMTc3IC0xMDMgLTUgMCAyCjE3IDE2IDM4IDQ3IDc2IDE3MCAzMTAgMjIzIDQyNyAxOTMgNDI1IDMxNyA4NzAgMzc5IDEzNTUgMjEgMTcxIDMwIDY4OCAxNQo4NzMgLTE4IDIxMyAtNzQgNTgwIC05OCA2NDQgLTggMjIgNCAxNiAxMDAgLTQ5eiIvPgo8cGF0aCBkPSJNNzc2MCA5OTg1IGMtNTQ4IC05NCAtOTg4IC00NTkgLTExNzUgLTk3NSAtNjAgLTE2NCAtODUgLTMxNyAtODUKLTUxMCAwIC0xNTEgMTAgLTIzOCA0MSAtMzY1IDY2IC0yNjUgMTkzIC00OTEgMzg3IC02ODkgMjMyIC0yMzYgNTI1IC0zODUgODU5Ci00MzUgOTMgLTE0IDMzMyAtMTQgNDI2IDAgMzI2IDQ5IDYwNyAxODggODQxIDQxNyAyMzYgMjMyIDM4NSA1MjUgNDM1IDg1OSAxNAo5MyAxNCAzMzMgMCA0MjYgLTQ5IDMyNiAtMTg4IDYwNyAtNDE3IDg0MSAtMjMyIDIzNiAtNTI1IDM4NSAtODU5IDQzNSAtOTUgMTUKLTM1OSAxMiAtNDUzIC00eiIvPgo8L2c+Cjwvc3ZnPgo=');";
251 }
252 <link rel="stylesheet" href="~/Files/Templates/Designs/SkanskaMaskin/css/bootstrap-iso.css?v1.01">
253 <link rel="stylesheet" href="~/Files/Templates/Designs/SkanskaMaskin/css/swift/swift.css">
254 <link rel="stylesheet" href="~/Files/Templates/Designs/SkanskaMaskin/css/slimselect.min.css">
255 <link rel="stylesheet" href="~/Files/Templates/Designs/SkanskaMaskin/css/index.css">
256 <link rel="stylesheet" href="~/Files/Templates/Designs/SkanskaMaskin/css/rental/rental.min.css?v1.55">
257 <link rel="stylesheet" href="~/Files/Templates/Designs/SkanskaMaskin/css/sg/product-panel.css">
258 <link rel="stylesheet" href="~/Files/Templates/Designs/SkanskaMaskin/css/swiffy-slider.css?v1.01" />
259 <style>
260 .Icon--eye {
261 background-image: @eyeBg width: 25px;
262 }
263 </style>
264 <script type="text/javascript" async src="https://bot.leadoo.com/bot/dynamic.js?company=abc85229"></script>
265 <!--Swift JS-->
266 <script src="~/Files/Templates/Designs/SkanskaMaskin/js/vendor/swift/plyr.js?v=1.1" defer></script>
267 <script src="~/Files/Templates/Designs/SkanskaMaskin/js/vendor/swift/swiffy-slider.js?v=1.1" defer></script>
268 <script src="~/Files/Templates/Designs/SkanskaMaskin/js/vendor/swift/tiny-slider.js?v=1.1" defer></script>
269 <script src="~/Files/Templates/Designs/SkanskaMaskin/js/vendor/swift/flatpickr.js?v=1.1" defer></script>
270 <script src="~/Files/Templates/Designs/SkanskaMaskin/js/vendor/swift/aos.js?v=1.1" defer></script>
271
272 <script src="~/Files/Templates/Designs/SkanskaMaskin/js/softgear/lottiefile.js"></script>
273 <script src="~/Files/Templates/Designs/SkanskaMaskin/js/softgear/sorttable.js"></script>
274 </head>
275 <body class="App-body" onload="swift.Scroll.init();AOS.init({ offset: 240, duration: 600, delay: 100 });disable: window.matchMedia('(prefers-reduced-motion: reduce)');" data-aos-easing="ease" data-aos-duration="600" data-aos-delay="100">
276 <div hidden id="sprite-plyr"><!--?xml version="1.0" encoding="UTF-8"?--><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><symbol id="plyr-airplay" viewBox="0 0 18 18"><path d="M16 1H2a1 1 0 00-1 1v10a1 1 0 001 1h3v-2H3V3h12v8h-2v2h3a1 1 0 001-1V2a1 1 0 00-1-1z"></path><path d="M4 17h10l-5-6z"></path></symbol><symbol id="plyr-captions-off" viewBox="0 0 18 18"><path d="M1 1c-.6 0-1 .4-1 1v11c0 .6.4 1 1 1h4.6l2.7 2.7c.2.2.4.3.7.3.3 0 .5-.1.7-.3l2.7-2.7H17c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1H1zm4.52 10.15c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41C8.47 4.96 7.46 3.76 5.5 3.76c-1.9 0-3.61 1.44-3.61 3.7 0 2.26 1.65 3.69 3.63 3.69zm7.57 0c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41c-.28-1.15-1.29-2.35-3.25-2.35-1.9 0-3.61 1.44-3.61 3.7 0 2.26 1.65 3.69 3.63 3.69z" fill-rule="evenodd" fill-opacity=".5"></path></symbol><symbol id="plyr-captions-on" viewBox="0 0 18 18"><path d="M1 1c-.6 0-1 .4-1 1v11c0 .6.4 1 1 1h4.6l2.7 2.7c.2.2.4.3.7.3.3 0 .5-.1.7-.3l2.7-2.7H17c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1H1zm4.52 10.15c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41C8.47 4.96 7.46 3.76 5.5 3.76c-1.9 0-3.61 1.44-3.61 3.7 0 2.26 1.65 3.69 3.63 3.69zm7.57 0c1.99 0 3.01-1.32 3.28-2.41l-1.29-.39c-.19.66-.78 1.45-1.99 1.45-1.14 0-2.2-.83-2.2-2.34 0-1.61 1.12-2.37 2.18-2.37 1.23 0 1.78.75 1.95 1.43l1.3-.41c-.28-1.15-1.29-2.35-3.25-2.35-1.9 0-3.61 1.44-3.61 3.7 0 2.26 1.65 3.69 3.63 3.69z" fill-rule="evenodd"></path></symbol><symbol id="plyr-download" viewBox="0 0 18 18"><path d="M9 13c.3 0 .5-.1.7-.3L15.4 7 14 5.6l-4 4V1H8v8.6l-4-4L2.6 7l5.7 5.7c.2.2.4.3.7.3zm-7 2h14v2H2z"></path></symbol><symbol id="plyr-enter-fullscreen" viewBox="0 0 18 18"><path d="M10 3h3.6l-4 4L11 8.4l4-4V8h2V1h-7zM7 9.6l-4 4V10H1v7h7v-2H4.4l4-4z"></path></symbol><symbol id="plyr-exit-fullscreen" viewBox="0 0 18 18"><path d="M1 12h3.6l-4 4L2 17.4l4-4V17h2v-7H1zM16 .6l-4 4V1h-2v7h7V6h-3.6l4-4z"></path></symbol><symbol id="plyr-fast-forward" viewBox="0 0 18 18"><path d="M7.875 7.171L0 1v16l7.875-6.171V17L18 9 7.875 1z"></path></symbol><symbol id="plyr-logo-vimeo" viewBox="0 0 18 18"><path d="M17 5.3c-.1 1.6-1.2 3.7-3.3 6.4-2.2 2.8-4 4.2-5.5 4.2-.9 0-1.7-.9-2.4-2.6C5 10.9 4.4 6 3 6c-.1 0-.5.3-1.2.8l-.8-1c.8-.7 3.5-3.4 4.7-3.5 1.2-.1 2 .7 2.3 2.5.3 2 .8 6.1 1.8 6.1.9 0 2.5-3.4 2.6-4 .1-.9-.3-1.9-2.3-1.1.8-2.6 2.3-3.8 4.5-3.8 1.7.1 2.5 1.2 2.4 3.3z"></path></symbol><symbol id="plyr-logo-youtube" viewBox="0 0 18 18"><path d="M16.8 5.8c-.2-1.3-.8-2.2-2.2-2.4C12.4 3 9 3 9 3s-3.4 0-5.6.4C2 3.6 1.3 4.5 1.2 5.8 1 7.1 1 9 1 9s0 1.9.2 3.2c.2 1.3.8 2.2 2.2 2.4C5.6 15 9 15 9 15s3.4 0 5.6-.4c1.4-.3 2-1.1 2.2-2.4.2-1.3.2-3.2.2-3.2s0-1.9-.2-3.2zM7 12V6l5 3-5 3z"></path></symbol><symbol id="plyr-muted" viewBox="0 0 18 18"><path d="M12.4 12.5l2.1-2.1 2.1 2.1 1.4-1.4L15.9 9 18 6.9l-1.4-1.4-2.1 2.1-2.1-2.1L11 6.9 13.1 9 11 11.1zM3.786 6.008H.714C.286 6.008 0 6.31 0 6.76v4.512c0 .452.286.752.714.752h3.072l4.071 3.858c.5.3 1.143 0 1.143-.602V2.752c0-.601-.643-.977-1.143-.601L3.786 6.008z"></path></symbol><symbol id="plyr-pause" viewBox="0 0 18 18"><path d="M6 1H3c-.6 0-1 .4-1 1v14c0 .6.4 1 1 1h3c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1zm6 0c-.6 0-1 .4-1 1v14c0 .6.4 1 1 1h3c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1h-3z"></path></symbol><symbol id="plyr-pip" viewBox="0 0 18 18"><path d="M13.293 3.293L7.022 9.564l1.414 1.414 6.271-6.271L17 7V1h-6z"></path><path d="M13 15H3V5h5V3H2a1 1 0 00-1 1v12a1 1 0 001 1h12a1 1 0 001-1v-6h-2v5z"></path></symbol><symbol id="plyr-play" viewBox="0 0 18 18"><path d="M15.562 8.1L3.87.225c-.818-.562-1.87 0-1.87.9v15.75c0 .9 1.052 1.462 1.87.9L15.563 9.9c.584-.45.584-1.35 0-1.8z"></path></symbol><symbol id="plyr-restart" viewBox="0 0 18 18"><path d="M9.7 1.2l.7 6.4 2.1-2.1c1.9 1.9 1.9 5.1 0 7-.9 1-2.2 1.5-3.5 1.5-1.3 0-2.6-.5-3.5-1.5-1.9-1.9-1.9-5.1 0-7 .6-.6 1.4-1.1 2.3-1.3l-.6-1.9C6 2.6 4.9 3.2 4 4.1 1.3 6.8 1.3 11.2 4 14c1.3 1.3 3.1 2 4.9 2 1.9 0 3.6-.7 4.9-2 2.7-2.7 2.7-7.1 0-9.9L16 1.9l-6.3-.7z"></path></symbol><symbol id="plyr-rewind" viewBox="0 0 18 18"><path d="M10.125 1L0 9l10.125 8v-6.171L18 17V1l-7.875 6.171z"></path></symbol><symbol id="plyr-settings" viewBox="0 0 18 18"><path d="M16.135 7.784a2 2 0 01-1.23-2.969c.322-.536.225-.998-.094-1.316l-.31-.31c-.318-.318-.78-.415-1.316-.094a2 2 0 01-2.969-1.23C10.065 1.258 9.669 1 9.219 1h-.438c-.45 0-.845.258-.997.865a2 2 0 01-2.969 1.23c-.536-.322-.999-.225-1.317.093l-.31.31c-.318.318-.415.781-.093 1.317a2 2 0 01-1.23 2.969C1.26 7.935 1 8.33 1 8.781v.438c0 .45.258.845.865.997a2 2 0 011.23 2.969c-.322.536-.225.998.094 1.316l.31.31c.319.319.782.415 1.316.094a2 2 0 012.969 1.23c.151.607.547.865.997.865h.438c.45 0 .845-.258.997-.865a2 2 0 012.969-1.23c.535.321.997.225 1.316-.094l.31-.31c.318-.318.415-.781.094-1.316a2 2 0 011.23-2.969c.607-.151.865-.547.865-.997v-.438c0-.451-.26-.846-.865-.997zM9 12a3 3 0 110-6 3 3 0 010 6z"></path></symbol><symbol id="plyr-volume" viewBox="0 0 18 18"><path d="M15.6 3.3c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4C15.4 5.9 16 7.4 16 9c0 1.6-.6 3.1-1.8 4.3-.4.4-.4 1 0 1.4.2.2.5.3.7.3.3 0 .5-.1.7-.3C17.1 13.2 18 11.2 18 9s-.9-4.2-2.4-5.7z"></path><path d="M11.282 5.282a.909.909 0 000 1.316c.735.735.995 1.458.995 2.402 0 .936-.425 1.917-.995 2.487a.909.909 0 000 1.316c.145.145.636.262 1.018.156a.725.725 0 00.298-.156C13.773 11.733 14.13 10.16 14.13 9c0-.17-.002-.34-.011-.51-.053-.992-.319-2.005-1.522-3.208a.909.909 0 00-1.316 0zm-7.496.726H.714C.286 6.008 0 6.31 0 6.76v4.512c0 .452.286.752.714.752h3.072l4.071 3.858c.5.3 1.143 0 1.143-.602V2.752c0-.601-.643-.977-1.143-.601L3.786 6.008z"></path></symbol></svg></div>
277
278 @Model.Area.Item.GetString("ScriptBody")
279 @WebHelper.renderIconHtml()
280 @{
281 var loggedInClass = isLoggedIn ? "js-IsLoggedIn" : "";
282 }
283 @if (Pageview.Device == Dynamicweb.Frontend.Devices.DeviceType.Desktop)
284 {
285
286 <header class="Header js-pageHeader @loggedInClass" data-controller="header">
287 <div class="Header-brand">
288 <a href="/" class="Header-brandLogo" style=" position: inherit; margin-top: 22px; z-index: 10"></a>
289 <div class="Header-brandAccount" >
290 <div class="Grid Grid--withGutter" style="height:20px; justify-content: end">
291 <div class="Grid-cell u-size7of12 u-md-size7of12 u-lg-size11of12 topUserMenu" style="display: inline-flex; justify-content: end">
292
293 <div class="Header-search" style="display: inline-flex; width: 25%">
294 <div class="Search" data-controller="search" style="height: 26px; width: 95%">
295 <form action="/sok" method="get" class="Search-form js-autocompleteForm" data-action="/service/search" data-method="get" data-loader="True">
296 <div class="Search-inputs js-searchInputs">
297 <input type="text" name="q" placeholder="Vad letar du efter?" autocomplete="off" class="Search-input" id="js-searchBarInput" style="height: 30px">
298 <div class="Search-icon" id="insideInputSearchIcon">
299 <svg class="Icon Icon--magnifier" role="presentational">
300 <use xlink:href="#Icon--magnifier"></use>
301 </svg>
302 </div>
303 <div class="Search-loader js-searchLoader"></div>
304 <ul id="js-searchContent2" class="Search-result js-searchContent" data-empty-text="Inga produkter hittades" data-more-text="Visa fler"></ul>
305 </div>
306 <button type="button" class="Search-toggle js-searchToggle" style="right: 10px; margin-top: 2px">
307 <div class="Search-toggleContent">
308 <div class="Search-toggleMinified" id="searchIcon" onclick="focusMethod()">
309 </div>
310 <div class="Search-toggleExpanded">
311 <svg class="Icon Icon--close" role="presentational">
312 <use xlink:href="#Icon--close"></use>
313 </svg>
314 </div>
315 </div>
316 </button>
317 <input type="hidden" name="id" value="" class="js-searchInput">
318 <input type="hidden" name="pid" value="" class="js-searchInput">
319 </form>
320 </div>
321 </div>
322 @if (isLoggedIn)
323 {
324 <div class="showUserDropdown mr-10">
325 <i class="userIcon"></i>
326 <span class="js-headerUsername colorBlue" style="display: inline-flex; font-size: 16px; margin-top: 1px">@userName <lottie-player speed="5" id="userLottie" src="/Files/Templates/Designs/SkanskaMaskin/css/plus_minus.json" style="width: 28px; margin-top: -2px; margin-left:3px;"></lottie-player></span>
327 <div class="dropdown">
328 <div id="userHeaderDropdown" class="dropdown-content">
329 @if (isCheckMeRole)
330 {
331 <a class="userLink boldFont" href="/dashboard/minsida/">Min sida</a>
332 }
333 else
334 {
335 <a class="userLink boldFont" href="/dashboard/minsida/">Min sida</a>
336 <a class="userLink boldFont" href="/dashboard/minafavoriter/">Mina favoriter</a>
337 <a class="userLink boldFont" href="/dashboard/minaprojekt/">Mina Projekt</a>
338 foreach (var item in topProjectsForUser)
339 {
340 <a style="margin-left: 10px; margin-top: -10px; font-size: 16px !important;" class="favProject" title="@item" data-projectid="@item">@item</a>
341 }
342 if (topProjectsForUser != null && topProjectsForUser.Count > 0)
343 {
344 <a href="/dashboard/minaprojekt/" style="margin-left: 10px; margin-top: -10px; font-size: 16px !important;">Visa fler...</a>
345 }
346
347 if (currentProjectData != null)
348 {
349 if (currentProjectData.CustomerType == "Skanska")
350 {
351 <a class="boldFont" href="/dashboard/projektanmalanintern">Lägg till nytt projekt</a>
352 }
353 else if (permissionCreateNewProjectExternalUser)
354 {
355 <a class="boldFont" href="/dashboard/projektanmalan/">Lägg till nytt projekt</a>
356 }
357 }
358 }
359
360
361 <a class="userLink boldFont" href="/Admin/Public/extranetlogoff.aspx?ID=1">Logga ut</a>
362 </div>
363 </div>
364 </div>
365 <div class="SliceItem"></div>
366 }
367 <div class="NavAccount">
368 @* Placeholder element that is required to make Daytona JS work properly. The actual element is created via JS. *@
369 @if (isLoggedIn)
370 {
371 if (currentProjectData != null && currentProjectData.code != null)
372 {
373 <div class="NavAccount-wrapper showProjectDropdown">
374 <div class="NavAccount-active">
375 @if (!string.IsNullOrEmpty(currentProjectData.ProjectNoIRIS))
376 {
377 <a class="NavAccountCurrent" style="font-size: 16px !important" data-controller="overlay">@currentProjectData.ProjectNoIRIS (@currentProjectData.title) <lottie-player speed="5" id="projectLottie" src="/Files/Templates/Designs/SkanskaMaskin/css/plus_minus.json" style="width: 28px; margin-top: -2px; margin-left:3px;"></lottie-player></a>
378 }
379 else
380 {
381 <a class="NavAccountCurrent" style="font-size: 16px !important" data-controller="overlay">@currentProjectData.code (@currentProjectData.title) <lottie-player speed="5" id="projectLottie" src="/Files/Templates/Designs/SkanskaMaskin/css/plus_minus.json" style="width: 28px; margin-top: -2px; margin-left:3px;"></lottie-player></a>
382 }
383 </div>
384 <div>
385 <div id="projectHeaderDropdown" class="dropdownProject-content">
386 @if (isCheckMeRole)
387 {
388 <a class="boldFont" href="/dashboard/dagligtillsyn">Daglig tillsyn</a>
389 }
390 else
391 {
392 <a class="boldFont" href="/dashboard/pahyra">På hyra</a>
393 <a class="boldFont" href="/dashboard/orderhistorik/">Orderhistorik</a>
394 <a class="boldFont" href="/dashboard/fakturor/">Fakturor</a>
395 <a class="boldFont" href="/dashboard/dagligtillsyn">Daglig tillsyn</a>
396 <a class="boldFont" href="/dashboard/projekt/">Projektinformation</a>
397 <a class="boldFont" href="/dashboard/oversiktsvy/">Översiktsvy</a>
398 <a class="boldFont" href="/dashboard/projektdokument/">Projektdokument</a>
399 }
400
401 </div>
402 </div>
403 </div>
404 }
405 else
406 {
407 <div class="NavAccount-wrapper">
408 <div class="NavAccount-active">
409 <a href="/dashboard/minaprojekt/" class="NavAccount-current colorBlue">(Välj ett projekt)</a>
410 </div>
411 </div>
412 }
413 }
414 else
415 {
416 <div class="NavAccount-wrapper">
417 <div class="NavAccount-active">
418 <a href="/form/login" class="NavAccount-unauthorized js-overlayTrigger colorBlue" data-controller="overlay">Logga in</a>
419 </div>
420 </div>
421 }
422
423 <div data-controller="overlay"></div>
424 <script class="js-navAccountModel" type="application/json">
425 {"authorized":{"href":"/dashboard/projekt","toggle":"Byt"},"unauthorized":{"href":"/form/login","text":"Logga in"},"form":{"method":"post","actions":{"number":{"name":"code","type":"tel","pattern":"^[0-9-]{3,30}$","placeholder":"Projektnr t.ex. 12345 eller 1234-56"}},"inputs":[{"name":"accountcmd","value":"changeProject"}]}}
426 </script>
427 </div>
428 <div class="SliceItemToCart"></div>
429 <div class="Header-cart js-headerCart" id="headerCartDesktop">
430 <a class="CartToggle" href="/varukorg/" data-controller="" data-canvas="right" data-count="" data-empty-text="Varukorgen är tom" data-single-text="Produkt" data-plural-text="Produkter">
431 <div class="CartToggle-wrapper" id="cartToggleWrapperDesktop">
432 <span class="CartToggle-alt1"></span>
433 @if (cartToggle.isEmpty)
434 {
435 <span class="CartToggle-alt2 cartToggleDesktop colorBlue" style="font-size:16px">@cartToggle.textEmpty</span>
436 }
437 else
438 {
439 if (cartToggle.isSingle)
440 {
441 <span class="CartToggle-alt2 cartToggleDesktop colorBlue" style="font-size:16px">@cartToggle.count @cartToggle.textSingle</span>
442 }
443 else
444 {
445 <span class="CartToggle-alt2 cartToggleDesktop colorBlue" style="font-size:16px">@cartToggle.count @cartToggle.textPlural</span>
446 }
447 }
448 </div>
449 </a>
450 </div>
451
452 </div>
453 @{
454 var small = isLoggedIn ? "u-size5of12" : "u-size12of12";
455 var medium = isLoggedIn ? "u-md-size5of12" : "u-md-size12of12";
456 var large = isLoggedIn && currentProjectData.code != null ? "u-lg-size2of12" : "u-lg-size2of12";
457 }
458 </div>
459 </div>
460 </div>
461 <div class="Header-main">
462
463 <button class="Header-toggle showHamburgerMenuOnSmallDesktop" role="button" aria-pressed="false" data-canvas="left">
464 <div class="Header-toggleBars">
465 <span class="Header-toggleBar"></span>
466 <span class="Header-toggleBar"></span>
467 <span class="Header-toggleBar"></span>
468 </div>
469 </button>
470
471 <div class="Container hideNavBarOnSmallDesktops" style="max-width: 1272px">
472 <nav class="NavHorizontal Grid Grid--alignMiddle" style="margin-left:35px; position: absolute">
473 @Navigation.RenderNavigation("master/navigationDesignHeader.cshtml", navigationSettings)
474 </nav>
475 </div>
476
477 <form action="service/return" method="get" class="OrderList-counter js-selectedCounter background-Green">
478 <button class="OrderList-counterClose js-toggleSelectMode" data-action="disable">
479 <svg class="Icon Icon--close" role="presentational">
480 <use xlink:href="#Icon--close"></use>
481 </svg>
482 </button>
483 <div class="OrderList-counterCount"><span class="js-selectedCountText" style="font-size: 24px" data-emptycount="Inga">Inga</span> produkter valda</div>
484
485 <ul class="OrderList-counterActions">
486
487 <li class="OrderList-counterAction js-orderListAction @editOnRent" data-enable="returns.selected">
488 <a href="@onrentEditHref" class="Button Button--light ButtonRental js-overlayTrigger">Redigera egenskaper</a>
489 </li>
490
491
492 <li class="OrderList-counterAction js-orderListAction">
493 <a href="/form/sort_activity" class="Button Button--light Button--secondary js-overlayTrigger"></a>
494 </li>
495 <li class="OrderList-counterAction js-orderListAction" data-enable="returns.selected">
496 <a href="/form/return" class="Return-confirmButton Button Button--light ButtonRental js-overlayTrigger" data-controller="return">Beställ retur</a>
497 </li>
498 </ul>
499 </form>
500 </div>
501
502 <script class="js-loginReminderModel" type="application/json">
503 {
504 "isBubble": true,
505 "heading": "Är du redan kund?",
506 "body": "Glöm då inte att logga in för att se priser och dina påbörjade varukorgar! <a href='/form/login' class='js-overlayTrigger'>Logga in</a>."
507 }
508 </script>
509 </header>
510 }
511 else if (Pageview.Device == Dynamicweb.Frontend.Devices.DeviceType.Tablet)
512 {
513 <header class="Header js-pageHeader @loggedInClass" data-controller="header">
514 <div class="Header-brand">
515 <a href="/" class="Header-brandLogo"></a>
516 <div class="Header-brandAccount">
517 <div class="Grid Grid--withGutter" style="height:20px;">
518 <div class="Grid-cell u-size7of12 u-md-size7of12 u-lg-size8of12 topUserMenu">
519 @if (isLoggedIn)
520 {
521 <div class="showUserDropdown">
522 @*<i class="fas fa fa-user-circle" aria-hidden="true"></i>*@
523 <i class="userIcon"></i>
524 <span class="js-headerUsername colorBlue" style="display: inline-flex">@userName </span>
525 <div class="dropdown">
526 <div id="userHeaderDropdown" class="dropdown-content">
527 @if (isCheckMeRole)
528 {
529 <a class="userLink boldFont" href="/dashboard/minsida/">Min sida</a>
530
531 }
532 else
533 {
534 <a class="userLink boldFont" href="/dashboard/minsida/">Min sida</a>
535 <a class="userLink boldFont" href="/dashboard/minafavoriter/">Mina favoriter</a>
536 <a class="userLink boldFont" href="/dashboard/minaprojekt/">Mina projekt</a>
537 foreach (var item in topProjectsForUser)
538 {
539 <a style="margin-left: 10px; margin-top: -10px; font-size: 16px !important;" class="favProject" title="@item" data-projectid="@item">@item</a>
540 }
541 if (topProjectsForUser != null && topProjectsForUser.Count > 0)
542 {
543 <a href="/dashboard/minaprojekt/" style="margin-left: 10px; margin-top: -10px; font-size: 16px !important;">Visa fler...</a>
544 }
545
546 if (currentProjectData != null)
547 {
548 if (currentProjectData.CustomerType == "Skanska")
549 {
550 <a class="boldFont" href="/dashboard/projektanmalanintern">Lägg till nytt projekt</a>
551 }
552 else if (permissionCreateNewProjectExternalUser)
553 {
554 <a class="boldFont" href="/dashboard/projektanmalan/">Lägg till nytt projekt</a>
555 }
556 }
557 }
558
559 <a class="userLink boldFont" href="/Admin/Public/extranetlogoff.aspx?ID=1">Logga ut</a>
560 </div>
561 </div>
562 </div>
563 }
564 </div>
565 @{
566 var small = isLoggedIn ? "u-size5of12" : "u-size12of12";
567 var medium = isLoggedIn ? "u-md-size5of12" : "u-md-size12of12";
568 var large = isLoggedIn && currentProjectData.code != null ? "u-lg-size2of12" : "u-lg-size2of12";
569 }
570 <div class="Grid-cell @small @medium @large" style="height: 26px; margin-top: -3px">
571 <div class="NavAccount">
572 @*Placeholder element that is required to make Daytona JS work properly. The actual element is created via JS.*@
573 @*<div class="NavAccount-wrapper" style="display:none">
574 <div class="NavAccount-active">
575 <a href="/form/login" class="NavAccount-unauthorized js-overlayTrigger" data-controller="overlay">Logga in</a>
576 </div>
577 </div>*@
578 @if (isLoggedIn)
579 {
580 if (currentProjectData != null && currentProjectData.code != null)
581 {
582 <div class="NavAccount-wrapper showProjectDropdown">
583 <div class="NavAccount-activeTablet">
584 @if (!string.IsNullOrEmpty(currentProjectData.ProjectNoIRIS))
585 {
586 <a class="NavAccount-current colorBlue" data-controller="overlay">@currentProjectData.ProjectNoIRIS (@currentProjectData.title)</a>
587 }
588 else
589 {
590 <a class="NavAccount-current colorBlue" data-controller="overlay">@currentProjectData.code (@currentProjectData.title) </a>
591 }
592 </div>
593 <div>
594 <div id="projectHeaderDropdown" class="dropdownProject-content">
595 @if (isCheckMeRole)
596 {
597 <a class="boldFont" href="/dashboard/dagligtillsyn">Daglig tillsyn</a>
598 }
599 else
600 {
601 <a class="boldFont" href="/dashboard/pahyra">På hyra</a>
602 <a class="boldFont" href="/dashboard/orderhistorik/">Orderhistorik</a>
603 <a class="boldFont" href="/dashboard/fakturor/">Fakturor</a>
604 <a class="boldFont" href="/dashboard/dagligtillsyn">Daglig tillsyn</a>
605 <a class="boldFont" href="/dashboard/projekt/">Projektinformation</a>
606 <a class="boldFont" href="/dashboard/oversiktsvy/">Översiktsvy</a>
607 <a class="boldFont" href="/dashboard/projektdokument/">Projektdokument</a>
608 }
609
610 </div>
611 </div>
612 </div>
613 }
614 else
615 {
616 <div class="NavAccount-wrapper">
617 <div class="NavAccount-active">
618 <a href="/dashboard/minaprojekt/" style="color: black;" class="NavAccount-current">(Välj ett projekt)</a>
619 </div>
620 </div>
621 }
622 }
623 else
624 {
625 <div class="NavAccount-wrapper">
626 <div class="NavAccount-active">
627 <a href="/form/login" class="NavAccount-unauthorized js-overlayTrigger" data-controller="overlay">Logga in</a>
628 </div>
629 </div>
630 }
631
632 <div data-controller="overlay"></div>
633 <script class="js-navAccountModel" type="application/json">
634 {"authorized":{"href":"/dashboard/projekt","toggle":"Byt"},"unauthorized":{"href":"/form/login","text":"Logga in"},"form":{"method":"post","actions":{"number":{"name":"code","type":"tel","pattern":"^[0-9-]{3,30}$","placeholder":"Projektnr t.ex. 12345 eller 1234-56"}},"inputs":[{"name":"accountcmd","value":"changeProject"}]}}
635 </script>
636 </div>
637 </div>
638 </div>
639 </div>
640 </div>
641 <div class="Header-main">
642 <button class="Header-toggle" role="button" aria-pressed="false" data-canvas="left">
643 <div class="Header-toggleBars">
644 <span class="Header-toggleBar"></span>
645 <span class="Header-toggleBar"></span>
646 <span class="Header-toggleBar"></span>
647 </div>
648 </button>
649
650 <div class="Header-actions Header-actionsTablet js-headerActions">
651 <div class="Header-search">
652 <div class="Search" data-controller="search">
653 <form action="/sok" method="get" class="Search-form js-autocompleteForm" data-action="/service/search" data-method="get" data-loader="True">
654 <div class="Search-inputs js-searchInputs">
655 <input type="text" name="q" placeholder="Sök" autocomplete="off" class="Search-input" id="js-searchBarInput">
656 <div class="Search-icon">
657 <svg class="Icon Icon--magnifier" role="presentational">
658 <use xlink:href="#Icon--magnifier"></use>
659 </svg>
660 </div>
661 <div class="Search-loader js-searchLoader"></div>
662 <ul id="js-searchContent2" class="Search-result js-searchContent js-searchContentTablet" data-empty-text="Inga produkter hittades" data-more-text="Visa fler"></ul>
663 </div>
664 <button type="button" class="Search-toggle js-searchToggle">
665 <div class="Search-toggleContent">
666 <div class="Search-toggleMinified">
667 <svg onclick="focusMethod()" class="Icon Icon--magnifier" role="presentational">
668 <use xlink:href="#Icon--magnifier"></use>
669 </svg>
670 </div>
671 <div class="Search-toggleExpanded">
672 <svg class="Icon Icon--close" role="presentational">
673 <use xlink:href="#Icon--close"></use>
674 </svg>
675 </div>
676 </div>
677 </button>
678 <input type="hidden" name="id" value="" class="js-searchInput">
679 <input type="hidden" name="pid" value="" class="js-searchInput">
680 </form>
681 </div>
682 </div>
683 <div class="Header-cart js-headerCart">
684 <a class="CartToggle" href="/varukorg/" data-controller="" data-canvas="right" data-count="" data-empty-text="Varukorgen är tom" data-single-text="Produkt" data-plural-text="Produkter">
685 <button class="CartToggle-close" role="button" aria-pressed="false">
686 <div class="CartToggle-closeBars">
687 <span class="CartToggle-closeBar"></span>
688 <span class="CartToggle-closeBar"></span>
689 </div>
690 </button>
691 <div class="CartToggle-wrapper">
692 <span class="CartToggle-alt1"></span>
693 @if (cartToggle.isEmpty)
694 {
695 <span class="CartToggle-alt2">@cartToggle.textEmpty</span>
696 }
697 else
698 {
699 if (cartToggle.isSingle)
700 {
701 <span class="CartToggle-alt2">@cartToggle.count @cartToggle.textSingle</span>
702 }
703 else
704 {
705 <span class="CartToggle-alt2">@cartToggle.count @cartToggle.textPlural</span>
706 }
707 }
708 </div>
709 </a>
710 </div>
711 </div>
712 <form action="service/return" method="get" class="OrderList-counter js-selectedCounter background-Green">
713 <button class="OrderList-counterClose js-toggleSelectMode" data-action="disable">
714 <svg class="Icon Icon--close" role="presentational">
715 <use xlink:href="#Icon--close"></use>
716 </svg>
717 </button>
718 <div class="OrderList-counterCount"><span class="js-selectedCountText" style="font-size: 24px" data-emptycount="Inga">Inga</span> produkter valda</div>
719
720 <ul class="OrderList-counterActions">
721
722 <li class="OrderList-counterAction js-orderListAction @editOnRent" data-enable="returns.selected">
723 <a href="@onrentEditHref" class="Button Button--light ButtonRental js-overlayTrigger">Redigera egenskaper</a>
724 </li>
725
726
727 <li class="OrderList-counterAction js-orderListAction">
728 <a href="/form/sort_activity" class="Button Button--light Button--secondary js-overlayTrigger"></a>
729 </li>
730 <li class="OrderList-counterAction js-orderListAction" data-enable="returns.selected">
731 <a href="/form/return" class="Return-confirmButton Button Button--light ButtonRental js-overlayTrigger" data-controller="return">Beställ retur</a>
732 </li>
733 </ul>
734 </form>
735 </div>
736
737 <script class="js-loginReminderModel" type="application/json">
738 {
739 "isBubble": true,
740 "heading": "Är du redan kund?",
741 "body": "Glöm då inte att logga in för att se priser och dina påbörjade varukorgar! <a href='/form/login' class='js-overlayTrigger'>Logga in</a>."
742 }
743 </script>
744 </header>
745 }
746 else
747 {
748 @*Mobil läge*@
749
750 <header class="Header js-pageHeader @loggedInClass" data-controller="header">
751 <div class="Header-brand">
752 <a href="/" class="Header-brandLogo"></a>
753 <div class="Header-brandAccount">
754 <div class="Grid Grid--withGutter" style="height:20px;">
755 <div class="Grid-cell u-size7of12 u-md-size7of12 u-lg-size8of12 topUserMenu">
756 @if (isLoggedIn)
757 {
758 <div class="showUserDropdown">
759 @*<i class="fas fa fa-user-circle" aria-hidden="true"></i>*@
760 <i class="userIcon"></i>
761 <span class="js-headerUsername colorBlue" style="display: inline-flex">@userName</span>
762 <div class="dropdown">
763 <div id="userHeaderDropdown" class="dropdown-content">
764 @if (isCheckMeRole)
765 {
766 <a class="userLink boldFont" href="/dashboard/minsida/">Min sida</a>
767 }
768 else
769 {
770 <a class="userLink boldFont" href="/dashboard/minsida/">Min sida</a>
771 <a class="userLink boldFont" href="/dashboard/minafavoriter/">Mina favoriter</a>
772 <a class="userLink boldFont" href="/dashboard/minaprojekt/">Mina projekt</a>
773 foreach (var item in topProjectsForUser)
774 {
775 <a style="margin-left: 10px; margin-top: -10px; font-size: 16px !important;" class="favProject" title="@item" data-projectid="@item">@item</a>
776 }
777 if (topProjectsForUser != null && topProjectsForUser.Count > 0)
778 {
779 <a href="/dashboard/minaprojekt/" style="margin-left: 10px; margin-top: -10px; font-size: 16px !important;">Visa fler...</a>
780 }
781
782 if (currentProjectData != null)
783 {
784 if (currentProjectData.CustomerType == "Skanska")
785 {
786 <a class="boldFont" href="/dashboard/projektanmalanintern">Lägg till nytt projekt</a>
787 }
788 else if (permissionCreateNewProjectExternalUser)
789 {
790 <a class="boldFont" href="/dashboard/projektanmalan/">Lägg till nytt projekt</a>
791 }
792 }
793 }
794
795
796 <a class="userLink boldFont" href="/Admin/Public/extranetlogoff.aspx?ID=1">Logga ut</a>
797 </div>
798 </div>
799 </div>
800 }
801 </div>
802 @{
803 var small = isLoggedIn ? "u-size5of12" : "u-size12of12";
804 var medium = isLoggedIn ? "u-md-size5of12" : "u-md-size12of12";
805 var large = isLoggedIn && currentProjectData.code != null ? "u-lg-size2of12" : "u-lg-size2of12";
806 }
807 <div class="Grid-cell @small @medium @large" style="height: 26px; margin-top: -3px; z-index: 1">
808 <div class="NavAccount">
809 @*Placeholder element that is required to make Daytona JS work properly. The actual element is created via JS.*@
810 @*<div class="NavAccount-wrapper" style="display:none">
811 <div class="NavAccount-active">
812 <a href="/form/login" class="NavAccount-unauthorized js-overlayTrigger" data-controller="overlay">Logga in</a>
813 </div>
814 </div>*@
815 @if (isLoggedIn)
816 {
817 if (currentProjectData != null && currentProjectData.code != null)
818 {
819 <div class="NavAccount-wrapper showProjectDropdown">
820 <div class="NavAccount-active">
821 @if (!string.IsNullOrEmpty(currentProjectData.ProjectNoIRIS))
822 {
823 <a class="NavAccount-current colorBlue" data-controller="overlay">@currentProjectData.ProjectNoIRIS (@currentProjectData.title) </a>
824 }
825 else
826 {
827 <a class="NavAccount-current colorBlue" data-controller="overlay">@currentProjectData.code (@currentProjectData.title) </a>
828 }
829 </div>
830 <div>
831 <div id="projectHeaderDropdown" class="dropdownProject-content">
832 @if (isCheckMeRole)
833 {
834 <a class="boldFont" href="/dashboard/dagligtillsyn">Daglig tillsyn</a>
835 }
836 else
837 {
838 <a class="boldFont" href="/dashboard/pahyra">På hyra</a>
839 <a class="boldFont" href="/dashboard/orderhistorik/">Orderhistorik</a>
840 <a class="boldFont" href="/dashboard/fakturor/">Fakturor</a>
841 <a class="boldFont" href="/dashboard/dagligtillsyn">Daglig tillsyn</a>
842 <a class="boldFont" href="/dashboard/projekt/">Projektinformation</a>
843 <a class="boldFont" href="/dashboard/oversiktsvy/">Översiktsvy</a>
844 <a class="boldFont" href="/dashboard/projektdokument/">Projektdokument</a>
845 }
846 </div>
847 </div>
848 </div>
849 }
850 else
851 {
852 <div class="NavAccount-wrapper">
853 <div class="NavAccount-active">
854 <a href="/dashboard/minaprojekt/" style="color: black;" class="NavAccount-current">(Välj ett projekt)</a>
855 </div>
856 </div>
857 }
858 }
859 else
860 {
861 <div class="NavAccount-wrapper">
862 <div class="NavAccount-active">
863 <a href="/form/login" class="NavAccount-unauthorized js-overlayTrigger" data-controller="overlay">Logga in</a>
864 </div>
865 </div>
866 }
867
868 <div data-controller="overlay"></div>
869 <script class="js-navAccountModel" type="application/json">
870 {"authorized":{"href":"/dashboard/projekt","toggle":"Byt"},"unauthorized":{"href":"/form/login","text":"Logga in"},"form":{"method":"post","actions":{"number":{"name":"code","type":"tel","pattern":"^[0-9-]{3,30}$","placeholder":"Projektnr t.ex. 12345 eller 1234-56"}},"inputs":[{"name":"accountcmd","value":"changeProject"}]}}
871 </script>
872 </div>
873 </div>
874 </div>
875 </div>
876 </div>
877 <div class="Header-main">
878 <button class="Header-toggle" role="button" aria-pressed="false" data-canvas="left">
879 <div class="Header-toggleBars">
880 <span class="Header-toggleBar"></span>
881 <span class="Header-toggleBar"></span>
882 <span class="Header-toggleBar"></span>
883 </div>
884 </button>
885
886 <div class="Header-actions js-headerActions">
887 <div class="Header-search">
888 <div class="Search" data-controller="search">
889 <form action="/sok" method="get" class="Search-form js-autocompleteForm" data-action="/service/search" data-method="get" data-loader="True">
890 <div class="Search-inputs js-searchInputs">
891 <input type="text" name="q" placeholder="Sök" autocomplete="off" class="Search-input" id="js-searchBarInput">
892 <div class="Search-icon">
893 <svg class="Icon Icon--magnifier" role="presentational">
894 <use xlink:href="#Icon--magnifier"></use>
895 </svg>
896 </div>
897 <div class="Search-loader js-searchLoader"></div>
898 <ul id="js-searchContent2" class="Search-result js-searchContent js-searchContentMobile" data-empty-text="Inga produkter hittades" data-more-text="Visa fler"></ul>
899 </div>
900 <button type="button" class="Search-toggle js-searchToggle">
901 <div class="Search-toggleContent">
902 <div class="Search-toggleMinified">
903 <svg onclick="focusMethod()" class="Icon Icon--magnifier" role="presentational">
904 <use xlink:href="#Icon--magnifier"></use>
905 </svg>
906 </div>
907 <div class="Search-toggleExpanded">
908 <svg class="Icon Icon--close" role="presentational">
909 <use xlink:href="#Icon--close"></use>
910 </svg>
911 </div>
912 </div>
913 </button>
914 <input type="hidden" name="id" value="" class="js-searchInput">
915 <input type="hidden" name="pid" value="" class="js-searchInput">
916 </form>
917 </div>
918 </div>
919 <div class="Header-cart js-headerCart">
920 <a class="CartToggle" href="/varukorg/" data-controller="" data-canvas="right" data-count="" data-empty-text="Varukorgen är tom" data-single-text="Produkt" data-plural-text="Produkter">
921 <button class="CartToggle-close" role="button" aria-pressed="false">
922 <div class="CartToggle-closeBars">
923 <span class="CartToggle-closeBar"></span>
924 <span class="CartToggle-closeBar"></span>
925 </div>
926 </button>
927 <div class="CartToggle-wrapper">
928 <span class="CartToggle-alt1"></span>
929 @if (cartToggle.isEmpty)
930 {
931 <span class="CartToggle-alt2">@cartToggle.textEmpty</span>
932 }
933 else
934 {
935 if (cartToggle.isSingle)
936 {
937 <span class="CartToggle-alt2">@cartToggle.count @cartToggle.textSingle</span>
938 }
939 else
940 {
941 <span class="CartToggle-alt2">@cartToggle.count @cartToggle.textPlural</span>
942 }
943 }
944 </div>
945 </a>
946 </div>
947 </div>
948 <form action="service/return" method="get" class="OrderList-counter js-selectedCounter background-Green">
949 <button class="OrderList-counterClose js-toggleSelectMode" data-action="disable">
950 <svg class="Icon Icon--close" role="presentational">
951 <use xlink:href="#Icon--close"></use>
952 </svg>
953 </button>
954 <div class="OrderList-counterCount"><span class="js-selectedCountText" style="font-size: 24px" data-emptycount="Inga">Inga</span> produkter valda</div>
955
956 <ul class="OrderList-counterActions">
957
958 <li class="OrderList-counterAction js-orderListAction @editOnRent" data-enable="returns.selected">
959 <a href="@onrentEditHref" class="Button Button--light ButtonRental js-overlayTrigger">Redigera egenskaper</a>
960 </li>
961
962
963 <li class="OrderList-counterAction js-orderListAction">
964 <a href="/form/sort_activity" class="Button Button--light Button--secondary js-overlayTrigger"></a>
965 </li>
966 <li class="OrderList-counterAction js-orderListAction" data-enable="returns.selected">
967 <a href="/form/return" class="Return-confirmButton Button Button--light ButtonRental js-overlayTrigger" data-controller="return">Beställ retur</a>
968 </li>
969 </ul>
970 </form>
971 </div>
972
973 <script class="js-loginReminderModel" type="application/json">
974 {
975 "isBubble": true,
976 "heading": "Är du redan kund?",
977 "body": "Glöm då inte att logga in för att se priser och dina påbörjade varukorgar! <a href='/form/login' class='js-overlayTrigger'>Logga in</a>."
978 }
979 </script>
980 </header>
981 }
982
983 <div class="Canvas" data-controller="canvas">
984 <div class="Canvas-body">
985 <div class="Canvas-col Canvas-col--left">
986 <nav class="Nav" data-controller="nav">
987 @if (isLoggedIn)
988 {
989 <div id="isUserValid" data-isinternalcustomer=@isinternalCustomer data-has-external-customer-access="@hasExternalCustomerAccess"></div>
990 }
991 @Navigation.RenderNavigation("master/navigationDesign.cshtml", navigationSettings)
992
993 <script class="js-navModel" type="application/json">
994 {
995 "profile": {
996 "text": "",
997 "items": []
998 },
999 "project": {
1000 "form": {
1001 "actions": {
1002 "number": {
1003 "name": "",
1004 "pattern": "",
1005 "placeholder": "",
1006 "isFullWidth": false,
1007 "type": ""
1008 },
1009 "submit": {
1010 "label": "Byt",
1011 "isFullWidth": false
1012 }
1013 },
1014 "method": "post",
1015 "inputs": []
1016 }
1017 },
1018 "items": []
1019 }
1020 </script>
1021 </nav>
1022 </div>
1023 <div class="Canvas-col Canvas-col--right">
1024 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.CartViewModel>
1025 @using Dynamicweb.Frontend
1026 @using Dynamicweb.Rendering;
1027 @using Newtonsoft.Json.Linq
1028 @using Softgear.SkanskaMaskin.Data.Business
1029 @using Softgear.SkanskaMaskin.Data.Entities.Cart
1030 @using Softgear.SkanskaMaskin.Data.Entities.Common
1031 @using Softgear.SkanskaMaskin.Data.Entities.Product
1032 @{
1033 var cartPreview = new CartPreview();
1034 var jr = new JsonRenderer();
1035
1036 cartPreview.text = new CartText { empty = @Translate("Din varukorg är tom"), count = "Antal" };
1037 cartPreview.products = new List<ProductHolder>();
1038
1039 /*
1040 foreach (var orderLine in Model.CartOrderlines)
1041 {
1042 cartPreview.products.Add(new ProductHolder { product = WebHelper.populateProduct(orderLine) });
1043 }
1044 */
1045 cartPreview.button = new Link { text = @Translate("Till varukorgen"), href = "/varukorg/" };
1046
1047 //var hbh2 = new HandleBarsHelper();
1048 //var partialPathList2 = new List<string> { "cart-preview/items.hbs" };
1049 //hbh2.registerHelper("json", WebHelper.serializeToJson(cartPreview));
1050 //var cartPreviewHtml = hbh2.render("cart-preview/index.hbs", partialPathList2, cartPreview);
1051
1052 /*
1053 foreach (LoopItem orderLine in GetLoop("OrderLines"))
1054 {
1055 cartPreview.products.Add(new ProductHolder { product = WebHelper.populateProduct(orderLine) });
1056 }
1057 */
1058 //var cartItems = GetLoop("OrderLines");
1059 //cartItems = cartItems.OrderBy(item => item.GetString("Ecom:Product.Number")).ToList();
1060 var order = Dynamicweb.Ecommerce.Services.Orders.GetById(Convert.ToString(Model.ID));
1061 var orderlineFields = Dynamicweb.Ecommerce.Services.OrderLines.GetByOrder(order);
1062 }
1063
1064 <div class="CartPreview" data-controller="">
1065 <div class="CartPreview-content js-cartPreviewContent">
1066 <div class="Grid Grid--withGutter Grid--push">
1067 <div class="CartPreview-wrapper">
1068 <a href="/varukorg/" class="Button Button--fill ButtonRental">
1069 @Translate("Till varukorgen")
1070 </a>
1071 </div>
1072 <ul class="CartPreview-list" id="js-CartPreviewList">
1073
1074 @foreach (var orderLine in orderlineFields)
1075 {
1076 var imageSrc = WebHelper.getCdnImageUrl(orderLine.ProductNumber);
1077 var productName = orderLine.ProductName;
1078 var productNumber = orderLine.ProductNumber;
1079 var quantity = orderLine.Quantity;
1080 var orderLineId = orderLine.Id;
1081
1082 <li class="CartPreview-listItem js-CartPreview-listItem" data-productid="@productNumber" data-quantity="@quantity" data-rentalperiod="@GetRentalPeriod(orderLine)" data-orderlineid="@orderLineId">
1083 <div class="Grid Grid--alignMiddle">
1084 <div class="Grid-cell u-size4of4">
1085 <div class="Product-tag">
1086 <div class="Product-tagText">
1087 @productNumber
1088 </div>
1089 </div>
1090
1091 <div class="CartPreview-description">
1092 <img src="@imageSrc" alt="@productName" class="CartPreview-image">
1093 <div class="CartPreview-header">
1094
1095 <div><strong>@productName</strong></div>
1096 <div class="js-CartPreview-price">308,00 kr/kalenderdag </div>
1097 <div><strong><span class="CartPreview-countValue js-CartPreview-countValue">@quantity</span> st</strong> <span class="js-cartPreview-RentalPeriod">@GetRentalPeriod(orderLine)</span> </div>
1098 <div class="CartPreview-price js-CartPreview-totalPrice"> 3 0000 kr(616 kr/dag)</div>
1099 <p class="ProductPrice-error">Exakt pris kan ej hämtas</p>
1100 </div>
1101 </div>
1102 </div>
1103 </div>
1104 </li>
1105
1106 }
1107 </ul>
1108 <div class="CartPreview-wrapper">
1109 <a href="/varukorg/" class="Button Button--fill ButtonRental">
1110 @Translate("Till varukorgen")
1111 </a>
1112 </div>
1113 </div>
1114 </div>
1115 <script class="js-cartPreviewModel" type="application/json">
1116 @* WebHelper.serializeToJson(cartPreview) *@
1117 </script>
1118 </div>
1119
1120 @functions {
1121 string GetRentalPeriod(Dynamicweb.Ecommerce.Orders.OrderLine item)
1122 {
1123 var rentalPeriod = string.Empty;
1124
1125 rentalPeriod = item.GetOrderLineFieldValue("RentalPeriod").Value;
1126
1127 /*
1128 foreach (var i in item. GetLoop("Order.OrderLineFields"))
1129 {
1130 if (i.GetString("Ecom:Order:OrderLine.OrderLineField.SystemName") == "RentalPeriod")
1131 {
1132 rentalPeriod = i.GetString("Ecom:Order:OrderLine.OrderLineField.Value");
1133 break;
1134 }
1135 }
1136 */
1137 return rentalPeriod;
1138 }
1139 }
1140
1141 <script id="hb-cartPreview" type="text/x-handlebars-template">
1142 {{#each ./cartPreviewOrderlineList}}
1143 <li class="CartPreview-listItem js-CartPreview-listItem" data-productid="{{productNumber}}" data-quantity="{{productQuantity}}" data-rentalperiod="{{productRentalPeriod}}" data-orderlineid="{{productOrderLineId}}" data-rent="{{productIsRent}}">
1144 <div class="Grid Grid--alignMiddle">
1145 <div class="Grid-cell u-size4of4">
1146 <div {{#if productIsRent}} class="Product-tag" {{else}} class="Product-tag Product-tag-SaleProduct" {{/if}}>
1147 <div {{#if productIsRent}} class="Product-tagText" {{else}} class="Product-tagText Product-tagText-SaleProduct" {{/if}}>
1148 {{productNumber}}
1149 </div>
1150 {{#unless productIsRent}}
1151 <div class="Product-tagText Product-tagText-ProductType">
1152 Köp
1153 </div>
1154 {{/unless}}
1155 </div>
1156
1157 <div class="CartPreview-description">
1158 <img src="{{productImage}}" alt="{{productName}}" class="CartPreview-image">
1159 <div class="CartPreview-header">
1160
1161 <div><strong>{{productName}}</strong></div>
1162 {{#if productVariantColor}}<p>Färg: {{productVariantColor}}, Storlek: {{productVariantSize}}</p>{{/if}}
1163 <div class="js-CartPreview-price"></div>
1164 <div><strong><span class="CartPreview-countValue js-CartPreview-countValue">{{productQuantity}}</span> st</strong> <span class="js-cartPreview-RentalPeriod">{{productRentalPeriod}}</span> </div>
1165 <div class="CartPreview-price js-CartPreview-totalPrice"></div>
1166 <p class="ProductPrice-error">Exakt pris kan ej hämtas</p>
1167 </div>
1168 </div>
1169 </div>
1170 </div>
1171 </li>
1172 {{/each}}
1173 </script>
1174 <script id="hb-cartTotalQuantity" type="text/x-handlebars-template">
1175 <a class="CartToggle" href="/varukorg/" data-controller="cart-toggle" data-canvas="right" data-count="{{totalQuantity}}" data-empty-text="@Translate("Varukorgen är tom")" data-single-text="Produkt" data-plural-text="Produkter">
1176 <button class="CartToggle-close" role="button" aria-pressed="false">
1177 <div class="CartToggle-closeBars">
1178 <span class="CartToggle-closeBar"></span>
1179 <span class="CartToggle-closeBar"></span>
1180 </div>
1181 </button>
1182 <div class="CartToggle-wrapper">
1183
1184 <span class="CartToggle-alt1">{{totalQuantity}}</span>
1185 <span class="CartToggle-alt2">{{totalQuantity}} Produkt</span>
1186 </div>
1187 </a>
1188 </script>
1189 </div>
1190 <div class="Canvas-bodyInner">
1191 <div id="overlayPanel" style="display: none">
1192 </div>
1193 <div class="Canvas-bodyState"></div>
1194 <div class="Canvas-bodyContent">
1195 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.PageViewModel>
1196 @using System
1197
1198
1199 @{
1200 var gridContent = string.Empty;
1201
1202 if (Model.Item != null)
1203 {
1204
1205 }
1206
1207 gridContent = Model.Grid("Grid", "Grid", "default:true;sort:1", "Page");
1208
1209 <div class="bootstrap-iso">
1210 @gridContent
1211 </div>
1212 }
1213 </div>
1214 <footer class="Footer" style="background-color: rgb(236, 236, 236);">
1215 <div class="Container">
1216 <div class="Grid Grid--withGutter">
1217 <div class="Grid-cell u-md-size1of2 u-lg-size2of3">
1218 <div class="Grid Grid--withGutter">
1219 <div class="Grid-cell u-md-size1of2 u-lg-size1of2">
1220 <div class="Footer-control">
1221 <div class="Control Control--light" data-controller="control" style="display: flex">
1222 <select id="footerDropdown" class="Control-select js-footerStoreList" data-baseurl="@storesData.baseUrl">
1223 @foreach (var item in footerJson2.stores.items)
1224 {
1225 var selected = !string.IsNullOrEmpty(selectedKC) && item.value.ToString() == selectedKC ? "selected" : string.Empty;
1226 <option value="@item.value" @selected>@item.text</option>
1227 }
1228 </select>
1229
1230 </div>
1231 @if (preSelectedKc != null)
1232 {
1233 <button class="js-footerStoreListButton ButtonRental">
1234 Gå
1235 </button>
1236 }
1237 else
1238 {
1239 <button class="js-footerStoreListButton ButtonRental Button" disabled>Gå</button>
1240 }
1241 </div>
1242 </div>
1243 <div class="Grid-cell u-md-size1of2 u-lg-size1of2">
1244 <nav role="navigation">
1245 <ul>
1246 @if (footerJson2.secondaryNav.copyright != "")
1247 {
1248 <li class="Footer-secondaryNavItem">
1249 @footerJson2.secondaryNav.copyright
1250 </li>
1251 }
1252 @{
1253 if (footerJson2.secondaryNav.items != null)
1254 {
1255 if (footerJson2.secondaryNav.items.Type == JTokenType.Array)
1256 {
1257 foreach (var item in footerJson2.secondaryNav.items.Children())
1258 {
1259 var text = item["text"];
1260 var href = item["href"];
1261 var target = item["target"];
1262
1263 <li>
1264 <div class="Type">
1265 <a href="@href" target="@target">
1266 @text
1267 </a>
1268 </div>
1269 </li>
1270 }
1271 }
1272 else if (footerJson2.secondaryNav.items.Type == JTokenType.Object)
1273 {
1274 var text = (string)footerJson2.secondaryNav.items.Root.SelectToken("nav.secondaryNav.text");
1275 var href = (string)footerJson2.secondaryNav.items.Root.SelectToken("nav.secondaryNav.href");
1276 var target = (string)footerJson2.secondaryNav.items.Root.SelectToken("nav.secondaryNav.target");
1277
1278 if (href != "" && target != "" && text != "")
1279 {
1280 <li>
1281 <div class="Type">
1282 <a href="@href" target="@target">
1283 @text
1284 </a>
1285 </div>
1286 </li>
1287 }
1288 }
1289 }
1290 }
1291
1292 @{
1293 if (footerJson2.primaryNav != null)
1294 {
1295 if (footerJson2.primaryNav.Type == JTokenType.Array)
1296 {
1297 foreach (var item in footerJson2.primaryNav.Children())
1298 {
1299 var text = item["text"].ToString();
1300 var href = item["href"].ToString();
1301
1302 <li>
1303 <div class="Type">
1304 <a href="@href">@text</a>
1305 </div>
1306 </li>
1307 }
1308 }
1309 else if (footerJson2.primaryNav.Type == JTokenType.Object)
1310 {
1311 var text = (string)footerJson2.primaryNav.Root.SelectToken("nav.primaryNav.text");
1312 var href = (string)footerJson2.primaryNav.Root.SelectToken("nav.primaryNav.href");
1313
1314 if (href != "" && text != "")
1315 {
1316 <li>
1317 <div class="Type">
1318 <a href="@href">@text</a>
1319 </div>
1320 </li>
1321 }
1322 }
1323 }
1324 }
1325
1326 </ul>
1327 </nav>
1328 </div>
1329 </div>
1330 </div>
1331 <div class="Grid-cell u-md-size1of2 u-lg-size1of3">
1332 <div class="Footer-about">
1333 @if (footerJson2.about != "")
1334 {
1335 <div class="Type Type--push">
1336 @footerJson2.about
1337 </div>
1338 }
1339 </div>
1340 </div>
1341 </div>
1342 </div>
1343 <hr />
1344 <div class="Container">
1345 <div class="Grid Grid--withGutter">
1346 <div class="Grid-cell u-md-size1of2 u-lg-size1of2">
1347 <img src="/Files/Images/Headerbilder/Skanska-logotype_Rental_blue_RGB.png" style="width: 111px; height: 30px;" />
1348 </div>
1349 <div class="Grid-cell u-md-size1of2 u-lg-size1of2">
1350 <p style="color: rgb(20, 50, 117); float: right;">Powered by Skanska</p>
1351 </div>
1352 </div>
1353 </div>
1354
1355 </footer>
1356 </div>
1357 </div>
1358 </div>
1359 <script>
1360 (function(global) {
1361 global.SKANSKA = @AccountManager.setGlobalState()
1362 }(window));
1363 </script>
1364 @Model.Area.Item.GetString("ScriptBody")
1365 @RenderSnippet("scriptIBodySnippet")
1366 @if (isLoggedIn)
1367 {
1368 @scriptloggedinbody
1369 @RenderSnippet("scriptInloggadIBodySnippet")
1370 }
1371 <script src="https://cdn.jsdelivr.net/npm/handlebars@latest/dist/handlebars.js"></script>
1372 <!-- Polyfill to make LitePicker work with IE11 -->
1373 <script>
1374 window.MSInputMethodContext &&
1375 document.documentMode &&
1376 document.write('<script src = "https://cdn.jsdelivr.net/npm/ie11-custom-properties@latest/ie11CustomProperties.js" ><\x2fscript > ');
1377 </script>
1378
1379 <script src="~/Files/Templates/Designs/SkanskaMaskin/js/vendor/litepicker.min.js?v=1.0" defer></script>
1380 <script src="~/Files/Templates/Designs/SkanskaMaskin/js/vendor/slimselect.min.js?v=1.0" defer></script>
1381 <script src="~/Files/Templates/Designs/SkanskaMaskin/js/vendor/apexcharts.min.js?v=1.1" defer></script>
1382
1383 <!--Bootstrap JS-->
1384 <script src="~/Files/Templates/Designs/SkanskaMaskin/js/vendor/bootstrap/scripts.js?v=1.1" defer></script>
1385
1386 <script src="~/Files/Templates/Designs/SkanskaMaskin/js/public/index.es5.min.js?v=1.10" defer></script>
1387 <script src="~/Files/Templates/Designs/SkanskaMaskin/js/public/sg.skanska.es5.min.js?v=2.04" defer></script>
1388 <script src="https://kit.fontawesome.com/10e31dd42d.js" crossorigin="anonymous" defer></script>
1389 <script src="~/Files/Templates/Designs/SkanskaMaskin/js/dist/onrent.es5.min.js?v=1.84" defer></script>
1390 <script src="~/Files/Templates/Designs/SkanskaMaskin/js/dist/myprojects.es5.min.js?v=1.02" defer></script>
1391 <script src="~/Files/Templates/Designs/SkanskaMaskin/js/dist/orderhistory.es5.min.js?v=1.02" defer></script>
1392 <script src="~/Files/Templates/Designs/SkanskaMaskin/js/dist/dashboard.es5.min.js?v=1.60" defer></script>
1393
1394 <script type="text/javascript" src="//code.jquery.com/jquery-3.6.1.min.js"></script>
1395
1396 <script id="hb-searchBarItems" type="text/x-handlebars-template">
1397 @*PRODUCTS*@
1398 {{#if products}}
1399 <li class="Search-resultItem Search-resultCategoryHeader">
1400 <span class="Search-resultHeading Search-resultCategory">Produkter</span>
1401 </li>
1402 {{#each products}}
1403 <li class="Search-resultItem">
1404 <a href="{{href}}" class="Search-resultLink" style="text-align: initial">
1405 <span class="Search-resultHeading">{{Name}}</span>
1406 </a>
1407 </li>
1408 {{/each}}
1409
1410 <li class="Search-resultItem">
1411 <button type="submit" class="Search-resultLink Search-resultLink--secondary">
1412 <span class="Search-resultHeading xxx">Visa alla resultat</span>
1413 </button>
1414 </li>
1415
1416 {{else}}
1417 <li class="Search-resultItem">
1418 <div class="Search-resultWrapper">
1419 <span class="Search-resultHeading italicStyle" style="text-align: initial">Inga produkter hittades</span>
1420 </div>
1421 </li>
1422 {{/if}}
1423
1424 @*USERS*@
1425 {{#if users}}
1426 <li class="Search-resultItem Search-resultCategoryHeader">
1427 <span class="Search-resultHeading Search-resultCategory">Kontaktpersoner</span>
1428 </li>
1429 {{#each users}}
1430 <li class="Search-resultItem">
1431 <a href="/konktakter-soekresultat?q={{userName}}" class="Search-resultLink" style="text-align: initial">
1432 <span class="Search-resultHeading">{{userName}}, {{jobTitle}}</span>
1433 </a>
1434 </li>
1435 {{/each}}
1436
1437 <li class="Search-resultItem">
1438 <button formaction="/konktakter-soekresultat" type="submit" class="Search-resultLink Search-resultLink--secondary">
1439 <span class="Search-resultHeading xxx">Visa alla resultat</span>
1440 </button>
1441 </li>
1442
1443 {{else}}
1444 <li class="Search-resultItem">
1445 <div class="Search-resultWrapper">
1446 <span class="Search-resultHeading italicStyle" style="text-align: initial">Inga kontaktpersoner hittades</span>
1447 </div>
1448 </li>
1449 {{/if}}
1450
1451 @*CONTENT*@
1452 {{#if content}}
1453 <li class="Search-resultItem Search-resultCategoryHeader">
1454 <span class="Search-resultHeading Search-resultCategory">Innehållssidor</span>
1455 </li>
1456 {{#each content}}
1457 <li class="Search-resultItem">
1458 <a href="/Default.aspx?ID={{id}}" class="Search-resultLink" style="text-align: initial">
1459 <span class="Search-resultHeading">{{name}}</span>
1460 </a>
1461 </li>
1462 {{/each}}
1463
1464 <li class="Search-resultItem">
1465 <button formaction="/innehaall-soekresultat" type="submit" class="Search-resultLink Search-resultLink--secondary">
1466 <span class="Search-resultHeading xxx">Visa alla resultat</span>
1467 </button>
1468 </li>
1469
1470 {{else}}
1471 <li class="Search-resultItem">
1472 <div class="Search-resultWrapper">
1473 <span class="Search-resultHeading italicStyle" style="text-align: initial">Inga Innehållssidor hittades</span>
1474 </div>
1475 </li>
1476 {{/if}}
1477 </script>
1478 </body>
1479 </html>