Error compiling template "Designs/Rapido/ContentPage/Paragraph/Job.cshtml"
Line 651: 'SocialMediaShareIcon' does not contain a definition for 'GlobalRequestHost'

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 2 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 14 using System; 15 16 #line default 17 #line hidden 18 19 #line 2994 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 20 using System.Collections.Generic; 21 22 #line default 23 #line hidden 24 25 #line 2422 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 26 using System.Linq; 27 28 #line default 29 #line hidden 30 31 #line 2415 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 32 using System.Web; 33 34 #line default 35 #line hidden 36 37 #line 4 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 38 using DanishagroBrandingMaster.JobsApi; 39 40 #line default 41 #line hidden 42 43 #line 2993 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 44 using Dynamicweb.Rapido.Blocks.Components.General; 45 46 #line default 47 #line hidden 48 49 #line 6 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 50 using HtmlAgilityPack; 51 52 #line default 53 #line hidden 54 55 #line 2991 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 56 using Dynamicweb.Frontend.Devices; 57 58 #line default 59 #line hidden 60 61 #line 1953 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 62 using System.Text.RegularExpressions; 63 64 #line default 65 #line hidden 66 67 #line 2954 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 68 using System.Reflection; 69 70 #line default 71 #line hidden 72 73 #line 324 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 74 using System.Web.UI.HtmlControls; 75 76 #line default 77 #line hidden 78 79 #line 2988 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 80 using Dynamicweb.Rapido.Blocks.Components; 81 82 #line default 83 #line hidden 84 85 #line 326 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 86 using Dynamicweb.Rapido.Blocks.Components.Articles; 87 88 #line default 89 #line hidden 90 91 #line 327 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 92 using Dynamicweb.Rapido.Blocks.Components.Documentation; 93 94 #line default 95 #line hidden 96 97 #line 2514 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 98 using Dynamicweb.Rapido.Blocks; 99 100 #line default 101 #line hidden 102 103 #line 2515 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 104 using System.IO; 105 106 #line default 107 #line hidden 108 109 #line 2308 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 110 using Dynamicweb.Core; 111 112 #line default 113 #line hidden 114 115 #line 2992 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 116 using Dynamicweb.Rapido.Blocks.Components.Ecommerce; 117 118 #line default 119 #line hidden 120 121 #line 2414 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 122 using System.Web.Http.Results; 123 124 #line default 125 #line hidden 126 127 #line 2990 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 128 using Dynamicweb.Frontend; 129 130 #line default 131 #line hidden 132 133 134 public class RazorEngine_8f773d33a53846f08794f059d8c132df : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> { 135 136 #line hidden 137 138 #line 11 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 139 140 dynamic GetEnumSetting(dynamic enumSetting, string name = null) 141 { 142 string enumName = name == null ? enumSetting.GetType().Name : name; 143 enumSetting = HttpContext.Current.Request.QueryString.Get(enumName) != null ? System.Enum.Parse(enumSetting.GetType(), HttpContext.Current.Request.QueryString.Get(enumName)) : enumSetting; 144 return enumSetting; 145 } 146 147 string jobUrl = string.Empty; 148 string address = ""; 149 Dynamicweb.Content.ParagraphService paragraphService = new Dynamicweb.Content.ParagraphService(); 150 bool isMobileOrTablet; 151 string colorSetting; 152 153 154 #line default 155 #line hidden 156 157 158 #line 78 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 159 public RazorEngine.Templating.TemplateWriter RenderJobPage(string advertisementUrl, Item3 item, Users users, DanishagroBrandingMaster.JobsApi.Content contentList, HttpContext context) 160 { 161 #line default 162 #line hidden 163 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 164 165 #line 79 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 166 167 var advertisementImage = item.Advertisements?.FirstOrDefault()?.ImageUrlSecure; 168 if (!string.IsNullOrEmpty(advertisementImage)) 169 { 170 if (isMobileOrTablet) 171 { 172 173 174 #line default 175 #line hidden 176 WriteLiteralTo(__razor_helper_writer, " <div"); 177 178 WriteLiteralTo(__razor_helper_writer, " class=\"background-image-container-job\""); 179 180 WriteLiteralTo(__razor_helper_writer, ">\r\n <img"); 181 182 WriteLiteralTo(__razor_helper_writer, " class=\"\""); 183 184 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 3116), Tuple.Create("\"", 3141) 185 186 #line 86 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 187 , Tuple.Create(Tuple.Create("", 3122), Tuple.Create<System.Object, System.Int32>(advertisementImage 188 189 #line default 190 #line hidden 191 , 3122), false) 192 ); 193 194 WriteLiteralTo(__razor_helper_writer, ">\r\n </div>\r\n"); 195 196 197 #line 88 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 198 } 199 else 200 { 201 202 203 #line default 204 #line hidden 205 WriteLiteralTo(__razor_helper_writer, " <div"); 206 207 WriteLiteralTo(__razor_helper_writer, " class=\"center-container image-cover-job\""); 208 209 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 3267), Tuple.Create("\"", 3318) 210 , Tuple.Create(Tuple.Create("", 3275), Tuple.Create("background-image:", 3275), true) 211 , Tuple.Create(Tuple.Create(" ", 3292), Tuple.Create("url(", 3293), true) 212 213 #line 91 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 214 , Tuple.Create(Tuple.Create("", 3297), Tuple.Create<System.Object, System.Int32>(advertisementImage 215 216 #line default 217 #line hidden 218 , 3297), false) 219 , Tuple.Create(Tuple.Create("", 3316), Tuple.Create(");", 3316), true) 220 ); 221 222 WriteLiteralTo(__razor_helper_writer, "></div>\r\n"); 223 224 225 #line 92 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 226 227 } 228 } 229 230 231 232 #line default 233 #line hidden 234 WriteLiteralTo(__razor_helper_writer, " <div"); 235 236 WriteLiteralTo(__razor_helper_writer, " class=\"grid content-row--spacing-xl\""); 237 238 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 239 240 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-lg-8 content-text\""); 241 242 WriteLiteralTo(__razor_helper_writer, ">\r\n <header>\r\n <h1>\r\n"); 243 244 WriteLiteralTo(__razor_helper_writer, " "); 245 246 247 #line 100 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 248 WriteTo(__razor_helper_writer, item.Name); 249 250 251 #line default 252 #line hidden 253 WriteLiteralTo(__razor_helper_writer, "\r\n </h1>\r\n </header>\r\n"); 254 255 WriteLiteralTo(__razor_helper_writer, " "); 256 257 258 #line 103 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 259 WriteTo(__razor_helper_writer, advertisementUrl); 260 261 262 #line default 263 #line hidden 264 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n <div"); 265 266 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-lg-4\""); 267 268 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 269 270 WriteLiteralTo(__razor_helper_writer, " class=\"content-row__item rowItemContent-12903 dw-mod\""); 271 272 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 273 274 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width u-align-left u-align-self-start dw-mod content--background-" + 275 "and-color\""); 276 277 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 3840), Tuple.Create("\"", 3878) 278 , Tuple.Create(Tuple.Create("", 3848), Tuple.Create("background-color:", 3848), true) 279 280 #line 107 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 281 , Tuple.Create(Tuple.Create("", 3865), Tuple.Create<System.Object, System.Int32>(colorSetting 282 283 #line default 284 #line hidden 285 , 3865), false) 286 ); 287 288 WriteLiteralTo(__razor_helper_writer, " id=\"jobInformationBox\""); 289 290 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 291 292 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-height\""); 293 294 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 295 296 WriteLiteralTo(__razor_helper_writer, " class=\"content-row__item__body padding-size-md padding-position-around dw-mod\""); 297 298 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 299 300 WriteLiteralTo(__razor_helper_writer, " class=\"u-margin-bottom--lg\""); 301 302 WriteLiteralTo(__razor_helper_writer, ">\r\n <p>\r\n <stro" + 303 "ng>"); 304 305 306 #line 112 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 307 WriteTo(__razor_helper_writer, Translate("Workplace")); 308 309 310 #line default 311 #line hidden 312 WriteLiteralTo(__razor_helper_writer, "</strong><br>\r\n"); 313 314 315 #line 113 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 316 317 318 #line default 319 #line hidden 320 321 #line 113 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 322 323 string mapsUrl = "https://www.google.com/maps/place/" + address; 324 var city = item.Department?.City ?? Translate("Ingen by fundet"); 325 326 327 #line default 328 #line hidden 329 330 #line 116 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 331 WriteTo(__razor_helper_writer, address); 332 333 334 #line default 335 #line hidden 336 WriteLiteralTo(__razor_helper_writer, " <br />\r\n"); 337 338 WriteLiteralTo(__razor_helper_writer, " <a"); 339 340 WriteLiteralTo(__razor_helper_writer, " style=\"color:white;text-decoration:underline\""); 341 342 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 4645), Tuple.Create("\"", 4660) 343 344 #line 117 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 345 , Tuple.Create(Tuple.Create("", 4652), Tuple.Create<System.Object, System.Int32>(mapsUrl 346 347 #line default 348 #line hidden 349 , 4652), false) 350 ); 351 352 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 353 354 WriteLiteralTo(__razor_helper_writer, ">"); 355 356 357 #line 117 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 358 WriteTo(__razor_helper_writer, Translate("View map location")); 359 360 361 #line default 362 #line hidden 363 WriteLiteralTo(__razor_helper_writer, " </a>\r\n"); 364 365 366 #line 118 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 367 368 369 #line default 370 #line hidden 371 WriteLiteralTo(__razor_helper_writer, "\r\n </p>\r\n <p>\r\n " + 372 " <strong>"); 373 374 375 #line 121 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 376 WriteTo(__razor_helper_writer, Translate("Customer name")); 377 378 379 #line default 380 #line hidden 381 WriteLiteralTo(__razor_helper_writer, "</strong><br>\r\n"); 382 383 WriteLiteralTo(__razor_helper_writer, " "); 384 385 386 #line 122 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 387 WriteTo(__razor_helper_writer, item.CustomerName); 388 389 390 #line default 391 #line hidden 392 WriteLiteralTo(__razor_helper_writer, "\r\n </p>\r\n <p>\r\n " + 393 " <strong>"); 394 395 396 #line 125 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 397 WriteTo(__razor_helper_writer, Translate("Department")); 398 399 400 #line default 401 #line hidden 402 WriteLiteralTo(__razor_helper_writer, "</strong><br>\r\n"); 403 404 WriteLiteralTo(__razor_helper_writer, " "); 405 406 407 #line 126 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 408 WriteTo(__razor_helper_writer, item.Department.Name); 409 410 411 #line default 412 #line hidden 413 WriteLiteralTo(__razor_helper_writer, "\r\n </p>\r\n <p>\r\n"); 414 415 416 #line 129 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 417 418 419 #line default 420 #line hidden 421 422 #line 129 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 423 if (item.ApplicationDue.ToShortDateString() != "01/01/0001") 424 { 425 426 427 #line default 428 #line hidden 429 WriteLiteralTo(__razor_helper_writer, " <strong>"); 430 431 432 #line 131 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 433 WriteTo(__razor_helper_writer, Translate("Application due")); 434 435 436 #line default 437 #line hidden 438 WriteLiteralTo(__razor_helper_writer, "</strong>"); 439 440 WriteLiteralTo(__razor_helper_writer, "<br>\r\n"); 441 442 443 #line 132 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 444 445 446 #line default 447 #line hidden 448 449 #line 132 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 450 WriteTo(__razor_helper_writer, item.ApplicationDue.ToShortDateString()); 451 452 453 #line default 454 #line hidden 455 456 #line 132 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 457 458 } 459 460 461 #line default 462 #line hidden 463 WriteLiteralTo(__razor_helper_writer, " </p>\r\n <p>\r\n"); 464 465 466 #line 136 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 467 468 469 #line default 470 #line hidden 471 472 #line 136 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 473 if (item.StartDateASAP) 474 { 475 476 477 #line default 478 #line hidden 479 WriteLiteralTo(__razor_helper_writer, " <strong>"); 480 481 482 #line 138 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 483 WriteTo(__razor_helper_writer, Translate("Start date")); 484 485 486 #line default 487 #line hidden 488 WriteLiteralTo(__razor_helper_writer, "</strong>"); 489 490 WriteLiteralTo(__razor_helper_writer, "<br>\r\n"); 491 492 493 #line 139 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 494 495 496 #line default 497 #line hidden 498 499 #line 139 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 500 WriteTo(__razor_helper_writer, Translate("As soon as possible")); 501 502 503 #line default 504 #line hidden 505 506 #line 139 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 507 508 } 509 else if (item.StartDate.ToShortDateString() != "01/01/0001") 510 { 511 512 513 #line default 514 #line hidden 515 WriteLiteralTo(__razor_helper_writer, " <strong>"); 516 517 518 #line 143 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 519 WriteTo(__razor_helper_writer, Translate("Start date")); 520 521 522 #line default 523 #line hidden 524 WriteLiteralTo(__razor_helper_writer, "</strong>"); 525 526 WriteLiteralTo(__razor_helper_writer, "<br>\r\n"); 527 528 529 #line 144 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 530 531 532 #line default 533 #line hidden 534 535 #line 144 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 536 WriteTo(__razor_helper_writer, item.StartDate.ToShortDateString()); 537 538 539 #line default 540 #line hidden 541 542 #line 144 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 543 544 } 545 546 547 #line default 548 #line hidden 549 WriteLiteralTo(__razor_helper_writer, "\r\n </p>\r\n </div>\r\n " + 550 " <div"); 551 552 WriteLiteralTo(__razor_helper_writer, " class=\"buttons-collection flex-start u-block dw-mod u-flex grid--direction-colum" + 553 "n\""); 554 555 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 556 557 558 #line 150 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 559 560 561 #line default 562 #line hidden 563 564 #line 150 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 565 566 ButtonLayout ButtonLayoutApplyJob = (ButtonLayout)System.Enum.Parse(typeof(ButtonLayout), char.ToUpper(Model.Item.GetItem("Apply_Job_Button").GetList("Layout").SelectedValue[0]) + Model.Item.GetItem("Apply_Job_Button").GetList("Layout").SelectedValue.Substring(1)); 567 string ButtonTitleApplyJob = Model.Item.GetItem("Job_Agent_Button").GetString("Title"); 568 569 570 571 #line default 572 #line hidden 573 574 #line 154 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 575 WriteTo(__razor_helper_writer, Render(new Button 576 { 577 Id = "ApplyJob", 578 ButtonLayout = GetEnumSetting(ButtonLayoutApplyJob), 579 Title = ButtonTitleApplyJob, 580 //Icon = new Icon { Prefix = "fas", Name = "fa-plus", LabelPosition = IconLabelPosition.After }, 581 OnClick = $"window.location.href='{item.ApplicationFormUrl}';" 582 })); 583 584 585 #line default 586 #line hidden 587 588 #line 161 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 589 590 591 ButtonLayout ButtonLayoutJobAgent = (ButtonLayout)System.Enum.Parse(typeof(ButtonLayout), char.ToUpper(Model.Item.GetItem("Job_Agent_Button").GetList("Layout").SelectedValue[0]) + Model.Item.GetItem("Job_Agent_Button").GetList("Layout").SelectedValue.Substring(1)); 592 string ButtonTitleJobAgent = Model.Item.GetItem("Apply_Job_Button").GetString("Title"); 593 594 595 #line default 596 #line hidden 597 598 #line 165 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 599 WriteTo(__razor_helper_writer, Render(new Button 600 { 601 Id = "JobAgent", 602 ButtonLayout = GetEnumSetting(ButtonLayoutJobAgent), 603 Title = ButtonTitleJobAgent, 604 //Icon = new Icon { Prefix = "fas", Name = "fa-plus", LabelPosition = IconLabelPosition.After }, 605 OnClick = $"window.location.href='https://candidate.hr-manager.net/Agent/Subscription.aspx?customer={contentList.CustomerAlias}';", 606 })); 607 608 609 #line default 610 #line hidden 611 612 #line 172 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 613 614 615 616 #line default 617 #line hidden 618 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n <div>\r\n"); 619 620 621 #line 176 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 622 623 624 #line default 625 #line hidden 626 627 #line 176 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 628 629 object ogImagePath = new object(); 630 var ogImageExists = Pageview.Page.PropertyItem.TryGetValue("OpenGraphImage", out ogImagePath); 631 HtmlDocument doc = new HtmlDocument(); 632 doc.LoadHtml(advertisementUrl); 633 var description = doc.DocumentNode.SelectSingleNode(".//p").InnerText; 634 635 636 #line default 637 #line hidden 638 WriteLiteralTo(__razor_helper_writer, "\r\n"); 639 640 WriteLiteralTo(__razor_helper_writer, " "); 641 642 643 #line 183 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 644 WriteTo(__razor_helper_writer, RenderSocialMediaShareIcons(new DanishagroBrandingMaster.Files.Files.Templates.Designs.Rapido.Components.Custom.SocialMediaShareIcon(Pageview) 645 { 646 EnableFacebook = Pageview.AreaSettings.GetItem("Danish_Agro_Branding").GetBoolean("Enable_Facebook"), 647 EnableTwitter = Pageview.AreaSettings.GetItem("Danish_Agro_Branding").GetBoolean("Enable_Twitter"), 648 EnableLinkedin = Pageview.AreaSettings.GetItem("Danish_Agro_Branding").GetBoolean("Enable_Linkedin"), 649 EnableMail = Pageview.AreaSettings.GetItem("Danish_Agro_Branding").GetBoolean("Enable_Mail"), 650 MetaTitle = Pageview.Page.MetaTitle, 651 GlobalRequestHost = context.Request.Url.Host, 652 OpengraphImage = !string.IsNullOrEmpty(advertisementImage) ? advertisementImage : ogImagePath.ToString(), 653 isExternal = !string.IsNullOrEmpty(advertisementImage) ? true : false, 654 OpengraphTitle = item.Name, 655 OpengraphDescription = description 656 })); 657 658 659 #line default 660 #line hidden 661 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n </div>\r\n " + 662 " </div>\r\n </div>\r\n </div>\r\n </div>\r\n " + 663 " </div>\r\n"); 664 665 666 #line 203 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 667 if (users.ProjectLeader != null && users.ProjectParticipants != null) 668 { 669 670 671 #line default 672 #line hidden 673 WriteLiteralTo(__razor_helper_writer, " <div"); 674 675 WriteLiteralTo(__razor_helper_writer, " class=\"grid\""); 676 677 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 678 679 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-lg-12 content-text\""); 680 681 WriteLiteralTo(__razor_helper_writer, " style=\"padding-top: 0px; padding-bottom: 0px; padding-right: 0px; height: 0px;\""); 682 683 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 684 685 WriteLiteralTo(__razor_helper_writer, " class=\"content-container dw-mod\""); 686 687 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 688 689 WriteLiteralTo(__razor_helper_writer, " class=\"content-row content-row--full content-row--column-gap-lg content-row--cen" + 690 "ter content-row--height-auto content-row--spacing-xl content-row--spacing-positi" + 691 "on-bottom dw-mod\""); 692 693 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 694 695 WriteLiteralTo(__razor_helper_writer, " class=\"content-row__item rowItemContent-32508 dw-mod\""); 696 697 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 698 699 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width u-align-center dw-mod\""); 700 701 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 702 703 WriteLiteralTo(__razor_helper_writer, " class=\"separation-line-container separation-line-container--align-center dw-mod\"" + 704 ""); 705 706 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 707 708 WriteLiteralTo(__razor_helper_writer, " class=\"separation-line separation-line--weight-xs separation-line--width-full dw" + 709 "-mod\""); 710 711 WriteLiteralTo(__razor_helper_writer, " style=\"border-color: #B1B1B1\""); 712 713 WriteLiteralTo(__razor_helper_writer, "></div>\r\n </div>\r\n </di" + 714 "v>\r\n </div>\r\n </div>\r\n " + 715 "</div>\r\n </div>\r\n </div>\r\n"); 716 717 718 #line 220 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 719 720 721 722 #line default 723 #line hidden 724 WriteLiteralTo(__razor_helper_writer, " <div"); 725 726 WriteLiteralTo(__razor_helper_writer, " class=\"grid\""); 727 728 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 729 730 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-lg-12 content-text\""); 731 732 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 733 734 WriteLiteralTo(__razor_helper_writer, " class=\"content-row content-row--full content-row--column-gap-lg content-row--cen" + 735 "ter content-row--height-auto content-row--spacing-xl content-row--spacing-positi" + 736 "on-top dw-mod\""); 737 738 WriteLiteralTo(__razor_helper_writer, " style=\"margin-top: 0px;\""); 739 740 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 741 742 WriteLiteralTo(__razor_helper_writer, " class=\"content-row__item rowItemContent-12905 dw-mod\""); 743 744 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 745 746 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width u-align-left u-align-self-start dw-mod\""); 747 748 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 749 750 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-height\""); 751 752 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 753 754 WriteLiteralTo(__razor_helper_writer, " class=\"content-row__item__body padding-size-none padding-position-around dw-mod" + 755 "\""); 756 757 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 758 759 WriteLiteralTo(__razor_helper_writer, " class=\"u-margin-bottom--lg\""); 760 761 WriteLiteralTo(__razor_helper_writer, ">\r\n <h2>"); 762 763 764 #line 229 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 765 WriteTo(__razor_helper_writer, Translate("Yderligere info")); 766 767 768 #line default 769 #line hidden 770 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n <p>"); 771 772 773 #line 230 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 774 WriteTo(__razor_helper_writer, Translate("Har du spørgsmål til stillingen, er du velkommen til at kontakte")); 775 776 777 #line default 778 #line hidden 779 WriteLiteralTo(__razor_helper_writer, "</p>\r\n </div>\r\n " + 780 " </div>\r\n </div>\r\n </div>\r\n " + 781 " </div>\r\n </div>\r\n </div>\r\n " + 782 " <div"); 783 784 WriteLiteralTo(__razor_helper_writer, " class=\"grid__col-lg-12\""); 785 786 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 787 788 WriteLiteralTo(__razor_helper_writer, " class=\"content-row content-row--4col content-row--column-gap-none content-row--c" + 789 "enter content-row--height-auto content-row--spacing-xl content-row--spacing-posi" + 790 "tion-bottom dw-mod\""); 791 792 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 793 794 795 #line 240 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 796 797 798 #line default 799 #line hidden 800 801 #line 240 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 802 803 if (users.ProjectLeader != null) 804 { 805 806 807 #line default 808 #line hidden 809 WriteLiteralTo(__razor_helper_writer, " <div"); 810 811 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 13472), Tuple.Create("\"", 13569) 812 , Tuple.Create(Tuple.Create("", 13480), Tuple.Create("content-row__item", 13480), true) 813 , Tuple.Create(Tuple.Create(" ", 13497), Tuple.Create("rowItemContent-12915", 13498), true) 814 , Tuple.Create(Tuple.Create(" ", 13518), Tuple.Create("dw-mod", 13519), true) 815 816 #line 243 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 817 , Tuple.Create(Tuple.Create(" ", 13525), Tuple.Create<System.Object, System.Int32>(isMobileOrTablet ? "job-margin-top" : "" 818 819 #line default 820 #line hidden 821 , 13526), false) 822 ); 823 824 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 825 826 WriteLiteralTo(__razor_helper_writer, " class=\"content-row__item__body padding-size-none padding-position-around u-align" + 827 "-left u-align-self-start dw-mod\""); 828 829 WriteLiteralTo(__razor_helper_writer, ">\r\n <img"); 830 831 WriteLiteralTo(__razor_helper_writer, " class=\"b-lazy grid__cell-img--ball dw-mod b-loaded jobProfileImage\""); 832 833 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 13834), Tuple.Create("\"", 14027) 834 835 #line 245 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 836 , Tuple.Create(Tuple.Create("", 13840), Tuple.Create<System.Object, System.Int32>(users.ProjectLeader.ImageUrl 837 838 #line default 839 #line hidden 840 , 13840), false) 841 , Tuple.Create(Tuple.Create("", 13869), Tuple.Create("?Width=130&amp;Height=130&amp;Crop=0&amp;BackgroundColor=&amp;DoNotUpscale=True&a" + 842 "mp;FillCanvas=False&amp;Image=&amp;AlternativeImage=/Images/missing_image.jpg", 13869), true) 843 ); 844 845 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 846 847 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width u-padding-top dw-mod\""); 848 849 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 850 851 WriteLiteralTo(__razor_helper_writer, " class=\"u-margin-bottom--lg\""); 852 853 WriteLiteralTo(__razor_helper_writer, ">\r\n\r\n"); 854 855 856 #line 249 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 857 858 859 #line default 860 #line hidden 861 862 #line 249 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 863 if (users.ProjectLeader.FirstName != String.Empty) 864 { 865 866 867 #line default 868 #line hidden 869 WriteLiteralTo(__razor_helper_writer, " <p"); 870 871 WriteLiteralTo(__razor_helper_writer, " class=\"content-p-margin\""); 872 873 WriteLiteralTo(__razor_helper_writer, ">"); 874 875 876 #line 251 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 877 WriteTo(__razor_helper_writer, users.ProjectLeader.FirstName); 878 879 880 #line default 881 #line hidden 882 WriteLiteralTo(__razor_helper_writer, " "); 883 884 885 #line 251 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 886 WriteTo(__razor_helper_writer, users.ProjectLeader.LastName); 887 888 889 #line default 890 #line hidden 891 WriteLiteralTo(__razor_helper_writer, "</p>\r\n"); 892 893 894 #line 252 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 895 } 896 897 898 #line default 899 #line hidden 900 WriteLiteralTo(__razor_helper_writer, " "); 901 902 903 #line 253 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 904 if (users.ProjectLeader.Title != String.Empty) 905 { 906 907 908 #line default 909 #line hidden 910 WriteLiteralTo(__razor_helper_writer, " <p"); 911 912 WriteLiteralTo(__razor_helper_writer, " class=\"content-p-margin\""); 913 914 WriteLiteralTo(__razor_helper_writer, "> "); 915 916 917 #line 255 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 918 WriteTo(__razor_helper_writer, users.ProjectLeader.Title); 919 920 921 #line default 922 #line hidden 923 WriteLiteralTo(__razor_helper_writer, "</p>\r\n"); 924 925 926 #line 256 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 927 } 928 929 930 #line default 931 #line hidden 932 WriteLiteralTo(__razor_helper_writer, " "); 933 934 935 #line 257 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 936 if (users.ProjectLeader.Phone != String.Empty) 937 { 938 939 940 #line default 941 #line hidden 942 WriteLiteralTo(__razor_helper_writer, " <p"); 943 944 WriteLiteralTo(__razor_helper_writer, " class=\"content-p-margin\""); 945 946 WriteLiteralTo(__razor_helper_writer, "> "); 947 948 949 #line 259 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 950 WriteTo(__razor_helper_writer, Translate("Tlf.: ")); 951 952 953 #line default 954 #line hidden 955 WriteLiteralTo(__razor_helper_writer, " "); 956 957 958 #line 259 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 959 WriteTo(__razor_helper_writer, users.ProjectLeader.Phone); 960 961 962 #line default 963 #line hidden 964 WriteLiteralTo(__razor_helper_writer, "</p>\r\n"); 965 966 967 #line 260 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 968 } 969 970 971 #line default 972 #line hidden 973 WriteLiteralTo(__razor_helper_writer, " "); 974 975 976 #line 261 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 977 if (users.ProjectLeader.Email != String.Empty) 978 { 979 980 981 #line default 982 #line hidden 983 WriteLiteralTo(__razor_helper_writer, " <p"); 984 985 WriteLiteralTo(__razor_helper_writer, " class=\"content-p-margin\""); 986 987 WriteLiteralTo(__razor_helper_writer, "> "); 988 989 990 #line 263 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 991 WriteTo(__razor_helper_writer, Translate("E-mail: ")); 992 993 994 #line default 995 #line hidden 996 WriteLiteralTo(__razor_helper_writer, "<a"); 997 998 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 15380), Tuple.Create("\"", 15446) 999 , Tuple.Create(Tuple.Create("", 15387), Tuple.Create("mailto:", 15387), true) 1000 1001 #line 263 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1002 , Tuple.Create(Tuple.Create("", 15394), Tuple.Create<System.Object, System.Int32>(users.ProjectLeader.Email 1003 1004 #line default 1005 #line hidden 1006 , 15394), false) 1007 , Tuple.Create(Tuple.Create("", 15420), Tuple.Create("?subject=Vedr.", 15420), true) 1008 1009 #line 263 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1010 , Tuple.Create(Tuple.Create(" ", 15434), Tuple.Create<System.Object, System.Int32>(item.Name 1011 1012 #line default 1013 #line hidden 1014 , 15435), false) 1015 , Tuple.Create(Tuple.Create(" ", 15445), Tuple.Create("", 15445), true) 1016 ); 1017 1018 WriteLiteralTo(__razor_helper_writer, ">"); 1019 1020 1021 #line 263 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1022 WriteTo(__razor_helper_writer, users.ProjectLeader.Email); 1023 1024 1025 #line default 1026 #line hidden 1027 WriteLiteralTo(__razor_helper_writer, "</a></p>\r\n"); 1028 1029 1030 #line 264 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1031 } 1032 1033 1034 #line default 1035 #line hidden 1036 WriteLiteralTo(__razor_helper_writer, " </div>\r\n " + 1037 " </div>\r\n </div>\r\n <" + 1038 "/div>\r\n"); 1039 1040 1041 #line 269 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1042 } 1043 if (users.ProjectParticipants != null) 1044 { 1045 foreach (var usersProjectParticipant in users.ProjectParticipants) 1046 { 1047 1048 1049 #line default 1050 #line hidden 1051 WriteLiteralTo(__razor_helper_writer, " <div"); 1052 1053 WriteLiteralTo(__razor_helper_writer, " class=\"content-row__item rowItemContent-12915 dw-mod\""); 1054 1055 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 1056 1057 WriteLiteralTo(__razor_helper_writer, " class=\"content-row__item__body padding-size-none padding-position-around u-align" + 1058 "-left u-align-self-start dw-mod\""); 1059 1060 WriteLiteralTo(__razor_helper_writer, ">\r\n <img"); 1061 1062 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 16238), Tuple.Create("\"", 16349) 1063 , Tuple.Create(Tuple.Create("", 16246), Tuple.Create("b-lazy", 16246), true) 1064 , Tuple.Create(Tuple.Create(" ", 16252), Tuple.Create("grid__cell-img--ball", 16253), true) 1065 , Tuple.Create(Tuple.Create(" ", 16273), Tuple.Create("dw-mod", 16274), true) 1066 , Tuple.Create(Tuple.Create(" ", 16280), Tuple.Create("b-loaded", 16281), true) 1067 , Tuple.Create(Tuple.Create(" ", 16289), Tuple.Create("jobProfileImage", 16290), true) 1068 1069 #line 276 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1070 , Tuple.Create(Tuple.Create(" ", 16305), Tuple.Create<System.Object, System.Int32>(isMobileOrTablet ? "job-margin-top" : "" 1071 1072 #line default 1073 #line hidden 1074 , 16306), false) 1075 ); 1076 1077 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 16350), Tuple.Create("\"", 16547) 1078 1079 #line 276 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1080 , Tuple.Create(Tuple.Create("", 16356), Tuple.Create<System.Object, System.Int32>(usersProjectParticipant.ImageUrl 1081 1082 #line default 1083 #line hidden 1084 , 16356), false) 1085 , Tuple.Create(Tuple.Create("", 16389), Tuple.Create("?Width=130&amp;Height=130&amp;Crop=0&amp;BackgroundColor=&amp;DoNotUpscale=True&a" + 1086 "mp;FillCanvas=False&amp;Image=&amp;AlternativeImage=/Images/missing_image.jpg", 16389), true) 1087 ); 1088 1089 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 1090 1091 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width u-padding-top dw-mod\""); 1092 1093 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 1094 1095 WriteLiteralTo(__razor_helper_writer, " class=\"u-margin-bottom--lg\""); 1096 1097 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1098 1099 1100 #line 279 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1101 1102 1103 #line default 1104 #line hidden 1105 1106 #line 279 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1107 if (usersProjectParticipant.FirstName != String.Empty) 1108 { 1109 1110 1111 #line default 1112 #line hidden 1113 WriteLiteralTo(__razor_helper_writer, " <p"); 1114 1115 WriteLiteralTo(__razor_helper_writer, " class=\"content-p-margin\""); 1116 1117 WriteLiteralTo(__razor_helper_writer, ">"); 1118 1119 1120 #line 281 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1121 WriteTo(__razor_helper_writer, usersProjectParticipant.FirstName); 1122 1123 1124 #line default 1125 #line hidden 1126 WriteLiteralTo(__razor_helper_writer, " "); 1127 1128 1129 #line 281 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1130 WriteTo(__razor_helper_writer, usersProjectParticipant.LastName); 1131 1132 1133 #line default 1134 #line hidden 1135 WriteLiteralTo(__razor_helper_writer, " </p>\r\n"); 1136 1137 1138 #line 282 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1139 } 1140 1141 1142 #line default 1143 #line hidden 1144 WriteLiteralTo(__razor_helper_writer, " "); 1145 1146 1147 #line 283 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1148 if (usersProjectParticipant.Title != String.Empty) 1149 { 1150 1151 1152 #line default 1153 #line hidden 1154 WriteLiteralTo(__razor_helper_writer, " <p"); 1155 1156 WriteLiteralTo(__razor_helper_writer, " class=\"content-p-margin\""); 1157 1158 WriteLiteralTo(__razor_helper_writer, ">"); 1159 1160 1161 #line 285 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1162 WriteTo(__razor_helper_writer, usersProjectParticipant.Title); 1163 1164 1165 #line default 1166 #line hidden 1167 WriteLiteralTo(__razor_helper_writer, " </p>\r\n"); 1168 1169 1170 #line 286 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1171 1172 } 1173 1174 1175 #line default 1176 #line hidden 1177 WriteLiteralTo(__razor_helper_writer, " "); 1178 1179 1180 #line 288 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1181 if (usersProjectParticipant.Phone != String.Empty) 1182 { 1183 1184 1185 #line default 1186 #line hidden 1187 WriteLiteralTo(__razor_helper_writer, " <p"); 1188 1189 WriteLiteralTo(__razor_helper_writer, " class=\"content-p-margin\""); 1190 1191 WriteLiteralTo(__razor_helper_writer, "> "); 1192 1193 1194 #line 290 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1195 WriteTo(__razor_helper_writer, Translate("Tlf.: ")); 1196 1197 1198 #line default 1199 #line hidden 1200 WriteLiteralTo(__razor_helper_writer, " "); 1201 1202 1203 #line 290 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1204 WriteTo(__razor_helper_writer, usersProjectParticipant.Phone); 1205 1206 1207 #line default 1208 #line hidden 1209 WriteLiteralTo(__razor_helper_writer, " </p>\r\n"); 1210 1211 1212 #line 291 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1213 1214 } 1215 1216 1217 #line default 1218 #line hidden 1219 WriteLiteralTo(__razor_helper_writer, " "); 1220 1221 1222 #line 293 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1223 if (usersProjectParticipant.Email != String.Empty) 1224 { 1225 1226 1227 #line default 1228 #line hidden 1229 WriteLiteralTo(__razor_helper_writer, " <p"); 1230 1231 WriteLiteralTo(__razor_helper_writer, " class=\"content-p-margin\""); 1232 1233 WriteLiteralTo(__razor_helper_writer, "> <a"); 1234 1235 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 17982), Tuple.Create("\"", 18052) 1236 , Tuple.Create(Tuple.Create("", 17989), Tuple.Create("mailto:", 17989), true) 1237 1238 #line 295 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1239 , Tuple.Create(Tuple.Create("", 17996), Tuple.Create<System.Object, System.Int32>(usersProjectParticipant.Email 1240 1241 #line default 1242 #line hidden 1243 , 17996), false) 1244 , Tuple.Create(Tuple.Create("", 18026), Tuple.Create("?subject=Vedr.", 18026), true) 1245 1246 #line 295 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1247 , Tuple.Create(Tuple.Create(" ", 18040), Tuple.Create<System.Object, System.Int32>(item.Name 1248 1249 #line default 1250 #line hidden 1251 , 18041), false) 1252 , Tuple.Create(Tuple.Create(" ", 18051), Tuple.Create("", 18051), true) 1253 ); 1254 1255 WriteLiteralTo(__razor_helper_writer, ">"); 1256 1257 1258 #line 295 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1259 WriteTo(__razor_helper_writer, usersProjectParticipant.Email); 1260 1261 1262 #line default 1263 #line hidden 1264 WriteLiteralTo(__razor_helper_writer, "</a> </p>\r\n"); 1265 1266 1267 #line 296 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1268 } 1269 1270 1271 #line default 1272 #line hidden 1273 WriteLiteralTo(__razor_helper_writer, " </div>\r\n " + 1274 " </div>\r\n </div>\r\n " + 1275 " </div>\r\n"); 1276 1277 1278 #line 301 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1279 } 1280 } 1281 1282 1283 #line default 1284 #line hidden 1285 WriteLiteralTo(__razor_helper_writer, "\r\n <div"); 1286 1287 WriteLiteralTo(__razor_helper_writer, " class=\"content-row__item dw-mod\""); 1288 1289 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 1290 1291 WriteLiteralTo(__razor_helper_writer, " class=\"content-row__item__body dw-mod\""); 1292 1293 WriteLiteralTo(__razor_helper_writer, ">\r\n </div>\r\n </div>\r\n </" + 1294 "div>\r\n </div>\r\n </div>"); 1295 1296 1297 #line 310 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1298 } 1299 1300 1301 #line default 1302 #line hidden 1303 }); 1304 1305 #line 311 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1306 } 1307 #line default 1308 #line hidden 1309 1310 1311 #line 313 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1312 public RazorEngine.Templating.TemplateWriter Render404() 1313 { 1314 #line default 1315 #line hidden 1316 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1317 1318 #line 314 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1319 1320 1321 1322 #line default 1323 #line hidden 1324 WriteLiteralTo(__razor_helper_writer, " <script>\r\n window.location.replace(\""); 1325 1326 1327 #line 316 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1328 WriteTo(__razor_helper_writer, jobUrl); 1329 1330 1331 #line default 1332 #line hidden 1333 WriteLiteralTo(__razor_helper_writer, "\");\r\n </script>\r\n"); 1334 1335 1336 #line 318 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1337 1338 1339 #line default 1340 #line hidden 1341 }); 1342 1343 #line 318 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1344 } 1345 #line default 1346 #line hidden 1347 1348 1349 #line 333 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1350 public RazorEngine.Templating.TemplateWriter RenderBlockList(List<Block> blocks) 1351 { 1352 #line default 1353 #line hidden 1354 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1355 1356 #line 334 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1357 1358 bool debug = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("debug")) ? Convert.ToBoolean(HttpContext.Current.Request.QueryString.Get("debug")) : false; 1359 blocks = blocks.OrderBy(item => item.SortId).ToList(); 1360 1361 foreach (Block item in blocks) 1362 { 1363 if (debug) { 1364 1365 1366 #line default 1367 #line hidden 1368 WriteLiteralTo(__razor_helper_writer, " <!-- Block START: "); 1369 1370 1371 #line 341 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1372 WriteTo(__razor_helper_writer, item.Id); 1373 1374 1375 #line default 1376 #line hidden 1377 WriteLiteralTo(__razor_helper_writer, " -->\r\n"); 1378 1379 1380 #line 342 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1381 } 1382 1383 if (item.Design == null) 1384 { 1385 1386 1387 #line default 1388 #line hidden 1389 1390 #line 346 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1391 WriteTo(__razor_helper_writer, RenderBlock(item)); 1392 1393 1394 #line default 1395 #line hidden 1396 1397 #line 346 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1398 1399 } 1400 else if (item.Design.RenderType == RenderType.None) { 1401 string cssClass = item.Design.CssClass != null ? item.Design.CssClass : ""; 1402 1403 1404 1405 #line default 1406 #line hidden 1407 WriteLiteralTo(__razor_helper_writer, " <div"); 1408 1409 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 19822), Tuple.Create("\"", 19846) 1410 1411 #line 351 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1412 , Tuple.Create(Tuple.Create("", 19830), Tuple.Create<System.Object, System.Int32>(cssClass 1413 1414 #line default 1415 #line hidden 1416 , 19830), false) 1417 , Tuple.Create(Tuple.Create(" ", 19839), Tuple.Create("dw-mod", 19840), true) 1418 ); 1419 1420 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1421 1422 WriteLiteralTo(__razor_helper_writer, " "); 1423 1424 1425 #line 352 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1426 WriteTo(__razor_helper_writer, RenderBlock(item)); 1427 1428 1429 #line default 1430 #line hidden 1431 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 1432 1433 1434 #line 354 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1435 } 1436 else if (item.Design.RenderType != RenderType.Hide) 1437 { 1438 string cssClass = item.Design.CssClass != null ? item.Design.CssClass : ""; 1439 1440 if (!item.SkipRenderBlocksList) { 1441 if (item.Design.RenderType == RenderType.Row) 1442 { 1443 1444 1445 #line default 1446 #line hidden 1447 WriteLiteralTo(__razor_helper_writer, " <div"); 1448 1449 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 20232), Tuple.Create("\"", 20287) 1450 , Tuple.Create(Tuple.Create("", 20240), Tuple.Create("grid", 20240), true) 1451 , Tuple.Create(Tuple.Create(" ", 20244), Tuple.Create("grid--align-content-start", 20245), true) 1452 1453 #line 362 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1454 , Tuple.Create(Tuple.Create(" ", 20270), Tuple.Create<System.Object, System.Int32>(cssClass 1455 1456 #line default 1457 #line hidden 1458 , 20271), false) 1459 , Tuple.Create(Tuple.Create(" ", 20280), Tuple.Create("dw-mod", 20281), true) 1460 ); 1461 1462 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 20288), Tuple.Create("\"", 20308) 1463 , Tuple.Create(Tuple.Create("", 20293), Tuple.Create("Block__", 20293), true) 1464 1465 #line 362 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1466 , Tuple.Create(Tuple.Create("", 20300), Tuple.Create<System.Object, System.Int32>(item.Id 1467 1468 #line default 1469 #line hidden 1470 , 20300), false) 1471 ); 1472 1473 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1474 1475 WriteLiteralTo(__razor_helper_writer, " "); 1476 1477 1478 #line 363 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1479 WriteTo(__razor_helper_writer, RenderBlock(item)); 1480 1481 1482 #line default 1483 #line hidden 1484 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 1485 1486 1487 #line 365 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1488 } 1489 1490 if (item.Design.RenderType == RenderType.Column) 1491 { 1492 string hidePadding = item.Design.HidePadding ? "u-no-padding" : ""; 1493 string size = item.Design.Size ?? "12"; 1494 size = Regex.IsMatch(size, @"\d") ? "md-" + item.Design.Size : item.Design.Size; 1495 1496 1497 1498 #line default 1499 #line hidden 1500 WriteLiteralTo(__razor_helper_writer, " <div"); 1501 1502 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 20768), Tuple.Create("\"", 20899) 1503 , Tuple.Create(Tuple.Create("", 20776), Tuple.Create("grid__col-lg-", 20776), true) 1504 1505 #line 373 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1506 , Tuple.Create(Tuple.Create("", 20789), Tuple.Create<System.Object, System.Int32>(item.Design.Size 1507 1508 #line default 1509 #line hidden 1510 , 20789), false) 1511 , Tuple.Create(Tuple.Create(" ", 20806), Tuple.Create("grid__col-md-", 20807), true) 1512 1513 #line 373 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1514 , Tuple.Create(Tuple.Create("", 20820), Tuple.Create<System.Object, System.Int32>(item.Design.Size 1515 1516 #line default 1517 #line hidden 1518 , 20820), false) 1519 , Tuple.Create(Tuple.Create(" ", 20837), Tuple.Create("grid__col-sm-12", 20838), true) 1520 , Tuple.Create(Tuple.Create(" ", 20853), Tuple.Create("grid__col-xs-12", 20854), true) 1521 1522 #line 373 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1523 , Tuple.Create(Tuple.Create(" ", 20869), Tuple.Create<System.Object, System.Int32>(hidePadding 1524 1525 #line default 1526 #line hidden 1527 , 20870), false) 1528 1529 #line 373 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1530 , Tuple.Create(Tuple.Create(" ", 20882), Tuple.Create<System.Object, System.Int32>(cssClass 1531 1532 #line default 1533 #line hidden 1534 , 20883), false) 1535 , Tuple.Create(Tuple.Create(" ", 20892), Tuple.Create("dw-mod", 20893), true) 1536 ); 1537 1538 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 20900), Tuple.Create("\"", 20920) 1539 , Tuple.Create(Tuple.Create("", 20905), Tuple.Create("Block__", 20905), true) 1540 1541 #line 373 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1542 , Tuple.Create(Tuple.Create("", 20912), Tuple.Create<System.Object, System.Int32>(item.Id 1543 1544 #line default 1545 #line hidden 1546 , 20912), false) 1547 ); 1548 1549 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1550 1551 WriteLiteralTo(__razor_helper_writer, " "); 1552 1553 1554 #line 374 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1555 WriteTo(__razor_helper_writer, RenderBlock(item)); 1556 1557 1558 #line default 1559 #line hidden 1560 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 1561 1562 1563 #line 376 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1564 } 1565 1566 if (item.Design.RenderType == RenderType.Table) 1567 { 1568 1569 1570 #line default 1571 #line hidden 1572 WriteLiteralTo(__razor_helper_writer, " <table"); 1573 1574 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 21127), Tuple.Create("\"", 21157) 1575 , Tuple.Create(Tuple.Create("", 21135), Tuple.Create("table", 21135), true) 1576 1577 #line 380 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1578 , Tuple.Create(Tuple.Create(" ", 21140), Tuple.Create<System.Object, System.Int32>(cssClass 1579 1580 #line default 1581 #line hidden 1582 , 21141), false) 1583 , Tuple.Create(Tuple.Create(" ", 21150), Tuple.Create("dw-mod", 21151), true) 1584 ); 1585 1586 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 21158), Tuple.Create("\"", 21178) 1587 , Tuple.Create(Tuple.Create("", 21163), Tuple.Create("Block__", 21163), true) 1588 1589 #line 380 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1590 , Tuple.Create(Tuple.Create("", 21170), Tuple.Create<System.Object, System.Int32>(item.Id 1591 1592 #line default 1593 #line hidden 1594 , 21170), false) 1595 ); 1596 1597 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1598 1599 WriteLiteralTo(__razor_helper_writer, " "); 1600 1601 1602 #line 381 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1603 WriteTo(__razor_helper_writer, RenderBlock(item)); 1604 1605 1606 #line default 1607 #line hidden 1608 WriteLiteralTo(__razor_helper_writer, "\r\n </table>\r\n"); 1609 1610 1611 #line 383 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1612 } 1613 1614 if (item.Design.RenderType == RenderType.TableRow) 1615 { 1616 1617 1618 #line default 1619 #line hidden 1620 WriteLiteralTo(__razor_helper_writer, " <tr"); 1621 1622 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 21387), Tuple.Create("\"", 21411) 1623 1624 #line 387 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1625 , Tuple.Create(Tuple.Create("", 21395), Tuple.Create<System.Object, System.Int32>(cssClass 1626 1627 #line default 1628 #line hidden 1629 , 21395), false) 1630 , Tuple.Create(Tuple.Create(" ", 21404), Tuple.Create("dw-mod", 21405), true) 1631 ); 1632 1633 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 21412), Tuple.Create("\"", 21432) 1634 , Tuple.Create(Tuple.Create("", 21417), Tuple.Create("Block__", 21417), true) 1635 1636 #line 387 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1637 , Tuple.Create(Tuple.Create("", 21424), Tuple.Create<System.Object, System.Int32>(item.Id 1638 1639 #line default 1640 #line hidden 1641 , 21424), false) 1642 ); 1643 1644 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1645 1646 WriteLiteralTo(__razor_helper_writer, " "); 1647 1648 1649 #line 388 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1650 WriteTo(__razor_helper_writer, RenderBlock(item)); 1651 1652 1653 #line default 1654 #line hidden 1655 WriteLiteralTo(__razor_helper_writer, "\r\n </tr>\r\n"); 1656 1657 1658 #line 390 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1659 } 1660 1661 if (item.Design.RenderType == RenderType.TableColumn) 1662 { 1663 1664 1665 #line default 1666 #line hidden 1667 WriteLiteralTo(__razor_helper_writer, " <td"); 1668 1669 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 21641), Tuple.Create("\"", 21665) 1670 1671 #line 394 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1672 , Tuple.Create(Tuple.Create("", 21649), Tuple.Create<System.Object, System.Int32>(cssClass 1673 1674 #line default 1675 #line hidden 1676 , 21649), false) 1677 , Tuple.Create(Tuple.Create(" ", 21658), Tuple.Create("dw-mod", 21659), true) 1678 ); 1679 1680 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 21666), Tuple.Create("\"", 21686) 1681 , Tuple.Create(Tuple.Create("", 21671), Tuple.Create("Block__", 21671), true) 1682 1683 #line 394 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1684 , Tuple.Create(Tuple.Create("", 21678), Tuple.Create<System.Object, System.Int32>(item.Id 1685 1686 #line default 1687 #line hidden 1688 , 21678), false) 1689 ); 1690 1691 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1692 1693 WriteLiteralTo(__razor_helper_writer, " "); 1694 1695 1696 #line 395 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1697 WriteTo(__razor_helper_writer, RenderBlock(item)); 1698 1699 1700 #line default 1701 #line hidden 1702 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n"); 1703 1704 1705 #line 397 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1706 } 1707 1708 if (item.Design.RenderType == RenderType.CardHeader) 1709 { 1710 1711 1712 #line default 1713 #line hidden 1714 WriteLiteralTo(__razor_helper_writer, " <div"); 1715 1716 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 21895), Tuple.Create("\"", 21931) 1717 , Tuple.Create(Tuple.Create("", 21903), Tuple.Create("card-header", 21903), true) 1718 1719 #line 401 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1720 , Tuple.Create(Tuple.Create(" ", 21914), Tuple.Create<System.Object, System.Int32>(cssClass 1721 1722 #line default 1723 #line hidden 1724 , 21915), false) 1725 , Tuple.Create(Tuple.Create(" ", 21924), Tuple.Create("dw-mod", 21925), true) 1726 ); 1727 1728 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1729 1730 WriteLiteralTo(__razor_helper_writer, " "); 1731 1732 1733 #line 402 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1734 WriteTo(__razor_helper_writer, RenderBlock(item)); 1735 1736 1737 #line default 1738 #line hidden 1739 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 1740 1741 1742 #line 404 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1743 } 1744 1745 if (item.Design.RenderType == RenderType.CardBody) 1746 { 1747 1748 1749 #line default 1750 #line hidden 1751 WriteLiteralTo(__razor_helper_writer, " <div"); 1752 1753 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 22139), Tuple.Create("\"", 22168) 1754 , Tuple.Create(Tuple.Create("", 22147), Tuple.Create("card", 22147), true) 1755 1756 #line 408 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1757 , Tuple.Create(Tuple.Create(" ", 22151), Tuple.Create<System.Object, System.Int32>(cssClass 1758 1759 #line default 1760 #line hidden 1761 , 22152), false) 1762 , Tuple.Create(Tuple.Create(" ", 22161), Tuple.Create("dw-mod", 22162), true) 1763 ); 1764 1765 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1766 1767 WriteLiteralTo(__razor_helper_writer, " "); 1768 1769 1770 #line 409 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1771 WriteTo(__razor_helper_writer, RenderBlock(item)); 1772 1773 1774 #line default 1775 #line hidden 1776 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 1777 1778 1779 #line 411 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1780 } 1781 1782 if (item.Design.RenderType == RenderType.CardFooter) 1783 { 1784 1785 1786 #line default 1787 #line hidden 1788 WriteLiteralTo(__razor_helper_writer, " <div"); 1789 1790 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 22378), Tuple.Create("\"", 22414) 1791 , Tuple.Create(Tuple.Create("", 22386), Tuple.Create("card-footer", 22386), true) 1792 1793 #line 415 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1794 , Tuple.Create(Tuple.Create(" ", 22397), Tuple.Create<System.Object, System.Int32>(cssClass 1795 1796 #line default 1797 #line hidden 1798 , 22398), false) 1799 , Tuple.Create(Tuple.Create(" ", 22407), Tuple.Create("dw-mod", 22408), true) 1800 ); 1801 1802 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1803 1804 WriteLiteralTo(__razor_helper_writer, " "); 1805 1806 1807 #line 416 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1808 WriteTo(__razor_helper_writer, RenderBlock(item)); 1809 1810 1811 #line default 1812 #line hidden 1813 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 1814 1815 1816 #line 418 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1817 } 1818 } 1819 else 1820 { 1821 1822 1823 #line default 1824 #line hidden 1825 1826 #line 422 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1827 WriteTo(__razor_helper_writer, RenderBlock(item)); 1828 1829 1830 #line default 1831 #line hidden 1832 1833 #line 422 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1834 1835 } 1836 } 1837 1838 if (debug) { 1839 1840 1841 #line default 1842 #line hidden 1843 WriteLiteralTo(__razor_helper_writer, " <!-- Block END: "); 1844 1845 1846 #line 427 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1847 WriteTo(__razor_helper_writer, item.Id); 1848 1849 1850 #line default 1851 #line hidden 1852 WriteLiteralTo(__razor_helper_writer, " -->\r\n"); 1853 1854 1855 #line 428 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1856 } 1857 } 1858 1859 1860 #line default 1861 #line hidden 1862 }); 1863 1864 #line 430 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1865 } 1866 #line default 1867 #line hidden 1868 1869 1870 #line 432 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1871 public RazorEngine.Templating.TemplateWriter RenderBlock(Block item) 1872 { 1873 #line default 1874 #line hidden 1875 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1876 1877 #line 433 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1878 1879 bool debug = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("debug")) ? Convert.ToBoolean(HttpContext.Current.Request.QueryString.Get("debug")) : false; 1880 1881 if (item.Template != null) 1882 { 1883 1884 1885 #line default 1886 #line hidden 1887 1888 #line 438 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1889 WriteTo(__razor_helper_writer, BlocksPage.RenderTemplate(item.Template)); 1890 1891 1892 #line default 1893 #line hidden 1894 1895 #line 438 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1896 1897 } 1898 1899 if (item.Component != null) 1900 { 1901 string customSufix = "Custom"; 1902 string methodName = item.Component.HelperName; 1903 1904 ComponentBase[] methodParameters = new ComponentBase[1]; 1905 methodParameters[0] = item.Component; 1906 Type methodType = this.GetType(); 1907 1908 MethodInfo customMethod = methodType.GetMethod(methodName + customSufix); 1909 MethodInfo generalMethod = methodType.GetMethod(methodName); 1910 1911 try { 1912 if (debug) { 1913 1914 1915 #line default 1916 #line hidden 1917 WriteLiteralTo(__razor_helper_writer, " <!-- Component: "); 1918 1919 1920 #line 455 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1921 WriteTo(__razor_helper_writer, methodName.Replace("Render", "")); 1922 1923 1924 #line default 1925 #line hidden 1926 WriteLiteralTo(__razor_helper_writer, " -->\r\n"); 1927 1928 1929 #line 456 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1930 } 1931 1932 1933 #line default 1934 #line hidden 1935 1936 #line 457 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1937 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 1938 1939 1940 #line default 1941 #line hidden 1942 1943 #line 457 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1944 ; 1945 } catch { 1946 try { 1947 1948 1949 #line default 1950 #line hidden 1951 1952 #line 460 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1953 WriteTo(__razor_helper_writer, generalMethod.Invoke(this, methodParameters).ToString()); 1954 1955 1956 #line default 1957 #line hidden 1958 1959 #line 460 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1960 ; 1961 } catch(Exception ex) { 1962 throw new Exception(item.Component.GetType().Name + " method '" + methodName +"' could not be invoked", ex); 1963 } 1964 } 1965 } 1966 1967 if (item.BlocksList.Count > 0 && !item.SkipRenderBlocksList) 1968 { 1969 1970 1971 #line default 1972 #line hidden 1973 1974 #line 469 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1975 WriteTo(__razor_helper_writer, RenderBlockList(item.BlocksList)); 1976 1977 1978 #line default 1979 #line hidden 1980 1981 #line 469 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1982 1983 } 1984 1985 1986 #line default 1987 #line hidden 1988 }); 1989 1990 #line 471 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1991 } 1992 #line default 1993 #line hidden 1994 1995 1996 #line 486 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 1997 public RazorEngine.Templating.TemplateWriter Render(ComponentBase component) 1998 { 1999 #line default 2000 #line hidden 2001 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2002 2003 #line 487 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2004 2005 if (component != null) 2006 { 2007 2008 2009 #line default 2010 #line hidden 2011 2012 #line 490 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2013 WriteTo(__razor_helper_writer, component.Render(this)); 2014 2015 2016 #line default 2017 #line hidden 2018 2019 #line 490 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2020 2021 } 2022 2023 2024 #line default 2025 #line hidden 2026 }); 2027 2028 #line 492 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2029 } 2030 #line default 2031 #line hidden 2032 2033 2034 #line 501 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2035 public RazorEngine.Templating.TemplateWriter RenderIcon(Icon settings) 2036 { 2037 #line default 2038 #line hidden 2039 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2040 2041 #line 502 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2042 2043 if (settings != null) 2044 { 2045 string color = settings.Color != null ? "style=\"color: " + settings.Color + "\"" : ""; 2046 2047 if (settings.Name != null) 2048 { 2049 if (string.IsNullOrEmpty(settings.Label)) 2050 { 2051 2052 2053 #line default 2054 #line hidden 2055 WriteLiteralTo(__razor_helper_writer, " <i"); 2056 2057 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 24992), Tuple.Create("\"", 25050) 2058 2059 #line 511 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2060 , Tuple.Create(Tuple.Create("", 25000), Tuple.Create<System.Object, System.Int32>(settings.Prefix 2061 2062 #line default 2063 #line hidden 2064 , 25000), false) 2065 2066 #line 511 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2067 , Tuple.Create(Tuple.Create(" ", 25016), Tuple.Create<System.Object, System.Int32>(settings.Name 2068 2069 #line default 2070 #line hidden 2071 , 25017), false) 2072 2073 #line 511 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2074 , Tuple.Create(Tuple.Create(" ", 25031), Tuple.Create<System.Object, System.Int32>(settings.CssClass 2075 2076 #line default 2077 #line hidden 2078 , 25032), false) 2079 ); 2080 2081 WriteLiteralTo(__razor_helper_writer, " "); 2082 2083 2084 #line 511 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2085 WriteTo(__razor_helper_writer, color); 2086 2087 2088 #line default 2089 #line hidden 2090 WriteLiteralTo(__razor_helper_writer, "></i>\r\n"); 2091 2092 2093 #line 512 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2094 } 2095 else 2096 { 2097 if (settings.LabelPosition == IconLabelPosition.Before) 2098 { 2099 2100 2101 #line default 2102 #line hidden 2103 WriteLiteralTo(__razor_helper_writer, " <div"); 2104 2105 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 25229), Tuple.Create("\"", 25289) 2106 , Tuple.Create(Tuple.Create("", 25237), Tuple.Create("u-flex", 25237), true) 2107 , Tuple.Create(Tuple.Create(" ", 25243), Tuple.Create("u-flex--align-items-center", 25244), true) 2108 2109 #line 517 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2110 , Tuple.Create(Tuple.Create(" ", 25270), Tuple.Create<System.Object, System.Int32>(settings.CssClass 2111 2112 #line default 2113 #line hidden 2114 , 25271), false) 2115 ); 2116 2117 WriteLiteralTo(__razor_helper_writer, ">"); 2118 2119 2120 #line 517 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2121 WriteTo(__razor_helper_writer, settings.Label); 2122 2123 2124 #line default 2125 #line hidden 2126 WriteLiteralTo(__razor_helper_writer, " <i"); 2127 2128 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 25309), Tuple.Create("\"", 25362) 2129 2130 #line 517 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2131 , Tuple.Create(Tuple.Create("", 25317), Tuple.Create<System.Object, System.Int32>(settings.Prefix 2132 2133 #line default 2134 #line hidden 2135 , 25317), false) 2136 2137 #line 517 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2138 , Tuple.Create(Tuple.Create(" ", 25333), Tuple.Create<System.Object, System.Int32>(settings.Name 2139 2140 #line default 2141 #line hidden 2142 , 25334), false) 2143 , Tuple.Create(Tuple.Create(" ", 25348), Tuple.Create("u-margin-left", 25349), true) 2144 ); 2145 2146 WriteLiteralTo(__razor_helper_writer, " "); 2147 2148 2149 #line 517 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2150 WriteTo(__razor_helper_writer, color); 2151 2152 2153 #line default 2154 #line hidden 2155 WriteLiteralTo(__razor_helper_writer, "></i></div>\r\n"); 2156 2157 2158 #line 518 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2159 } 2160 else 2161 { 2162 2163 2164 #line default 2165 #line hidden 2166 WriteLiteralTo(__razor_helper_writer, " <div"); 2167 2168 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 25467), Tuple.Create("\"", 25527) 2169 , Tuple.Create(Tuple.Create("", 25475), Tuple.Create("u-flex", 25475), true) 2170 , Tuple.Create(Tuple.Create(" ", 25481), Tuple.Create("u-flex--align-items-center", 25482), true) 2171 2172 #line 521 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2173 , Tuple.Create(Tuple.Create(" ", 25508), Tuple.Create<System.Object, System.Int32>(settings.CssClass 2174 2175 #line default 2176 #line hidden 2177 , 25509), false) 2178 ); 2179 2180 WriteLiteralTo(__razor_helper_writer, "><i"); 2181 2182 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 25531), Tuple.Create("\"", 25597) 2183 2184 #line 521 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2185 , Tuple.Create(Tuple.Create("", 25539), Tuple.Create<System.Object, System.Int32>(settings.Prefix 2186 2187 #line default 2188 #line hidden 2189 , 25539), false) 2190 2191 #line 521 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2192 , Tuple.Create(Tuple.Create(" ", 25555), Tuple.Create<System.Object, System.Int32>(settings.Name 2193 2194 #line default 2195 #line hidden 2196 , 25556), false) 2197 , Tuple.Create(Tuple.Create(" ", 25570), Tuple.Create("u-margin-right--lg", 25571), true) 2198 , Tuple.Create(Tuple.Create(" ", 25589), Tuple.Create("u-w20px", 25590), true) 2199 ); 2200 2201 WriteLiteralTo(__razor_helper_writer, " "); 2202 2203 2204 #line 521 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2205 WriteTo(__razor_helper_writer, color); 2206 2207 2208 #line default 2209 #line hidden 2210 WriteLiteralTo(__razor_helper_writer, "></i>"); 2211 2212 2213 #line 521 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2214 WriteTo(__razor_helper_writer, settings.Label); 2215 2216 2217 #line default 2218 #line hidden 2219 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 2220 2221 2222 #line 522 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2223 } 2224 } 2225 } 2226 else if (!string.IsNullOrEmpty(settings.Label)) 2227 { 2228 2229 2230 #line default 2231 #line hidden 2232 2233 #line 527 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2234 WriteTo(__razor_helper_writer, settings.Label); 2235 2236 2237 #line default 2238 #line hidden 2239 2240 #line 527 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2241 2242 } 2243 } 2244 2245 2246 #line default 2247 #line hidden 2248 }); 2249 2250 #line 530 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2251 } 2252 #line default 2253 #line hidden 2254 2255 2256 #line 538 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2257 public RazorEngine.Templating.TemplateWriter RenderButton(Button settings) 2258 { 2259 #line default 2260 #line hidden 2261 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2262 2263 #line 539 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2264 2265 if (settings != null && (!string.IsNullOrEmpty(settings.Title) || settings.Icon != null)) 2266 { 2267 Dictionary<string, string> attributes = new Dictionary<string, string>(); 2268 List<string> classList = settings.CssClass != null ? settings.CssClass.Split(' ').ToList() : new List<string>(); 2269 if (settings.Disabled) { 2270 attributes.Add("disabled", "true"); 2271 classList.Add("disabled"); 2272 } 2273 2274 if (!string.IsNullOrEmpty(settings.ConfirmText) || !string.IsNullOrEmpty(settings.ConfirmTitle)) 2275 { 2276 settings.Id = !string.IsNullOrEmpty(settings.Id) ? settings.Id : Guid.NewGuid().ToString("N"); 2277 2278 2279 #line default 2280 #line hidden 2281 2282 #line 552 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2283 WriteTo(__razor_helper_writer, RenderConfirmDialog(settings)); 2284 2285 2286 #line default 2287 #line hidden 2288 2289 #line 552 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2290 ; 2291 settings.OnClick = "document.getElementById('" + settings.Id + "ModalTrigger').checked = true"; 2292 } 2293 2294 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 2295 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 2296 if (!string.IsNullOrEmpty(settings.AltText)) 2297 { 2298 attributes.Add("title", settings.AltText); 2299 } 2300 else if (!string.IsNullOrEmpty(settings.Title)) 2301 { 2302 attributes.Add("title", settings.Title); 2303 } 2304 2305 var onClickEvents = new List<string>(); 2306 if (!string.IsNullOrEmpty(settings.OnClick)) 2307 { 2308 onClickEvents.Add(settings.OnClick); 2309 } 2310 if (!string.IsNullOrEmpty(settings.Href)) 2311 { 2312 onClickEvents.Add("location.href='" + settings.Href + "'"); 2313 } 2314 if (onClickEvents.Count > 0) 2315 { 2316 attributes.Add("onClick", string.Join(";", onClickEvents)); 2317 } 2318 2319 if (settings.ButtonLayout != ButtonLayout.None) 2320 { 2321 classList.Add("btn"); 2322 string btnLayout = Enum.GetName(typeof(ButtonLayout), settings.ButtonLayout).ToLower(); 2323 if (btnLayout == "linkclean") 2324 { 2325 btnLayout = "link-clean"; //fix 2326 } 2327 classList.Add("btn--" + btnLayout); 2328 } 2329 2330 if (settings.Icon == null) 2331 { 2332 settings.Icon = new Icon(); 2333 } 2334 2335 settings.Icon.CssClass += Enum.GetName(typeof(ButtonLayout), settings.ButtonLayout).ToLower() != "linkclean" ? " u-flex--align-center" : ""; 2336 settings.Icon.Label = settings.Title; 2337 2338 attributes.Add("type", Enum.GetName(typeof(ButtonType), settings.ButtonType).ToLower()); 2339 2340 2341 2342 #line default 2343 #line hidden 2344 WriteLiteralTo(__razor_helper_writer, " <button"); 2345 2346 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 28412), Tuple.Create("\"", 28455) 2347 2348 #line 602 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2349 , Tuple.Create(Tuple.Create("", 28420), Tuple.Create<System.Object, System.Int32>(string.Join(" ", classList) 2350 2351 #line default 2352 #line hidden 2353 , 28420), false) 2354 , Tuple.Create(Tuple.Create(" ", 28448), Tuple.Create("dw-mod", 28449), true) 2355 ); 2356 2357 WriteLiteralTo(__razor_helper_writer, " "); 2358 2359 2360 #line 602 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2361 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes)); 2362 2363 2364 #line default 2365 #line hidden 2366 WriteLiteralTo(__razor_helper_writer, " "); 2367 2368 2369 #line 602 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2370 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 2371 2372 2373 #line default 2374 #line hidden 2375 WriteLiteralTo(__razor_helper_writer, ">"); 2376 2377 2378 #line 602 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2379 WriteTo(__razor_helper_writer, Render(settings.Icon)); 2380 2381 2382 #line default 2383 #line hidden 2384 WriteLiteralTo(__razor_helper_writer, "</button>\r\n"); 2385 2386 2387 #line 603 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2388 } 2389 2390 2391 #line default 2392 #line hidden 2393 }); 2394 2395 #line 604 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2396 } 2397 #line default 2398 #line hidden 2399 2400 2401 #line 606 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2402 public RazorEngine.Templating.TemplateWriter RenderConfirmDialog(Button settings) 2403 { 2404 #line default 2405 #line hidden 2406 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2407 2408 #line 607 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2409 2410 Modal confirmDialog = new Modal { 2411 Id = settings.Id, 2412 Width = ModalWidth.Sm, 2413 Heading = new Heading 2414 { 2415 Level = 2, 2416 Title = settings.ConfirmTitle 2417 }, 2418 BodyText = settings.ConfirmText 2419 }; 2420 2421 confirmDialog.AddAction(new Button { Title = Translate("Cancel"), ButtonLayout = ButtonLayout.Secondary, OnClick = "document.getElementById('" + settings.Id + "ModalTrigger').checked = false"}); 2422 confirmDialog.AddAction(new Button { Title = Translate("OK"), ButtonLayout = ButtonLayout.Primary, OnClick = "document.getElementById('" + settings.Id + "ModalTrigger').checked = false;" + settings.OnClick }); 2423 2424 2425 2426 #line default 2427 #line hidden 2428 2429 #line 622 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2430 WriteTo(__razor_helper_writer, Render(confirmDialog)); 2431 2432 2433 #line default 2434 #line hidden 2435 2436 #line 622 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2437 2438 2439 2440 #line default 2441 #line hidden 2442 }); 2443 2444 #line 623 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2445 } 2446 #line default 2447 #line hidden 2448 2449 2450 #line 628 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2451 public RazorEngine.Templating.TemplateWriter RenderDashboard(Dashboard settings) 2452 { 2453 #line default 2454 #line hidden 2455 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2456 2457 #line 629 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2458 2459 var widgets = settings.GetWidgets(); 2460 2461 if (!string.IsNullOrEmpty(settings.WidgetsBaseBackgroundColor)) 2462 { 2463 //set bg color for them 2464 2465 System.Drawing.Color color = System.Drawing.ColorTranslator.FromHtml(settings.WidgetsBaseBackgroundColor); 2466 int r = Convert.ToInt16(color.R); 2467 int g = Convert.ToInt16(color.G); 2468 int b = Convert.ToInt16(color.B); 2469 2470 var count = widgets.Length; 2471 var max = Math.Max(r, Math.Max(g, b)); 2472 double step = 255.0 / (max * count); 2473 var i = 0; 2474 foreach (var widget in widgets) 2475 { 2476 i++; 2477 2478 var shade = "rgb(" + Converter.ToString(r * step * i).Replace(",", ".") + ", " + Converter.ToString(g * step * i).Replace(",", ".") + ", " + Converter.ToString(b * step * i).Replace(",", ".") + ")"; 2479 widget.BackgroundColor = shade; 2480 } 2481 } 2482 2483 2484 2485 #line default 2486 #line hidden 2487 WriteLiteralTo(__razor_helper_writer, " <div"); 2488 2489 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 30451), Tuple.Create("\"", 30494) 2490 , Tuple.Create(Tuple.Create("", 30459), Tuple.Create("dashboard", 30459), true) 2491 2492 #line 654 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2493 , Tuple.Create(Tuple.Create(" ", 30468), Tuple.Create<System.Object, System.Int32>(settings.CssClass 2494 2495 #line default 2496 #line hidden 2497 , 30469), false) 2498 , Tuple.Create(Tuple.Create(" ", 30487), Tuple.Create("dw-mod", 30488), true) 2499 ); 2500 2501 WriteLiteralTo(__razor_helper_writer, " "); 2502 2503 2504 #line 654 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2505 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 2506 2507 2508 #line default 2509 #line hidden 2510 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2511 2512 2513 #line 655 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2514 2515 2516 #line default 2517 #line hidden 2518 2519 #line 655 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2520 foreach (var widget in widgets) 2521 { 2522 2523 2524 #line default 2525 #line hidden 2526 WriteLiteralTo(__razor_helper_writer, " <div"); 2527 2528 WriteLiteralTo(__razor_helper_writer, " class=\"dashboard__widget\""); 2529 2530 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2531 2532 WriteLiteralTo(__razor_helper_writer, " "); 2533 2534 2535 #line 658 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2536 WriteTo(__razor_helper_writer, Render(widget)); 2537 2538 2539 #line default 2540 #line hidden 2541 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 2542 2543 2544 #line 660 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2545 } 2546 2547 2548 #line default 2549 #line hidden 2550 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 2551 2552 2553 #line 662 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2554 2555 2556 #line default 2557 #line hidden 2558 }); 2559 2560 #line 662 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2561 } 2562 #line default 2563 #line hidden 2564 2565 2566 #line 666 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2567 public RazorEngine.Templating.TemplateWriter RenderDashboardWidgetLink(DashboardWidgetLink settings) 2568 { 2569 #line default 2570 #line hidden 2571 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2572 2573 #line 667 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2574 2575 if (!string.IsNullOrEmpty(settings.Link)) 2576 { 2577 var backgroundStyles = ""; 2578 if (!string.IsNullOrEmpty(settings.BackgroundColor)) 2579 { 2580 backgroundStyles = "style=\"background-color:" + settings.BackgroundColor + "\""; 2581 } 2582 2583 2584 2585 #line default 2586 #line hidden 2587 WriteLiteralTo(__razor_helper_writer, " <a"); 2588 2589 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 31180), Tuple.Create("\"", 31201) 2590 2591 #line 676 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2592 , Tuple.Create(Tuple.Create("", 31187), Tuple.Create<System.Object, System.Int32>(settings.Link 2593 2594 #line default 2595 #line hidden 2596 , 31187), false) 2597 ); 2598 2599 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 31202), Tuple.Create("\"", 31255) 2600 , Tuple.Create(Tuple.Create("", 31210), Tuple.Create("widget", 31210), true) 2601 , Tuple.Create(Tuple.Create(" ", 31216), Tuple.Create("widget--link", 31217), true) 2602 2603 #line 676 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2604 , Tuple.Create(Tuple.Create(" ", 31229), Tuple.Create<System.Object, System.Int32>(settings.CssClass 2605 2606 #line default 2607 #line hidden 2608 , 31230), false) 2609 , Tuple.Create(Tuple.Create(" ", 31248), Tuple.Create("dw-mod", 31249), true) 2610 ); 2611 2612 WriteLiteralTo(__razor_helper_writer, " "); 2613 2614 2615 #line 676 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2616 WriteTo(__razor_helper_writer, backgroundStyles); 2617 2618 2619 #line default 2620 #line hidden 2621 WriteLiteralTo(__razor_helper_writer, " title=\""); 2622 2623 2624 #line 676 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2625 WriteTo(__razor_helper_writer, settings.Title); 2626 2627 2628 #line default 2629 #line hidden 2630 WriteLiteralTo(__razor_helper_writer, "\" "); 2631 2632 2633 #line 676 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2634 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 2635 2636 2637 #line default 2638 #line hidden 2639 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 2640 2641 WriteLiteralTo(__razor_helper_writer, " class=\"u-center-middle u-color-light\""); 2642 2643 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2644 2645 2646 #line 678 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2647 2648 2649 #line default 2650 #line hidden 2651 2652 #line 678 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2653 if (settings.Icon != null) 2654 { 2655 settings.Icon.CssClass += "widget__icon"; 2656 2657 2658 #line default 2659 #line hidden 2660 2661 #line 681 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2662 WriteTo(__razor_helper_writer, Render(settings.Icon)); 2663 2664 2665 #line default 2666 #line hidden 2667 2668 #line 681 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2669 2670 } 2671 2672 2673 #line default 2674 #line hidden 2675 WriteLiteralTo(__razor_helper_writer, " <div"); 2676 2677 WriteLiteralTo(__razor_helper_writer, " class=\"widget__title\""); 2678 2679 WriteLiteralTo(__razor_helper_writer, ">"); 2680 2681 2682 #line 683 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2683 WriteTo(__razor_helper_writer, settings.Title); 2684 2685 2686 #line default 2687 #line hidden 2688 WriteLiteralTo(__razor_helper_writer, "</div>\r\n </div>\r\n </a>\r\n"); 2689 2690 2691 #line 686 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2692 } 2693 2694 2695 #line default 2696 #line hidden 2697 }); 2698 2699 #line 687 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2700 } 2701 #line default 2702 #line hidden 2703 2704 2705 #line 691 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2706 public RazorEngine.Templating.TemplateWriter RenderDashboardWidgetCounter(DashboardWidgetCounter settings) 2707 { 2708 #line default 2709 #line hidden 2710 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2711 2712 #line 692 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2713 2714 var backgroundStyles = ""; 2715 if (!string.IsNullOrEmpty(settings.BackgroundColor)) 2716 { 2717 backgroundStyles = "style='background-color:" + settings.BackgroundColor + "'"; 2718 } 2719 2720 2721 2722 #line default 2723 #line hidden 2724 WriteLiteralTo(__razor_helper_writer, " <div"); 2725 2726 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 32091), Tuple.Create("\"", 32131) 2727 , Tuple.Create(Tuple.Create("", 32099), Tuple.Create("widget", 32099), true) 2728 2729 #line 699 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2730 , Tuple.Create(Tuple.Create(" ", 32105), Tuple.Create<System.Object, System.Int32>(settings.CssClass 2731 2732 #line default 2733 #line hidden 2734 , 32106), false) 2735 , Tuple.Create(Tuple.Create(" ", 32124), Tuple.Create("dw-mod", 32125), true) 2736 ); 2737 2738 WriteLiteralTo(__razor_helper_writer, " "); 2739 2740 2741 #line 699 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2742 WriteTo(__razor_helper_writer, backgroundStyles); 2743 2744 2745 #line default 2746 #line hidden 2747 WriteLiteralTo(__razor_helper_writer, " "); 2748 2749 2750 #line 699 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2751 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 2752 2753 2754 #line default 2755 #line hidden 2756 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 2757 2758 WriteLiteralTo(__razor_helper_writer, " class=\"u-center-middle u-color-light\""); 2759 2760 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2761 2762 2763 #line 701 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2764 2765 2766 #line default 2767 #line hidden 2768 2769 #line 701 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2770 if (settings.Icon != null) 2771 { 2772 settings.Icon.CssClass += "widget__icon"; 2773 2774 2775 #line default 2776 #line hidden 2777 2778 #line 704 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2779 WriteTo(__razor_helper_writer, Render(settings.Icon)); 2780 2781 2782 #line default 2783 #line hidden 2784 2785 #line 704 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2786 2787 } 2788 2789 2790 #line default 2791 #line hidden 2792 WriteLiteralTo(__razor_helper_writer, " <div"); 2793 2794 WriteLiteralTo(__razor_helper_writer, " class=\"widget__counter\""); 2795 2796 WriteLiteralTo(__razor_helper_writer, ">"); 2797 2798 2799 #line 706 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2800 WriteTo(__razor_helper_writer, settings.Count); 2801 2802 2803 #line default 2804 #line hidden 2805 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <div"); 2806 2807 WriteLiteralTo(__razor_helper_writer, " class=\"widget__title\""); 2808 2809 WriteLiteralTo(__razor_helper_writer, ">"); 2810 2811 2812 #line 707 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2813 WriteTo(__razor_helper_writer, settings.Title); 2814 2815 2816 #line default 2817 #line hidden 2818 WriteLiteralTo(__razor_helper_writer, "</div>\r\n </div>\r\n </div>\r\n"); 2819 2820 2821 #line 710 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2822 2823 2824 #line default 2825 #line hidden 2826 }); 2827 2828 #line 710 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2829 } 2830 #line default 2831 #line hidden 2832 2833 2834 #line 718 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2835 public RazorEngine.Templating.TemplateWriter RenderLink(Link settings) 2836 { 2837 #line default 2838 #line hidden 2839 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2840 2841 #line 719 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2842 2843 if (settings != null && !string.IsNullOrEmpty(settings.Href) && (!string.IsNullOrEmpty(settings.Title) || settings.Icon != null)) 2844 { 2845 Dictionary<string, string> attributes = new Dictionary<string, string>(); 2846 List<string> classList = settings.CssClass != null ? settings.CssClass.Split(' ').ToList() : new List<string>(); 2847 if (settings.Disabled) 2848 { 2849 attributes.Add("disabled", "true"); 2850 classList.Add("disabled"); 2851 } 2852 2853 if (!string.IsNullOrEmpty(settings.AltText)) 2854 { 2855 attributes.Add("title", settings.AltText); 2856 } 2857 else if (!string.IsNullOrEmpty(settings.Title)) 2858 { 2859 attributes.Add("title", settings.Title); 2860 } 2861 2862 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 2863 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 2864 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onClick", settings.OnClick); } 2865 attributes.Add("href", settings.Href); 2866 2867 if (settings.ButtonLayout != ButtonLayout.None) 2868 { 2869 classList.Add("btn"); 2870 string btnLayout = Enum.GetName(typeof(ButtonLayout), settings.ButtonLayout).ToLower(); 2871 if (btnLayout == "linkclean") 2872 { 2873 btnLayout = "link-clean"; //fix 2874 } 2875 classList.Add("btn--" + btnLayout); 2876 } 2877 2878 if (settings.Icon == null) 2879 { 2880 settings.Icon = new Icon(); 2881 } 2882 settings.Icon.Label = settings.Title; 2883 2884 if (settings.Target == LinkTargetType.Blank && settings.Rel == LinkRelType.None) 2885 { 2886 settings.Rel = LinkRelType.Noopener; 2887 } 2888 if (settings.Target != LinkTargetType.None) 2889 { 2890 attributes.Add("target", "_" + Enum.GetName(typeof(LinkTargetType), settings.Target).ToLower()); 2891 } 2892 if (settings.Download) 2893 { 2894 attributes.Add("download", "true"); 2895 } 2896 if (settings.Rel != LinkRelType.None) 2897 { 2898 attributes.Add("rel", Enum.GetName(typeof(LinkRelType), settings.Rel).ToLower()); 2899 } 2900 2901 2902 2903 #line default 2904 #line hidden 2905 WriteLiteralTo(__razor_helper_writer, " <a"); 2906 2907 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 35096), Tuple.Create("\"", 35139) 2908 2909 #line 778 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2910 , Tuple.Create(Tuple.Create("", 35104), Tuple.Create<System.Object, System.Int32>(string.Join(" ", classList) 2911 2912 #line default 2913 #line hidden 2914 , 35104), false) 2915 , Tuple.Create(Tuple.Create(" ", 35132), Tuple.Create("dw-mod", 35133), true) 2916 ); 2917 2918 WriteLiteralTo(__razor_helper_writer, " "); 2919 2920 2921 #line 778 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2922 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes)); 2923 2924 2925 #line default 2926 #line hidden 2927 WriteLiteralTo(__razor_helper_writer, " "); 2928 2929 2930 #line 778 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2931 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 2932 2933 2934 #line default 2935 #line hidden 2936 WriteLiteralTo(__razor_helper_writer, ">"); 2937 2938 2939 #line 778 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2940 WriteTo(__razor_helper_writer, Render(settings.Icon)); 2941 2942 2943 #line default 2944 #line hidden 2945 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 2946 2947 2948 #line 779 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2949 } 2950 2951 2952 #line default 2953 #line hidden 2954 }); 2955 2956 #line 780 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2957 } 2958 #line default 2959 #line hidden 2960 2961 2962 #line 789 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2963 public RazorEngine.Templating.TemplateWriter RenderRating(Rating settings) 2964 { 2965 #line default 2966 #line hidden 2967 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2968 2969 #line 790 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 2970 2971 if (settings.Score > 0) 2972 { 2973 int rating = settings.Score; 2974 string iconType = "fa-star"; 2975 2976 switch (settings.Type.ToString()) { 2977 case "Stars": 2978 iconType = "fa-star"; 2979 break; 2980 case "Hearts": 2981 iconType = "fa-heart"; 2982 break; 2983 case "Lemons": 2984 iconType = "fa-lemon"; 2985 break; 2986 case "Bombs": 2987 iconType = "fa-bomb"; 2988 break; 2989 } 2990 2991 2992 2993 #line default 2994 #line hidden 2995 WriteLiteralTo(__razor_helper_writer, " <div"); 2996 2997 WriteLiteralTo(__razor_helper_writer, " class=\"u-ta-right\""); 2998 2999 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3000 3001 3002 #line 812 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3003 3004 3005 #line default 3006 #line hidden 3007 3008 #line 812 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3009 for (int i = 0; i < settings.OutOf; i++) 3010 { 3011 3012 3013 #line default 3014 #line hidden 3015 WriteLiteralTo(__razor_helper_writer, " <i"); 3016 3017 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 36159), Tuple.Create("\"", 36206) 3018 3019 #line 814 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3020 , Tuple.Create(Tuple.Create("", 36167), Tuple.Create<System.Object, System.Int32>(rating > i ? "fas" : "far" 3021 3022 #line default 3023 #line hidden 3024 , 36167), false) 3025 3026 #line 814 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3027 , Tuple.Create(Tuple.Create(" ", 36196), Tuple.Create<System.Object, System.Int32>(iconType 3028 3029 #line default 3030 #line hidden 3031 , 36197), false) 3032 ); 3033 3034 WriteLiteralTo(__razor_helper_writer, "></i>\r\n"); 3035 3036 3037 #line 815 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3038 } 3039 3040 3041 #line default 3042 #line hidden 3043 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 3044 3045 3046 #line 817 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3047 } 3048 3049 3050 #line default 3051 #line hidden 3052 }); 3053 3054 #line 818 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3055 } 3056 #line default 3057 #line hidden 3058 3059 3060 #line 826 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3061 public RazorEngine.Templating.TemplateWriter RenderSelectFieldOption(SelectFieldOption settings) 3062 { 3063 #line default 3064 #line hidden 3065 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3066 3067 #line 827 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3068 3069 Dictionary<string, string> attributes = new Dictionary<string, string>(); 3070 if (settings.Checked) { attributes.Add("selected", "true"); } 3071 if (settings.Disabled) { attributes.Add("disabled", "true"); } 3072 if (settings.Value != null) { attributes.Add("value", settings.Value); } 3073 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 3074 3075 3076 3077 #line default 3078 #line hidden 3079 WriteLiteralTo(__razor_helper_writer, " <option "); 3080 3081 3082 #line 834 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3083 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes)); 3084 3085 3086 #line default 3087 #line hidden 3088 WriteLiteralTo(__razor_helper_writer, " "); 3089 3090 3091 #line 834 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3092 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 3093 3094 3095 #line default 3096 #line hidden 3097 WriteLiteralTo(__razor_helper_writer, ">"); 3098 3099 3100 #line 834 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3101 WriteTo(__razor_helper_writer, settings.Label); 3102 3103 3104 #line default 3105 #line hidden 3106 WriteLiteralTo(__razor_helper_writer, "</option>\r\n"); 3107 3108 3109 #line 835 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3110 3111 3112 #line default 3113 #line hidden 3114 }); 3115 3116 #line 835 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3117 } 3118 #line default 3119 #line hidden 3120 3121 3122 #line 843 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3123 public RazorEngine.Templating.TemplateWriter RenderNavigation(Navigation settings) { 3124 #line default 3125 #line hidden 3126 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3127 3128 #line 843 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3129 3130 3131 3132 #line default 3133 #line hidden 3134 3135 #line 844 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3136 WriteTo(__razor_helper_writer, RenderNavigation(new 3137 { 3138 id = settings.Id, 3139 cssclass = settings.CssClass, 3140 startLevel = settings.StartLevel, 3141 endlevel = settings.EndLevel, 3142 expandmode = settings.Expandmode, 3143 sitemapmode = settings.SitemapMode, 3144 template = settings.Template 3145 })); 3146 3147 3148 #line default 3149 #line hidden 3150 3151 #line 853 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3152 3153 3154 3155 #line default 3156 #line hidden 3157 }); 3158 3159 #line 854 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3160 } 3161 #line default 3162 #line hidden 3163 3164 3165 #line 861 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3166 public RazorEngine.Templating.TemplateWriter RenderBreadcrumbNavigation(BreadcrumbNavigation settings) { 3167 #line default 3168 #line hidden 3169 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3170 3171 #line 861 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3172 3173 settings.Id = String.IsNullOrEmpty(settings.Id) ? "breadcrumb" : settings.Id; 3174 settings.Template = String.IsNullOrEmpty(settings.Template) ? "Breadcrumb.xslt" : settings.Template; 3175 settings.StartLevel = settings.StartLevel == 0 ? 1 : settings.StartLevel; 3176 settings.EndLevel = settings.EndLevel == 10 ? 1 : settings.EndLevel; 3177 settings.Expandmode = String.IsNullOrEmpty(settings.Expandmode) ? "all" : settings.Expandmode; 3178 settings.SitemapMode = false; 3179 3180 3181 3182 #line default 3183 #line hidden 3184 3185 #line 869 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3186 WriteTo(__razor_helper_writer, RenderNavigation(settings)); 3187 3188 3189 #line default 3190 #line hidden 3191 3192 #line 869 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3193 3194 3195 3196 #line default 3197 #line hidden 3198 }); 3199 3200 #line 870 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3201 } 3202 #line default 3203 #line hidden 3204 3205 3206 #line 877 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3207 public RazorEngine.Templating.TemplateWriter RenderLeftNavigation(LeftNavigation settings) { 3208 #line default 3209 #line hidden 3210 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3211 3212 #line 877 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3213 3214 settings.Id = String.IsNullOrEmpty(settings.Id) ? "breadcrumb" : settings.Id; 3215 settings.Template = String.IsNullOrEmpty(settings.Template) ? "Breadcrumb.xslt" : settings.Template; 3216 settings.StartLevel = settings.StartLevel == 0 ? 1 : settings.StartLevel; 3217 settings.EndLevel = settings.EndLevel == 10 ? 1 : settings.EndLevel; 3218 settings.Expandmode = String.IsNullOrEmpty(settings.Expandmode) ? "all" : settings.Expandmode; 3219 3220 3221 3222 #line default 3223 #line hidden 3224 WriteLiteralTo(__razor_helper_writer, " <div"); 3225 3226 WriteLiteralTo(__razor_helper_writer, " class=\"grid__cell\""); 3227 3228 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3229 3230 WriteLiteralTo(__razor_helper_writer, " "); 3231 3232 3233 #line 885 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3234 WriteTo(__razor_helper_writer, RenderNavigation(settings)); 3235 3236 3237 #line default 3238 #line hidden 3239 WriteLiteralTo(__razor_helper_writer, " \r\n </div> \r\n"); 3240 3241 3242 #line 887 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3243 3244 3245 #line default 3246 #line hidden 3247 }); 3248 3249 #line 887 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3250 } 3251 #line default 3252 #line hidden 3253 3254 3255 #line 894 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3256 public RazorEngine.Templating.TemplateWriter RenderHeading(Heading settings) 3257 { 3258 #line default 3259 #line hidden 3260 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3261 3262 #line 895 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3263 3264 if (settings != null && !string.IsNullOrEmpty(settings.Title)) 3265 { 3266 string color = settings.Color != null ? "style=\"color: " + settings.Color + "\"" : ""; 3267 string tagName = settings.Level != 0 ? "h" + settings.Level.ToString() : "div"; 3268 3269 3270 3271 #line default 3272 #line hidden 3273 3274 #line 901 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3275 WriteTo(__razor_helper_writer, "<" + tagName + " class=\"" + settings.CssClass + " dw-mod\" " + color + ">"); 3276 3277 3278 #line default 3279 #line hidden 3280 3281 #line 901 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3282 3283 if (!string.IsNullOrEmpty(settings.Link)) 3284 { 3285 3286 3287 #line default 3288 #line hidden 3289 3290 #line 904 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3291 WriteTo(__razor_helper_writer, Render(new Link { Href = settings.Link, Icon = settings.Icon, Title = settings.Title, ButtonLayout = ButtonLayout.None })); 3292 3293 3294 #line default 3295 #line hidden 3296 3297 #line 904 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3298 3299 } 3300 else 3301 { 3302 if (settings.Icon == null) 3303 { 3304 settings.Icon = new Icon(); 3305 } 3306 settings.Icon.Label = settings.Title; 3307 3308 3309 #line default 3310 #line hidden 3311 3312 #line 913 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3313 WriteTo(__razor_helper_writer, Render(settings.Icon)); 3314 3315 3316 #line default 3317 #line hidden 3318 3319 #line 913 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3320 3321 } 3322 3323 3324 #line default 3325 #line hidden 3326 3327 #line 915 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3328 WriteTo(__razor_helper_writer, "</" + tagName + ">"); 3329 3330 3331 #line default 3332 #line hidden 3333 3334 #line 915 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3335 ; 3336 } 3337 3338 3339 #line default 3340 #line hidden 3341 }); 3342 3343 #line 917 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3344 } 3345 #line default 3346 #line hidden 3347 3348 3349 #line 925 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3350 public RazorEngine.Templating.TemplateWriter RenderImage(Image settings) 3351 { 3352 #line default 3353 #line hidden 3354 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3355 3356 #line 926 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3357 3358 if (settings.FilterPrimary != ImageFilter.None || settings.FilterSecondary != ImageFilter.None) 3359 { 3360 Dictionary<string, string> optionalAttributes = new Dictionary<string, string>(); 3361 if (!string.IsNullOrEmpty(settings.FilterColor)) { optionalAttributes.Add("style", "background-color: " + settings.FilterColor); } 3362 3363 if (settings.Caption != null) 3364 { 3365 3366 3367 #line default 3368 #line hidden 3369 WriteLiteralTo(__razor_helper_writer, " "); 3370 3371 WriteLiteralTo(__razor_helper_writer, "<div>\r\n"); 3372 3373 3374 #line 935 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3375 } 3376 3377 var primaryFilterClass = settings.FilterPrimary.ToString().ToLower(); 3378 var secondaryFilterClass = settings.FilterSecondary.ToString().ToLower(); 3379 3380 3381 3382 #line default 3383 #line hidden 3384 WriteLiteralTo(__razor_helper_writer, " <div"); 3385 3386 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 40784), Tuple.Create("\"", 40865) 3387 , Tuple.Create(Tuple.Create("", 40792), Tuple.Create("image-filter", 40792), true) 3388 , Tuple.Create(Tuple.Create(" ", 40804), Tuple.Create("image-filter--", 40805), true) 3389 3390 #line 940 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3391 , Tuple.Create(Tuple.Create("", 40819), Tuple.Create<System.Object, System.Int32>(primaryFilterClass 3392 3393 #line default 3394 #line hidden 3395 , 40819), false) 3396 , Tuple.Create(Tuple.Create(" ", 40838), Tuple.Create("u-position-relative", 40839), true) 3397 , Tuple.Create(Tuple.Create(" ", 40858), Tuple.Create("dw-mod", 40859), true) 3398 ); 3399 3400 WriteLiteralTo(__razor_helper_writer, " "); 3401 3402 3403 #line 940 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3404 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(optionalAttributes)); 3405 3406 3407 #line default 3408 #line hidden 3409 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 3410 3411 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 40937), Tuple.Create("\"", 41000) 3412 , Tuple.Create(Tuple.Create("", 40945), Tuple.Create("image-filter", 40945), true) 3413 , Tuple.Create(Tuple.Create(" ", 40957), Tuple.Create("image-filter--", 40958), true) 3414 3415 #line 941 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3416 , Tuple.Create(Tuple.Create("", 40972), Tuple.Create<System.Object, System.Int32>(secondaryFilterClass 3417 3418 #line default 3419 #line hidden 3420 , 40972), false) 3421 , Tuple.Create(Tuple.Create(" ", 40993), Tuple.Create("dw-mod", 40994), true) 3422 ); 3423 3424 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3425 3426 3427 #line 942 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3428 3429 3430 #line default 3431 #line hidden 3432 3433 #line 942 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3434 if (settings.Link != null) 3435 { 3436 3437 3438 #line default 3439 #line hidden 3440 WriteLiteralTo(__razor_helper_writer, " <a"); 3441 3442 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 41090), Tuple.Create("\"", 41111) 3443 3444 #line 944 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3445 , Tuple.Create(Tuple.Create("", 41097), Tuple.Create<System.Object, System.Int32>(settings.Link 3446 3447 #line default 3448 #line hidden 3449 , 41097), false) 3450 ); 3451 3452 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3453 3454 WriteLiteralTo(__razor_helper_writer, " "); 3455 3456 3457 #line 945 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3458 WriteTo(__razor_helper_writer, RenderTheImage(settings)); 3459 3460 3461 #line default 3462 #line hidden 3463 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n"); 3464 3465 3466 #line 947 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3467 } 3468 else 3469 { 3470 3471 3472 #line default 3473 #line hidden 3474 3475 #line 950 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3476 WriteTo(__razor_helper_writer, RenderTheImage(settings)); 3477 3478 3479 #line default 3480 #line hidden 3481 3482 #line 950 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3483 3484 } 3485 3486 3487 #line default 3488 #line hidden 3489 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n"); 3490 3491 3492 #line 954 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3493 3494 if (settings.Caption != null) 3495 { 3496 3497 3498 #line default 3499 #line hidden 3500 WriteLiteralTo(__razor_helper_writer, " <span"); 3501 3502 WriteLiteralTo(__razor_helper_writer, " class=\"image-caption dw-mod\""); 3503 3504 WriteLiteralTo(__razor_helper_writer, ">"); 3505 3506 3507 #line 957 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3508 WriteTo(__razor_helper_writer, settings.Caption); 3509 3510 3511 #line default 3512 #line hidden 3513 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 3514 3515 WriteLiteralTo(__razor_helper_writer, " "); 3516 3517 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 3518 3519 3520 #line 959 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3521 } 3522 } 3523 else 3524 { 3525 if (settings.Caption != null) 3526 { 3527 3528 3529 #line default 3530 #line hidden 3531 WriteLiteralTo(__razor_helper_writer, " "); 3532 3533 WriteLiteralTo(__razor_helper_writer, "<div>\r\n"); 3534 3535 3536 #line 966 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3537 } 3538 if (!string.IsNullOrEmpty(settings.Link)) 3539 { 3540 3541 3542 #line default 3543 #line hidden 3544 WriteLiteralTo(__razor_helper_writer, " <a"); 3545 3546 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 41695), Tuple.Create("\"", 41716) 3547 3548 #line 969 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3549 , Tuple.Create(Tuple.Create("", 41702), Tuple.Create<System.Object, System.Int32>(settings.Link 3550 3551 #line default 3552 #line hidden 3553 , 41702), false) 3554 ); 3555 3556 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3557 3558 WriteLiteralTo(__razor_helper_writer, " "); 3559 3560 3561 #line 970 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3562 WriteTo(__razor_helper_writer, RenderTheImage(settings)); 3563 3564 3565 #line default 3566 #line hidden 3567 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n"); 3568 3569 3570 #line 972 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3571 } 3572 else 3573 { 3574 3575 3576 #line default 3577 #line hidden 3578 3579 #line 975 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3580 WriteTo(__razor_helper_writer, RenderTheImage(settings)); 3581 3582 3583 #line default 3584 #line hidden 3585 3586 #line 975 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3587 3588 } 3589 3590 if (settings.Caption != null) 3591 { 3592 3593 3594 #line default 3595 #line hidden 3596 WriteLiteralTo(__razor_helper_writer, " <span"); 3597 3598 WriteLiteralTo(__razor_helper_writer, " class=\"image-caption dw-mod\""); 3599 3600 WriteLiteralTo(__razor_helper_writer, ">"); 3601 3602 3603 #line 980 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3604 WriteTo(__razor_helper_writer, settings.Caption); 3605 3606 3607 #line default 3608 #line hidden 3609 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 3610 3611 WriteLiteralTo(__razor_helper_writer, " "); 3612 3613 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 3614 3615 3616 #line 982 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3617 } 3618 } 3619 3620 3621 #line default 3622 #line hidden 3623 }); 3624 3625 #line 984 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3626 } 3627 #line default 3628 #line hidden 3629 3630 3631 #line 986 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3632 public RazorEngine.Templating.TemplateWriter RenderTheImage(Image settings) 3633 { 3634 #line default 3635 #line hidden 3636 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3637 3638 #line 987 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3639 3640 if (settings != null) 3641 { 3642 string alternativeImage = !string.IsNullOrEmpty(Pageview.AreaSettings.GetItem("Settings").GetString("AlternativeImage")) ? Pageview.AreaSettings.GetItem("Settings").GetFile("AlternativeImage").PathUrlEncoded : "/Images/missing_image.jpg"; 3643 string placeholderImage = "/Files/Images/placeholder.gif"; 3644 string imageEngine = "/Admin/Public/GetImage.ashx?"; 3645 3646 string imageStyle = ""; 3647 3648 switch (settings.Style) 3649 { 3650 case ImageStyle.Ball: 3651 imageStyle = "grid__cell-img--ball"; 3652 break; 3653 3654 case ImageStyle.Triangle: 3655 imageStyle = "grid__cell-img--triangle"; 3656 break; 3657 } 3658 3659 if (settings.Style == ImageStyle.Ball || settings.Style == ImageStyle.Circle || settings.Style == ImageStyle.Triangle) 3660 { 3661 settings.ImageDefault.Crop = settings.ImageDefault.Crop == 5 ? settings.ImageDefault.Crop = 0 : settings.ImageDefault.Crop; 3662 3663 if (settings.ImageDefault != null) 3664 { 3665 settings.ImageDefault.Height = settings.ImageDefault.Width; 3666 } 3667 if (settings.ImageMedium != null) 3668 { 3669 settings.ImageMedium.Height = settings.ImageMedium.Width; 3670 } 3671 if (settings.ImageSmall != null) 3672 { 3673 settings.ImageSmall.Height = settings.ImageSmall.Width; 3674 } 3675 } 3676 3677 string defaultImage = imageEngine; 3678 string imageSmall = ""; 3679 string imageMedium = ""; 3680 3681 if (settings.DisableImageEngine) 3682 { 3683 defaultImage = settings.Path; 3684 } 3685 else 3686 { 3687 if (settings.ImageDefault != null) 3688 { 3689 defaultImage += Dynamicweb.Rapido.Services.Images.GetImagePathFromSettings(settings.ImageDefault); 3690 3691 if (settings.Path.GetType() != typeof(string)) 3692 { 3693 defaultImage += settings.Path != null ? "Image=" + settings.Path.PathUrlEncoded : ""; 3694 defaultImage += settings.Path != null ? "&" + settings.Path.GetFocalPointParameters() : ""; 3695 } 3696 else 3697 { 3698 defaultImage += settings.Path != null ? "Image=" + settings.Path : ""; 3699 } 3700 3701 defaultImage += "&AlternativeImage=" + alternativeImage; 3702 } 3703 3704 if (settings.ImageSmall != null) 3705 { 3706 imageSmall = "data-src-small=\"" + imageEngine; 3707 imageSmall += Dynamicweb.Rapido.Services.Images.GetImagePathFromSettings(settings.ImageSmall); 3708 3709 if (settings.Path.GetType() != typeof(string)) 3710 { 3711 imageSmall += settings.Path != null ? "Image=" + settings.Path.PathUrlEncoded : ""; 3712 imageSmall += settings.Path != null ? "&" + settings.Path.GetFocalPointParameters() : ""; 3713 } 3714 else 3715 { 3716 imageSmall += settings.Path != null ? "Image=" + settings.Path : ""; 3717 } 3718 3719 imageSmall += "&alternativeImage=" + alternativeImage; 3720 3721 imageSmall += "\""; 3722 } 3723 3724 if (settings.ImageMedium != null) 3725 { 3726 imageMedium = "data-src-medium=\"" + imageEngine; 3727 imageMedium += Dynamicweb.Rapido.Services.Images.GetImagePathFromSettings(settings.ImageMedium); 3728 3729 if (settings.Path.GetType() != typeof(string)) 3730 { 3731 imageMedium += settings.Path != null ? "Image=" + settings.Path.PathUrlEncoded : ""; 3732 imageMedium += settings.Path != null ? "&" + settings.Path.GetFocalPointParameters() : ""; 3733 } 3734 else 3735 { 3736 imageMedium += settings.Path != null ? "Image=" + settings.Path : ""; 3737 } 3738 3739 imageMedium += "&alternativeImage=" + alternativeImage; 3740 3741 imageMedium += "\""; 3742 } 3743 } 3744 3745 Dictionary<string, string> optionalAttributes = new Dictionary<string, string>(); 3746 if (!string.IsNullOrEmpty(settings.OnClick)) { optionalAttributes.Add("onclick", settings.OnClick); } 3747 if (!string.IsNullOrEmpty(settings.Title)) 3748 { 3749 optionalAttributes.Add("alt", settings.Title); 3750 optionalAttributes.Add("title", settings.Title); 3751 } 3752 3753 if (settings.DisableLazyLoad) 3754 { 3755 3756 3757 #line default 3758 #line hidden 3759 WriteLiteralTo(__razor_helper_writer, " <img"); 3760 3761 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 46608), Tuple.Create("\"", 46625) 3762 3763 #line 1103 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3764 , Tuple.Create(Tuple.Create("", 46613), Tuple.Create<System.Object, System.Int32>(settings.Id 3765 3766 #line default 3767 #line hidden 3768 , 46613), false) 3769 ); 3770 3771 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 46626), Tuple.Create("\"", 46671) 3772 3773 #line 1103 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3774 , Tuple.Create(Tuple.Create("", 46634), Tuple.Create<System.Object, System.Int32>(imageStyle 3775 3776 #line default 3777 #line hidden 3778 , 46634), false) 3779 3780 #line 1103 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3781 , Tuple.Create(Tuple.Create(" ", 46645), Tuple.Create<System.Object, System.Int32>(settings.CssClass 3782 3783 #line default 3784 #line hidden 3785 , 46646), false) 3786 , Tuple.Create(Tuple.Create(" ", 46664), Tuple.Create("dw-mod", 46665), true) 3787 ); 3788 3789 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 46672), Tuple.Create("\"", 46691) 3790 3791 #line 1103 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3792 , Tuple.Create(Tuple.Create("", 46678), Tuple.Create<System.Object, System.Int32>(defaultImage 3793 3794 #line default 3795 #line hidden 3796 , 46678), false) 3797 ); 3798 3799 WriteLiteralTo(__razor_helper_writer, " "); 3800 3801 3802 #line 1103 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3803 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(optionalAttributes)); 3804 3805 3806 #line default 3807 #line hidden 3808 WriteLiteralTo(__razor_helper_writer, " "); 3809 3810 3811 #line 1103 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3812 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 3813 3814 3815 #line default 3816 #line hidden 3817 WriteLiteralTo(__razor_helper_writer, " />\r\n"); 3818 3819 3820 #line 1104 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3821 } 3822 else 3823 { 3824 3825 3826 #line default 3827 #line hidden 3828 WriteLiteralTo(__razor_helper_writer, " <img"); 3829 3830 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 46877), Tuple.Create("\"", 46894) 3831 3832 #line 1107 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3833 , Tuple.Create(Tuple.Create("", 46882), Tuple.Create<System.Object, System.Int32>(settings.Id 3834 3835 #line default 3836 #line hidden 3837 , 46882), false) 3838 ); 3839 3840 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 46895), Tuple.Create("\"", 46947) 3841 , Tuple.Create(Tuple.Create("", 46903), Tuple.Create("b-lazy", 46903), true) 3842 3843 #line 1107 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3844 , Tuple.Create(Tuple.Create(" ", 46909), Tuple.Create<System.Object, System.Int32>(imageStyle 3845 3846 #line default 3847 #line hidden 3848 , 46910), false) 3849 3850 #line 1107 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3851 , Tuple.Create(Tuple.Create(" ", 46921), Tuple.Create<System.Object, System.Int32>(settings.CssClass 3852 3853 #line default 3854 #line hidden 3855 , 46922), false) 3856 , Tuple.Create(Tuple.Create(" ", 46940), Tuple.Create("dw-mod", 46941), true) 3857 ); 3858 3859 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 46948), Tuple.Create("\"", 46971) 3860 3861 #line 1107 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3862 , Tuple.Create(Tuple.Create("", 46954), Tuple.Create<System.Object, System.Int32>(placeholderImage 3863 3864 #line default 3865 #line hidden 3866 , 46954), false) 3867 ); 3868 3869 WriteLiteralTo(__razor_helper_writer, " data-src=\""); 3870 3871 3872 #line 1107 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3873 WriteTo(__razor_helper_writer, defaultImage); 3874 3875 3876 #line default 3877 #line hidden 3878 WriteLiteralTo(__razor_helper_writer, "\""); 3879 3880 WriteLiteralTo(__razor_helper_writer, " "); 3881 3882 3883 #line 1107 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3884 WriteTo(__razor_helper_writer, imageSmall); 3885 3886 3887 #line default 3888 #line hidden 3889 WriteLiteralTo(__razor_helper_writer, " "); 3890 3891 3892 #line 1107 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3893 WriteTo(__razor_helper_writer, imageMedium); 3894 3895 3896 #line default 3897 #line hidden 3898 WriteLiteralTo(__razor_helper_writer, " "); 3899 3900 3901 #line 1107 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3902 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(optionalAttributes)); 3903 3904 3905 #line default 3906 #line hidden 3907 WriteLiteralTo(__razor_helper_writer, " "); 3908 3909 3910 #line 1107 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3911 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 3912 3913 3914 #line default 3915 #line hidden 3916 WriteLiteralTo(__razor_helper_writer, " />\r\n"); 3917 3918 3919 #line 1108 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3920 } 3921 } 3922 3923 3924 #line default 3925 #line hidden 3926 }); 3927 3928 #line 1110 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3929 } 3930 #line default 3931 #line hidden 3932 3933 3934 #line 1117 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3935 public RazorEngine.Templating.TemplateWriter RenderFileField(FileField settings) 3936 { 3937 #line default 3938 #line hidden 3939 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3940 3941 #line 1118 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3942 3943 var attributes = new Dictionary<string, string>(); 3944 if (string.IsNullOrEmpty(settings.Id)) 3945 { 3946 settings.Id = Guid.NewGuid().ToString("N"); 3947 } 3948 3949 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 3950 if (settings.Disabled) { attributes.Add("disabled", "true"); } 3951 if (settings.Required) { attributes.Add("required", "true"); } 3952 if (settings.Multiple) { attributes.Add("multiple", "true"); } 3953 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 3954 if (string.IsNullOrEmpty(settings.ChooseFileText)) 3955 { 3956 settings.ChooseFileText = Translate("Choose file"); 3957 } 3958 if (string.IsNullOrEmpty(settings.NoFilesChosenText)) 3959 { 3960 settings.NoFilesChosenText = Translate("No files chosen..."); 3961 } 3962 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 3963 3964 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 3965 3966 string setValueToFakeInput = "FileUpload.setValueToFakeInput(this)"; 3967 attributes.Add("onchange", setValueToFakeInput + (!string.IsNullOrEmpty(settings.OnChange) ? settings.OnChange : "")); 3968 3969 attributes.Add("type", "file"); 3970 if (settings.Value != null) { attributes.Add("value", settings.Value); } 3971 settings.CssClass = "u-full-width " + settings.CssClass; 3972 3973 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 3974 3975 3976 3977 #line default 3978 #line hidden 3979 WriteLiteralTo(__razor_helper_writer, " <div"); 3980 3981 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 48956), Tuple.Create("\"", 49027) 3982 , Tuple.Create(Tuple.Create("", 48964), Tuple.Create("form__field-group", 48964), true) 3983 , Tuple.Create(Tuple.Create(" ", 48981), Tuple.Create("u-full-width", 48982), true) 3984 3985 #line 1151 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3986 , Tuple.Create(Tuple.Create(" ", 48994), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 3987 3988 #line default 3989 #line hidden 3990 , 48995), false) 3991 , Tuple.Create(Tuple.Create(" ", 49020), Tuple.Create("dw-mod", 49021), true) 3992 ); 3993 3994 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3995 3996 3997 #line 1152 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 3998 3999 4000 #line default 4001 #line hidden 4002 4003 #line 1152 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4004 if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 4005 { 4006 4007 4008 #line default 4009 #line hidden 4010 WriteLiteralTo(__razor_helper_writer, " <div"); 4011 4012 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width\""); 4013 4014 WriteLiteralTo(__razor_helper_writer, "> \r\n"); 4015 4016 4017 #line 1155 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4018 4019 4020 #line default 4021 #line hidden 4022 4023 #line 1155 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4024 if (!string.IsNullOrEmpty(settings.Label)) { 4025 4026 #line default 4027 #line hidden 4028 WriteLiteralTo(__razor_helper_writer, " <label"); 4029 4030 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 49230), Tuple.Create("\"", 49248) 4031 4032 #line 1155 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4033 , Tuple.Create(Tuple.Create("", 49236), Tuple.Create<System.Object, System.Int32>(settings.Id 4034 4035 #line default 4036 #line hidden 4037 , 49236), false) 4038 ); 4039 4040 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\""); 4041 4042 WriteLiteralTo(__razor_helper_writer, ">"); 4043 4044 4045 #line 1155 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4046 WriteTo(__razor_helper_writer, settings.Label); 4047 4048 4049 #line default 4050 #line hidden 4051 WriteLiteralTo(__razor_helper_writer, "</label> "); 4052 4053 4054 #line 1155 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4055 } 4056 4057 4058 #line default 4059 #line hidden 4060 WriteLiteralTo(__razor_helper_writer, " "); 4061 4062 4063 #line 1156 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4064 if (settings.Link != null) { 4065 4066 4067 #line default 4068 #line hidden 4069 WriteLiteralTo(__razor_helper_writer, " <div"); 4070 4071 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right\""); 4072 4073 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4074 4075 4076 #line 1158 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4077 4078 4079 #line default 4080 #line hidden 4081 4082 #line 1158 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4083 settings.Link.ButtonLayout = ButtonLayout.LinkClean; 4084 4085 #line default 4086 #line hidden 4087 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4088 4089 WriteLiteralTo(__razor_helper_writer, " "); 4090 4091 4092 #line 1159 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4093 WriteTo(__razor_helper_writer, Render(settings.Link)); 4094 4095 4096 #line default 4097 #line hidden 4098 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 4099 4100 4101 #line 1161 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4102 } 4103 4104 4105 #line default 4106 #line hidden 4107 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 4108 4109 4110 #line 1163 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4111 4112 } 4113 4114 4115 #line default 4116 #line hidden 4117 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4118 4119 4120 #line 1166 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4121 4122 4123 #line default 4124 #line hidden 4125 4126 #line 1166 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4127 if (!string.IsNullOrEmpty(settings.HelpText)) 4128 { 4129 4130 4131 #line default 4132 #line hidden 4133 WriteLiteralTo(__razor_helper_writer, " <small"); 4134 4135 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 4136 4137 WriteLiteralTo(__razor_helper_writer, ">"); 4138 4139 4140 #line 1168 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4141 WriteTo(__razor_helper_writer, settings.HelpText); 4142 4143 4144 #line default 4145 #line hidden 4146 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 4147 4148 4149 #line 1169 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4150 } 4151 4152 4153 #line default 4154 #line hidden 4155 WriteLiteralTo(__razor_helper_writer, "\r\n <div"); 4156 4157 WriteLiteralTo(__razor_helper_writer, " class=\"form__field-combi file-input u-no-margin dw-mod\""); 4158 4159 WriteLiteralTo(__razor_helper_writer, ">\r\n <input "); 4160 4161 4162 #line 1172 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4163 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 4164 4165 4166 #line default 4167 #line hidden 4168 WriteLiteralTo(__razor_helper_writer, " class=\"file-input__real-input\" data-no-files-text=\""); 4169 4170 4171 #line 1172 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4172 WriteTo(__razor_helper_writer, settings.NoFilesChosenText); 4173 4174 4175 #line default 4176 #line hidden 4177 WriteLiteralTo(__razor_helper_writer, "\" data-many-files-text=\""); 4178 4179 4180 #line 1172 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4181 WriteTo(__razor_helper_writer, Translate("files")); 4182 4183 4184 #line default 4185 #line hidden 4186 WriteLiteralTo(__razor_helper_writer, "\" />\r\n <label"); 4187 4188 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 50055), Tuple.Create("\"", 50073) 4189 4190 #line 1173 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4191 , Tuple.Create(Tuple.Create("", 50061), Tuple.Create<System.Object, System.Int32>(settings.Id 4192 4193 #line default 4194 #line hidden 4195 , 50061), false) 4196 ); 4197 4198 WriteLiteralTo(__razor_helper_writer, " class=\"file-input__btn btn--secondary btn dw-mod\""); 4199 4200 WriteLiteralTo(__razor_helper_writer, ">"); 4201 4202 4203 #line 1173 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4204 WriteTo(__razor_helper_writer, settings.ChooseFileText); 4205 4206 4207 #line default 4208 #line hidden 4209 WriteLiteralTo(__razor_helper_writer, "</label>\r\n <label"); 4210 4211 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 50177), Tuple.Create("\"", 50195) 4212 4213 #line 1174 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4214 , Tuple.Create(Tuple.Create("", 50183), Tuple.Create<System.Object, System.Int32>(settings.Id 4215 4216 #line default 4217 #line hidden 4218 , 50183), false) 4219 ); 4220 4221 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 50196), Tuple.Create("\"", 50266) 4222 4223 #line 1174 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4224 , Tuple.Create(Tuple.Create("", 50204), Tuple.Create<System.Object, System.Int32>(settings.CssClass 4225 4226 #line default 4227 #line hidden 4228 , 50204), false) 4229 , Tuple.Create(Tuple.Create(" ", 50222), Tuple.Create("file-input__fake-input", 50223), true) 4230 , Tuple.Create(Tuple.Create(" ", 50245), Tuple.Create("js-fake-input", 50246), true) 4231 , Tuple.Create(Tuple.Create(" ", 50259), Tuple.Create("dw-mod", 50260), true) 4232 ); 4233 4234 WriteLiteralTo(__razor_helper_writer, ">"); 4235 4236 4237 #line 1174 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4238 WriteTo(__razor_helper_writer, settings.NoFilesChosenText); 4239 4240 4241 #line default 4242 #line hidden 4243 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 4244 4245 4246 #line 1175 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4247 4248 4249 #line default 4250 #line hidden 4251 4252 #line 1175 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4253 if (settings.UploadButton != null) 4254 { 4255 settings.UploadButton.CssClass += " btn--condensed u-no-margin"; 4256 4257 4258 #line default 4259 #line hidden 4260 4261 #line 1178 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4262 WriteTo(__razor_helper_writer, Render(settings.UploadButton)); 4263 4264 4265 #line default 4266 #line hidden 4267 4268 #line 1178 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4269 4270 } 4271 4272 4273 #line default 4274 #line hidden 4275 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 4276 4277 WriteLiteralTo(__razor_helper_writer, " "); 4278 4279 4280 #line 1181 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4281 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage })); 4282 4283 4284 #line default 4285 #line hidden 4286 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 4287 4288 4289 #line 1183 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4290 4291 4292 #line default 4293 #line hidden 4294 }); 4295 4296 #line 1183 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4297 } 4298 #line default 4299 #line hidden 4300 4301 4302 #line 1192 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4303 public RazorEngine.Templating.TemplateWriter RenderDateTimeField(DateTimeField settings) 4304 { 4305 #line default 4306 #line hidden 4307 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4308 4309 #line 1193 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4310 4311 if (string.IsNullOrEmpty(settings.Id)) 4312 { 4313 settings.Id = Guid.NewGuid().ToString("N"); 4314 } 4315 4316 var textField = new TextField { 4317 Name = settings.Name, 4318 Id = settings.Id, 4319 Label = settings.Label, 4320 HelpText = settings.HelpText, 4321 Value = settings.Value, 4322 Disabled = settings.Disabled, 4323 Required = settings.Required, 4324 ErrorMessage = settings.ErrorMessage, 4325 CssClass = settings.CssClass, 4326 WrapperCssClass = settings.WrapperCssClass, 4327 OnChange = settings.OnChange, 4328 OnClick = settings.OnClick, 4329 Link = settings.Link, 4330 ExtraAttributes = settings.ExtraAttributes, 4331 // 4332 Placeholder = settings.Placeholder 4333 }; 4334 4335 4336 4337 #line default 4338 #line hidden 4339 4340 #line 1218 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4341 WriteTo(__razor_helper_writer, Render(textField)); 4342 4343 4344 #line default 4345 #line hidden 4346 4347 #line 1218 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4348 4349 4350 List<string> jsAttributes = new List<string>(); 4351 4352 jsAttributes.Add("mode: '" + Enum.GetName(typeof(DateTimeFieldMode), settings.Mode).ToLower() + "'"); 4353 4354 if (!string.IsNullOrEmpty(settings.DateFormat)) 4355 { 4356 jsAttributes.Add("dateFormat: '" + settings.DateFormat + "'"); 4357 } 4358 if (!string.IsNullOrEmpty(settings.MinDate)) 4359 { 4360 jsAttributes.Add("minDate: '" + settings.MinDate + "'"); 4361 } 4362 if (!string.IsNullOrEmpty(settings.MaxDate)) 4363 { 4364 jsAttributes.Add("maxDate: '" + settings.MaxDate + "'"); 4365 } 4366 if (settings.IsInline) 4367 { 4368 jsAttributes.Add("inline: " + Converter.ToString(settings.IsInline).ToLower()); 4369 } 4370 if (settings.EnableTime) 4371 { 4372 jsAttributes.Add("enableTime: " + Converter.ToString(settings.EnableTime).ToLower()); 4373 } 4374 if (settings.EnableWeekNumbers) 4375 { 4376 jsAttributes.Add("weekNumbers: " + Converter.ToString(settings.EnableWeekNumbers).ToLower()); 4377 } 4378 4379 jsAttributes.AddRange(settings.GetFlatPickrOptions().Select(x => x.Key + ": " + x.Value)); 4380 4381 4382 4383 #line default 4384 #line hidden 4385 WriteLiteralTo(__razor_helper_writer, " <script>\r\n document.addEventListener(\"DOMContentLoaded\", function () {" + 4386 "\r\n flatpickr(\"#"); 4387 4388 4389 #line 1253 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4390 WriteTo(__razor_helper_writer, textField.Id); 4391 4392 4393 #line default 4394 #line hidden 4395 WriteLiteralTo(__razor_helper_writer, "\", {\r\n"); 4396 4397 WriteLiteralTo(__razor_helper_writer, " "); 4398 4399 4400 #line 1254 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4401 WriteTo(__razor_helper_writer, string.Join(",", jsAttributes)); 4402 4403 4404 #line default 4405 #line hidden 4406 WriteLiteralTo(__razor_helper_writer, "\r\n });\r\n });\r\n </script>\r\n"); 4407 4408 4409 #line 1258 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4410 4411 4412 #line default 4413 #line hidden 4414 }); 4415 4416 #line 1258 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4417 } 4418 #line default 4419 #line hidden 4420 4421 4422 #line 1265 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4423 public RazorEngine.Templating.TemplateWriter RenderTextField(TextField settings) 4424 { 4425 #line default 4426 #line hidden 4427 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4428 4429 #line 1266 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4430 4431 var attributes = new Dictionary<string, string>(); 4432 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 4433 { 4434 settings.Id = Guid.NewGuid().ToString("N"); 4435 } 4436 4437 /*base settings*/ 4438 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 4439 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 4440 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 4441 if (settings.Disabled) { attributes.Add("disabled", "true"); } 4442 if (settings.Required) { attributes.Add("required", "true"); } 4443 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 4444 /*end*/ 4445 4446 if (!string.IsNullOrEmpty(settings.OnKeyUp)) { attributes.Add("onkeyup", settings.OnKeyUp); } 4447 if (!string.IsNullOrEmpty(settings.OnInput)) { attributes.Add("oninput", settings.OnInput); } 4448 if (!string.IsNullOrEmpty(settings.OnFocus)) { attributes.Add("onfocus", settings.OnFocus); } 4449 if (settings.ReadOnly) { attributes.Add("readonly", "true"); } 4450 if (settings.MaxLength != 0) { attributes.Add("maxlength", settings.MaxLength.ToString()); } 4451 if (!string.IsNullOrEmpty(settings.Placeholder)) { attributes.Add("placeholder", settings.Placeholder); } 4452 attributes.Add("type", Enum.GetName(typeof(TextFieldType), settings.Type).ToLower()); 4453 if (settings.Type == TextFieldType.Password) { attributes.Add("autocomplete", "off"); }; 4454 if (settings.Value != null) { attributes.Add("value", settings.Value); } 4455 4456 settings.CssClass = "u-full-width " + settings.CssClass; 4457 4458 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 4459 4460 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 4461 4462 string noMargin = "u-no-margin"; 4463 if (!settings.ReadOnly) { 4464 noMargin = ""; 4465 } 4466 4467 4468 4469 #line default 4470 #line hidden 4471 WriteLiteralTo(__razor_helper_writer, " <div"); 4472 4473 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 55211), Tuple.Create("\"", 55292) 4474 , Tuple.Create(Tuple.Create("", 55219), Tuple.Create("form__field-group", 55219), true) 4475 , Tuple.Create(Tuple.Create(" ", 55236), Tuple.Create("u-full-width", 55237), true) 4476 4477 #line 1303 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4478 , Tuple.Create(Tuple.Create(" ", 55249), Tuple.Create<System.Object, System.Int32>(noMargin 4479 4480 #line default 4481 #line hidden 4482 , 55250), false) 4483 4484 #line 1303 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4485 , Tuple.Create(Tuple.Create(" ", 55259), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 4486 4487 #line default 4488 #line hidden 4489 , 55260), false) 4490 , Tuple.Create(Tuple.Create(" ", 55285), Tuple.Create("dw-mod", 55286), true) 4491 ); 4492 4493 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4494 4495 4496 #line 1304 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4497 4498 4499 #line default 4500 #line hidden 4501 4502 #line 1304 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4503 if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 4504 { 4505 4506 4507 #line default 4508 #line hidden 4509 WriteLiteralTo(__razor_helper_writer, " <div"); 4510 4511 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width\""); 4512 4513 WriteLiteralTo(__razor_helper_writer, "> \r\n"); 4514 4515 4516 #line 1307 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4517 4518 4519 #line default 4520 #line hidden 4521 4522 #line 1307 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4523 if (!string.IsNullOrEmpty(settings.Label)) { 4524 4525 #line default 4526 #line hidden 4527 WriteLiteralTo(__razor_helper_writer, " <label"); 4528 4529 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 55495), Tuple.Create("\"", 55513) 4530 4531 #line 1307 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4532 , Tuple.Create(Tuple.Create("", 55501), Tuple.Create<System.Object, System.Int32>(settings.Id 4533 4534 #line default 4535 #line hidden 4536 , 55501), false) 4537 ); 4538 4539 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\""); 4540 4541 WriteLiteralTo(__razor_helper_writer, ">"); 4542 4543 4544 #line 1307 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4545 WriteTo(__razor_helper_writer, settings.Label); 4546 4547 4548 #line default 4549 #line hidden 4550 WriteLiteralTo(__razor_helper_writer, "</label> "); 4551 4552 4553 #line 1307 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4554 } 4555 4556 4557 #line default 4558 #line hidden 4559 WriteLiteralTo(__razor_helper_writer, " "); 4560 4561 4562 #line 1308 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4563 if (settings.Link != null) { 4564 settings.Link.ButtonLayout = ButtonLayout.LinkClean; 4565 4566 4567 4568 #line default 4569 #line hidden 4570 WriteLiteralTo(__razor_helper_writer, " <div"); 4571 4572 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right\""); 4573 4574 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4575 4576 WriteLiteralTo(__razor_helper_writer, " "); 4577 4578 4579 #line 1312 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4580 WriteTo(__razor_helper_writer, Render(settings.Link)); 4581 4582 4583 #line default 4584 #line hidden 4585 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 4586 4587 4588 #line 1314 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4589 } 4590 4591 4592 #line default 4593 #line hidden 4594 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 4595 4596 4597 #line 1316 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4598 4599 } 4600 4601 4602 #line default 4603 #line hidden 4604 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4605 4606 4607 #line 1319 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4608 4609 4610 #line default 4611 #line hidden 4612 4613 #line 1319 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4614 if (!string.IsNullOrEmpty(settings.HelpText)) 4615 { 4616 4617 4618 #line default 4619 #line hidden 4620 WriteLiteralTo(__razor_helper_writer, " <small"); 4621 4622 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 4623 4624 WriteLiteralTo(__razor_helper_writer, ">"); 4625 4626 4627 #line 1321 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4628 WriteTo(__razor_helper_writer, settings.HelpText); 4629 4630 4631 #line default 4632 #line hidden 4633 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 4634 4635 4636 #line 1322 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4637 } 4638 4639 4640 #line default 4641 #line hidden 4642 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4643 4644 4645 #line 1324 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4646 4647 4648 #line default 4649 #line hidden 4650 4651 #line 1324 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4652 if (settings.ActionButton != null) 4653 { 4654 settings.ActionButton.CssClass += " btn--condensed u-no-margin"; 4655 4656 4657 #line default 4658 #line hidden 4659 WriteLiteralTo(__razor_helper_writer, " <div"); 4660 4661 WriteLiteralTo(__razor_helper_writer, " class=\"form__field-combi u-no-margin dw-mod\""); 4662 4663 WriteLiteralTo(__razor_helper_writer, ">\r\n <input "); 4664 4665 4666 #line 1328 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4667 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 4668 4669 4670 #line default 4671 #line hidden 4672 WriteLiteralTo(__razor_helper_writer, " class=\""); 4673 4674 4675 #line 1328 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4676 WriteTo(__razor_helper_writer, settings.CssClass); 4677 4678 4679 #line default 4680 #line hidden 4681 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n"); 4682 4683 WriteLiteralTo(__razor_helper_writer, " "); 4684 4685 4686 #line 1329 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4687 WriteTo(__razor_helper_writer, Render(settings.ActionButton)); 4688 4689 4690 #line default 4691 #line hidden 4692 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 4693 4694 4695 #line 1331 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4696 } 4697 else 4698 { 4699 4700 4701 #line default 4702 #line hidden 4703 WriteLiteralTo(__razor_helper_writer, " <input "); 4704 4705 4706 #line 1334 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4707 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 4708 4709 4710 #line default 4711 #line hidden 4712 WriteLiteralTo(__razor_helper_writer, " class=\""); 4713 4714 4715 #line 1334 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4716 WriteTo(__razor_helper_writer, settings.CssClass); 4717 4718 4719 #line default 4720 #line hidden 4721 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n"); 4722 4723 4724 #line 1335 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4725 } 4726 4727 4728 #line default 4729 #line hidden 4730 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4731 4732 WriteLiteralTo(__razor_helper_writer, " "); 4733 4734 4735 #line 1337 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4736 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage })); 4737 4738 4739 #line default 4740 #line hidden 4741 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 4742 4743 4744 #line 1339 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4745 4746 4747 #line default 4748 #line hidden 4749 }); 4750 4751 #line 1339 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4752 } 4753 #line default 4754 #line hidden 4755 4756 4757 #line 1346 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4758 public RazorEngine.Templating.TemplateWriter RenderNumberField(NumberField settings) 4759 { 4760 #line default 4761 #line hidden 4762 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4763 4764 #line 1347 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4765 4766 var attributes = new Dictionary<string, string>(); 4767 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 4768 { 4769 settings.Id = Guid.NewGuid().ToString("N"); 4770 } 4771 4772 /*base settings*/ 4773 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 4774 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 4775 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 4776 if (settings.Disabled) { attributes.Add("disabled", "true"); } 4777 if (settings.Required) { attributes.Add("required", "true"); } 4778 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 4779 /*end*/ 4780 4781 if (!string.IsNullOrEmpty(settings.OnKeyUp)) { attributes.Add("onkeyup", settings.OnKeyUp); } 4782 if (!string.IsNullOrEmpty(settings.OnInput)) { attributes.Add("oninput", settings.OnInput); } 4783 if (!string.IsNullOrEmpty(settings.OnFocus)) { attributes.Add("onfocus", settings.OnFocus); } 4784 if (settings.ReadOnly) { attributes.Add("readonly", "true"); } 4785 if (settings.Max != null) { attributes.Add("max", settings.Max.ToString()); } 4786 if (settings.Min != null) { attributes.Add("min", settings.Min.ToString()); } 4787 if (settings.Step != 0) { attributes.Add("step", settings.Step.ToString()); } 4788 if (settings.Value != null && !string.IsNullOrEmpty(settings.Value.ToString())) { attributes.Add("value", settings.Value.ToString()); } 4789 attributes.Add("type", "number"); 4790 4791 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 4792 4793 4794 4795 #line default 4796 #line hidden 4797 WriteLiteralTo(__razor_helper_writer, " <div"); 4798 4799 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 58555), Tuple.Create("\"", 58626) 4800 , Tuple.Create(Tuple.Create("", 58563), Tuple.Create("form__field-group", 58563), true) 4801 , Tuple.Create(Tuple.Create(" ", 58580), Tuple.Create("u-full-width", 58581), true) 4802 4803 #line 1375 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4804 , Tuple.Create(Tuple.Create(" ", 58593), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 4805 4806 #line default 4807 #line hidden 4808 , 58594), false) 4809 , Tuple.Create(Tuple.Create(" ", 58619), Tuple.Create("dw-mod", 58620), true) 4810 ); 4811 4812 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4813 4814 4815 #line 1376 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4816 4817 4818 #line default 4819 #line hidden 4820 4821 #line 1376 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4822 if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 4823 { 4824 4825 4826 #line default 4827 #line hidden 4828 WriteLiteralTo(__razor_helper_writer, " <div"); 4829 4830 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width\""); 4831 4832 WriteLiteralTo(__razor_helper_writer, "> \r\n"); 4833 4834 4835 #line 1379 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4836 4837 4838 #line default 4839 #line hidden 4840 4841 #line 1379 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4842 if (!string.IsNullOrEmpty(settings.Label)) { 4843 4844 #line default 4845 #line hidden 4846 WriteLiteralTo(__razor_helper_writer, " <label"); 4847 4848 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 58829), Tuple.Create("\"", 58847) 4849 4850 #line 1379 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4851 , Tuple.Create(Tuple.Create("", 58835), Tuple.Create<System.Object, System.Int32>(settings.Id 4852 4853 #line default 4854 #line hidden 4855 , 58835), false) 4856 ); 4857 4858 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\""); 4859 4860 WriteLiteralTo(__razor_helper_writer, ">"); 4861 4862 4863 #line 1379 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4864 WriteTo(__razor_helper_writer, settings.Label); 4865 4866 4867 #line default 4868 #line hidden 4869 WriteLiteralTo(__razor_helper_writer, "</label> "); 4870 4871 4872 #line 1379 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4873 } 4874 4875 4876 #line default 4877 #line hidden 4878 WriteLiteralTo(__razor_helper_writer, " "); 4879 4880 4881 #line 1380 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4882 if (settings.Link != null) { 4883 4884 4885 #line default 4886 #line hidden 4887 WriteLiteralTo(__razor_helper_writer, " <div"); 4888 4889 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right\""); 4890 4891 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4892 4893 4894 #line 1382 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4895 4896 4897 #line default 4898 #line hidden 4899 4900 #line 1382 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4901 settings.Link.ButtonLayout = ButtonLayout.LinkClean; 4902 4903 #line default 4904 #line hidden 4905 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4906 4907 WriteLiteralTo(__razor_helper_writer, " "); 4908 4909 4910 #line 1383 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4911 WriteTo(__razor_helper_writer, Render(settings.Link)); 4912 4913 4914 #line default 4915 #line hidden 4916 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 4917 4918 4919 #line 1385 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4920 } 4921 4922 4923 #line default 4924 #line hidden 4925 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 4926 4927 4928 #line 1387 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4929 4930 } 4931 4932 4933 #line default 4934 #line hidden 4935 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4936 4937 4938 #line 1390 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4939 4940 4941 #line default 4942 #line hidden 4943 4944 #line 1390 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4945 if (!string.IsNullOrEmpty(settings.HelpText)) 4946 { 4947 4948 4949 #line default 4950 #line hidden 4951 WriteLiteralTo(__razor_helper_writer, " <small"); 4952 4953 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 4954 4955 WriteLiteralTo(__razor_helper_writer, ">"); 4956 4957 4958 #line 1392 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4959 WriteTo(__razor_helper_writer, settings.HelpText); 4960 4961 4962 #line default 4963 #line hidden 4964 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 4965 4966 4967 #line 1393 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4968 } 4969 4970 4971 #line default 4972 #line hidden 4973 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4974 4975 4976 #line 1395 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4977 4978 4979 #line default 4980 #line hidden 4981 4982 #line 1395 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4983 if (settings.ActionButton != null) 4984 { 4985 settings.ActionButton.CssClass += " btn--condensed u-no-margin"; 4986 4987 4988 #line default 4989 #line hidden 4990 WriteLiteralTo(__razor_helper_writer, " <div"); 4991 4992 WriteLiteralTo(__razor_helper_writer, " class=\"form__field-combi u-no-margin dw-mod\""); 4993 4994 WriteLiteralTo(__razor_helper_writer, ">\r\n <input "); 4995 4996 4997 #line 1399 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 4998 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 4999 5000 5001 #line default 5002 #line hidden 5003 WriteLiteralTo(__razor_helper_writer, " class=\""); 5004 5005 5006 #line 1399 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5007 WriteTo(__razor_helper_writer, settings.CssClass); 5008 5009 5010 #line default 5011 #line hidden 5012 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n"); 5013 5014 WriteLiteralTo(__razor_helper_writer, " "); 5015 5016 5017 #line 1400 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5018 WriteTo(__razor_helper_writer, Render(settings.ActionButton)); 5019 5020 5021 #line default 5022 #line hidden 5023 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 5024 5025 5026 #line 1402 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5027 } 5028 else 5029 { 5030 5031 5032 #line default 5033 #line hidden 5034 WriteLiteralTo(__razor_helper_writer, " <div"); 5035 5036 WriteLiteralTo(__razor_helper_writer, " class=\"form__field-combi u-no-margin dw-mod\""); 5037 5038 WriteLiteralTo(__razor_helper_writer, ">\r\n <input "); 5039 5040 5041 #line 1406 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5042 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 5043 5044 5045 #line default 5046 #line hidden 5047 WriteLiteralTo(__razor_helper_writer, " class=\""); 5048 5049 5050 #line 1406 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5051 WriteTo(__razor_helper_writer, settings.CssClass); 5052 5053 5054 #line default 5055 #line hidden 5056 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n </div>\r\n"); 5057 5058 5059 #line 1408 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5060 } 5061 5062 5063 #line default 5064 #line hidden 5065 WriteLiteralTo(__razor_helper_writer, "\r\n"); 5066 5067 WriteLiteralTo(__razor_helper_writer, " "); 5068 5069 5070 #line 1410 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5071 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage })); 5072 5073 5074 #line default 5075 #line hidden 5076 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 5077 5078 5079 #line 1412 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5080 5081 5082 #line default 5083 #line hidden 5084 }); 5085 5086 #line 1412 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5087 } 5088 #line default 5089 #line hidden 5090 5091 5092 #line 1420 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5093 public RazorEngine.Templating.TemplateWriter RenderTextareaField(TextareaField settings) 5094 { 5095 #line default 5096 #line hidden 5097 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5098 5099 #line 1421 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5100 5101 Dictionary<string, string> attributes = new Dictionary<string, string>(); 5102 string id = settings.Id; 5103 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(id)) 5104 { 5105 id = Guid.NewGuid().ToString("N"); 5106 } 5107 5108 if (!string.IsNullOrEmpty(id)) { attributes.Add("id", id); } 5109 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 5110 if (!string.IsNullOrEmpty(settings.OnKeyUp)) { attributes.Add("onkeyup", settings.OnKeyUp); } 5111 if (!string.IsNullOrEmpty(settings.OnInput)) { attributes.Add("oninput", settings.OnInput); } 5112 if (!string.IsNullOrEmpty(settings.OnFocus)) { attributes.Add("onfocus", settings.OnFocus); } 5113 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 5114 if (!string.IsNullOrEmpty(settings.Placeholder)) { attributes.Add("placeholder", settings.Placeholder); } 5115 if (settings.Disabled) { attributes.Add("disabled", "true"); } 5116 if (settings.Required) { attributes.Add("required", "true"); } 5117 if (settings.ReadOnly) { attributes.Add("readonly", "true"); } 5118 if (settings.MaxLength != 0) { attributes.Add("maxlength", settings.MaxLength.ToString()); } 5119 if (settings.Rows != 0) { attributes.Add("rows", settings.Rows.ToString()); } 5120 attributes.Add("name", settings.Name); 5121 5122 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 5123 5124 5125 5126 #line default 5127 #line hidden 5128 WriteLiteralTo(__razor_helper_writer, " <div"); 5129 5130 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 61790), Tuple.Create("\"", 61848) 5131 , Tuple.Create(Tuple.Create("", 61798), Tuple.Create("form__field-group", 61798), true) 5132 5133 #line 1445 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5134 , Tuple.Create(Tuple.Create(" ", 61815), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 5135 5136 #line default 5137 #line hidden 5138 , 61816), false) 5139 , Tuple.Create(Tuple.Create(" ", 61841), Tuple.Create("dw-mod", 61842), true) 5140 ); 5141 5142 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5143 5144 5145 #line 1446 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5146 5147 5148 #line default 5149 #line hidden 5150 5151 #line 1446 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5152 if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 5153 { 5154 5155 5156 #line default 5157 #line hidden 5158 WriteLiteralTo(__razor_helper_writer, " <div"); 5159 5160 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width\""); 5161 5162 WriteLiteralTo(__razor_helper_writer, "> \r\n"); 5163 5164 5165 #line 1449 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5166 5167 5168 #line default 5169 #line hidden 5170 5171 #line 1449 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5172 if (!string.IsNullOrEmpty(settings.Label)) { 5173 5174 #line default 5175 #line hidden 5176 WriteLiteralTo(__razor_helper_writer, " <label"); 5177 5178 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 62051), Tuple.Create("\"", 62069) 5179 5180 #line 1449 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5181 , Tuple.Create(Tuple.Create("", 62057), Tuple.Create<System.Object, System.Int32>(settings.Id 5182 5183 #line default 5184 #line hidden 5185 , 62057), false) 5186 ); 5187 5188 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\""); 5189 5190 WriteLiteralTo(__razor_helper_writer, ">"); 5191 5192 5193 #line 1449 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5194 WriteTo(__razor_helper_writer, settings.Label); 5195 5196 5197 #line default 5198 #line hidden 5199 WriteLiteralTo(__razor_helper_writer, "</label> "); 5200 5201 5202 #line 1449 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5203 } 5204 5205 5206 #line default 5207 #line hidden 5208 WriteLiteralTo(__razor_helper_writer, " "); 5209 5210 5211 #line 1450 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5212 if (settings.Link != null) { 5213 5214 5215 #line default 5216 #line hidden 5217 WriteLiteralTo(__razor_helper_writer, " <div"); 5218 5219 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right\""); 5220 5221 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5222 5223 5224 #line 1452 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5225 5226 5227 #line default 5228 #line hidden 5229 5230 #line 1452 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5231 settings.Link.ButtonLayout = ButtonLayout.LinkClean; 5232 5233 #line default 5234 #line hidden 5235 WriteLiteralTo(__razor_helper_writer, "\r\n"); 5236 5237 WriteLiteralTo(__razor_helper_writer, " "); 5238 5239 5240 #line 1453 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5241 WriteTo(__razor_helper_writer, Render(settings.Link)); 5242 5243 5244 #line default 5245 #line hidden 5246 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 5247 5248 5249 #line 1455 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5250 } 5251 5252 5253 #line default 5254 #line hidden 5255 WriteLiteralTo(__razor_helper_writer, " </div> \r\n"); 5256 5257 5258 #line 1457 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5259 } 5260 5261 5262 #line default 5263 #line hidden 5264 WriteLiteralTo(__razor_helper_writer, "\r\n"); 5265 5266 5267 #line 1459 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5268 5269 5270 #line default 5271 #line hidden 5272 5273 #line 1459 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5274 if (!string.IsNullOrEmpty(settings.HelpText)) 5275 { 5276 5277 5278 #line default 5279 #line hidden 5280 WriteLiteralTo(__razor_helper_writer, " <small"); 5281 5282 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 5283 5284 WriteLiteralTo(__razor_helper_writer, ">"); 5285 5286 5287 #line 1461 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5288 WriteTo(__razor_helper_writer, settings.HelpText); 5289 5290 5291 #line default 5292 #line hidden 5293 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 5294 5295 5296 #line 1462 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5297 } 5298 5299 5300 #line default 5301 #line hidden 5302 WriteLiteralTo(__razor_helper_writer, "\r\n <textarea"); 5303 5304 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 62595), Tuple.Create("\"", 62641) 5305 , Tuple.Create(Tuple.Create("", 62603), Tuple.Create("u-full-width", 62603), true) 5306 5307 #line 1464 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5308 , Tuple.Create(Tuple.Create(" ", 62615), Tuple.Create<System.Object, System.Int32>(settings.CssClass 5309 5310 #line default 5311 #line hidden 5312 , 62616), false) 5313 , Tuple.Create(Tuple.Create(" ", 62634), Tuple.Create("dw-mod", 62635), true) 5314 ); 5315 5316 WriteLiteralTo(__razor_helper_writer, " "); 5317 5318 5319 #line 1464 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5320 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes)); 5321 5322 5323 #line default 5324 #line hidden 5325 WriteLiteralTo(__razor_helper_writer, " "); 5326 5327 5328 #line 1464 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5329 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 5330 5331 5332 #line default 5333 #line hidden 5334 WriteLiteralTo(__razor_helper_writer, ">"); 5335 5336 5337 #line 1464 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5338 WriteTo(__razor_helper_writer, settings.Value); 5339 5340 5341 #line default 5342 #line hidden 5343 WriteLiteralTo(__razor_helper_writer, "</textarea>\r\n\r\n"); 5344 5345 WriteLiteralTo(__razor_helper_writer, " "); 5346 5347 5348 #line 1466 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5349 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage })); 5350 5351 5352 #line default 5353 #line hidden 5354 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 5355 5356 5357 #line 1468 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5358 5359 5360 #line default 5361 #line hidden 5362 }); 5363 5364 #line 1468 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5365 } 5366 #line default 5367 #line hidden 5368 5369 5370 #line 1476 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5371 public RazorEngine.Templating.TemplateWriter RenderHiddenField(HiddenField settings) { 5372 #line default 5373 #line hidden 5374 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5375 5376 #line 1476 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5377 5378 var attributes = new Dictionary<string, string>(); 5379 attributes.Add("type", "hidden"); 5380 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 5381 if (settings.Value != null) { attributes.Add("value", settings.Value); } 5382 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 5383 5384 5385 5386 #line default 5387 #line hidden 5388 WriteLiteralTo(__razor_helper_writer, " <input "); 5389 5390 5391 #line 1483 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5392 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes)); 5393 5394 5395 #line default 5396 #line hidden 5397 WriteLiteralTo(__razor_helper_writer, " "); 5398 5399 5400 #line 1483 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5401 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 5402 5403 5404 #line default 5405 #line hidden 5406 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 5407 5408 5409 #line 1484 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5410 5411 5412 #line default 5413 #line hidden 5414 }); 5415 5416 #line 1484 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5417 } 5418 #line default 5419 #line hidden 5420 5421 5422 #line 1491 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5423 public RazorEngine.Templating.TemplateWriter RenderCheckboxField(CheckboxField settings) 5424 { 5425 #line default 5426 #line hidden 5427 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5428 5429 #line 1492 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5430 5431 var attributes = new Dictionary<string, string>(); 5432 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 5433 { 5434 settings.Id = Guid.NewGuid().ToString("N"); 5435 } 5436 5437 /*base settings*/ 5438 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 5439 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 5440 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 5441 if (settings.Disabled) { attributes.Add("disabled", "true"); } 5442 if (settings.Required) { attributes.Add("required", "true"); } 5443 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 5444 /*end*/ 5445 5446 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 5447 5448 attributes.Add("type", "checkbox"); 5449 if (settings.Checked) { attributes.Add("checked", "true"); } 5450 settings.CssClass = "form__control " + settings.CssClass; 5451 if (settings.Value != null) { attributes.Add("value", settings.Value); } 5452 5453 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 5454 5455 5456 5457 #line default 5458 #line hidden 5459 WriteLiteralTo(__razor_helper_writer, " <div"); 5460 5461 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 65037), Tuple.Create("\"", 65095) 5462 , Tuple.Create(Tuple.Create("", 65045), Tuple.Create("form__field-group", 65045), true) 5463 5464 #line 1517 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5465 , Tuple.Create(Tuple.Create(" ", 65062), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 5466 5467 #line default 5468 #line hidden 5469 , 65063), false) 5470 , Tuple.Create(Tuple.Create(" ", 65088), Tuple.Create("dw-mod", 65089), true) 5471 ); 5472 5473 WriteLiteralTo(__razor_helper_writer, ">\r\n <input "); 5474 5475 5476 #line 1518 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5477 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 5478 5479 5480 #line default 5481 #line hidden 5482 WriteLiteralTo(__razor_helper_writer, " class=\""); 5483 5484 5485 #line 1518 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5486 WriteTo(__razor_helper_writer, settings.CssClass); 5487 5488 5489 #line default 5490 #line hidden 5491 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n"); 5492 5493 5494 #line 1519 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5495 5496 5497 #line default 5498 #line hidden 5499 5500 #line 1519 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5501 if (!string.IsNullOrEmpty(settings.Label)) 5502 { 5503 5504 5505 #line default 5506 #line hidden 5507 WriteLiteralTo(__razor_helper_writer, " <label"); 5508 5509 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 65284), Tuple.Create("\"", 65302) 5510 5511 #line 1521 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5512 , Tuple.Create(Tuple.Create("", 65290), Tuple.Create<System.Object, System.Int32>(settings.Id 5513 5514 #line default 5515 #line hidden 5516 , 65290), false) 5517 ); 5518 5519 WriteLiteralTo(__razor_helper_writer, " class=\"dw-mod\""); 5520 5521 WriteLiteralTo(__razor_helper_writer, ">"); 5522 5523 5524 #line 1521 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5525 WriteTo(__razor_helper_writer, settings.Label); 5526 5527 5528 #line default 5529 #line hidden 5530 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 5531 5532 5533 #line 1522 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5534 } 5535 5536 5537 #line default 5538 #line hidden 5539 WriteLiteralTo(__razor_helper_writer, "\r\n"); 5540 5541 5542 #line 1524 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5543 5544 5545 #line default 5546 #line hidden 5547 5548 #line 1524 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5549 if (settings.Link != null) { 5550 5551 5552 #line default 5553 #line hidden 5554 WriteLiteralTo(__razor_helper_writer, " <span>\r\n"); 5555 5556 5557 #line 1526 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5558 5559 5560 #line default 5561 #line hidden 5562 5563 #line 1526 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5564 settings.Link.ButtonLayout = ButtonLayout.LinkClean; 5565 5566 #line default 5567 #line hidden 5568 WriteLiteralTo(__razor_helper_writer, "\r\n"); 5569 5570 WriteLiteralTo(__razor_helper_writer, " "); 5571 5572 5573 #line 1527 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5574 WriteTo(__razor_helper_writer, Render(settings.Link)); 5575 5576 5577 #line default 5578 #line hidden 5579 WriteLiteralTo(__razor_helper_writer, "\r\n </span>\r\n"); 5580 5581 5582 #line 1529 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5583 } 5584 5585 5586 #line default 5587 #line hidden 5588 WriteLiteralTo(__razor_helper_writer, "\r\n"); 5589 5590 5591 #line 1531 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5592 5593 5594 #line default 5595 #line hidden 5596 5597 #line 1531 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5598 if (!string.IsNullOrEmpty(settings.HelpText)) 5599 { 5600 5601 5602 #line default 5603 #line hidden 5604 WriteLiteralTo(__razor_helper_writer, " <small"); 5605 5606 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text checkbox-help dw-mod\""); 5607 5608 WriteLiteralTo(__razor_helper_writer, ">"); 5609 5610 5611 #line 1533 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5612 WriteTo(__razor_helper_writer, settings.HelpText); 5613 5614 5615 #line default 5616 #line hidden 5617 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 5618 5619 5620 #line 1534 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5621 } 5622 5623 5624 #line default 5625 #line hidden 5626 WriteLiteralTo(__razor_helper_writer, " "); 5627 5628 5629 #line 1535 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5630 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage })); 5631 5632 5633 #line default 5634 #line hidden 5635 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 5636 5637 5638 #line 1537 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5639 5640 5641 #line default 5642 #line hidden 5643 }); 5644 5645 #line 1537 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5646 } 5647 #line default 5648 #line hidden 5649 5650 5651 #line 1545 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5652 public RazorEngine.Templating.TemplateWriter RenderCheckboxListField(CheckboxListField settings) 5653 { 5654 #line default 5655 #line hidden 5656 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5657 5658 #line 1546 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5659 5660 5661 5662 #line default 5663 #line hidden 5664 WriteLiteralTo(__razor_helper_writer, " <div"); 5665 5666 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 66045), Tuple.Create("\"", 66119) 5667 , Tuple.Create(Tuple.Create("", 66053), Tuple.Create("form__field-group", 66053), true) 5668 5669 #line 1547 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5670 , Tuple.Create(Tuple.Create(" ", 66070), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 5671 5672 #line default 5673 #line hidden 5674 , 66071), false) 5675 , Tuple.Create(Tuple.Create(" ", 66096), Tuple.Create("u-margin-bottom", 66097), true) 5676 , Tuple.Create(Tuple.Create(" ", 66112), Tuple.Create("dw-mod", 66113), true) 5677 ); 5678 5679 WriteLiteralTo(__razor_helper_writer, " "); 5680 5681 5682 #line 1547 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5683 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 5684 5685 5686 #line default 5687 #line hidden 5688 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5689 5690 5691 #line 1548 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5692 5693 5694 #line default 5695 #line hidden 5696 5697 #line 1548 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5698 if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 5699 { 5700 5701 5702 #line default 5703 #line hidden 5704 WriteLiteralTo(__razor_helper_writer, " <div"); 5705 5706 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width\""); 5707 5708 WriteLiteralTo(__razor_helper_writer, "> \r\n"); 5709 5710 5711 #line 1551 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5712 5713 5714 #line default 5715 #line hidden 5716 5717 #line 1551 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5718 if (!string.IsNullOrEmpty(settings.Label)) { 5719 5720 #line default 5721 #line hidden 5722 WriteLiteralTo(__razor_helper_writer, " <label"); 5723 5724 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 66380), Tuple.Create("\"", 66398) 5725 5726 #line 1551 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5727 , Tuple.Create(Tuple.Create("", 66386), Tuple.Create<System.Object, System.Int32>(settings.Id 5728 5729 #line default 5730 #line hidden 5731 , 66386), false) 5732 ); 5733 5734 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\""); 5735 5736 WriteLiteralTo(__razor_helper_writer, ">"); 5737 5738 5739 #line 1551 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5740 WriteTo(__razor_helper_writer, settings.Label); 5741 5742 5743 #line default 5744 #line hidden 5745 WriteLiteralTo(__razor_helper_writer, "</label> "); 5746 5747 5748 #line 1551 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5749 } 5750 5751 5752 #line default 5753 #line hidden 5754 WriteLiteralTo(__razor_helper_writer, " "); 5755 5756 5757 #line 1552 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5758 if (settings.Link != null) { 5759 5760 5761 #line default 5762 #line hidden 5763 WriteLiteralTo(__razor_helper_writer, " <div"); 5764 5765 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right\""); 5766 5767 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5768 5769 5770 #line 1554 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5771 5772 5773 #line default 5774 #line hidden 5775 5776 #line 1554 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5777 settings.Link.ButtonLayout = ButtonLayout.LinkClean; 5778 5779 #line default 5780 #line hidden 5781 WriteLiteralTo(__razor_helper_writer, "\r\n"); 5782 5783 WriteLiteralTo(__razor_helper_writer, " "); 5784 5785 5786 #line 1555 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5787 WriteTo(__razor_helper_writer, Render(settings.Link)); 5788 5789 5790 #line default 5791 #line hidden 5792 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 5793 5794 5795 #line 1557 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5796 } 5797 5798 5799 #line default 5800 #line hidden 5801 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 5802 5803 5804 #line 1559 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5805 5806 } 5807 5808 5809 #line default 5810 #line hidden 5811 WriteLiteralTo(__razor_helper_writer, "\r\n <div"); 5812 5813 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\""); 5814 5815 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5816 5817 5818 #line 1563 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5819 5820 5821 #line default 5822 #line hidden 5823 5824 #line 1563 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5825 if (!string.IsNullOrEmpty(settings.HelpText)) 5826 { 5827 5828 5829 #line default 5830 #line hidden 5831 WriteLiteralTo(__razor_helper_writer, " <small"); 5832 5833 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 5834 5835 WriteLiteralTo(__razor_helper_writer, ">"); 5836 5837 5838 #line 1565 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5839 WriteTo(__razor_helper_writer, settings.HelpText); 5840 5841 5842 #line default 5843 #line hidden 5844 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 5845 5846 5847 #line 1566 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5848 } 5849 5850 5851 #line default 5852 #line hidden 5853 WriteLiteralTo(__razor_helper_writer, "\r\n"); 5854 5855 5856 #line 1568 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5857 5858 5859 #line default 5860 #line hidden 5861 5862 #line 1568 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5863 foreach (var item in settings.Options) 5864 { 5865 if (settings.Required) 5866 { 5867 item.Required = true; 5868 } 5869 if (settings.Disabled) 5870 { 5871 item.Disabled = true; 5872 } 5873 if (!string.IsNullOrEmpty(settings.Name)) 5874 { 5875 item.Name = settings.Name; 5876 } 5877 if (!string.IsNullOrEmpty(settings.CssClass)) 5878 { 5879 item.CssClass += settings.CssClass; 5880 } 5881 5882 /* value is not supported */ 5883 5884 if (!string.IsNullOrEmpty(settings.OnClick)) 5885 { 5886 item.OnClick += settings.OnClick; 5887 } 5888 if (!string.IsNullOrEmpty(settings.OnChange)) 5889 { 5890 item.OnChange += settings.OnChange; 5891 } 5892 5893 5894 #line default 5895 #line hidden 5896 5897 #line 1597 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5898 WriteTo(__razor_helper_writer, Render(item)); 5899 5900 5901 #line default 5902 #line hidden 5903 5904 #line 1597 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5905 5906 } 5907 5908 5909 #line default 5910 #line hidden 5911 WriteLiteralTo(__razor_helper_writer, "\r\n"); 5912 5913 WriteLiteralTo(__razor_helper_writer, " "); 5914 5915 5916 #line 1600 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5917 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage })); 5918 5919 5920 #line default 5921 #line hidden 5922 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n \r\n </div>\r\n"); 5923 5924 5925 #line 1604 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5926 5927 5928 #line default 5929 #line hidden 5930 }); 5931 5932 #line 1604 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5933 } 5934 #line default 5935 #line hidden 5936 5937 5938 #line 1609 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5939 public RazorEngine.Templating.TemplateWriter RenderSearch(Search settings) 5940 { 5941 #line default 5942 #line hidden 5943 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5944 5945 #line 1610 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 5946 5947 var searchValue = HttpContext.Current.Request.QueryString.Get(settings.SearchParameter) ?? ""; 5948 var groupValue = HttpContext.Current.Request.QueryString.Get(settings.GroupsParameter) ?? ""; 5949 5950 if (string.IsNullOrEmpty(settings.Id)) 5951 { 5952 settings.Id = Guid.NewGuid().ToString("N"); 5953 } 5954 5955 var resultAttributes = new Dictionary<string, string>(); 5956 5957 if (settings.PageSize != 0) 5958 { 5959 resultAttributes.Add("data-page-size", settings.PageSize.ToString()); 5960 } 5961 if (!string.IsNullOrEmpty(settings.GroupItemsFeedUrl)) 5962 { 5963 resultAttributes.Add("data-groups-feed-url", settings.GroupItemsFeedUrl); 5964 if (!string.IsNullOrEmpty(groupValue)) 5965 { 5966 resultAttributes.Add("data-selected-group", groupValue); 5967 } 5968 if (!string.IsNullOrEmpty(settings.GroupsParameter)) 5969 { 5970 resultAttributes.Add("data-groups-parameter", settings.GroupsParameter); 5971 } 5972 } 5973 resultAttributes.Add("data-force-init", "true"); 5974 if (settings.GoToFirstSearchResultOnEnter) 5975 { 5976 resultAttributes.Add("data-go-to-first-search-result-on-enter", settings.GoToFirstSearchResultOnEnter.ToString().ToLower()); 5977 } 5978 if (!string.IsNullOrEmpty(settings.SearchParameter)) 5979 { 5980 resultAttributes.Add("data-search-parameter", settings.SearchParameter); 5981 } 5982 resultAttributes.Add("data-search-feed-url", settings.SearchData.SearchFeedUrl); 5983 resultAttributes.Add("data-results-template-id", settings.SearchData.ResultsTemplateId); 5984 5985 if (settings.SecondSearchData != null) 5986 { 5987 resultAttributes.Add("data-second-search-feed-url", settings.SecondSearchData.SearchFeedUrl); 5988 resultAttributes.Add("data-second-results-template-id", settings.SecondSearchData.ResultsTemplateId); 5989 } 5990 if (!string.IsNullOrEmpty(settings.ResultsPageUrl)) 5991 { 5992 resultAttributes.Add("data-results-page-url", settings.ResultsPageUrl); 5993 } 5994 5995 resultAttributes = resultAttributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 5996 5997 string searchFieldCss = (settings.SearchButton == null) ? "search--with-icon" : ""; 5998 5999 6000 6001 #line default 6002 #line hidden 6003 WriteLiteralTo(__razor_helper_writer, " <div"); 6004 6005 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 70463), Tuple.Create("\"", 70541) 6006 , Tuple.Create(Tuple.Create("", 70471), Tuple.Create("search", 70471), true) 6007 6008 #line 1663 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6009 , Tuple.Create(Tuple.Create(" ", 70477), Tuple.Create<System.Object, System.Int32>(settings.CssClass 6010 6011 #line default 6012 #line hidden 6013 , 70478), false) 6014 6015 #line 1663 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6016 , Tuple.Create(Tuple.Create(" ", 70496), Tuple.Create<System.Object, System.Int32>(searchFieldCss 6017 6018 #line default 6019 #line hidden 6020 , 70497), false) 6021 , Tuple.Create(Tuple.Create(" ", 70512), Tuple.Create("js-search-data-source", 70513), true) 6022 , Tuple.Create(Tuple.Create(" ", 70534), Tuple.Create("dw-mod", 70535), true) 6023 ); 6024 6025 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 70542), Tuple.Create("\"", 70559) 6026 6027 #line 1663 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6028 , Tuple.Create(Tuple.Create("", 70547), Tuple.Create<System.Object, System.Int32>(settings.Id 6029 6030 #line default 6031 #line hidden 6032 , 70547), false) 6033 ); 6034 6035 WriteLiteralTo(__razor_helper_writer, " "); 6036 6037 6038 #line 1663 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6039 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 6040 6041 6042 #line default 6043 #line hidden 6044 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6045 6046 6047 #line 1664 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6048 6049 6050 #line default 6051 #line hidden 6052 6053 #line 1664 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6054 if (!string.IsNullOrEmpty(settings.GroupItemsFeedUrl)) 6055 { 6056 6057 6058 #line default 6059 #line hidden 6060 WriteLiteralTo(__razor_helper_writer, " <button"); 6061 6062 WriteLiteralTo(__razor_helper_writer, " type=\"button\""); 6063 6064 WriteLiteralTo(__razor_helper_writer, " class=\"search__groups-btn dw-mod js-search-groups-btn\""); 6065 6066 WriteLiteralTo(__razor_helper_writer, ">"); 6067 6068 6069 #line 1666 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6070 WriteTo(__razor_helper_writer, Translate("All")); 6071 6072 6073 #line default 6074 #line hidden 6075 WriteLiteralTo(__razor_helper_writer, "</button>\r\n"); 6076 6077 WriteLiteralTo(__razor_helper_writer, " <ul"); 6078 6079 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown dropdown--absolute-position dw-mod search__groups-results js-sea" + 6080 "rch-groups-list\""); 6081 6082 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n"); 6083 6084 6085 #line 1668 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6086 } 6087 6088 6089 #line default 6090 #line hidden 6091 WriteLiteralTo(__razor_helper_writer, "\r\n <input"); 6092 6093 WriteLiteralTo(__razor_helper_writer, " type=\"text\""); 6094 6095 WriteLiteralTo(__razor_helper_writer, " class=\"search__field dw-mod js-search-field\""); 6096 6097 WriteAttributeTo(__razor_helper_writer, "placeholder", Tuple.Create(" placeholder=\"", 71010), Tuple.Create("\"", 71045) 6098 6099 #line 1670 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6100 , Tuple.Create(Tuple.Create("", 71024), Tuple.Create<System.Object, System.Int32>(settings.Placeholder 6101 6102 #line default 6103 #line hidden 6104 , 71024), false) 6105 ); 6106 6107 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 71046), Tuple.Create("\"", 71066) 6108 6109 #line 1670 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6110 , Tuple.Create(Tuple.Create("", 71054), Tuple.Create<System.Object, System.Int32>(searchValue 6111 6112 #line default 6113 #line hidden 6114 , 71054), false) 6115 ); 6116 6117 WriteLiteralTo(__razor_helper_writer, ">\r\n \r\n <div"); 6118 6119 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 71092), Tuple.Create("\"", 71249) 6120 , Tuple.Create(Tuple.Create("", 71100), Tuple.Create("dropdown", 71100), true) 6121 , Tuple.Create(Tuple.Create(" ", 71108), Tuple.Create("dropdown--absolute-position", 71109), true) 6122 , Tuple.Create(Tuple.Create(" ", 71136), Tuple.Create("search__results", 71137), true) 6123 , Tuple.Create(Tuple.Create(" ", 71152), Tuple.Create("dw-mod", 71153), true) 6124 , Tuple.Create(Tuple.Create(" ", 71159), Tuple.Create("js-search-results", 71160), true) 6125 6126 #line 1672 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6127 , Tuple.Create(Tuple.Create(" ", 71177), Tuple.Create<System.Object, System.Int32>(settings.SecondSearchData != null ? "search__results--combined" : "" 6128 6129 #line default 6130 #line hidden 6131 , 71178), false) 6132 ); 6133 6134 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6135 6136 6137 #line 1673 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6138 6139 6140 #line default 6141 #line hidden 6142 6143 #line 1673 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6144 if (settings.SecondSearchData != null) 6145 { 6146 6147 6148 #line default 6149 #line hidden 6150 WriteLiteralTo(__razor_helper_writer, " <div"); 6151 6152 WriteLiteralTo(__razor_helper_writer, " class=\"search__column search__column--products dw-mod\""); 6153 6154 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 6155 6156 WriteLiteralTo(__razor_helper_writer, " class=\"search__column-header dw-mod\""); 6157 6158 WriteLiteralTo(__razor_helper_writer, ">"); 6159 6160 6161 #line 1676 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6162 WriteTo(__razor_helper_writer, Translate("Products")); 6163 6164 6165 #line default 6166 #line hidden 6167 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <ul"); 6168 6169 WriteLiteralTo(__razor_helper_writer, " class=\"search__results-list dw-mod js-search-results-list\""); 6170 6171 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 71573), Tuple.Create("\"", 71604) 6172 6173 #line 1677 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6174 , Tuple.Create(Tuple.Create("", 71578), Tuple.Create<System.Object, System.Int32>(settings.Id 6175 6176 #line default 6177 #line hidden 6178 , 71578), false) 6179 , Tuple.Create(Tuple.Create("", 71592), Tuple.Create("_ResultsList", 71592), true) 6180 ); 6181 6182 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n"); 6183 6184 6185 #line 1678 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6186 6187 6188 #line default 6189 #line hidden 6190 6191 #line 1678 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6192 if (!string.IsNullOrEmpty(settings.SearchData.ResultsPageUrl)) 6193 { 6194 6195 6196 #line default 6197 #line hidden 6198 6199 #line 1680 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6200 WriteTo(__razor_helper_writer, Render(new Link { 6201 Title = Translate("View all"), 6202 CssClass = "js-view-all-button u-margin", 6203 Href = settings.SearchData.ResultsPageUrl 6204 })); 6205 6206 6207 #line default 6208 #line hidden 6209 6210 #line 1684 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6211 ; 6212 } 6213 6214 6215 #line default 6216 #line hidden 6217 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 6218 6219 WriteLiteralTo(__razor_helper_writer, " <div"); 6220 6221 WriteLiteralTo(__razor_helper_writer, " class=\"search__column search__column--pages dw-mod\""); 6222 6223 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 6224 6225 WriteLiteralTo(__razor_helper_writer, " class=\"search__column-header\""); 6226 6227 WriteLiteralTo(__razor_helper_writer, ">"); 6228 6229 6230 #line 1688 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6231 WriteTo(__razor_helper_writer, Translate("Pages")); 6232 6233 6234 #line default 6235 #line hidden 6236 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <ul"); 6237 6238 WriteLiteralTo(__razor_helper_writer, " class=\"search__results-list dw-mod js-search-results-second-list\""); 6239 6240 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 72289), Tuple.Create("\"", 72326) 6241 6242 #line 1689 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6243 , Tuple.Create(Tuple.Create("", 72294), Tuple.Create<System.Object, System.Int32>(settings.Id 6244 6245 #line default 6246 #line hidden 6247 , 72294), false) 6248 , Tuple.Create(Tuple.Create("", 72308), Tuple.Create("_SecondResultsList", 72308), true) 6249 ); 6250 6251 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n"); 6252 6253 6254 #line 1690 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6255 6256 6257 #line default 6258 #line hidden 6259 6260 #line 1690 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6261 if (!string.IsNullOrEmpty(settings.SecondSearchData.ResultsPageUrl)) 6262 { 6263 6264 6265 #line default 6266 #line hidden 6267 6268 #line 1692 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6269 WriteTo(__razor_helper_writer, Render(new Link 6270 { 6271 Title = Translate("View all"), 6272 CssClass = "js-view-all-button u-margin", 6273 Href = settings.SecondSearchData.ResultsPageUrl 6274 })); 6275 6276 6277 #line default 6278 #line hidden 6279 6280 #line 1697 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6281 ; 6282 } 6283 6284 6285 #line default 6286 #line hidden 6287 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 6288 6289 6290 #line 1700 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6291 } 6292 else 6293 { 6294 6295 6296 #line default 6297 #line hidden 6298 WriteLiteralTo(__razor_helper_writer, " <div"); 6299 6300 WriteLiteralTo(__razor_helper_writer, " class=\"search__column search__column--only dw-mod\""); 6301 6302 WriteLiteralTo(__razor_helper_writer, ">\r\n <ul"); 6303 6304 WriteLiteralTo(__razor_helper_writer, " class=\"search__results-list dw-mod js-search-results-list\""); 6305 6306 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 73006), Tuple.Create("\"", 73037) 6307 6308 #line 1704 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6309 , Tuple.Create(Tuple.Create("", 73011), Tuple.Create<System.Object, System.Int32>(settings.Id 6310 6311 #line default 6312 #line hidden 6313 , 73011), false) 6314 , Tuple.Create(Tuple.Create("", 73025), Tuple.Create("_ResultsList", 73025), true) 6315 ); 6316 6317 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n"); 6318 6319 6320 #line 1705 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6321 6322 6323 #line default 6324 #line hidden 6325 6326 #line 1705 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6327 if (!string.IsNullOrEmpty(settings.SearchData.ResultsPageUrl)) 6328 { 6329 6330 6331 #line default 6332 #line hidden 6333 6334 #line 1707 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6335 WriteTo(__razor_helper_writer, Render(new Link { 6336 Title = Translate("View all"), 6337 CssClass = "js-view-all-button u-margin", 6338 Href = settings.SearchData.ResultsPageUrl 6339 })); 6340 6341 6342 #line default 6343 #line hidden 6344 6345 #line 1711 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6346 ; 6347 } 6348 6349 6350 #line default 6351 #line hidden 6352 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 6353 6354 6355 #line 1714 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6356 } 6357 6358 6359 #line default 6360 #line hidden 6361 WriteLiteralTo(__razor_helper_writer, " </div>\r\n\r\n"); 6362 6363 6364 #line 1717 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6365 6366 6367 #line default 6368 #line hidden 6369 6370 #line 1717 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6371 if (settings.SearchButton != null) 6372 { 6373 settings.SearchButton.CssClass += " search__btn js-search-btn"; 6374 if (settings.RenderDefaultSearchIcon) 6375 { 6376 settings.SearchButton.Icon = new Icon { Name = Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SearchIcon").SelectedValue }; 6377 } 6378 6379 6380 #line default 6381 #line hidden 6382 6383 #line 1724 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6384 WriteTo(__razor_helper_writer, Render(settings.SearchButton)); 6385 6386 6387 #line default 6388 #line hidden 6389 6390 #line 1724 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6391 ; 6392 } 6393 6394 6395 #line default 6396 #line hidden 6397 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 6398 6399 6400 #line 1727 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6401 6402 6403 #line default 6404 #line hidden 6405 }); 6406 6407 #line 1727 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6408 } 6409 #line default 6410 #line hidden 6411 6412 6413 #line 1735 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6414 public RazorEngine.Templating.TemplateWriter RenderSelectField(SelectField settings) 6415 { 6416 #line default 6417 #line hidden 6418 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6419 6420 #line 1736 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6421 6422 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 6423 { 6424 settings.Id = Guid.NewGuid().ToString("N"); 6425 } 6426 6427 6428 6429 #line default 6430 #line hidden 6431 WriteLiteralTo(__razor_helper_writer, " <div"); 6432 6433 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 74313), Tuple.Create("\"", 74384) 6434 , Tuple.Create(Tuple.Create("", 74321), Tuple.Create("form__field-group", 74321), true) 6435 , Tuple.Create(Tuple.Create(" ", 74338), Tuple.Create("u-full-width", 74339), true) 6436 6437 #line 1742 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6438 , Tuple.Create(Tuple.Create(" ", 74351), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 6439 6440 #line default 6441 #line hidden 6442 , 74352), false) 6443 , Tuple.Create(Tuple.Create(" ", 74377), Tuple.Create("dw-mod", 74378), true) 6444 ); 6445 6446 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6447 6448 6449 #line 1743 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6450 6451 6452 #line default 6453 #line hidden 6454 6455 #line 1743 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6456 if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 6457 { 6458 6459 6460 #line default 6461 #line hidden 6462 WriteLiteralTo(__razor_helper_writer, " <div"); 6463 6464 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width\""); 6465 6466 WriteLiteralTo(__razor_helper_writer, "> \r\n"); 6467 6468 6469 #line 1746 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6470 6471 6472 #line default 6473 #line hidden 6474 6475 #line 1746 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6476 if (!string.IsNullOrEmpty(settings.Label)) { 6477 6478 #line default 6479 #line hidden 6480 WriteLiteralTo(__razor_helper_writer, " <label"); 6481 6482 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 74587), Tuple.Create("\"", 74605) 6483 6484 #line 1746 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6485 , Tuple.Create(Tuple.Create("", 74593), Tuple.Create<System.Object, System.Int32>(settings.Id 6486 6487 #line default 6488 #line hidden 6489 , 74593), false) 6490 ); 6491 6492 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\""); 6493 6494 WriteLiteralTo(__razor_helper_writer, ">"); 6495 6496 6497 #line 1746 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6498 WriteTo(__razor_helper_writer, settings.Label); 6499 6500 6501 #line default 6502 #line hidden 6503 WriteLiteralTo(__razor_helper_writer, "</label> "); 6504 6505 6506 #line 1746 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6507 } 6508 6509 6510 #line default 6511 #line hidden 6512 WriteLiteralTo(__razor_helper_writer, " "); 6513 6514 6515 #line 1747 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6516 if (settings.Link != null) { 6517 6518 6519 #line default 6520 #line hidden 6521 WriteLiteralTo(__razor_helper_writer, " <div"); 6522 6523 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right\""); 6524 6525 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6526 6527 6528 #line 1749 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6529 6530 6531 #line default 6532 #line hidden 6533 6534 #line 1749 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6535 settings.Link.ButtonLayout = ButtonLayout.LinkClean; 6536 6537 #line default 6538 #line hidden 6539 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6540 6541 WriteLiteralTo(__razor_helper_writer, " "); 6542 6543 6544 #line 1750 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6545 WriteTo(__razor_helper_writer, Render(settings.Link)); 6546 6547 6548 #line default 6549 #line hidden 6550 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 6551 6552 6553 #line 1752 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6554 } 6555 6556 6557 #line default 6558 #line hidden 6559 WriteLiteralTo(__razor_helper_writer, " </div> \r\n"); 6560 6561 6562 #line 1754 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6563 } 6564 6565 6566 #line default 6567 #line hidden 6568 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6569 6570 6571 #line 1756 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6572 6573 6574 #line default 6575 #line hidden 6576 6577 #line 1756 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6578 if (!string.IsNullOrEmpty(settings.HelpText)) 6579 { 6580 6581 6582 #line default 6583 #line hidden 6584 WriteLiteralTo(__razor_helper_writer, " <small"); 6585 6586 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 6587 6588 WriteLiteralTo(__razor_helper_writer, ">"); 6589 6590 6591 #line 1758 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6592 WriteTo(__razor_helper_writer, settings.HelpText); 6593 6594 6595 #line default 6596 #line hidden 6597 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 6598 6599 6600 #line 1759 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6601 } 6602 6603 6604 #line default 6605 #line hidden 6606 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6607 6608 6609 #line 1761 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6610 6611 6612 #line default 6613 #line hidden 6614 6615 #line 1761 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6616 if (settings.ActionButton != null) 6617 { 6618 settings.ActionButton.CssClass += " btn--condensed u-no-margin"; 6619 6620 6621 #line default 6622 #line hidden 6623 WriteLiteralTo(__razor_helper_writer, " <div"); 6624 6625 WriteLiteralTo(__razor_helper_writer, " class=\"form__field-combi u-no-margin dw-mod\""); 6626 6627 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6628 6629 WriteLiteralTo(__razor_helper_writer, " "); 6630 6631 6632 #line 1765 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6633 WriteTo(__razor_helper_writer, RenderSelectBase(settings)); 6634 6635 6636 #line default 6637 #line hidden 6638 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6639 6640 WriteLiteralTo(__razor_helper_writer, " "); 6641 6642 6643 #line 1766 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6644 WriteTo(__razor_helper_writer, Render(settings.ActionButton)); 6645 6646 6647 #line default 6648 #line hidden 6649 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 6650 6651 6652 #line 1768 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6653 } 6654 else 6655 { 6656 6657 6658 #line default 6659 #line hidden 6660 6661 #line 1771 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6662 WriteTo(__razor_helper_writer, RenderSelectBase(settings)); 6663 6664 6665 #line default 6666 #line hidden 6667 6668 #line 1771 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6669 6670 } 6671 6672 6673 #line default 6674 #line hidden 6675 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6676 6677 WriteLiteralTo(__razor_helper_writer, " "); 6678 6679 6680 #line 1774 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6681 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage })); 6682 6683 6684 #line default 6685 #line hidden 6686 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 6687 6688 6689 #line 1776 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6690 6691 6692 #line default 6693 #line hidden 6694 }); 6695 6696 #line 1776 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6697 } 6698 #line default 6699 #line hidden 6700 6701 6702 #line 1778 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6703 public RazorEngine.Templating.TemplateWriter RenderSelectBase(SelectField settings) 6704 { 6705 #line default 6706 #line hidden 6707 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6708 6709 #line 1779 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6710 6711 var attributes = new Dictionary<string, string>(); 6712 6713 /*base settings*/ 6714 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 6715 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 6716 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 6717 if (settings.Disabled) { attributes.Add("disabled", "true"); } 6718 if (settings.Required) { attributes.Add("required", "true"); } 6719 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 6720 /*end*/ 6721 6722 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 6723 6724 6725 6726 #line default 6727 #line hidden 6728 WriteLiteralTo(__razor_helper_writer, " <select "); 6729 6730 6731 #line 1793 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6732 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 6733 6734 6735 #line default 6736 #line hidden 6737 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width "); 6738 6739 6740 #line 1793 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6741 WriteTo(__razor_helper_writer, settings.CssClass); 6742 6743 6744 #line default 6745 #line hidden 6746 WriteLiteralTo(__razor_helper_writer, " dw-mod\">\r\n"); 6747 6748 6749 #line 1794 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6750 6751 6752 #line default 6753 #line hidden 6754 6755 #line 1794 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6756 if (settings.Default != null) 6757 { 6758 6759 6760 #line default 6761 #line hidden 6762 6763 #line 1796 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6764 WriteTo(__razor_helper_writer, Render(settings.Default)); 6765 6766 6767 #line default 6768 #line hidden 6769 6770 #line 1796 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6771 6772 } 6773 6774 6775 #line default 6776 #line hidden 6777 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6778 6779 6780 #line 1799 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6781 6782 6783 #line default 6784 #line hidden 6785 6786 #line 1799 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6787 foreach (var item in settings.Options) 6788 { 6789 if (settings.Value != null) { 6790 item.Checked = item.Value == settings.Value; 6791 } 6792 6793 6794 #line default 6795 #line hidden 6796 6797 #line 1804 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6798 WriteTo(__razor_helper_writer, Render(item)); 6799 6800 6801 #line default 6802 #line hidden 6803 6804 #line 1804 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6805 6806 } 6807 6808 6809 #line default 6810 #line hidden 6811 WriteLiteralTo(__razor_helper_writer, " </select>\r\n"); 6812 6813 6814 #line 1807 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6815 6816 6817 #line default 6818 #line hidden 6819 }); 6820 6821 #line 1807 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6822 } 6823 #line default 6824 #line hidden 6825 6826 6827 #line 1814 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6828 public RazorEngine.Templating.TemplateWriter RenderRadioButtonField(RadioButtonField settings) 6829 { 6830 #line default 6831 #line hidden 6832 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6833 6834 #line 1815 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6835 6836 var attributes = new Dictionary<string, string>(); 6837 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 6838 { 6839 settings.Id = Guid.NewGuid().ToString("N"); 6840 } 6841 6842 /*base settings*/ 6843 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 6844 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 6845 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 6846 if (settings.Disabled) { attributes.Add("disabled", "true"); } 6847 if (settings.Required) { attributes.Add("required", "true"); } 6848 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 6849 /*end*/ 6850 6851 attributes.Add("type", "radio"); 6852 if (settings.Checked) { attributes.Add("checked", "true"); } 6853 settings.CssClass = "form__control " + settings.CssClass; 6854 if (settings.Value != null) { attributes.Add("value", settings.Value); } 6855 6856 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 6857 6858 6859 6860 #line default 6861 #line hidden 6862 WriteLiteralTo(__razor_helper_writer, " <div"); 6863 6864 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 78226), Tuple.Create("\"", 78284) 6865 , Tuple.Create(Tuple.Create("", 78234), Tuple.Create("form__field-group", 78234), true) 6866 6867 #line 1838 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6868 , Tuple.Create(Tuple.Create(" ", 78251), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 6869 6870 #line default 6871 #line hidden 6872 , 78252), false) 6873 , Tuple.Create(Tuple.Create(" ", 78277), Tuple.Create("dw-mod", 78278), true) 6874 ); 6875 6876 WriteLiteralTo(__razor_helper_writer, ">\r\n <input "); 6877 6878 6879 #line 1839 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6880 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 6881 6882 6883 #line default 6884 #line hidden 6885 WriteLiteralTo(__razor_helper_writer, " class=\""); 6886 6887 6888 #line 1839 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6889 WriteTo(__razor_helper_writer, settings.CssClass); 6890 6891 6892 #line default 6893 #line hidden 6894 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n"); 6895 6896 6897 #line 1840 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6898 6899 6900 #line default 6901 #line hidden 6902 6903 #line 1840 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6904 if (!string.IsNullOrEmpty(settings.Label)) 6905 { 6906 6907 6908 #line default 6909 #line hidden 6910 WriteLiteralTo(__razor_helper_writer, " <label"); 6911 6912 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 78473), Tuple.Create("\"", 78491) 6913 6914 #line 1842 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6915 , Tuple.Create(Tuple.Create("", 78479), Tuple.Create<System.Object, System.Int32>(settings.Id 6916 6917 #line default 6918 #line hidden 6919 , 78479), false) 6920 ); 6921 6922 WriteLiteralTo(__razor_helper_writer, " class=\"dw-mod\""); 6923 6924 WriteLiteralTo(__razor_helper_writer, ">"); 6925 6926 6927 #line 1842 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6928 WriteTo(__razor_helper_writer, settings.Label); 6929 6930 6931 #line default 6932 #line hidden 6933 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 6934 6935 6936 #line 1843 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6937 } 6938 6939 6940 #line default 6941 #line hidden 6942 WriteLiteralTo(__razor_helper_writer, " "); 6943 6944 6945 #line 1844 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6946 if (!string.IsNullOrEmpty(settings.HelpText)) 6947 { 6948 6949 6950 #line default 6951 #line hidden 6952 WriteLiteralTo(__razor_helper_writer, " <small"); 6953 6954 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 6955 6956 WriteLiteralTo(__razor_helper_writer, ">"); 6957 6958 6959 #line 1846 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6960 WriteTo(__razor_helper_writer, settings.HelpText); 6961 6962 6963 #line default 6964 #line hidden 6965 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 6966 6967 6968 #line 1847 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6969 } 6970 6971 6972 #line default 6973 #line hidden 6974 WriteLiteralTo(__razor_helper_writer, " "); 6975 6976 6977 #line 1848 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6978 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage })); 6979 6980 6981 #line default 6982 #line hidden 6983 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 6984 6985 6986 #line 1850 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6987 6988 6989 #line default 6990 #line hidden 6991 }); 6992 6993 #line 1850 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 6994 } 6995 #line default 6996 #line hidden 6997 6998 6999 #line 1858 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7000 public RazorEngine.Templating.TemplateWriter RenderRadioButtonListField(RadioButtonListField settings) 7001 { 7002 #line default 7003 #line hidden 7004 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7005 7006 #line 1859 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7007 7008 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 7009 7010 7011 7012 #line default 7013 #line hidden 7014 WriteLiteralTo(__razor_helper_writer, " <div"); 7015 7016 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 79147), Tuple.Create("\"", 79221) 7017 , Tuple.Create(Tuple.Create("", 79155), Tuple.Create("form__field-group", 79155), true) 7018 7019 #line 1862 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7020 , Tuple.Create(Tuple.Create(" ", 79172), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 7021 7022 #line default 7023 #line hidden 7024 , 79173), false) 7025 , Tuple.Create(Tuple.Create(" ", 79198), Tuple.Create("u-margin-bottom", 79199), true) 7026 , Tuple.Create(Tuple.Create(" ", 79214), Tuple.Create("dw-mod", 79215), true) 7027 ); 7028 7029 WriteLiteralTo(__razor_helper_writer, " "); 7030 7031 7032 #line 1862 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7033 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 7034 7035 7036 #line default 7037 #line hidden 7038 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7039 7040 7041 #line 1863 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7042 7043 7044 #line default 7045 #line hidden 7046 7047 #line 1863 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7048 if (!string.IsNullOrEmpty(settings.Label)) 7049 { 7050 7051 7052 #line default 7053 #line hidden 7054 WriteLiteralTo(__razor_helper_writer, " <label>"); 7055 7056 7057 #line 1865 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7058 WriteTo(__razor_helper_writer, settings.Label); 7059 7060 7061 #line default 7062 #line hidden 7063 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 7064 7065 7066 #line 1866 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7067 } 7068 7069 7070 #line default 7071 #line hidden 7072 WriteLiteralTo(__razor_helper_writer, " "); 7073 7074 7075 #line 1867 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7076 if (!string.IsNullOrEmpty(settings.HelpText)) 7077 { 7078 7079 7080 #line default 7081 #line hidden 7082 WriteLiteralTo(__razor_helper_writer, " <small"); 7083 7084 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 7085 7086 WriteLiteralTo(__razor_helper_writer, ">"); 7087 7088 7089 #line 1869 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7090 WriteTo(__razor_helper_writer, settings.HelpText); 7091 7092 7093 #line default 7094 #line hidden 7095 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 7096 7097 7098 #line 1870 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7099 } 7100 7101 7102 #line default 7103 #line hidden 7104 WriteLiteralTo(__razor_helper_writer, "\r\n"); 7105 7106 7107 #line 1872 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7108 7109 7110 #line default 7111 #line hidden 7112 7113 #line 1872 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7114 foreach (var item in settings.Options) 7115 { 7116 if (settings.Required) 7117 { 7118 item.Required = true; 7119 } 7120 if (settings.Disabled) 7121 { 7122 item.Disabled = true; 7123 } 7124 if (!string.IsNullOrEmpty(settings.Name)) 7125 { 7126 item.Name = settings.Name; 7127 } 7128 if (settings.Value != null && settings.Value == item.Value) 7129 { 7130 item.Checked = true; 7131 } 7132 if (!string.IsNullOrEmpty(settings.OnClick)) 7133 { 7134 item.OnClick += settings.OnClick; 7135 } 7136 if (!string.IsNullOrEmpty(settings.OnChange)) 7137 { 7138 item.OnChange += settings.OnChange; 7139 } 7140 if (!string.IsNullOrEmpty(settings.CssClass)) 7141 { 7142 item.CssClass += settings.CssClass; 7143 } 7144 7145 7146 #line default 7147 #line hidden 7148 7149 #line 1902 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7150 WriteTo(__razor_helper_writer, Render(item)); 7151 7152 7153 #line default 7154 #line hidden 7155 7156 #line 1902 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7157 7158 } 7159 7160 7161 #line default 7162 #line hidden 7163 WriteLiteralTo(__razor_helper_writer, "\r\n"); 7164 7165 WriteLiteralTo(__razor_helper_writer, " "); 7166 7167 7168 #line 1905 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7169 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage })); 7170 7171 7172 #line default 7173 #line hidden 7174 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 7175 7176 7177 #line 1907 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7178 7179 7180 #line default 7181 #line hidden 7182 }); 7183 7184 #line 1907 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7185 } 7186 #line default 7187 #line hidden 7188 7189 7190 #line 1915 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7191 public RazorEngine.Templating.TemplateWriter RenderNotificationMessage(NotificationMessage settings) 7192 { 7193 #line default 7194 #line hidden 7195 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7196 7197 #line 1916 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7198 7199 if (!string.IsNullOrEmpty(settings.Message)) 7200 { 7201 var attributes = new Dictionary<string, string>(); 7202 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 7203 7204 string messageTypeClass = Enum.GetName(typeof(NotificationMessageType), settings.MessageType).ToLower(); 7205 string messageLayoutClass = Enum.GetName(typeof(NotificationMessageLayout), settings.MessageLayout).ToLower(); 7206 string minHeightClass = settings.Icon != null ? "u-min-h70px" : ""; 7207 7208 7209 7210 #line default 7211 #line hidden 7212 WriteLiteralTo(__razor_helper_writer, " <div"); 7213 7214 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 81394), Tuple.Create("\"", 81557) 7215 , Tuple.Create(Tuple.Create("", 81402), Tuple.Create("notification-message-", 81402), true) 7216 7217 #line 1926 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7218 , Tuple.Create(Tuple.Create("", 81423), Tuple.Create<System.Object, System.Int32>(messageTypeClass 7219 7220 #line default 7221 #line hidden 7222 , 81423), false) 7223 , Tuple.Create(Tuple.Create(" ", 81440), Tuple.Create("notification-message-", 81441), true) 7224 7225 #line 1926 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7226 , Tuple.Create(Tuple.Create("", 81462), Tuple.Create<System.Object, System.Int32>(messageLayoutClass 7227 7228 #line default 7229 #line hidden 7230 , 81462), false) 7231 7232 #line 1926 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7233 , Tuple.Create(Tuple.Create(" ", 81481), Tuple.Create<System.Object, System.Int32>(messageLayoutClass 7234 7235 #line default 7236 #line hidden 7237 , 81482), false) 7238 7239 #line 1926 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7240 , Tuple.Create(Tuple.Create(" ", 81501), Tuple.Create<System.Object, System.Int32>(minHeightClass 7241 7242 #line default 7243 #line hidden 7244 , 81502), false) 7245 7246 #line 1926 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7247 , Tuple.Create(Tuple.Create(" ", 81517), Tuple.Create<System.Object, System.Int32>(settings.CssClass 7248 7249 #line default 7250 #line hidden 7251 , 81518), false) 7252 , Tuple.Create(Tuple.Create(" ", 81536), Tuple.Create("u-full-width", 81537), true) 7253 , Tuple.Create(Tuple.Create(" ", 81549), Tuple.Create("dw-mod", 81551), true) 7254 ); 7255 7256 WriteLiteralTo(__razor_helper_writer, " "); 7257 7258 7259 #line 1926 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7260 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes)); 7261 7262 7263 #line default 7264 #line hidden 7265 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7266 7267 7268 #line 1927 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7269 7270 7271 #line default 7272 #line hidden 7273 7274 #line 1927 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7275 if (settings.Icon != null) { 7276 settings.Icon.Label = !string.IsNullOrEmpty(settings.Icon.Label) ? settings.Message + settings.Icon.Label : settings.Message; 7277 7278 7279 #line default 7280 #line hidden 7281 7282 #line 1929 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7283 WriteTo(__razor_helper_writer, Render(settings.Icon)); 7284 7285 7286 #line default 7287 #line hidden 7288 7289 #line 1929 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7290 7291 } else { 7292 7293 7294 #line default 7295 #line hidden 7296 7297 #line 1931 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7298 WriteTo(__razor_helper_writer, settings.Message); 7299 7300 7301 #line default 7302 #line hidden 7303 7304 #line 1931 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7305 7306 } 7307 7308 7309 #line default 7310 #line hidden 7311 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 7312 7313 7314 #line 1934 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7315 } 7316 7317 7318 #line default 7319 #line hidden 7320 }); 7321 7322 #line 1935 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7323 } 7324 #line default 7325 #line hidden 7326 7327 7328 #line 1941 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7329 public RazorEngine.Templating.TemplateWriter RenderHandlebarsRoot(HandlebarsRoot settings) { 7330 #line default 7331 #line hidden 7332 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7333 7334 #line 1941 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7335 7336 string preRender = !String.IsNullOrEmpty(settings.PreRenderScriptTemplate) ? "data-pre-render-template=\"" + settings.PreRenderScriptTemplate + "\"" : ""; 7337 7338 7339 7340 #line default 7341 #line hidden 7342 WriteLiteralTo(__razor_helper_writer, " <div"); 7343 7344 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 82231), Tuple.Create("\"", 82283) 7345 7346 #line 1944 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7347 , Tuple.Create(Tuple.Create("", 82239), Tuple.Create<System.Object, System.Int32>(settings.CssClass 7348 7349 #line default 7350 #line hidden 7351 , 82239), false) 7352 , Tuple.Create(Tuple.Create(" ", 82257), Tuple.Create("dw-mod", 82258), true) 7353 , Tuple.Create(Tuple.Create(" ", 82264), Tuple.Create("js-handlebars-root", 82265), true) 7354 ); 7355 7356 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 82284), Tuple.Create("\"", 82301) 7357 7358 #line 1944 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7359 , Tuple.Create(Tuple.Create("", 82289), Tuple.Create<System.Object, System.Int32>(settings.Id 7360 7361 #line default 7362 #line hidden 7363 , 82289), false) 7364 ); 7365 7366 WriteLiteralTo(__razor_helper_writer, " data-template=\""); 7367 7368 7369 #line 1944 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7370 WriteTo(__razor_helper_writer, settings.ScriptTemplate); 7371 7372 7373 #line default 7374 #line hidden 7375 WriteLiteralTo(__razor_helper_writer, "\""); 7376 7377 WriteLiteralTo(__razor_helper_writer, " data-json-feed=\""); 7378 7379 7380 #line 1944 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7381 WriteTo(__razor_helper_writer, settings.FeedUrl); 7382 7383 7384 #line default 7385 #line hidden 7386 WriteLiteralTo(__razor_helper_writer, "\""); 7387 7388 WriteLiteralTo(__razor_helper_writer, " data-init-onload=\""); 7389 7390 7391 #line 1944 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7392 WriteTo(__razor_helper_writer, settings.InitOnLoad.ToString()); 7393 7394 7395 #line default 7396 #line hidden 7397 WriteLiteralTo(__razor_helper_writer, "\""); 7398 7399 WriteLiteralTo(__razor_helper_writer, " data-preloader=\""); 7400 7401 7402 #line 1944 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7403 WriteTo(__razor_helper_writer, settings.Preloader); 7404 7405 7406 #line default 7407 #line hidden 7408 WriteLiteralTo(__razor_helper_writer, "\""); 7409 7410 WriteLiteralTo(__razor_helper_writer, " "); 7411 7412 7413 #line 1944 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7414 WriteTo(__razor_helper_writer, preRender); 7415 7416 7417 #line default 7418 #line hidden 7419 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7420 7421 7422 #line 1945 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7423 7424 7425 #line default 7426 #line hidden 7427 7428 #line 1945 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7429 if (settings.SubBlocks != null) { 7430 7431 7432 #line default 7433 #line hidden 7434 7435 #line 1946 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7436 WriteTo(__razor_helper_writer, RenderBlockList(settings.SubBlocks)); 7437 7438 7439 #line default 7440 #line hidden 7441 7442 #line 1946 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7443 7444 } 7445 7446 7447 #line default 7448 #line hidden 7449 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 7450 7451 7452 #line 1949 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7453 7454 7455 #line default 7456 #line hidden 7457 }); 7458 7459 #line 1949 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7460 } 7461 #line default 7462 #line hidden 7463 7464 7465 #line 1958 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7466 public RazorEngine.Templating.TemplateWriter RenderSticker(Sticker settings) { 7467 #line default 7468 #line hidden 7469 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7470 7471 #line 1958 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7472 7473 if (!String.IsNullOrEmpty(settings.Title)) { 7474 string size = settings.Size.ToString() != "None" ? "" + "stickers-container__tag--" + settings.Size.ToString().ToLower() : ""; 7475 string style = settings.Style.ToString() != "None" ? "" + "stickers-container__tag--" + settings.Style.ToString().ToLower() : ""; 7476 7477 Dictionary<String, String> optionalAttributes = new Dictionary<string, string>(); 7478 if (!String.IsNullOrEmpty(settings.Color) || !String.IsNullOrEmpty(settings.BackgroundColor)) { 7479 string styleTag = !String.IsNullOrEmpty(settings.Color) ? "color: " + settings.Color + "; " : ""; 7480 styleTag += !String.IsNullOrEmpty(settings.BackgroundColor) ? "background-color: " + settings.BackgroundColor + "; " : ""; 7481 optionalAttributes.Add("style", styleTag); 7482 } 7483 7484 7485 7486 #line default 7487 #line hidden 7488 WriteLiteralTo(__razor_helper_writer, " <div"); 7489 7490 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 83678), Tuple.Create("\"", 83748) 7491 , Tuple.Create(Tuple.Create("", 83686), Tuple.Create("stickers-container__tag", 83686), true) 7492 7493 #line 1970 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7494 , Tuple.Create(Tuple.Create(" ", 83709), Tuple.Create<System.Object, System.Int32>(size 7495 7496 #line default 7497 #line hidden 7498 , 83710), false) 7499 7500 #line 1970 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7501 , Tuple.Create(Tuple.Create(" ", 83715), Tuple.Create<System.Object, System.Int32>(style 7502 7503 #line default 7504 #line hidden 7505 , 83716), false) 7506 7507 #line 1970 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7508 , Tuple.Create(Tuple.Create(" ", 83722), Tuple.Create<System.Object, System.Int32>(settings.CssClass 7509 7510 #line default 7511 #line hidden 7512 , 83723), false) 7513 , Tuple.Create(Tuple.Create(" ", 83741), Tuple.Create("dw-mod", 83742), true) 7514 ); 7515 7516 WriteLiteralTo(__razor_helper_writer, " "); 7517 7518 7519 #line 1970 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7520 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(optionalAttributes)); 7521 7522 7523 #line default 7524 #line hidden 7525 WriteLiteralTo(__razor_helper_writer, " "); 7526 7527 7528 #line 1970 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7529 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 7530 7531 7532 #line default 7533 #line hidden 7534 WriteLiteralTo(__razor_helper_writer, ">"); 7535 7536 7537 #line 1970 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7538 WriteTo(__razor_helper_writer, settings.Title); 7539 7540 7541 #line default 7542 #line hidden 7543 WriteLiteralTo(__razor_helper_writer, "</div> \r\n"); 7544 7545 7546 #line 1971 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7547 } 7548 7549 7550 #line default 7551 #line hidden 7552 }); 7553 7554 #line 1972 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7555 } 7556 #line default 7557 #line hidden 7558 7559 7560 #line 1981 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7561 public RazorEngine.Templating.TemplateWriter RenderStickersCollection(StickersCollection settings) 7562 { 7563 #line default 7564 #line hidden 7565 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7566 7567 #line 1982 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7568 7569 if (settings.Stickers.Count > 0) 7570 { 7571 string position = "stickers-container--" + Regex.Replace(settings.Position.ToString(), "([a-z])([A-Z])", "$1-$2").ToLower(); 7572 7573 7574 7575 #line default 7576 #line hidden 7577 WriteLiteralTo(__razor_helper_writer, " <div"); 7578 7579 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 84303), Tuple.Create("\"", 84365) 7580 , Tuple.Create(Tuple.Create("", 84311), Tuple.Create("stickers-container", 84311), true) 7581 7582 #line 1987 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7583 , Tuple.Create(Tuple.Create(" ", 84329), Tuple.Create<System.Object, System.Int32>(position 7584 7585 #line default 7586 #line hidden 7587 , 84330), false) 7588 7589 #line 1987 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7590 , Tuple.Create(Tuple.Create(" ", 84339), Tuple.Create<System.Object, System.Int32>(settings.CssClass 7591 7592 #line default 7593 #line hidden 7594 , 84340), false) 7595 , Tuple.Create(Tuple.Create(" ", 84358), Tuple.Create("dw-mod", 84359), true) 7596 ); 7597 7598 WriteLiteralTo(__razor_helper_writer, " "); 7599 7600 7601 #line 1987 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7602 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 7603 7604 7605 #line default 7606 #line hidden 7607 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7608 7609 7610 #line 1988 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7611 7612 7613 #line default 7614 #line hidden 7615 7616 #line 1988 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7617 foreach (Sticker sticker in settings.Stickers) 7618 { 7619 7620 7621 #line default 7622 #line hidden 7623 7624 #line 1990 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7625 WriteTo(__razor_helper_writer, Render(sticker)); 7626 7627 7628 #line default 7629 #line hidden 7630 7631 #line 1990 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7632 7633 } 7634 7635 7636 #line default 7637 #line hidden 7638 WriteLiteralTo(__razor_helper_writer, " </div> \r\n"); 7639 7640 7641 #line 1993 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7642 } 7643 7644 7645 #line default 7646 #line hidden 7647 }); 7648 7649 #line 1994 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7650 } 7651 #line default 7652 #line hidden 7653 7654 7655 #line 2001 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7656 public RazorEngine.Templating.TemplateWriter RenderForm(Form settings) { 7657 #line default 7658 #line hidden 7659 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7660 7661 #line 2001 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7662 7663 if (settings != null) 7664 { 7665 Dictionary<string, string> optionalAttributes = new Dictionary<string, string>(); 7666 if (!string.IsNullOrEmpty(settings.Action)) { optionalAttributes.Add("action", settings.Action); }; 7667 if (!string.IsNullOrEmpty(settings.Name)) { optionalAttributes.Add("name", settings.Name); }; 7668 if (!string.IsNullOrEmpty(settings.OnSubmit)) { optionalAttributes.Add("onsubmit", settings.OnSubmit); }; 7669 var enctypes = new Dictionary<string, string> 7670 { 7671 { "multipart", "multipart/form-data" }, 7672 { "text", "text/plain" }, 7673 { "application", "application/x-www-form-urlencoded" } 7674 }; 7675 if (settings.Enctype != FormEnctype.none) { optionalAttributes.Add("enctype", enctypes[Enum.GetName(typeof(FormEnctype), settings.Enctype).ToLower()]); }; 7676 optionalAttributes.Add("method", settings.Method.ToString()); 7677 7678 if (!string.IsNullOrEmpty(settings.FormStartMarkup)) 7679 { 7680 7681 7682 #line default 7683 #line hidden 7684 7685 #line 2019 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7686 WriteTo(__razor_helper_writer, settings.FormStartMarkup); 7687 7688 7689 #line default 7690 #line hidden 7691 7692 #line 2019 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7693 7694 } 7695 else 7696 { 7697 7698 7699 #line default 7700 #line hidden 7701 WriteLiteralTo(__razor_helper_writer, " "); 7702 7703 WriteLiteralTo(__razor_helper_writer, "<form class=\""); 7704 7705 7706 #line 2023 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7707 WriteTo(__razor_helper_writer, settings.CssClass); 7708 7709 7710 #line default 7711 #line hidden 7712 WriteLiteralTo(__razor_helper_writer, " u-no-margin dw-mod\" "); 7713 7714 7715 #line 2023 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7716 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(optionalAttributes)); 7717 7718 7719 #line default 7720 #line hidden 7721 WriteLiteralTo(__razor_helper_writer, " "); 7722 7723 7724 #line 2023 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7725 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 7726 7727 7728 #line default 7729 #line hidden 7730 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7731 7732 7733 #line 2024 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7734 } 7735 7736 foreach (var field in settings.GetFields()) 7737 { 7738 7739 7740 #line default 7741 #line hidden 7742 7743 #line 2028 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7744 WriteTo(__razor_helper_writer, Render(field)); 7745 7746 7747 #line default 7748 #line hidden 7749 7750 #line 2028 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7751 7752 } 7753 7754 7755 7756 #line default 7757 #line hidden 7758 WriteLiteralTo(__razor_helper_writer, " "); 7759 7760 WriteLiteralTo(__razor_helper_writer, "</form>\r\n"); 7761 7762 7763 #line 2032 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7764 } 7765 7766 7767 #line default 7768 #line hidden 7769 }); 7770 7771 #line 2033 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7772 } 7773 #line default 7774 #line hidden 7775 7776 7777 #line 2041 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7778 public RazorEngine.Templating.TemplateWriter RenderText(Text settings) 7779 { 7780 #line default 7781 #line hidden 7782 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7783 7784 #line 2042 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7785 7786 7787 7788 #line default 7789 #line hidden 7790 7791 #line 2043 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7792 WriteTo(__razor_helper_writer, settings.Content); 7793 7794 7795 #line default 7796 #line hidden 7797 7798 #line 2043 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7799 7800 7801 7802 #line default 7803 #line hidden 7804 }); 7805 7806 #line 2044 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7807 } 7808 #line default 7809 #line hidden 7810 7811 7812 #line 2052 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7813 public RazorEngine.Templating.TemplateWriter RenderContentModule(ContentModule settings) { 7814 #line default 7815 #line hidden 7816 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7817 7818 #line 2052 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7819 7820 if (!string.IsNullOrEmpty(settings.Content)) 7821 { 7822 7823 7824 #line default 7825 #line hidden 7826 7827 #line 2055 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7828 WriteTo(__razor_helper_writer, settings.Content); 7829 7830 7831 #line default 7832 #line hidden 7833 7834 #line 2055 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7835 7836 } 7837 7838 7839 #line default 7840 #line hidden 7841 }); 7842 7843 #line 2057 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7844 } 7845 #line default 7846 #line hidden 7847 7848 7849 #line 2065 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7850 public RazorEngine.Templating.TemplateWriter RenderModal(Modal settings) { 7851 #line default 7852 #line hidden 7853 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7854 7855 #line 2065 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7856 7857 if (settings != null) 7858 { 7859 string modalId = !string.IsNullOrEmpty(settings.Id) ? settings.Id : Guid.NewGuid().ToString("N"); 7860 7861 string onchange = !string.IsNullOrEmpty(settings.OnClose) ? "onchange=\"if(!this.checked){" + settings.OnClose + "}\"" : ""; 7862 7863 7864 7865 #line default 7866 #line hidden 7867 WriteLiteralTo(__razor_helper_writer, " <input"); 7868 7869 WriteLiteralTo(__razor_helper_writer, " type=\"checkbox\""); 7870 7871 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 87092), Tuple.Create("\"", 87119) 7872 7873 #line 2072 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7874 , Tuple.Create(Tuple.Create("", 87097), Tuple.Create<System.Object, System.Int32>(modalId 7875 7876 #line default 7877 #line hidden 7878 , 87097), false) 7879 , Tuple.Create(Tuple.Create("", 87107), Tuple.Create("ModalTrigger", 87107), true) 7880 ); 7881 7882 WriteLiteralTo(__razor_helper_writer, " class=\"modal-trigger\""); 7883 7884 WriteLiteralTo(__razor_helper_writer, " "); 7885 7886 7887 #line 2072 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7888 WriteTo(__razor_helper_writer, onchange); 7889 7890 7891 #line default 7892 #line hidden 7893 WriteLiteralTo(__razor_helper_writer, " />\r\n"); 7894 7895 7896 #line 2073 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7897 7898 7899 7900 #line default 7901 #line hidden 7902 WriteLiteralTo(__razor_helper_writer, " <div"); 7903 7904 WriteLiteralTo(__razor_helper_writer, " class=\"modal-container\""); 7905 7906 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7907 7908 7909 #line 2075 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7910 7911 7912 #line default 7913 #line hidden 7914 7915 #line 2075 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7916 if (!settings.DisableDarkOverlay) 7917 { 7918 7919 7920 #line default 7921 #line hidden 7922 WriteLiteralTo(__razor_helper_writer, " <label"); 7923 7924 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 87283), Tuple.Create("\"", 87311) 7925 7926 #line 2077 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7927 , Tuple.Create(Tuple.Create("", 87289), Tuple.Create<System.Object, System.Int32>(modalId 7928 7929 #line default 7930 #line hidden 7931 , 87289), false) 7932 , Tuple.Create(Tuple.Create("", 87299), Tuple.Create("ModalTrigger", 87299), true) 7933 ); 7934 7935 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 87312), Tuple.Create("\"", 87339) 7936 7937 #line 2077 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7938 , Tuple.Create(Tuple.Create("", 87317), Tuple.Create<System.Object, System.Int32>(modalId 7939 7940 #line default 7941 #line hidden 7942 , 87317), false) 7943 , Tuple.Create(Tuple.Create("", 87327), Tuple.Create("ModalOverlay", 87327), true) 7944 ); 7945 7946 WriteLiteralTo(__razor_helper_writer, " class=\"modal-overlay\""); 7947 7948 WriteLiteralTo(__razor_helper_writer, "></label>\r\n"); 7949 7950 7951 #line 2078 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7952 } 7953 7954 7955 #line default 7956 #line hidden 7957 WriteLiteralTo(__razor_helper_writer, " <div"); 7958 7959 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 87404), Tuple.Create("\"", 87513) 7960 , Tuple.Create(Tuple.Create("", 87412), Tuple.Create("modal", 87412), true) 7961 , Tuple.Create(Tuple.Create(" ", 87417), Tuple.Create("modal--", 87418), true) 7962 7963 #line 2079 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7964 , Tuple.Create(Tuple.Create("", 87425), Tuple.Create<System.Object, System.Int32>(settings.Width.ToString().ToLower() 7965 7966 #line default 7967 #line hidden 7968 , 87425), false) 7969 , Tuple.Create(Tuple.Create(" ", 87461), Tuple.Create("modal-height--", 87462), true) 7970 7971 #line 2079 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7972 , Tuple.Create(Tuple.Create("", 87476), Tuple.Create<System.Object, System.Int32>(settings.Height.ToString().ToLower() 7973 7974 #line default 7975 #line hidden 7976 , 87476), false) 7977 ); 7978 7979 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 87514), Tuple.Create("\"", 87534) 7980 7981 #line 2079 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7982 , Tuple.Create(Tuple.Create("", 87519), Tuple.Create<System.Object, System.Int32>(modalId 7983 7984 #line default 7985 #line hidden 7986 , 87519), false) 7987 , Tuple.Create(Tuple.Create("", 87529), Tuple.Create("Modal", 87529), true) 7988 ); 7989 7990 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7991 7992 7993 #line 2080 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 7994 7995 7996 #line default 7997 #line hidden 7998 7999 #line 2080 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8000 if (settings.Heading != null) 8001 { 8002 if (!string.IsNullOrEmpty(settings.Heading.Title)) 8003 { 8004 8005 8006 #line default 8007 #line hidden 8008 WriteLiteralTo(__razor_helper_writer, " <div"); 8009 8010 WriteLiteralTo(__razor_helper_writer, " class=\"modal__header\""); 8011 8012 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8013 8014 WriteLiteralTo(__razor_helper_writer, " "); 8015 8016 8017 #line 2085 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8018 WriteTo(__razor_helper_writer, Render(settings.Heading)); 8019 8020 8021 #line default 8022 #line hidden 8023 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 8024 8025 8026 #line 2087 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8027 } 8028 } 8029 8030 8031 #line default 8032 #line hidden 8033 WriteLiteralTo(__razor_helper_writer, " <div"); 8034 8035 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 87902), Tuple.Create("\"", 87997) 8036 , Tuple.Create(Tuple.Create("", 87910), Tuple.Create("modal__body", 87910), true) 8037 8038 #line 2089 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8039 , Tuple.Create(Tuple.Create(" ", 87921), Tuple.Create<System.Object, System.Int32>(settings.Width.ToString().ToLower() == "full" ? "modal__body--full" : "" 8040 8041 #line default 8042 #line hidden 8043 , 87922), false) 8044 ); 8045 8046 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8047 8048 8049 #line 2090 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8050 8051 8052 #line default 8053 #line hidden 8054 8055 #line 2090 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8056 if (!string.IsNullOrEmpty(settings.BodyText)) 8057 { 8058 8059 8060 #line default 8061 #line hidden 8062 8063 #line 2092 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8064 WriteTo(__razor_helper_writer, settings.BodyText); 8065 8066 8067 #line default 8068 #line hidden 8069 8070 #line 2092 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8071 8072 } 8073 8074 8075 #line default 8076 #line hidden 8077 WriteLiteralTo(__razor_helper_writer, " "); 8078 8079 8080 #line 2094 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8081 if (settings.BodyTemplate != null) 8082 { 8083 8084 8085 #line default 8086 #line hidden 8087 8088 #line 2096 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8089 WriteTo(__razor_helper_writer, settings.BodyTemplate); 8090 8091 8092 #line default 8093 #line hidden 8094 8095 #line 2096 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8096 8097 } 8098 8099 8100 #line default 8101 #line hidden 8102 WriteLiteralTo(__razor_helper_writer, " "); 8103 8104 8105 #line 2098 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8106 8107 var actions = settings.GetActions(); 8108 8109 8110 #line default 8111 #line hidden 8112 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 8113 8114 8115 #line 2102 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8116 8117 8118 #line default 8119 #line hidden 8120 8121 #line 2102 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8122 if (actions.Length > 0) 8123 { 8124 8125 8126 #line default 8127 #line hidden 8128 WriteLiteralTo(__razor_helper_writer, " <div"); 8129 8130 WriteLiteralTo(__razor_helper_writer, " class=\"modal__footer\""); 8131 8132 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8133 8134 8135 #line 2105 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8136 8137 8138 #line default 8139 #line hidden 8140 8141 #line 2105 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8142 foreach (var action in actions) 8143 { 8144 if (Pageview.Device.ToString() != "Mobile") { 8145 action.CssClass += " u-no-margin"; 8146 } else { 8147 action.CssClass += " u-full-width u-margin-bottom"; 8148 } 8149 8150 8151 8152 #line default 8153 #line hidden 8154 8155 #line 2113 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8156 WriteTo(__razor_helper_writer, Render(action)); 8157 8158 8159 #line default 8160 #line hidden 8161 8162 #line 2113 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8163 8164 } 8165 8166 8167 #line default 8168 #line hidden 8169 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 8170 8171 8172 #line 2116 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8173 } 8174 8175 8176 #line default 8177 #line hidden 8178 WriteLiteralTo(__razor_helper_writer, " <label"); 8179 8180 WriteLiteralTo(__razor_helper_writer, " class=\"modal__close-btn\""); 8181 8182 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 89103), Tuple.Create("\"", 89131) 8183 8184 #line 2117 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8185 , Tuple.Create(Tuple.Create("", 89109), Tuple.Create<System.Object, System.Int32>(modalId 8186 8187 #line default 8188 #line hidden 8189 , 89109), false) 8190 , Tuple.Create(Tuple.Create("", 89119), Tuple.Create("ModalTrigger", 89119), true) 8191 ); 8192 8193 WriteLiteralTo(__razor_helper_writer, "></label>\r\n </div>\r\n </div>\r\n"); 8194 8195 8196 #line 2120 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8197 } 8198 8199 8200 #line default 8201 #line hidden 8202 }); 8203 8204 #line 2121 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8205 } 8206 #line default 8207 #line hidden 8208 8209 8210 #line 2126 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8211 public RazorEngine.Templating.TemplateWriter RenderMediaListItem(MediaListItem settings) 8212 { 8213 #line default 8214 #line hidden 8215 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8216 8217 #line 2127 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8218 8219 8220 8221 #line default 8222 #line hidden 8223 WriteLiteralTo(__razor_helper_writer, " <div"); 8224 8225 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 89327), Tuple.Create("\"", 89376) 8226 , Tuple.Create(Tuple.Create("", 89335), Tuple.Create("media-list-item", 89335), true) 8227 8228 #line 2128 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8229 , Tuple.Create(Tuple.Create(" ", 89350), Tuple.Create<System.Object, System.Int32>(settings.CssClass 8230 8231 #line default 8232 #line hidden 8233 , 89351), false) 8234 , Tuple.Create(Tuple.Create(" ", 89369), Tuple.Create("dw-mod", 89370), true) 8235 ); 8236 8237 WriteLiteralTo(__razor_helper_writer, " "); 8238 8239 8240 #line 2128 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8241 WriteTo(__razor_helper_writer, !string.IsNullOrEmpty(settings.Id) ? "id=\"" + settings.Id + "\"" : ""); 8242 8243 8244 #line default 8245 #line hidden 8246 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8247 8248 8249 #line 2129 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8250 8251 8252 #line default 8253 #line hidden 8254 8255 #line 2129 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8256 if (!string.IsNullOrEmpty(settings.Label)) 8257 { 8258 if (!string.IsNullOrEmpty(settings.Link)) 8259 { 8260 8261 8262 #line default 8263 #line hidden 8264 8265 #line 2133 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8266 WriteTo(__razor_helper_writer, Render(new Link 8267 { 8268 Href = settings.Link, 8269 CssClass = "media-list-item__sticker dw-mod", 8270 ButtonLayout = ButtonLayout.None, 8271 Title = settings.Label, 8272 OnClick = !string.IsNullOrEmpty(settings.OnClick) ? settings.OnClick : "" 8273 })); 8274 8275 8276 #line default 8277 #line hidden 8278 8279 #line 2140 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8280 8281 } 8282 else if (!string.IsNullOrEmpty(settings.OnClick)) 8283 { 8284 8285 8286 #line default 8287 #line hidden 8288 WriteLiteralTo(__razor_helper_writer, " <span"); 8289 8290 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__sticker dw-mod\""); 8291 8292 WriteAttributeTo(__razor_helper_writer, "onclick", Tuple.Create(" onclick=\"", 90120), Tuple.Create("\"", 90149) 8293 8294 #line 2144 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8295 , Tuple.Create(Tuple.Create("", 90130), Tuple.Create<System.Object, System.Int32>(settings.OnClick 8296 8297 #line default 8298 #line hidden 8299 , 90130), false) 8300 ); 8301 8302 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 8303 8304 WriteLiteralTo(__razor_helper_writer, " class=\"u-uppercase\""); 8305 8306 WriteLiteralTo(__razor_helper_writer, ">"); 8307 8308 8309 #line 2145 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8310 WriteTo(__razor_helper_writer, settings.Label); 8311 8312 8313 #line default 8314 #line hidden 8315 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </span>\r\n"); 8316 8317 8318 #line 2147 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8319 } 8320 else 8321 { 8322 8323 8324 #line default 8325 #line hidden 8326 WriteLiteralTo(__razor_helper_writer, " <span"); 8327 8328 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__sticker media-list-item__sticker--no-link dw-mod\""); 8329 8330 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 8331 8332 WriteLiteralTo(__razor_helper_writer, " class=\"u-uppercase\""); 8333 8334 WriteLiteralTo(__razor_helper_writer, ">"); 8335 8336 8337 #line 2151 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8338 WriteTo(__razor_helper_writer, settings.Label); 8339 8340 8341 #line default 8342 #line hidden 8343 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </span>\r\n"); 8344 8345 8346 #line 2153 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8347 } 8348 } 8349 8350 8351 #line default 8352 #line hidden 8353 WriteLiteralTo(__razor_helper_writer, " <div"); 8354 8355 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__wrap\""); 8356 8357 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 8358 8359 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__info dw-mod\""); 8360 8361 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 8362 8363 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__header dw-mod\""); 8364 8365 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8366 8367 8368 #line 2158 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8369 8370 8371 #line default 8372 #line hidden 8373 8374 #line 2158 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8375 if (!string.IsNullOrEmpty(settings.Title)) 8376 { 8377 if (!string.IsNullOrEmpty(settings.Link)) 8378 { 8379 8380 8381 #line default 8382 #line hidden 8383 8384 #line 2162 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8385 WriteTo(__razor_helper_writer, Render(new Link 8386 { 8387 Href = settings.Link, 8388 CssClass = "media-list-item__name dw-mod", 8389 ButtonLayout = ButtonLayout.None, 8390 Title = settings.Title, 8391 OnClick = !string.IsNullOrEmpty(settings.OnClick) ? settings.OnClick : "" 8392 })); 8393 8394 8395 #line default 8396 #line hidden 8397 8398 #line 2169 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8399 8400 } 8401 else if (!string.IsNullOrEmpty(settings.OnClick)) 8402 { 8403 8404 8405 #line default 8406 #line hidden 8407 WriteLiteralTo(__razor_helper_writer, " <span"); 8408 8409 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__name dw-mod\""); 8410 8411 WriteAttributeTo(__razor_helper_writer, "onclick", Tuple.Create(" onclick=\"", 91530), Tuple.Create("\"", 91559) 8412 8413 #line 2173 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8414 , Tuple.Create(Tuple.Create("", 91540), Tuple.Create<System.Object, System.Int32>(settings.OnClick 8415 8416 #line default 8417 #line hidden 8418 , 91540), false) 8419 ); 8420 8421 WriteLiteralTo(__razor_helper_writer, ">"); 8422 8423 8424 #line 2173 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8425 WriteTo(__razor_helper_writer, settings.Title); 8426 8427 8428 #line default 8429 #line hidden 8430 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 8431 8432 8433 #line 2174 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8434 } 8435 else 8436 { 8437 8438 8439 #line default 8440 #line hidden 8441 WriteLiteralTo(__razor_helper_writer, " <span"); 8442 8443 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__name media-list-item__name--no-link dw-mod\""); 8444 8445 WriteLiteralTo(__razor_helper_writer, ">"); 8446 8447 8448 #line 2177 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8449 WriteTo(__razor_helper_writer, settings.Title); 8450 8451 8452 #line default 8453 #line hidden 8454 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 8455 8456 8457 #line 2178 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8458 } 8459 } 8460 8461 8462 #line default 8463 #line hidden 8464 WriteLiteralTo(__razor_helper_writer, "\r\n"); 8465 8466 8467 #line 2181 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8468 8469 8470 #line default 8471 #line hidden 8472 8473 #line 2181 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8474 if (!string.IsNullOrEmpty(settings.Status)) 8475 { 8476 8477 8478 #line default 8479 #line hidden 8480 WriteLiteralTo(__razor_helper_writer, " <div"); 8481 8482 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__state dw-mod\""); 8483 8484 WriteLiteralTo(__razor_helper_writer, ">"); 8485 8486 8487 #line 2183 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8488 WriteTo(__razor_helper_writer, settings.Status); 8489 8490 8491 #line default 8492 #line hidden 8493 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 8494 8495 8496 #line 2184 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8497 } 8498 8499 8500 #line default 8501 #line hidden 8502 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 8503 8504 8505 #line 2186 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8506 8507 8508 #line default 8509 #line hidden 8510 8511 #line 2186 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8512 8513 settings.InfoTable.CssClass += " media-list-item__parameters-table"; 8514 8515 8516 #line default 8517 #line hidden 8518 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 8519 8520 WriteLiteralTo(__razor_helper_writer, " "); 8521 8522 8523 #line 2190 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8524 WriteTo(__razor_helper_writer, Render(settings.InfoTable)); 8525 8526 8527 #line default 8528 #line hidden 8529 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n <div"); 8530 8531 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__actions dw-mod\""); 8532 8533 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 8534 8535 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__actions-list dw-mod\""); 8536 8537 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8538 8539 8540 #line 2194 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8541 8542 8543 #line default 8544 #line hidden 8545 8546 #line 2194 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8547 8548 var actions = settings.GetActions(); 8549 8550 foreach (ButtonBase action in actions) 8551 { 8552 action.ButtonLayout = ButtonLayout.None; 8553 action.CssClass += " media-list-item__action link"; 8554 8555 8556 8557 #line default 8558 #line hidden 8559 8560 #line 2202 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8561 WriteTo(__razor_helper_writer, Render(action)); 8562 8563 8564 #line default 8565 #line hidden 8566 8567 #line 2202 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8568 8569 } 8570 8571 8572 #line default 8573 #line hidden 8574 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n\r\n"); 8575 8576 8577 #line 2207 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8578 8579 8580 #line default 8581 #line hidden 8582 8583 #line 2207 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8584 if (settings.SelectButton != null && !string.IsNullOrEmpty(settings.SelectButton.Title)) 8585 { 8586 settings.SelectButton.CssClass += " u-no-margin"; 8587 8588 8589 8590 #line default 8591 #line hidden 8592 WriteLiteralTo(__razor_helper_writer, " <div"); 8593 8594 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__action-button\""); 8595 8596 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8597 8598 WriteLiteralTo(__razor_helper_writer, " "); 8599 8600 8601 #line 2212 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8602 WriteTo(__razor_helper_writer, Render(settings.SelectButton)); 8603 8604 8605 #line default 8606 #line hidden 8607 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 8608 8609 8610 #line 2214 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8611 } 8612 8613 8614 #line default 8615 #line hidden 8616 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n </div>\r\n"); 8617 8618 8619 #line 2218 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8620 8621 8622 #line default 8623 #line hidden 8624 }); 8625 8626 #line 2218 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8627 } 8628 #line default 8629 #line hidden 8630 8631 8632 #line 2222 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8633 public RazorEngine.Templating.TemplateWriter RenderTable(Table settings) 8634 { 8635 #line default 8636 #line hidden 8637 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8638 8639 #line 2223 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8640 8641 Dictionary<string, string> attributes = new Dictionary<string, string>(); 8642 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 8643 8644 var enumToClasses = new Dictionary<TableDesign, string> 8645 { 8646 { TableDesign.Clean, "table--clean" }, 8647 { TableDesign.Bordered, "table--bordered" }, 8648 { TableDesign.Striped, "table--striped" }, 8649 { TableDesign.Hover, "table--hover" }, 8650 { TableDesign.Compact, "table--compact" }, 8651 { TableDesign.Condensed, "table--condensed" }, 8652 { TableDesign.NoTopBorder, "table--no-top-border" } 8653 }; 8654 string tableDesignClass = ""; 8655 if (settings.Design != TableDesign.None) 8656 { 8657 tableDesignClass = enumToClasses[settings.Design]; 8658 } 8659 8660 if (!string.IsNullOrEmpty(settings.CssClass) || settings.Design != TableDesign.None) { attributes.Add("class", "table " + tableDesignClass + " " + settings.CssClass + " dw-mod"); } 8661 8662 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary(d => d.Key, d => d.Last().Value); 8663 8664 8665 8666 #line default 8667 #line hidden 8668 WriteLiteralTo(__razor_helper_writer, " <table "); 8669 8670 8671 #line 2247 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8672 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 8673 8674 8675 #line default 8676 #line hidden 8677 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8678 8679 8680 #line 2248 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8681 8682 8683 #line default 8684 #line hidden 8685 8686 #line 2248 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8687 if (settings.Header != null) 8688 { 8689 8690 8691 #line default 8692 #line hidden 8693 WriteLiteralTo(__razor_helper_writer, " <thead>\r\n"); 8694 8695 WriteLiteralTo(__razor_helper_writer, " "); 8696 8697 8698 #line 2251 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8699 WriteTo(__razor_helper_writer, Render(settings.Header)); 8700 8701 8702 #line default 8703 #line hidden 8704 WriteLiteralTo(__razor_helper_writer, "\r\n </thead>\r\n"); 8705 8706 8707 #line 2253 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8708 } 8709 8710 8711 #line default 8712 #line hidden 8713 WriteLiteralTo(__razor_helper_writer, " <tbody>\r\n"); 8714 8715 8716 #line 2255 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8717 8718 8719 #line default 8720 #line hidden 8721 8722 #line 2255 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8723 foreach (var row in settings.Rows) 8724 { 8725 8726 8727 #line default 8728 #line hidden 8729 8730 #line 2257 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8731 WriteTo(__razor_helper_writer, Render(row)); 8732 8733 8734 #line default 8735 #line hidden 8736 8737 #line 2257 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8738 8739 } 8740 8741 8742 #line default 8743 #line hidden 8744 WriteLiteralTo(__razor_helper_writer, " </tbody>\r\n"); 8745 8746 8747 #line 2260 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8748 8749 8750 #line default 8751 #line hidden 8752 8753 #line 2260 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8754 if (settings.Footer != null) 8755 { 8756 8757 8758 #line default 8759 #line hidden 8760 WriteLiteralTo(__razor_helper_writer, " <tfoot>\r\n"); 8761 8762 WriteLiteralTo(__razor_helper_writer, " "); 8763 8764 8765 #line 2263 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8766 WriteTo(__razor_helper_writer, Render(settings.Footer)); 8767 8768 8769 #line default 8770 #line hidden 8771 WriteLiteralTo(__razor_helper_writer, "\r\n </tfoot>\r\n"); 8772 8773 8774 #line 2265 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8775 } 8776 8777 8778 #line default 8779 #line hidden 8780 WriteLiteralTo(__razor_helper_writer, " </table>\r\n"); 8781 8782 8783 #line 2267 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8784 8785 8786 #line default 8787 #line hidden 8788 }); 8789 8790 #line 2267 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8791 } 8792 #line default 8793 #line hidden 8794 8795 8796 #line 2271 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8797 public RazorEngine.Templating.TemplateWriter RenderTableRow(TableRow settings) 8798 { 8799 #line default 8800 #line hidden 8801 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8802 8803 #line 2272 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8804 8805 Dictionary<string, string> attributes = new Dictionary<string, string>(); 8806 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 8807 8808 var enumToClasses = new Dictionary<TableRowDesign, string> 8809 { 8810 { TableRowDesign.NoBorder, "table__row--no-border" }, 8811 { TableRowDesign.Border, "table__row--border" }, 8812 { TableRowDesign.TopBorder, "table__row--top-line" }, 8813 { TableRowDesign.BottomBorder, "table__row--bottom-line" }, 8814 { TableRowDesign.Solid, "table__row--solid" } 8815 }; 8816 8817 string tableRowDesignClass = ""; 8818 if (settings.Design != TableRowDesign.None) 8819 { 8820 tableRowDesignClass = enumToClasses[settings.Design]; 8821 } 8822 8823 if (!string.IsNullOrEmpty(settings.CssClass) || settings.Design != TableRowDesign.None) { attributes.Add("class", "table__row " + tableRowDesignClass + " " + settings.CssClass + " dw-mod"); } 8824 8825 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary(d => d.Key, d => d.Last().Value); 8826 8827 8828 8829 #line default 8830 #line hidden 8831 WriteLiteralTo(__razor_helper_writer, " <tr "); 8832 8833 8834 #line 2295 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8835 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 8836 8837 8838 #line default 8839 #line hidden 8840 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8841 8842 8843 #line 2296 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8844 8845 8846 #line default 8847 #line hidden 8848 8849 #line 2296 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8850 foreach (var cell in settings.Cells) 8851 { 8852 if (settings.IsHeaderRow) 8853 { 8854 cell.IsHeader = true; 8855 } 8856 8857 8858 #line default 8859 #line hidden 8860 8861 #line 2302 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8862 WriteTo(__razor_helper_writer, Render(cell)); 8863 8864 8865 #line default 8866 #line hidden 8867 8868 #line 2302 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8869 8870 } 8871 8872 8873 #line default 8874 #line hidden 8875 WriteLiteralTo(__razor_helper_writer, " </tr>\r\n"); 8876 8877 8878 #line 2305 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8879 8880 8881 #line default 8882 #line hidden 8883 }); 8884 8885 #line 2305 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8886 } 8887 #line default 8888 #line hidden 8889 8890 8891 #line 2310 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8892 public RazorEngine.Templating.TemplateWriter RenderTableCell(TableCell settings) 8893 { 8894 #line default 8895 #line hidden 8896 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8897 8898 #line 2311 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8899 8900 Dictionary<string, string> attributes = new Dictionary<string, string>(); 8901 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 8902 if (settings.Colspan != 0) { attributes.Add("colspan", Converter.ToString(settings.Colspan)); } 8903 if (settings.Rowspan != 0) { attributes.Add("rowspan", Converter.ToString(settings.Rowspan)); } 8904 if (!string.IsNullOrEmpty(settings.CssClass)) { attributes.Add("class", settings.CssClass + " dw-mod"); } 8905 8906 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary(d => d.Key, d => d.Last().Value); 8907 8908 string tagName = settings.IsHeader ? "th" : "td"; 8909 8910 8911 8912 #line default 8913 #line hidden 8914 8915 #line 2322 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8916 WriteTo(__razor_helper_writer, "<" + tagName + " " + ComponentMethods.AddAttributes(resultAttributes) + ">"); 8917 8918 8919 #line default 8920 #line hidden 8921 8922 #line 2322 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8923 8924 8925 8926 #line default 8927 #line hidden 8928 8929 #line 2323 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8930 WriteTo(__razor_helper_writer, settings.Content); 8931 8932 8933 #line default 8934 #line hidden 8935 8936 #line 2323 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8937 8938 8939 8940 #line default 8941 #line hidden 8942 8943 #line 2324 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8944 WriteTo(__razor_helper_writer, "</" + tagName + ">"); 8945 8946 8947 #line default 8948 #line hidden 8949 8950 #line 2324 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8951 ; 8952 8953 8954 #line default 8955 #line hidden 8956 }); 8957 8958 #line 2325 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8959 } 8960 #line default 8961 #line hidden 8962 8963 8964 #line 2331 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8965 public RazorEngine.Templating.TemplateWriter RenderPagination(Dynamicweb.Rapido.Blocks.Components.General.Pagination settings) 8966 { 8967 #line default 8968 #line hidden 8969 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8970 8971 #line 2332 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8972 8973 var pageNumberQueryStringName = Dynamicweb.Rapido.Services.Pagination.GetPageNumberQueryStringName(settings); // Get the proper 'page number' query string parameter 8974 var queryParameters = Dynamicweb.Rapido.Services.Url.GetQueryParameters(pageNumberQueryStringName); // Get the NameValueCollection from the querystring 8975 8976 if (settings.NumberOfPages > 1) 8977 { 8978 string url = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority) + "/Default.aspx"; 8979 string ariaLabel = !string.IsNullOrWhiteSpace(settings.AriaLabel) ? settings.AriaLabel : Translate("Page navigation"); 8980 Dictionary<string, int> startAndEndPageNumber = Dynamicweb.Rapido.Services.Pagination.GetStartAndEndPageNumber(settings); 8981 8982 8983 8984 #line default 8985 #line hidden 8986 WriteLiteralTo(__razor_helper_writer, " <div"); 8987 8988 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 98478), Tuple.Create("\"", 98530) 8989 , Tuple.Create(Tuple.Create("", 98486), Tuple.Create("pager", 98486), true) 8990 , Tuple.Create(Tuple.Create(" ", 98491), Tuple.Create("u-margin-top", 98492), true) 8991 , Tuple.Create(Tuple.Create(" ", 98504), Tuple.Create("dw-mod", 98505), true) 8992 8993 #line 2342 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 8994 , Tuple.Create(Tuple.Create(" ", 98511), Tuple.Create<System.Object, System.Int32>(settings.CssClass 8995 8996 #line default 8997 #line hidden 8998 , 98512), false) 8999 ); 9000 9001 WriteAttributeTo(__razor_helper_writer, "aria-label", Tuple.Create(" aria-label=\"", 98531), Tuple.Create("\"", 98554) 9002 9003 #line 2342 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9004 , Tuple.Create(Tuple.Create("", 98544), Tuple.Create<System.Object, System.Int32>(ariaLabel 9005 9006 #line default 9007 #line hidden 9008 , 98544), false) 9009 ); 9010 9011 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9012 9013 9014 #line 2343 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9015 9016 9017 #line default 9018 #line hidden 9019 9020 #line 2343 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9021 if (settings.ShowPagingInfo) 9022 { 9023 9024 9025 #line default 9026 #line hidden 9027 WriteLiteralTo(__razor_helper_writer, " <div"); 9028 9029 WriteLiteralTo(__razor_helper_writer, " class=\"pager__info dw-mod\""); 9030 9031 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9032 9033 WriteLiteralTo(__razor_helper_writer, " "); 9034 9035 9036 #line 2346 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9037 WriteTo(__razor_helper_writer, Translate("Page")); 9038 9039 9040 #line default 9041 #line hidden 9042 WriteLiteralTo(__razor_helper_writer, " "); 9043 9044 9045 #line 2346 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9046 WriteTo(__razor_helper_writer, settings.CurrentPageNumber); 9047 9048 9049 #line default 9050 #line hidden 9051 WriteLiteralTo(__razor_helper_writer, " "); 9052 9053 9054 #line 2346 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9055 WriteTo(__razor_helper_writer, Translate("of")); 9056 9057 9058 #line default 9059 #line hidden 9060 WriteLiteralTo(__razor_helper_writer, " "); 9061 9062 9063 #line 2346 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9064 WriteTo(__razor_helper_writer, settings.NumberOfPages); 9065 9066 9067 #line default 9068 #line hidden 9069 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 9070 9071 9072 #line 2348 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9073 } 9074 9075 9076 #line default 9077 #line hidden 9078 WriteLiteralTo(__razor_helper_writer, " <ul"); 9079 9080 WriteLiteralTo(__razor_helper_writer, " class=\"pager__list dw-mod\""); 9081 9082 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9083 9084 9085 #line 2350 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9086 9087 9088 #line default 9089 #line hidden 9090 9091 #line 2350 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9092 if (!string.IsNullOrWhiteSpace(settings.FirstPageUrl) && settings.ShowFirstAndLastControls) 9093 { 9094 9095 9096 #line default 9097 #line hidden 9098 9099 #line 2352 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9100 WriteTo(__razor_helper_writer, Render(new PaginationItem { Link = settings.FirstPageUrl, Icon = settings.FirstIcon })); 9101 9102 9103 #line default 9104 #line hidden 9105 9106 #line 2352 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9107 9108 } 9109 9110 9111 #line default 9112 #line hidden 9113 WriteLiteralTo(__razor_helper_writer, " "); 9114 9115 9116 #line 2354 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9117 if (!string.IsNullOrWhiteSpace(settings.PreviousPageUrl) && settings.ShowNextAndPrevControls) 9118 { 9119 9120 9121 #line default 9122 #line hidden 9123 9124 #line 2356 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9125 WriteTo(__razor_helper_writer, Render(new PaginationItem { Link = settings.PreviousPageUrl, Icon = settings.PrevIcon })); 9126 9127 9128 #line default 9129 #line hidden 9130 9131 #line 2356 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9132 9133 } 9134 9135 9136 #line default 9137 #line hidden 9138 WriteLiteralTo(__razor_helper_writer, " "); 9139 9140 9141 #line 2358 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9142 if (settings.GetPages().Any()) 9143 { 9144 foreach (var page in settings.GetPages()) 9145 { 9146 9147 9148 #line default 9149 #line hidden 9150 9151 #line 2362 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9152 WriteTo(__razor_helper_writer, Render(page)); 9153 9154 9155 #line default 9156 #line hidden 9157 9158 #line 2362 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9159 9160 } 9161 } 9162 else 9163 { 9164 for (var page = startAndEndPageNumber["StartPage"]; page <= startAndEndPageNumber["EndPage"]; page++) 9165 { 9166 queryParameters = Dynamicweb.Rapido.Services.Url.UpdateQueryStringParameter(queryParameters, pageNumberQueryStringName, page.ToString()); 9167 9168 9169 #line default 9170 #line hidden 9171 9172 #line 2370 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9173 WriteTo(__razor_helper_writer, Render(new PaginationItem { Label = page.ToString(), Link = Dynamicweb.Rapido.Services.Url.BuildUri(url, queryParameters).PathAndQuery, IsActive = (settings.CurrentPageNumber == page) })); 9174 9175 9176 #line default 9177 #line hidden 9178 9179 #line 2370 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9180 ; 9181 } 9182 } 9183 9184 9185 #line default 9186 #line hidden 9187 WriteLiteralTo(__razor_helper_writer, " "); 9188 9189 9190 #line 2373 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9191 if (!string.IsNullOrWhiteSpace(settings.NextPageUrl) && settings.ShowNextAndPrevControls) 9192 { 9193 9194 9195 #line default 9196 #line hidden 9197 9198 #line 2375 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9199 WriteTo(__razor_helper_writer, Render(new PaginationItem { Link = settings.NextPageUrl, Icon = settings.NextIcon })); 9200 9201 9202 #line default 9203 #line hidden 9204 9205 #line 2375 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9206 9207 } 9208 9209 9210 #line default 9211 #line hidden 9212 WriteLiteralTo(__razor_helper_writer, " "); 9213 9214 9215 #line 2377 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9216 if (!string.IsNullOrWhiteSpace(settings.LastPageUrl) && settings.ShowFirstAndLastControls) 9217 { 9218 9219 9220 #line default 9221 #line hidden 9222 9223 #line 2379 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9224 WriteTo(__razor_helper_writer, Render(new PaginationItem { Link = settings.LastPageUrl, Icon = settings.LastIcon })); 9225 9226 9227 #line default 9228 #line hidden 9229 9230 #line 2379 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9231 9232 } 9233 9234 9235 #line default 9236 #line hidden 9237 WriteLiteralTo(__razor_helper_writer, " </ul>\r\n </div>\r\n"); 9238 9239 9240 #line 2383 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9241 } 9242 9243 9244 #line default 9245 #line hidden 9246 }); 9247 9248 #line 2384 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9249 } 9250 #line default 9251 #line hidden 9252 9253 9254 #line 2386 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9255 public RazorEngine.Templating.TemplateWriter RenderPaginationItem(PaginationItem settings) 9256 { 9257 #line default 9258 #line hidden 9259 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9260 9261 #line 2387 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9262 9263 if (settings.Icon == null) 9264 { 9265 settings.Icon = new Icon(); 9266 } 9267 9268 settings.Icon.Label = settings.Label; 9269 9270 9271 #line default 9272 #line hidden 9273 WriteLiteralTo(__razor_helper_writer, " <li"); 9274 9275 WriteLiteralTo(__razor_helper_writer, " class=\"pager__btn dw-mod\""); 9276 9277 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9278 9279 9280 #line 2395 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9281 9282 9283 #line default 9284 #line hidden 9285 9286 #line 2395 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9287 if (settings.IsActive) 9288 { 9289 9290 9291 #line default 9292 #line hidden 9293 WriteLiteralTo(__razor_helper_writer, " <span"); 9294 9295 WriteLiteralTo(__razor_helper_writer, " class=\"pager__num pager__num--current dw-mod\""); 9296 9297 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9298 9299 WriteLiteralTo(__razor_helper_writer, " "); 9300 9301 9302 #line 2398 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9303 WriteTo(__razor_helper_writer, Render(settings.Icon)); 9304 9305 9306 #line default 9307 #line hidden 9308 WriteLiteralTo(__razor_helper_writer, "\r\n </span>\r\n"); 9309 9310 9311 #line 2400 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9312 } 9313 else 9314 { 9315 9316 9317 #line default 9318 #line hidden 9319 WriteLiteralTo(__razor_helper_writer, " <a"); 9320 9321 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 101215), Tuple.Create("\"", 101236) 9322 9323 #line 2403 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9324 , Tuple.Create(Tuple.Create("", 101222), Tuple.Create<System.Object, System.Int32>(settings.Link 9325 9326 #line default 9327 #line hidden 9328 , 101222), false) 9329 ); 9330 9331 WriteLiteralTo(__razor_helper_writer, " class=\"pager__num dw-mod\""); 9332 9333 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9334 9335 WriteLiteralTo(__razor_helper_writer, " "); 9336 9337 9338 #line 2404 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9339 WriteTo(__razor_helper_writer, Render(settings.Icon)); 9340 9341 9342 #line default 9343 #line hidden 9344 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n"); 9345 9346 9347 #line 2406 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9348 } 9349 9350 9351 #line default 9352 #line hidden 9353 WriteLiteralTo(__razor_helper_writer, " </li>\r\n"); 9354 9355 9356 #line 2408 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9357 9358 9359 #line default 9360 #line hidden 9361 }); 9362 9363 #line 2408 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9364 } 9365 #line default 9366 #line hidden 9367 9368 9369 #line 2425 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9370 public RazorEngine.Templating.TemplateWriter RenderSocialMediaShareIcons(DanishagroBrandingMaster.Files.Files.Templates.Designs.Rapido.Components.Custom.SocialMediaShareIcon settings) 9371 { 9372 #line default 9373 #line hidden 9374 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9375 9376 #line 2426 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9377 9378 string requestHttpHost = HttpContext.Current.Request.Url.Host + HttpContext.Current.Request.RawUrl; 9379 string facebookUrl = "https://www.facebook.com/sharer/sharer.php?u=" + requestHttpHost; 9380 string twitterUrl = "https://twitter.com/intent/tweet?url=" + requestHttpHost; 9381 string linkedinUrl = "https://www.linkedin.com/sharing/share-offsite/?url=" + requestHttpHost; 9382 string mailUrl = "mailto:?subject=" + settings.MetaTitle + "&body=" + requestHttpHost; 9383 bool facebook = settings.EnableFacebook; 9384 bool twitter = settings.EnableTwitter; 9385 bool linkedin = settings.EnableLinkedin; 9386 bool mail = settings.EnableMail; 9387 var colorSetting = settings.Color != "" && settings.Color != "0" ? settings.Color : "#3D3D3C"; 9388 var ogImage = settings.OpengraphImage; 9389 if (!string.IsNullOrEmpty(ogImage)) 9390 { 9391 9392 9393 #line default 9394 #line hidden 9395 WriteLiteralTo(__razor_helper_writer, " <script>\r\n var ogImageTag = document.querySelector(\"[name=\'og:" + 9396 "image\']:not([property]\");\r\n if (ogImageTag) {\r\n ogImag" + 9397 "eTag.remove();\r\n }\r\n </script>\r\n"); 9398 9399 9400 #line 2446 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9401 if (settings.isExternal) 9402 { 9403 settings.addTag("<meta name=\"og:image\" property=\"og:image\" content=" + ogImage + ">"); 9404 } 9405 else 9406 { 9407 settings.addTag("<meta name=\"og:image\" property=\"og:image\" content=" + string.Format("{0}://{1}{2}", Dynamicweb.Context.Current.Request.Url.Scheme, HttpContext.Current.Request.Url.Host, ogImage) + ">"); 9408 } 9409 } 9410 else 9411 { 9412 string fallbackLogo = settings.CurrentPageview?.AreaSettings?.GetItem("Settings")?.GetFile("BusinessLogo")?.Path ?? ""; 9413 settings.addTag("<meta name=\"og:image\" property=\"og:image\" content=" + string.Format("{0}://{1}{2}", Dynamicweb.Context.Current.Request.Url.Scheme, HttpContext.Current.Request.Url.Host, fallbackLogo) + ">"); 9414 } 9415 if (!string.IsNullOrEmpty(settings.OpengraphDescription)) 9416 { 9417 9418 9419 #line default 9420 #line hidden 9421 WriteLiteralTo(__razor_helper_writer, " <script>\r\n var ogDescriptionTag = document.querySelector(\"[nam" + 9422 "e=\'og:description\']:not([property]\");\r\n if (ogDescriptionTag) {\r\n " + 9423 " ogDescriptionTag.remove();\r\n }\r\n </script>\r\n"); 9424 9425 9426 #line 2468 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9427 settings.addTag("<meta name=\"og:description\" property=\"og:description\" content=" + "\"" + settings.OpengraphDescription + "\">"); 9428 9429 } 9430 if (!string.IsNullOrEmpty(settings.OpengraphTitle)) 9431 { 9432 9433 9434 #line default 9435 #line hidden 9436 WriteLiteralTo(__razor_helper_writer, " <script>\r\n var ogTitleTag = document.querySelector(\"[name=\'og:" + 9437 "title\']:not([property])\");\r\n if (ogTitleTag) {\r\n ogTit" + 9438 "leTag.remove();\r\n }\r\n </script>\r\n"); 9439 9440 9441 #line 2479 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9442 settings.addTag("<meta name=\"og:title\" property=\"og:title\" content=" + "\"" + settings.OpengraphTitle + "\">"); 9443 } 9444 9445 9446 9447 #line default 9448 #line hidden 9449 WriteLiteralTo(__razor_helper_writer, " <div"); 9450 9451 WriteLiteralTo(__razor_helper_writer, " class=\"u-flex u-flex--row grid--justify-start\""); 9452 9453 WriteLiteralTo(__razor_helper_writer, " id=\"socialMediaShareButtonsCustom\""); 9454 9455 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9456 9457 9458 #line 2483 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9459 9460 9461 #line default 9462 #line hidden 9463 9464 #line 2483 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9465 if (facebook) 9466 { 9467 9468 9469 #line default 9470 #line hidden 9471 WriteLiteralTo(__razor_helper_writer, " <a"); 9472 9473 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 104742), Tuple.Create("\"", 104769) 9474 9475 #line 2485 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9476 , Tuple.Create(Tuple.Create("", 104750), Tuple.Create<System.Object, System.Int32>(settings.MetaTitle 9477 9478 #line default 9479 #line hidden 9480 , 104750), false) 9481 ); 9482 9483 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 104770), Tuple.Create("\"", 104809) 9484 , Tuple.Create(Tuple.Create("", 104778), Tuple.Create("color:", 104778), true) 9485 9486 #line 2485 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9487 , Tuple.Create(Tuple.Create("", 104784), Tuple.Create<System.Object, System.Int32>(colorSetting 9488 9489 #line default 9490 #line hidden 9491 , 104784), false) 9492 , Tuple.Create(Tuple.Create("", 104799), Tuple.Create("!important", 104799), true) 9493 ); 9494 9495 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 104810), Tuple.Create("\"", 104829) 9496 9497 #line 2485 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9498 , Tuple.Create(Tuple.Create("", 104817), Tuple.Create<System.Object, System.Int32>(facebookUrl 9499 9500 #line default 9501 #line hidden 9502 , 104817), false) 9503 ); 9504 9505 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 9506 9507 WriteLiteralTo(__razor_helper_writer, " class=\"fab social-media-icon fa-facebook u-margin-md-custom\""); 9508 9509 WriteLiteralTo(__razor_helper_writer, " onmouseover=\"mouseOverEffect(this)\""); 9510 9511 WriteLiteralTo(__razor_helper_writer, " onmouseout=\"mouseOutEffect(this)\""); 9512 9513 WriteLiteralTo(__razor_helper_writer, "></a>\r\n"); 9514 9515 9516 #line 2486 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9517 } 9518 9519 9520 #line default 9521 #line hidden 9522 WriteLiteralTo(__razor_helper_writer, " "); 9523 9524 9525 #line 2487 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9526 if (twitter) 9527 { 9528 9529 9530 #line default 9531 #line hidden 9532 WriteLiteralTo(__razor_helper_writer, " <a"); 9533 9534 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 105043), Tuple.Create("\"", 105070) 9535 9536 #line 2489 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9537 , Tuple.Create(Tuple.Create("", 105051), Tuple.Create<System.Object, System.Int32>(settings.MetaTitle 9538 9539 #line default 9540 #line hidden 9541 , 105051), false) 9542 ); 9543 9544 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 105071), Tuple.Create("\"", 105110) 9545 , Tuple.Create(Tuple.Create("", 105079), Tuple.Create("color:", 105079), true) 9546 9547 #line 2489 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9548 , Tuple.Create(Tuple.Create("", 105085), Tuple.Create<System.Object, System.Int32>(colorSetting 9549 9550 #line default 9551 #line hidden 9552 , 105085), false) 9553 , Tuple.Create(Tuple.Create("", 105100), Tuple.Create("!important", 105100), true) 9554 ); 9555 9556 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 105111), Tuple.Create("\"", 105129) 9557 9558 #line 2489 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9559 , Tuple.Create(Tuple.Create("", 105118), Tuple.Create<System.Object, System.Int32>(twitterUrl 9560 9561 #line default 9562 #line hidden 9563 , 105118), false) 9564 ); 9565 9566 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 9567 9568 WriteLiteralTo(__razor_helper_writer, " class=\"fab social-media-icon fa-twitter u-margin-md-custom\""); 9569 9570 WriteLiteralTo(__razor_helper_writer, " onmouseover=\"mouseOverEffect(this)\""); 9571 9572 WriteLiteralTo(__razor_helper_writer, " onmouseout=\"mouseOutEffect(this)\""); 9573 9574 WriteLiteralTo(__razor_helper_writer, "></a>\r\n"); 9575 9576 9577 #line 2490 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9578 } 9579 9580 9581 #line default 9582 #line hidden 9583 WriteLiteralTo(__razor_helper_writer, " "); 9584 9585 9586 #line 2491 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9587 if (linkedin) 9588 { 9589 9590 9591 #line default 9592 #line hidden 9593 WriteLiteralTo(__razor_helper_writer, " <a"); 9594 9595 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 105343), Tuple.Create("\"", 105370) 9596 9597 #line 2493 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9598 , Tuple.Create(Tuple.Create("", 105351), Tuple.Create<System.Object, System.Int32>(settings.MetaTitle 9599 9600 #line default 9601 #line hidden 9602 , 105351), false) 9603 ); 9604 9605 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 105371), Tuple.Create("\"", 105410) 9606 , Tuple.Create(Tuple.Create("", 105379), Tuple.Create("color:", 105379), true) 9607 9608 #line 2493 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9609 , Tuple.Create(Tuple.Create("", 105385), Tuple.Create<System.Object, System.Int32>(colorSetting 9610 9611 #line default 9612 #line hidden 9613 , 105385), false) 9614 , Tuple.Create(Tuple.Create("", 105400), Tuple.Create("!important", 105400), true) 9615 ); 9616 9617 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 105411), Tuple.Create("\"", 105430) 9618 9619 #line 2493 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9620 , Tuple.Create(Tuple.Create("", 105418), Tuple.Create<System.Object, System.Int32>(linkedinUrl 9621 9622 #line default 9623 #line hidden 9624 , 105418), false) 9625 ); 9626 9627 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 9628 9629 WriteLiteralTo(__razor_helper_writer, " class=\"fab social-media-icon fa-linkedin-in u-margin-md-custom\""); 9630 9631 WriteLiteralTo(__razor_helper_writer, " onmouseover=\"mouseOverEffect(this)\""); 9632 9633 WriteLiteralTo(__razor_helper_writer, " onmouseout=\"mouseOutEffect(this)\""); 9634 9635 WriteLiteralTo(__razor_helper_writer, "></a>\r\n"); 9636 9637 9638 #line 2494 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9639 } 9640 9641 9642 #line default 9643 #line hidden 9644 WriteLiteralTo(__razor_helper_writer, " "); 9645 9646 9647 #line 2495 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9648 if (mail) 9649 { 9650 9651 9652 #line default 9653 #line hidden 9654 WriteLiteralTo(__razor_helper_writer, " <a"); 9655 9656 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 105644), Tuple.Create("\"", 105671) 9657 9658 #line 2497 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9659 , Tuple.Create(Tuple.Create("", 105652), Tuple.Create<System.Object, System.Int32>(settings.MetaTitle 9660 9661 #line default 9662 #line hidden 9663 , 105652), false) 9664 ); 9665 9666 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 105672), Tuple.Create("\"", 105711) 9667 , Tuple.Create(Tuple.Create("", 105680), Tuple.Create("color:", 105680), true) 9668 9669 #line 2497 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9670 , Tuple.Create(Tuple.Create("", 105686), Tuple.Create<System.Object, System.Int32>(colorSetting 9671 9672 #line default 9673 #line hidden 9674 , 105686), false) 9675 , Tuple.Create(Tuple.Create("", 105701), Tuple.Create("!important", 105701), true) 9676 ); 9677 9678 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 105712), Tuple.Create("\"", 105727) 9679 9680 #line 2497 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9681 , Tuple.Create(Tuple.Create("", 105719), Tuple.Create<System.Object, System.Int32>(mailUrl 9682 9683 #line default 9684 #line hidden 9685 , 105719), false) 9686 ); 9687 9688 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 9689 9690 WriteLiteralTo(__razor_helper_writer, " class=\"fas social-media-icon fa-envelope u-margin-md-custom\""); 9691 9692 WriteLiteralTo(__razor_helper_writer, " onmouseover=\"mouseOverEffect(this)\""); 9693 9694 WriteLiteralTo(__razor_helper_writer, " onmouseout=\"mouseOutEffect(this)\""); 9695 9696 WriteLiteralTo(__razor_helper_writer, "></a>\r\n"); 9697 9698 9699 #line 2498 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9700 } 9701 9702 9703 #line default 9704 #line hidden 9705 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 9706 9707 9708 #line 2500 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9709 9710 9711 9712 #line default 9713 #line hidden 9714 WriteLiteralTo(__razor_helper_writer, " <script>\r\n function mouseOverEffect(event) {\r\n event.style." + 9715 "opacity = \"0.7\";\r\n }\r\n\r\n function mouseOutEffect(event) {\r\n " + 9716 " event.style.opacity = \"1.0\";\r\n }\r\n </script>\r\n"); 9717 9718 9719 #line 2510 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9720 9721 9722 #line default 9723 #line hidden 9724 }); 9725 9726 #line 2510 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9727 } 9728 #line default 9729 #line hidden 9730 9731 9732 #line 2524 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9733 public RazorEngine.Templating.TemplateWriter RenderVariantMatrix(VariantMatrix settings) { 9734 #line default 9735 #line hidden 9736 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9737 9738 #line 2524 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9739 9740 if (settings != null) 9741 { 9742 int productLoopCounter = 0; 9743 int groupCount = 0; 9744 List<VariantOption> firstDimension = new List<VariantOption>(); 9745 List<VariantOption> secondDimension = new List<VariantOption>(); 9746 List<VariantOption> thirdDimension = new List<VariantOption>(); 9747 9748 foreach (VariantGroup variantGroup in settings.GetVariantGroups()) 9749 { 9750 foreach (VariantOption variantOptions in variantGroup.GetVariantOptions()) 9751 { 9752 if (groupCount == 0) { 9753 firstDimension.Add(variantOptions); 9754 } 9755 if (groupCount == 1) 9756 { 9757 secondDimension.Add(variantOptions); 9758 } 9759 if (groupCount == 2) 9760 { 9761 thirdDimension.Add(variantOptions); 9762 } 9763 } 9764 groupCount++; 9765 } 9766 9767 int rowCount = 0; 9768 int columnCount = 0; 9769 9770 9771 9772 #line default 9773 #line hidden 9774 WriteLiteralTo(__razor_helper_writer, " <script>\r\n var variantsCollection = [];\r\n </script>\r\n"); 9775 9776 9777 #line 2558 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9778 9779 9780 9781 #line default 9782 #line hidden 9783 WriteLiteralTo(__razor_helper_writer, " <table"); 9784 9785 WriteLiteralTo(__razor_helper_writer, " class=\"table table--compact js-variants-matrix dw-mod\""); 9786 9787 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 107628), Tuple.Create("\"", 107671) 9788 , Tuple.Create(Tuple.Create("", 107633), Tuple.Create("VariantMatrixTable_", 107633), true) 9789 9790 #line 2559 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9791 , Tuple.Create(Tuple.Create("", 107652), Tuple.Create<System.Object, System.Int32>(settings.ProductId 9792 9793 #line default 9794 #line hidden 9795 , 107652), false) 9796 ); 9797 9798 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9799 9800 9801 #line 2560 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9802 9803 9804 #line default 9805 #line hidden 9806 9807 #line 2560 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9808 if (groupCount == 1) 9809 { 9810 9811 9812 #line default 9813 #line hidden 9814 WriteLiteralTo(__razor_helper_writer, " <tbody>\r\n"); 9815 9816 9817 #line 2563 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9818 9819 9820 #line default 9821 #line hidden 9822 9823 #line 2563 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9824 foreach (VariantOption firstVariantOption in firstDimension) 9825 { 9826 var variantId = firstVariantOption.Id; 9827 9828 9829 #line default 9830 #line hidden 9831 WriteLiteralTo(__razor_helper_writer, " <tr>\r\n <td"); 9832 9833 WriteLiteralTo(__razor_helper_writer, " class=\"u-bold\""); 9834 9835 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9836 9837 WriteLiteralTo(__razor_helper_writer, " "); 9838 9839 9840 #line 2568 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9841 WriteTo(__razor_helper_writer, firstVariantOption.Name); 9842 9843 9844 #line default 9845 #line hidden 9846 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n <td>\r\n"); 9847 9848 WriteLiteralTo(__razor_helper_writer, " "); 9849 9850 9851 #line 2571 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9852 WriteTo(__razor_helper_writer, RenderVariantMatrixQuantityField(variantId, settings, productLoopCounter, rowCount, columnCount)); 9853 9854 9855 #line default 9856 #line hidden 9857 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n </tr>\r\n"); 9858 9859 9860 #line 2574 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9861 productLoopCounter++; 9862 } 9863 9864 9865 #line default 9866 #line hidden 9867 WriteLiteralTo(__razor_helper_writer, "\r\n <tr>\r\n <td>&nbsp;</td>\r\n " + 9868 " <td>\r\n <div"); 9869 9870 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 108524), Tuple.Create("\"", 108581) 9871 , Tuple.Create(Tuple.Create("", 108532), Tuple.Create("qty-field", 108532), true) 9872 , Tuple.Create(Tuple.Create(" ", 108541), Tuple.Create("js-total-qty-column-", 108542), true) 9873 9874 #line 2580 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9875 , Tuple.Create(Tuple.Create("", 108562), Tuple.Create<System.Object, System.Int32>(columnCount 9876 9877 #line default 9878 #line hidden 9879 , 108562), false) 9880 , Tuple.Create(Tuple.Create(" ", 108574), Tuple.Create("dw-mod", 108575), true) 9881 ); 9882 9883 WriteLiteralTo(__razor_helper_writer, ">0</div>\r\n </td>\r\n </tr>\r\n " + 9884 " </tbody>\r\n"); 9885 9886 9887 #line 2584 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9888 } 9889 9890 9891 #line default 9892 #line hidden 9893 WriteLiteralTo(__razor_helper_writer, " "); 9894 9895 9896 #line 2585 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9897 if (groupCount == 2) 9898 { 9899 9900 9901 #line default 9902 #line hidden 9903 WriteLiteralTo(__razor_helper_writer, " <thead>\r\n <tr>\r\n <td>&n" + 9904 "bsp;</td>\r\n"); 9905 9906 9907 #line 2590 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9908 9909 9910 #line default 9911 #line hidden 9912 9913 #line 2590 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9914 foreach (VariantOption variant in secondDimension) 9915 { 9916 9917 9918 #line default 9919 #line hidden 9920 WriteLiteralTo(__razor_helper_writer, " <td>"); 9921 9922 9923 #line 2592 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9924 WriteTo(__razor_helper_writer, variant.Name); 9925 9926 9927 #line default 9928 #line hidden 9929 WriteLiteralTo(__razor_helper_writer, "</td>\r\n"); 9930 9931 9932 #line 2593 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9933 } 9934 9935 9936 #line default 9937 #line hidden 9938 WriteLiteralTo(__razor_helper_writer, " </tr>\r\n </thead>\r\n"); 9939 9940 WriteLiteralTo(__razor_helper_writer, " <tbody>\r\n"); 9941 9942 9943 #line 2597 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9944 9945 9946 #line default 9947 #line hidden 9948 9949 #line 2597 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9950 foreach (VariantOption firstVariantOption in firstDimension) 9951 { 9952 string variantId = ""; 9953 columnCount = 0; 9954 9955 9956 9957 #line default 9958 #line hidden 9959 WriteLiteralTo(__razor_helper_writer, " <tr>\r\n <td"); 9960 9961 WriteLiteralTo(__razor_helper_writer, " class=\"u-min-w120px\""); 9962 9963 WriteLiteralTo(__razor_helper_writer, ">"); 9964 9965 9966 #line 2603 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9967 WriteTo(__razor_helper_writer, firstVariantOption.Name); 9968 9969 9970 #line default 9971 #line hidden 9972 WriteLiteralTo(__razor_helper_writer, "</td>\r\n\r\n"); 9973 9974 9975 #line 2605 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9976 9977 9978 #line default 9979 #line hidden 9980 9981 #line 2605 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9982 foreach (VariantOption secondVariantOption in secondDimension) 9983 { 9984 variantId = firstVariantOption.Id + "." + secondVariantOption.Id; 9985 9986 9987 #line default 9988 #line hidden 9989 WriteLiteralTo(__razor_helper_writer, " <td>\r\n"); 9990 9991 WriteLiteralTo(__razor_helper_writer, " "); 9992 9993 9994 #line 2609 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 9995 WriteTo(__razor_helper_writer, RenderVariantMatrixQuantityField(variantId, settings, productLoopCounter, rowCount, columnCount)); 9996 9997 9998 #line default 9999 #line hidden 10000 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n"); 10001 10002 10003 #line 2611 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10004 10005 columnCount++; 10006 10007 productLoopCounter++; 10008 } 10009 10010 10011 #line default 10012 #line hidden 10013 WriteLiteralTo(__razor_helper_writer, "\r\n <td>\r\n <div"); 10014 10015 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 110053), Tuple.Create("\"", 110104) 10016 , Tuple.Create(Tuple.Create("", 110061), Tuple.Create("qty-field", 110061), true) 10017 , Tuple.Create(Tuple.Create(" ", 110070), Tuple.Create("js-total-qty-row-", 110071), true) 10018 10019 #line 2618 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10020 , Tuple.Create(Tuple.Create("", 110088), Tuple.Create<System.Object, System.Int32>(rowCount 10021 10022 #line default 10023 #line hidden 10024 , 110088), false) 10025 , Tuple.Create(Tuple.Create(" ", 110097), Tuple.Create("dw-mod", 110098), true) 10026 ); 10027 10028 WriteLiteralTo(__razor_helper_writer, ">0</div>\r\n </td>\r\n </tr>\r\n"); 10029 10030 10031 #line 2621 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10032 10033 rowCount++; 10034 } 10035 10036 10037 #line default 10038 #line hidden 10039 WriteLiteralTo(__razor_helper_writer, "\r\n"); 10040 10041 10042 #line 2625 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10043 10044 10045 #line default 10046 #line hidden 10047 10048 #line 2625 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10049 10050 columnCount = 0; 10051 10052 10053 #line default 10054 #line hidden 10055 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n <tr>\r\n <td>&nbsp;</td>\r\n"); 10056 10057 10058 #line 2631 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10059 10060 10061 #line default 10062 #line hidden 10063 10064 #line 2631 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10065 foreach (VariantOption secondVariantOption in secondDimension) 10066 { 10067 10068 10069 #line default 10070 #line hidden 10071 WriteLiteralTo(__razor_helper_writer, " <td>\r\n <div"); 10072 10073 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 110589), Tuple.Create("\"", 110646) 10074 , Tuple.Create(Tuple.Create("", 110597), Tuple.Create("qty-field", 110597), true) 10075 , Tuple.Create(Tuple.Create(" ", 110606), Tuple.Create("js-total-qty-column-", 110607), true) 10076 10077 #line 2634 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10078 , Tuple.Create(Tuple.Create("", 110627), Tuple.Create<System.Object, System.Int32>(columnCount 10079 10080 #line default 10081 #line hidden 10082 , 110627), false) 10083 , Tuple.Create(Tuple.Create(" ", 110639), Tuple.Create("dw-mod", 110640), true) 10084 ); 10085 10086 WriteLiteralTo(__razor_helper_writer, ">0</div>\r\n </td>\r\n"); 10087 10088 10089 #line 2636 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10090 10091 columnCount++; 10092 } 10093 10094 10095 #line default 10096 #line hidden 10097 WriteLiteralTo(__razor_helper_writer, " <td>&nbsp;</td>\r\n </tr>\r\n " + 10098 " </tbody>\r\n"); 10099 10100 10101 #line 2642 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10102 } 10103 10104 10105 #line default 10106 #line hidden 10107 WriteLiteralTo(__razor_helper_writer, " "); 10108 10109 10110 #line 2643 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10111 if (groupCount == 3) 10112 { 10113 10114 10115 #line default 10116 #line hidden 10117 WriteLiteralTo(__razor_helper_writer, " <thead>\r\n <tr>\r\n <td>&n" + 10118 "bsp;</td>\r\n"); 10119 10120 10121 #line 2648 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10122 10123 10124 #line default 10125 #line hidden 10126 10127 #line 2648 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10128 foreach (VariantOption thirdVariantOption in thirdDimension) 10129 { 10130 10131 10132 #line default 10133 #line hidden 10134 WriteLiteralTo(__razor_helper_writer, " <td>"); 10135 10136 10137 #line 2650 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10138 WriteTo(__razor_helper_writer, thirdVariantOption.Name); 10139 10140 10141 #line default 10142 #line hidden 10143 WriteLiteralTo(__razor_helper_writer, "</td>\r\n"); 10144 10145 10146 #line 2651 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10147 } 10148 10149 10150 #line default 10151 #line hidden 10152 WriteLiteralTo(__razor_helper_writer, " </tr>\r\n </thead>\r\n"); 10153 10154 WriteLiteralTo(__razor_helper_writer, " <tbody>\r\n"); 10155 10156 10157 #line 2655 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10158 10159 10160 #line default 10161 #line hidden 10162 10163 #line 2655 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10164 foreach (VariantOption firstVariantOption in firstDimension) 10165 { 10166 int colspan = (thirdDimension.Count + 1); 10167 10168 10169 10170 #line default 10171 #line hidden 10172 WriteLiteralTo(__razor_helper_writer, " <tr>\r\n <td"); 10173 10174 WriteAttributeTo(__razor_helper_writer, "colspan", Tuple.Create(" colspan=\"", 111534), Tuple.Create("\"", 111552) 10175 10176 #line 2660 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10177 , Tuple.Create(Tuple.Create("", 111544), Tuple.Create<System.Object, System.Int32>(colspan 10178 10179 #line default 10180 #line hidden 10181 , 111544), false) 10182 ); 10183 10184 WriteLiteralTo(__razor_helper_writer, " class=\"u-color-light-gray--bg u-bold\""); 10185 10186 WriteLiteralTo(__razor_helper_writer, ">"); 10187 10188 10189 #line 2660 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10190 WriteTo(__razor_helper_writer, firstVariantOption.Name); 10191 10192 10193 #line default 10194 #line hidden 10195 WriteLiteralTo(__razor_helper_writer, "</td>\r\n </tr>\r\n"); 10196 10197 10198 #line 2662 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10199 10200 foreach (VariantOption secondVariantOption in secondDimension) 10201 { 10202 string variantId = ""; 10203 columnCount = 0; 10204 10205 10206 10207 #line default 10208 #line hidden 10209 WriteLiteralTo(__razor_helper_writer, " <tr>\r\n <td"); 10210 10211 WriteLiteralTo(__razor_helper_writer, " class=\"u-min-w120px\""); 10212 10213 WriteLiteralTo(__razor_helper_writer, ">"); 10214 10215 10216 #line 2669 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10217 WriteTo(__razor_helper_writer, secondVariantOption.Name); 10218 10219 10220 #line default 10221 #line hidden 10222 WriteLiteralTo(__razor_helper_writer, "</td>\r\n\r\n"); 10223 10224 10225 #line 2671 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10226 10227 10228 #line default 10229 #line hidden 10230 10231 #line 2671 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10232 foreach (VariantOption thirdVariantOption in thirdDimension) 10233 { 10234 variantId = firstVariantOption.Id + "." + secondVariantOption.Id + "." + thirdVariantOption.Id; 10235 10236 10237 10238 #line default 10239 #line hidden 10240 WriteLiteralTo(__razor_helper_writer, " <td>\r\n"); 10241 10242 WriteLiteralTo(__razor_helper_writer, " "); 10243 10244 10245 #line 2676 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10246 WriteTo(__razor_helper_writer, RenderVariantMatrixQuantityField(variantId, settings, productLoopCounter, rowCount, columnCount)); 10247 10248 10249 #line default 10250 #line hidden 10251 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n"); 10252 10253 10254 #line 2678 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10255 10256 columnCount++; 10257 productLoopCounter++; 10258 } 10259 10260 10261 #line default 10262 #line hidden 10263 WriteLiteralTo(__razor_helper_writer, "\r\n <td>\r\n <div"); 10264 10265 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 112713), Tuple.Create("\"", 112764) 10266 , Tuple.Create(Tuple.Create("", 112721), Tuple.Create("qty-field", 112721), true) 10267 , Tuple.Create(Tuple.Create(" ", 112730), Tuple.Create("js-total-qty-row-", 112731), true) 10268 10269 #line 2684 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10270 , Tuple.Create(Tuple.Create("", 112748), Tuple.Create<System.Object, System.Int32>(rowCount 10271 10272 #line default 10273 #line hidden 10274 , 112748), false) 10275 , Tuple.Create(Tuple.Create(" ", 112757), Tuple.Create("dw-mod", 112758), true) 10276 ); 10277 10278 WriteLiteralTo(__razor_helper_writer, ">0</div>\r\n </td>\r\n </tr" + 10279 ">\r\n"); 10280 10281 10282 #line 2687 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10283 rowCount++; 10284 } 10285 } 10286 10287 10288 #line default 10289 #line hidden 10290 WriteLiteralTo(__razor_helper_writer, "\r\n"); 10291 10292 10293 #line 2691 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10294 10295 10296 #line default 10297 #line hidden 10298 10299 #line 2691 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10300 10301 columnCount = 0; 10302 10303 10304 #line default 10305 #line hidden 10306 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n <tr>\r\n <td>&nbsp;</td>\r\n"); 10307 10308 10309 #line 2697 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10310 10311 10312 #line default 10313 #line hidden 10314 10315 #line 2697 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10316 foreach (VariantOption thirdVariantOption in thirdDimension) 10317 { 10318 10319 10320 #line default 10321 #line hidden 10322 WriteLiteralTo(__razor_helper_writer, " <td>\r\n <div"); 10323 10324 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 113284), Tuple.Create("\"", 113341) 10325 , Tuple.Create(Tuple.Create("", 113292), Tuple.Create("qty-field", 113292), true) 10326 , Tuple.Create(Tuple.Create(" ", 113301), Tuple.Create("js-total-qty-column-", 113302), true) 10327 10328 #line 2700 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10329 , Tuple.Create(Tuple.Create("", 113322), Tuple.Create<System.Object, System.Int32>(columnCount 10330 10331 #line default 10332 #line hidden 10333 , 113322), false) 10334 , Tuple.Create(Tuple.Create(" ", 113334), Tuple.Create("dw-mod", 113335), true) 10335 ); 10336 10337 WriteLiteralTo(__razor_helper_writer, ">0</div>\r\n </td>\r\n"); 10338 10339 10340 #line 2702 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10341 10342 columnCount++; 10343 } 10344 10345 10346 #line default 10347 #line hidden 10348 WriteLiteralTo(__razor_helper_writer, " <td>&nbsp;</td>\r\n </tr>\r\n " + 10349 " </tbody>\r\n"); 10350 10351 10352 #line 2708 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10353 } 10354 10355 10356 #line default 10357 #line hidden 10358 WriteLiteralTo(__razor_helper_writer, " </table>\r\n"); 10359 10360 10361 #line 2710 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10362 10363 10364 10365 #line default 10366 #line hidden 10367 WriteLiteralTo(__razor_helper_writer, " <script>\r\n document.addEventListener(\"DOMContentLoaded\", funct" + 10368 "ion (event) {\r\n MatrixUpdateQuantity(\""); 10369 10370 10371 #line 2713 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10372 WriteTo(__razor_helper_writer, settings.ProductId); 10373 10374 10375 #line default 10376 #line hidden 10377 WriteLiteralTo(__razor_helper_writer, "\");\r\n });\r\n\r\n MatrixUpdateQuantity = function (productId) {" + 10378 "\r\n var currentMatrix = document.getElementById(\"VariantMatrixTabl" + 10379 "e_\" + productId);\r\n var allQtyFields = currentMatrix.getElementsB" + 10380 "yClassName(\"js-qty\");\r\n\r\n var qtyRowArr = [];\r\n va" + 10381 "r qtyColumnArr = [];\r\n\r\n var totalQty = 0;\r\n\r\n for" + 10382 " (var i = 0; i < allQtyFields.length; i++) {\r\n qtyRowArr[allQ" + 10383 "tyFields[i].getAttribute(\"data-qty-row-group\")] = 0;\r\n qtyCol" + 10384 "umnArr[allQtyFields[i].getAttribute(\"data-qty-column-group\")] = 0;\r\n " + 10385 " }\r\n\r\n for (var i = 0; i < allQtyFields.length; i++) {\r\n " + 10386 " qtyRowArr[allQtyFields[i].getAttribute(\"data-qty-row-group\")] += p" + 10387 "arseFloat(allQtyFields[i].value);\r\n qtyColumnArr[allQtyFields" + 10388 "[i].getAttribute(\"data-qty-column-group\")] += parseFloat(allQtyFields[i].value);" + 10389 "\r\n totalQty += parseFloat(allQtyFields[i].value);\r\n " + 10390 " }\r\n\r\n //Update row counters\r\n for (var i = 0" + 10391 "; i < qtyRowArr.length; i++) {\r\n var qtyCounter = currentMatr" + 10392 "ix.getElementsByClassName(\"js-total-qty-row-\" + i)[0];\r\n\r\n if" + 10393 " (qtyRowArr[i] != undefined && qtyCounter != null) {\r\n va" + 10394 "r currentCount = qtyCounter.innerHTML;\r\n qtyCounter.inner" + 10395 "HTML = qtyRowArr[i];\r\n\r\n if (currentCount != qtyCounter.i" + 10396 "nnerHTML) {\r\n qtyCounter.classList.add(\"qty-field--ac" + 10397 "tive\");\r\n }\r\n }\r\n \r\n " + 10398 " }\r\n\r\n //Update column counters\r\n for (var i =" + 10399 " 0; i < qtyColumnArr.length; i++) {\r\n var qtyCounter = curren" + 10400 "tMatrix.getElementsByClassName(\"js-total-qty-column-\" + i)[0];\r\n\r\n " + 10401 " if (qtyColumnArr[i] != undefined && qtyCounter != null) {\r\n " + 10402 " var currentCount = qtyCounter.innerHTML;\r\n qtyCo" + 10403 "unter.innerHTML = qtyColumnArr[i];\r\n\r\n if (currentCount !" + 10404 "= qtyCounter.innerHTML) {\r\n qtyCounter.classList.add(" + 10405 "\"qty-field--active\");\r\n }\r\n }\r\n " + 10406 " }\r\n\r\n if (document.getElementById(\"TotalQtyCount_\" + pro" + 10407 "ductId)) {\r\n document.getElementById(\"TotalQtyCount_\" + produ" + 10408 "ctId).innerHTML = totalQty;\r\n }\r\n\r\n //Clean up ani" + 10409 "mations\r\n setTimeout(function () {\r\n for (var " + 10410 "i = 0; i < qtyRowArr.length; i++) {\r\n var qtyCounter = cu" + 10411 "rrentMatrix.getElementsByClassName(\"js-total-qty-row-\" + i)[0];\r\n " + 10412 " if (qtyCounter != null) {\r\n qtyCounter.class" + 10413 "List.remove(\"qty-field--active\");\r\n }\r\n " + 10414 " }\r\n for (var i = 0; i < qtyColumnArr.length; i++) {\r\n " + 10415 " var qtyCounter = currentMatrix.getElementsByClassName(\"js-tota" + 10416 "l-qty-column-\" + i)[0];\r\n if (qtyCounter != null) {\r\n " + 10417 " qtyCounter.classList.remove(\"qty-field--active\");\r\n " + 10418 " }\r\n }\r\n }, 1000);\r\n " + 10419 " }\r\n </script>\r\n"); 10420 10421 10422 #line 2786 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10423 } 10424 10425 10426 #line default 10427 #line hidden 10428 }); 10429 10430 #line 2787 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10431 } 10432 #line default 10433 #line hidden 10434 10435 10436 #line 2789 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10437 public RazorEngine.Templating.TemplateWriter RenderVariantMatrixQuantityField(string variantId, VariantMatrix settings, int productLoopCounter, int rowCount, int columnCount) 10438 { 10439 #line default 10440 #line hidden 10441 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10442 10443 #line 2790 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10444 10445 string loopCount = productLoopCounter.ToString(); 10446 10447 bool combinationFound = false; 10448 double stock = 0; 10449 double quantityValue = 0; 10450 string note = ""; 10451 10452 VariantProduct variantProduct = null; 10453 10454 if (settings.GetVariantProducts().TryGetValue(variantId, out variantProduct)) 10455 { 10456 stock = variantProduct.Stock; 10457 quantityValue = variantProduct.Quantity; 10458 combinationFound = true; 10459 } 10460 10461 if (combinationFound) 10462 { 10463 10464 10465 #line default 10466 #line hidden 10467 WriteLiteralTo(__razor_helper_writer, " <input"); 10468 10469 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 10470 10471 WriteAttributeTo(__razor_helper_writer, "name", Tuple.Create(" name=\"", 117784), Tuple.Create("\"", 117821) 10472 , Tuple.Create(Tuple.Create("", 117791), Tuple.Create("ProductLoopCounter", 117791), true) 10473 10474 #line 2809 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10475 , Tuple.Create(Tuple.Create("", 117809), Tuple.Create<System.Object, System.Int32>(loopCount 10476 10477 #line default 10478 #line hidden 10479 , 117809), false) 10480 ); 10481 10482 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 117822), Tuple.Create("\"", 117840) 10483 10484 #line 2809 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10485 , Tuple.Create(Tuple.Create("", 117830), Tuple.Create<System.Object, System.Int32>(loopCount 10486 10487 #line default 10488 #line hidden 10489 , 117830), false) 10490 ); 10491 10492 WriteLiteralTo(__razor_helper_writer, " />\r\n"); 10493 10494 WriteLiteralTo(__razor_helper_writer, " <input"); 10495 10496 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 10497 10498 WriteAttributeTo(__razor_helper_writer, "name", Tuple.Create(" name=\"", 117874), Tuple.Create("\"", 117902) 10499 , Tuple.Create(Tuple.Create("", 117881), Tuple.Create("ProductID", 117881), true) 10500 10501 #line 2810 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10502 , Tuple.Create(Tuple.Create("", 117890), Tuple.Create<System.Object, System.Int32>(loopCount 10503 10504 #line default 10505 #line hidden 10506 , 117890), false) 10507 ); 10508 10509 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 117903), Tuple.Create("\"", 117930) 10510 10511 #line 2810 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10512 , Tuple.Create(Tuple.Create("", 117911), Tuple.Create<System.Object, System.Int32>(settings.ProductId 10513 10514 #line default 10515 #line hidden 10516 , 117911), false) 10517 ); 10518 10519 WriteLiteralTo(__razor_helper_writer, " />\r\n"); 10520 10521 WriteLiteralTo(__razor_helper_writer, " <input"); 10522 10523 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 10524 10525 WriteAttributeTo(__razor_helper_writer, "name", Tuple.Create(" name=\"", 117964), Tuple.Create("\"", 117992) 10526 , Tuple.Create(Tuple.Create("", 117971), Tuple.Create("VariantID", 117971), true) 10527 10528 #line 2811 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10529 , Tuple.Create(Tuple.Create("", 117980), Tuple.Create<System.Object, System.Int32>(loopCount 10530 10531 #line default 10532 #line hidden 10533 , 117980), false) 10534 ); 10535 10536 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 117993), Tuple.Create("\"", 118011) 10537 10538 #line 2811 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10539 , Tuple.Create(Tuple.Create("", 118001), Tuple.Create<System.Object, System.Int32>(variantId 10540 10541 #line default 10542 #line hidden 10543 , 118001), false) 10544 ); 10545 10546 WriteLiteralTo(__razor_helper_writer, " />\r\n"); 10547 10548 WriteLiteralTo(__razor_helper_writer, " <input"); 10549 10550 WriteLiteralTo(__razor_helper_writer, " type=\"hidden\""); 10551 10552 WriteAttributeTo(__razor_helper_writer, "name", Tuple.Create(" name=\"", 118045), Tuple.Create("\"", 118075) 10553 , Tuple.Create(Tuple.Create("", 118052), Tuple.Create("CurrentNote", 118052), true) 10554 10555 #line 2812 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10556 , Tuple.Create(Tuple.Create("", 118063), Tuple.Create<System.Object, System.Int32>(loopCount 10557 10558 #line default 10559 #line hidden 10560 , 118063), false) 10561 ); 10562 10563 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 118076), Tuple.Create("\"", 118125) 10564 , Tuple.Create(Tuple.Create("", 118081), Tuple.Create("CurrentNote_", 118081), true) 10565 10566 #line 2812 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10567 , Tuple.Create(Tuple.Create("", 118093), Tuple.Create<System.Object, System.Int32>(settings.ProductId 10568 10569 #line default 10570 #line hidden 10571 , 118093), false) 10572 , Tuple.Create(Tuple.Create("", 118114), Tuple.Create("_", 118114), true) 10573 10574 #line 2812 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10575 , Tuple.Create(Tuple.Create("", 118115), Tuple.Create<System.Object, System.Int32>(variantId 10576 10577 #line default 10578 #line hidden 10579 , 118115), false) 10580 ); 10581 10582 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 118126), Tuple.Create("\"", 118139) 10583 10584 #line 2812 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10585 , Tuple.Create(Tuple.Create("", 118134), Tuple.Create<System.Object, System.Int32>(note 10586 10587 #line default 10588 #line hidden 10589 , 118134), false) 10590 ); 10591 10592 WriteLiteralTo(__razor_helper_writer, " />\r\n"); 10593 10594 WriteLiteralTo(__razor_helper_writer, " <input"); 10595 10596 WriteLiteralTo(__razor_helper_writer, " type=\"number\""); 10597 10598 WriteAttributeTo(__razor_helper_writer, "name", Tuple.Create(" name=\"", 118173), Tuple.Create("\"", 118200) 10599 , Tuple.Create(Tuple.Create("", 118180), Tuple.Create("Quantity", 118180), true) 10600 10601 #line 2813 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10602 , Tuple.Create(Tuple.Create("", 118188), Tuple.Create<System.Object, System.Int32>(loopCount 10603 10604 #line default 10605 #line hidden 10606 , 118188), false) 10607 ); 10608 10609 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 118201), Tuple.Create("\"", 118247) 10610 , Tuple.Create(Tuple.Create("", 118206), Tuple.Create("Quantity_", 118206), true) 10611 10612 #line 2813 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10613 , Tuple.Create(Tuple.Create("", 118215), Tuple.Create<System.Object, System.Int32>(settings.ProductId 10614 10615 #line default 10616 #line hidden 10617 , 118215), false) 10618 , Tuple.Create(Tuple.Create("", 118236), Tuple.Create("_", 118236), true) 10619 10620 #line 2813 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10621 , Tuple.Create(Tuple.Create("", 118237), Tuple.Create<System.Object, System.Int32>(variantId 10622 10623 #line default 10624 #line hidden 10625 , 118237), false) 10626 ); 10627 10628 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 118248), Tuple.Create("\"", 118270) 10629 10630 #line 2813 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10631 , Tuple.Create(Tuple.Create("", 118256), Tuple.Create<System.Object, System.Int32>(quantityValue 10632 10633 #line default 10634 #line hidden 10635 , 118256), false) 10636 ); 10637 10638 WriteLiteralTo(__razor_helper_writer, " min=\"0\""); 10639 10640 WriteLiteralTo(__razor_helper_writer, " class=\"js-qty u-no-margin u-full-max-width\""); 10641 10642 WriteLiteralTo(__razor_helper_writer, " style=\"width: 100%; max-width: 100%\""); 10643 10644 WriteAttributeTo(__razor_helper_writer, "onkeyup", Tuple.Create(" onkeyup=\"", 118360), Tuple.Create("\"", 118413) 10645 , Tuple.Create(Tuple.Create("", 118370), Tuple.Create("MatrixUpdateQuantity(\'", 118370), true) 10646 10647 #line 2813 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10648 , Tuple.Create(Tuple.Create("", 118392), Tuple.Create<System.Object, System.Int32>(settings.ProductId 10649 10650 #line default 10651 #line hidden 10652 , 118392), false) 10653 , Tuple.Create(Tuple.Create("", 118411), Tuple.Create("\')", 118411), true) 10654 ); 10655 10656 WriteAttributeTo(__razor_helper_writer, "onmouseup", Tuple.Create(" onmouseup=\"", 118414), Tuple.Create("\"", 118469) 10657 , Tuple.Create(Tuple.Create("", 118426), Tuple.Create("MatrixUpdateQuantity(\'", 118426), true) 10658 10659 #line 2813 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10660 , Tuple.Create(Tuple.Create("", 118448), Tuple.Create<System.Object, System.Int32>(settings.ProductId 10661 10662 #line default 10663 #line hidden 10664 , 118448), false) 10665 , Tuple.Create(Tuple.Create("", 118467), Tuple.Create("\')", 118467), true) 10666 ); 10667 10668 WriteLiteralTo(__razor_helper_writer, " data-qty-row-group=\""); 10669 10670 10671 #line 2813 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10672 WriteTo(__razor_helper_writer, rowCount); 10673 10674 10675 #line default 10676 #line hidden 10677 WriteLiteralTo(__razor_helper_writer, "\""); 10678 10679 WriteLiteralTo(__razor_helper_writer, " data-qty-column-group=\""); 10680 10681 10682 #line 2813 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10683 WriteTo(__razor_helper_writer, columnCount); 10684 10685 10686 #line default 10687 #line hidden 10688 WriteLiteralTo(__razor_helper_writer, "\""); 10689 10690 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10691 10692 10693 #line 2814 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10694 10695 if (stock != 0) 10696 { 10697 10698 10699 #line default 10700 #line hidden 10701 WriteLiteralTo(__razor_helper_writer, " <small>"); 10702 10703 10704 #line 2817 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10705 WriteTo(__razor_helper_writer, Translate("Stock")); 10706 10707 10708 #line default 10709 #line hidden 10710 WriteLiteralTo(__razor_helper_writer, " "); 10711 10712 10713 #line 2817 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10714 WriteTo(__razor_helper_writer, stock); 10715 10716 10717 #line default 10718 #line hidden 10719 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 10720 10721 10722 #line 2818 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10723 } 10724 10725 10726 10727 #line default 10728 #line hidden 10729 WriteLiteralTo(__razor_helper_writer, " <script>\r\n var variants = \'{ \"ProductId\" :\' + \'\""); 10730 10731 10732 #line 2821 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10733 WriteTo(__razor_helper_writer, settings.ProductId); 10734 10735 10736 #line default 10737 #line hidden 10738 WriteLiteralTo(__razor_helper_writer, "\"\' + \', \"VariantId\": \' + \'\""); 10739 10740 10741 #line 2821 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10742 WriteTo(__razor_helper_writer, variantId); 10743 10744 10745 #line default 10746 #line hidden 10747 WriteLiteralTo(__razor_helper_writer, "\"\' +\'}\';\r\n variantsCollection.push(variants);\r\n document.ge" + 10748 "tElementById(\"Quantity_"); 10749 10750 10751 #line 2823 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10752 WriteTo(__razor_helper_writer, settings.ProductId); 10753 10754 10755 #line default 10756 #line hidden 10757 WriteLiteralTo(__razor_helper_writer, "_"); 10758 10759 10760 #line 2823 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10761 WriteTo(__razor_helper_writer, variantId); 10762 10763 10764 #line default 10765 #line hidden 10766 WriteLiteralTo(__razor_helper_writer, "\").closest(\".js-variants-matrix\").setAttribute(\"data-variants-collection\", \"[\" + " + 10767 "variantsCollection + \"]\" );\r\n </script>\r\n"); 10768 10769 10770 #line 2825 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10771 } 10772 else 10773 { 10774 10775 10776 #line default 10777 #line hidden 10778 WriteLiteralTo(__razor_helper_writer, " <div"); 10779 10780 WriteLiteralTo(__razor_helper_writer, " class=\"use-btn-height\""); 10781 10782 WriteLiteralTo(__razor_helper_writer, " style=\"background-color: #a8a8a8\""); 10783 10784 WriteLiteralTo(__razor_helper_writer, "></div>\r\n"); 10785 10786 10787 #line 2829 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10788 } 10789 10790 10791 #line default 10792 #line hidden 10793 }); 10794 10795 #line 2830 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10796 } 10797 #line default 10798 #line hidden 10799 10800 10801 #line 2835 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10802 public RazorEngine.Templating.TemplateWriter RenderAddToCart(AddToCart settings) 10803 { 10804 #line default 10805 #line hidden 10806 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10807 10808 #line 2836 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10809 10810 //set Id for quantity selector to get it's value from button 10811 if (settings.QuantitySelector != null) 10812 { 10813 if (string.IsNullOrEmpty(settings.QuantitySelector.Id)) 10814 { 10815 settings.QuantitySelector.Id = Guid.NewGuid().ToString("N"); 10816 } 10817 10818 settings.AddButton.QuantitySelectorId = settings.QuantitySelector.Id; 10819 10820 if (settings.Disabled) 10821 { 10822 settings.QuantitySelector.Disabled = true; 10823 } 10824 10825 if (string.IsNullOrEmpty(settings.QuantitySelector.Name)) 10826 { 10827 settings.QuantitySelector.Name = settings.QuantitySelector.Id; 10828 } 10829 } 10830 10831 if (settings.Disabled) 10832 { 10833 settings.AddButton.Disabled = true; 10834 } 10835 10836 settings.AddButton.CssClass += " btn--condensed"; 10837 10838 //unitsSelector 10839 if (settings.UnitSelector != null) 10840 { 10841 if (settings.Disabled) 10842 { 10843 settings.QuantitySelector.Disabled = true; 10844 } 10845 } 10846 10847 10848 10849 #line default 10850 #line hidden 10851 WriteLiteralTo(__razor_helper_writer, " <div"); 10852 10853 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 120276), Tuple.Create("\"", 120328) 10854 , Tuple.Create(Tuple.Create("", 120284), Tuple.Create("buttons-collection", 120284), true) 10855 10856 #line 2874 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10857 , Tuple.Create(Tuple.Create(" ", 120302), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 10858 10859 #line default 10860 #line hidden 10861 , 120303), false) 10862 ); 10863 10864 WriteLiteralTo(__razor_helper_writer, " "); 10865 10866 10867 #line 2874 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10868 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 10869 10870 10871 #line default 10872 #line hidden 10873 WriteLiteralTo(__razor_helper_writer, "> \r\n"); 10874 10875 10876 #line 2875 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10877 10878 10879 #line default 10880 #line hidden 10881 10882 #line 2875 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10883 if (settings.UnitSelector != null) 10884 { 10885 10886 10887 #line default 10888 #line hidden 10889 10890 #line 2877 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10891 WriteTo(__razor_helper_writer, Render(settings.UnitSelector)); 10892 10893 10894 #line default 10895 #line hidden 10896 10897 #line 2877 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10898 10899 } 10900 10901 10902 #line default 10903 #line hidden 10904 WriteLiteralTo(__razor_helper_writer, " "); 10905 10906 10907 #line 2879 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10908 if (settings.QuantitySelector != null) 10909 { 10910 10911 10912 #line default 10913 #line hidden 10914 10915 #line 2881 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10916 WriteTo(__razor_helper_writer, Render(settings.QuantitySelector)); 10917 10918 10919 #line default 10920 #line hidden 10921 10922 #line 2881 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10923 10924 } 10925 10926 10927 #line default 10928 #line hidden 10929 WriteLiteralTo(__razor_helper_writer, " "); 10930 10931 10932 #line 2883 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10933 WriteTo(__razor_helper_writer, Render(settings.AddButton)); 10934 10935 10936 #line default 10937 #line hidden 10938 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 10939 10940 10941 #line 2885 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10942 10943 10944 #line default 10945 #line hidden 10946 }); 10947 10948 #line 2885 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10949 } 10950 #line default 10951 #line hidden 10952 10953 10954 #line 2890 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10955 public RazorEngine.Templating.TemplateWriter RenderAddToCartButton(AddToCartButton settings) 10956 { 10957 #line default 10958 #line hidden 10959 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10960 10961 #line 2891 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 10962 10963 if (!settings.HideTitle) 10964 { 10965 if (string.IsNullOrEmpty(settings.Title)) 10966 { 10967 if (settings.BuyForPoints) 10968 { 10969 settings.Title = Translate("Buy with points"); 10970 } 10971 else 10972 { 10973 settings.Title = Translate("Add to cart"); 10974 } 10975 } 10976 } 10977 else 10978 { 10979 settings.Title = ""; 10980 } 10981 10982 if (settings.Icon == null) 10983 { 10984 settings.Icon = new Icon(); 10985 settings.Icon.LabelPosition = Dynamicweb.Rapido.Blocks.Components.General.IconLabelPosition.After; 10986 } 10987 10988 if (string.IsNullOrEmpty(settings.Icon.Name)) 10989 { 10990 settings.Icon.Name = Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("CartIcon").SelectedValue; 10991 } 10992 10993 settings.OnClick = "Cart.AddToCart(event, { " + 10994 "id: '" + settings.ProductId + "'," + 10995 (!string.IsNullOrEmpty(settings.VariantId) ? "variantId: '" + settings.VariantId + "'," : "") + 10996 (!string.IsNullOrEmpty(settings.UnitId) ? "unitId: '" + settings.UnitId + "'," : "") + 10997 (settings.BuyForPoints ? "buyForPoints: true," : "") + 10998 (!string.IsNullOrEmpty(settings.ProductInfo) ? "productInfo: " + settings.ProductInfo + "," : "") + 10999 "quantity: " + (string.IsNullOrEmpty(settings.QuantitySelectorId) ? "1" : "parseFloat(document.getElementById('" + settings.QuantitySelectorId + "').value)") + 11000 "});" + settings.OnClick; 11001 11002 11003 11004 #line default 11005 #line hidden 11006 11007 #line 2931 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11008 WriteTo(__razor_helper_writer, RenderButton(settings)); 11009 11010 11011 #line default 11012 #line hidden 11013 11014 #line 2931 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11015 11016 11017 11018 #line default 11019 #line hidden 11020 }); 11021 11022 #line 2932 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11023 } 11024 #line default 11025 #line hidden 11026 11027 11028 #line 2937 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11029 public RazorEngine.Templating.TemplateWriter RenderUnitSelector(UnitSelector settings) 11030 { 11031 #line default 11032 #line hidden 11033 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11034 11035 #line 2938 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11036 11037 if (string.IsNullOrEmpty(settings.Id)) 11038 { 11039 settings.Id = Guid.NewGuid().ToString("N"); 11040 } 11041 var disabledClass = settings.Disabled ? "disabled" : ""; 11042 11043 11044 11045 #line default 11046 #line hidden 11047 WriteLiteralTo(__razor_helper_writer, " <input"); 11048 11049 WriteLiteralTo(__razor_helper_writer, " type=\"checkbox\""); 11050 11051 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 122654), Tuple.Create("\"", 122671) 11052 11053 #line 2945 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11054 , Tuple.Create(Tuple.Create("", 122659), Tuple.Create<System.Object, System.Int32>(settings.Id 11055 11056 #line default 11057 #line hidden 11058 , 122659), false) 11059 ); 11060 11061 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown-trigger\""); 11062 11063 WriteLiteralTo(__razor_helper_writer, " />\r\n"); 11064 11065 WriteLiteralTo(__razor_helper_writer, " <div"); 11066 11067 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 122710), Tuple.Create("\"", 122781) 11068 , Tuple.Create(Tuple.Create("", 122718), Tuple.Create("dropdown", 122718), true) 11069 , Tuple.Create(Tuple.Create(" ", 122726), Tuple.Create("unit-selector", 122727), true) 11070 11071 #line 2946 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11072 , Tuple.Create(Tuple.Create(" ", 122740), Tuple.Create<System.Object, System.Int32>(settings.CssClass 11073 11074 #line default 11075 #line hidden 11076 , 122741), false) 11077 11078 #line 2946 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11079 , Tuple.Create(Tuple.Create(" ", 122759), Tuple.Create<System.Object, System.Int32>(disabledClass 11080 11081 #line default 11082 #line hidden 11083 , 122760), false) 11084 , Tuple.Create(Tuple.Create(" ", 122774), Tuple.Create("dw-mod", 122775), true) 11085 ); 11086 11087 WriteLiteralTo(__razor_helper_writer, " "); 11088 11089 11090 #line 2946 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11091 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 11092 11093 11094 #line default 11095 #line hidden 11096 WriteLiteralTo(__razor_helper_writer, ">\r\n <label"); 11097 11098 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown__header dropdown__btn dropdown__btn--unit-selector dw-mod\""); 11099 11100 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 122932), Tuple.Create("\"", 122950) 11101 11102 #line 2947 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11103 , Tuple.Create(Tuple.Create("", 122938), Tuple.Create<System.Object, System.Int32>(settings.Id 11104 11105 #line default 11106 #line hidden 11107 , 122938), false) 11108 ); 11109 11110 WriteLiteralTo(__razor_helper_writer, ">"); 11111 11112 11113 #line 2947 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11114 WriteTo(__razor_helper_writer, settings.SelectedOption); 11115 11116 11117 #line default 11118 #line hidden 11119 WriteLiteralTo(__razor_helper_writer, "</label>\r\n <div"); 11120 11121 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown__content dw-mod\""); 11122 11123 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11124 11125 WriteLiteralTo(__razor_helper_writer, " "); 11126 11127 11128 #line 2949 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11129 WriteTo(__razor_helper_writer, settings.OptionsContent); 11130 11131 11132 #line default 11133 #line hidden 11134 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n <label"); 11135 11136 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown-trigger-off\""); 11137 11138 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 123131), Tuple.Create("\"", 123149) 11139 11140 #line 2951 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11141 , Tuple.Create(Tuple.Create("", 123137), Tuple.Create<System.Object, System.Int32>(settings.Id 11142 11143 #line default 11144 #line hidden 11145 , 123137), false) 11146 ); 11147 11148 WriteLiteralTo(__razor_helper_writer, "></label>\r\n </div>\r\n"); 11149 11150 11151 #line 2953 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11152 11153 11154 #line default 11155 #line hidden 11156 }); 11157 11158 #line 2953 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11159 } 11160 #line default 11161 #line hidden 11162 11163 11164 #line 2959 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11165 public RazorEngine.Templating.TemplateWriter RenderQuantitySelector(QuantitySelector settings) 11166 { 11167 #line default 11168 #line hidden 11169 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11170 11171 #line 2960 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11172 11173 var attributes = new Dictionary<string, string>(); 11174 11175 /*base settings*/ 11176 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 11177 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 11178 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 11179 if (settings.Disabled) { attributes.Add("disabled", "true"); } 11180 if (settings.Required) { attributes.Add("required", "true"); } 11181 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 11182 /*end*/ 11183 11184 if (!string.IsNullOrEmpty(settings.OnKeyUp)) { attributes.Add("onkeyup", settings.OnKeyUp); } 11185 if (!string.IsNullOrEmpty(settings.OnInput)) { attributes.Add("oninput", settings.OnInput); } 11186 if (!string.IsNullOrEmpty(settings.OnFocus)) { attributes.Add("onfocus", settings.OnFocus); } 11187 if (settings.ReadOnly) { attributes.Add("readonly", "true"); } 11188 if (settings.Max != null) { attributes.Add("max", settings.Max.ToString()); } 11189 if (settings.Min == null) { settings.Min = 1; } 11190 attributes.Add("min", settings.Min.ToString()); 11191 if (settings.Step != null && !string.IsNullOrEmpty(settings.Step.ToString())) { attributes.Add("step", settings.Step.ToString()); } 11192 if (settings.Value == null) { settings.Value = 1; } 11193 attributes.Add("value", settings.Value.ToString()); 11194 attributes.Add("type", "number"); 11195 11196 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 11197 11198 11199 11200 #line default 11201 #line hidden 11202 WriteLiteralTo(__razor_helper_writer, " <input "); 11203 11204 11205 #line 2986 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11206 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 11207 11208 11209 #line default 11210 #line hidden 11211 WriteLiteralTo(__razor_helper_writer, " class=\""); 11212 11213 11214 #line 2986 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11215 WriteTo(__razor_helper_writer, settings.CssClass); 11216 11217 11218 #line default 11219 #line hidden 11220 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n"); 11221 11222 11223 #line 2987 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11224 11225 11226 #line default 11227 #line hidden 11228 }); 11229 11230 #line 2987 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11231 } 11232 #line default 11233 #line hidden 11234 11235 11236 #line 2998 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11237 public RazorEngine.Templating.TemplateWriter RenderCustomerCenterList(CustomerCenterList settings) 11238 { 11239 #line default 11240 #line hidden 11241 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 11242 11243 #line 2999 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11244 11245 bool isTouchDevice = Pageview.Device.ToString() == "Mobile" || Pageview.Device.ToString() == "Tablet" ? true : false; 11246 string hideActions = isTouchDevice ? "u-block" : ""; 11247 11248 11249 11250 #line default 11251 #line hidden 11252 WriteLiteralTo(__razor_helper_writer, " <table"); 11253 11254 WriteLiteralTo(__razor_helper_writer, " class=\"table data-list dw-mod\""); 11255 11256 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11257 11258 11259 #line 3004 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11260 11261 11262 #line default 11263 #line hidden 11264 11265 #line 3004 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11266 if (settings.GetHeaders().Length > 0) { 11267 11268 11269 #line default 11270 #line hidden 11271 WriteLiteralTo(__razor_helper_writer, " <thead>\r\n <tr"); 11272 11273 WriteLiteralTo(__razor_helper_writer, " class=\"u-bold\""); 11274 11275 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11276 11277 11278 #line 3007 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11279 11280 11281 #line default 11282 #line hidden 11283 11284 #line 3007 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11285 foreach (CustomerCenterListHeaderItem header in settings.GetHeaders()) 11286 { 11287 var attributes = new Dictionary<string, string>(); 11288 if (!string.IsNullOrEmpty(header.Id)) { attributes.Add("id", header.Id); } 11289 if (!string.IsNullOrEmpty(header.CssClass)) { attributes.Add("class", header.CssClass); } 11290 attributes.Add("align", header.Align.ToString()); 11291 attributes = attributes.Concat(header.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 11292 11293 11294 11295 #line default 11296 #line hidden 11297 WriteLiteralTo(__razor_helper_writer, " <td "); 11298 11299 11300 #line 3015 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11301 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes)); 11302 11303 11304 #line default 11305 #line hidden 11306 WriteLiteralTo(__razor_helper_writer, ">"); 11307 11308 11309 #line 3015 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11310 WriteTo(__razor_helper_writer, header.Title); 11311 11312 11313 #line default 11314 #line hidden 11315 WriteLiteralTo(__razor_helper_writer, "</td>\r\n"); 11316 11317 11318 #line 3016 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11319 } 11320 11321 11322 #line default 11323 #line hidden 11324 WriteLiteralTo(__razor_helper_writer, " </tr>\r\n </thead>\r\n"); 11325 11326 11327 #line 3019 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11328 } 11329 11330 11331 #line default 11332 #line hidden 11333 WriteLiteralTo(__razor_helper_writer, " "); 11334 11335 11336 #line 3020 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11337 foreach (CustomerCenterListItem listItem in settings.GetItems()) 11338 { 11339 int columnCount = 0; 11340 int totalColumns = listItem.GetInfoItems().Length; 11341 string rowHasActions = listItem.GetActions().Length > 0 ? "data-list__item--has-actions" : ""; 11342 listItem.Id = !string.IsNullOrEmpty(listItem.Id) ? listItem.Id : Guid.NewGuid().ToString("N"); 11343 11344 var attributes = new Dictionary<string, string>(); 11345 if (!string.IsNullOrEmpty(listItem.Title)) { attributes.Add("title", listItem.Title); }; 11346 11347 attributes = attributes.Concat(listItem.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 11348 11349 11350 #line default 11351 #line hidden 11352 WriteLiteralTo(__razor_helper_writer, " <tbody"); 11353 11354 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 127242), Tuple.Create("\"", 127306) 11355 , Tuple.Create(Tuple.Create("", 127250), Tuple.Create("data-list__item", 127250), true) 11356 11357 #line 3031 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11358 , Tuple.Create(Tuple.Create(" ", 127265), Tuple.Create<System.Object, System.Int32>(rowHasActions 11359 11360 #line default 11361 #line hidden 11362 , 127266), false) 11363 11364 #line 3031 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11365 , Tuple.Create(Tuple.Create(" ", 127280), Tuple.Create<System.Object, System.Int32>(listItem.CssClass 11366 11367 #line default 11368 #line hidden 11369 , 127281), false) 11370 , Tuple.Create(Tuple.Create(" ", 127299), Tuple.Create("dw-mod", 127300), true) 11371 ); 11372 11373 WriteLiteralTo(__razor_helper_writer, " "); 11374 11375 11376 #line 3031 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11377 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes)); 11378 11379 11380 #line default 11381 #line hidden 11382 WriteLiteralTo(__razor_helper_writer, ">\r\n <tr>\r\n"); 11383 11384 11385 #line 3033 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11386 11387 11388 #line default 11389 #line hidden 11390 11391 #line 3033 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11392 if (!string.IsNullOrEmpty(listItem.Title) || !string.IsNullOrEmpty(listItem.Description)) { 11393 string onClick = !string.IsNullOrEmpty(listItem.OnClick) ? "onclick=\"" + listItem.OnClick + "\"" : ""; 11394 11395 11396 11397 #line default 11398 #line hidden 11399 WriteLiteralTo(__razor_helper_writer, " <td"); 11400 11401 WriteLiteralTo(__razor_helper_writer, " rowspan=\"2\""); 11402 11403 WriteLiteralTo(__razor_helper_writer, " "); 11404 11405 11406 #line 3036 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11407 WriteTo(__razor_helper_writer, onClick); 11408 11409 11410 #line default 11411 #line hidden 11412 WriteLiteralTo(__razor_helper_writer, " class=\"data-list__main-item dw-mod\">\r\n"); 11413 11414 11415 #line 3037 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11416 11417 11418 #line default 11419 #line hidden 11420 11421 #line 3037 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11422 if (!string.IsNullOrEmpty(listItem.Title)) { 11423 11424 11425 #line default 11426 #line hidden 11427 WriteLiteralTo(__razor_helper_writer, " <div"); 11428 11429 WriteLiteralTo(__razor_helper_writer, " class=\"u-bold\""); 11430 11431 WriteLiteralTo(__razor_helper_writer, ">"); 11432 11433 11434 #line 3038 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11435 WriteTo(__razor_helper_writer, listItem.Title); 11436 11437 11438 #line default 11439 #line hidden 11440 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 11441 11442 11443 #line 3039 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11444 } 11445 11446 11447 #line default 11448 #line hidden 11449 WriteLiteralTo(__razor_helper_writer, " "); 11450 11451 11452 #line 3040 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11453 if (!string.IsNullOrEmpty(listItem.Description)) { 11454 11455 11456 #line default 11457 #line hidden 11458 WriteLiteralTo(__razor_helper_writer, " <div>"); 11459 11460 11461 #line 3041 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11462 WriteTo(__razor_helper_writer, listItem.Description); 11463 11464 11465 #line default 11466 #line hidden 11467 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 11468 11469 11470 #line 3042 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11471 } 11472 11473 11474 #line default 11475 #line hidden 11476 WriteLiteralTo(__razor_helper_writer, " </td>\r\n"); 11477 11478 11479 #line 3044 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11480 } 11481 11482 11483 #line default 11484 #line hidden 11485 WriteLiteralTo(__razor_helper_writer, "\r\n"); 11486 11487 11488 #line 3046 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11489 11490 11491 #line default 11492 #line hidden 11493 11494 #line 3046 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11495 foreach (CustomerCenterListInfoItem infoItem in listItem.GetInfoItems()) 11496 { 11497 var infoAttributes = new Dictionary<string, string>(); 11498 if (!string.IsNullOrEmpty(infoItem.Id)) { infoAttributes.Add("id", infoItem.Id); }; 11499 if (!string.IsNullOrEmpty(infoItem.OnClick)) { infoAttributes.Add("onclick", infoItem.OnClick); }; 11500 infoAttributes.Add("align", infoItem.Align.ToString()); 11501 11502 infoAttributes = infoAttributes.Concat(infoItem.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 11503 string columnClick = columnCount < (totalColumns-1) && !string.IsNullOrEmpty(listItem.OnClick) ? "onclick=\"" + listItem.OnClick + "\"" : ""; 11504 11505 11506 11507 #line default 11508 #line hidden 11509 WriteLiteralTo(__razor_helper_writer, " <td "); 11510 11511 11512 #line 3056 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11513 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(infoAttributes)); 11514 11515 11516 #line default 11517 #line hidden 11518 WriteLiteralTo(__razor_helper_writer, " "); 11519 11520 11521 #line 3056 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11522 WriteTo(__razor_helper_writer, columnClick); 11523 11524 11525 #line default 11526 #line hidden 11527 WriteLiteralTo(__razor_helper_writer, " class=\"data-list__info-item dw-mod\">\r\n"); 11528 11529 11530 #line 3057 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11531 11532 11533 #line default 11534 #line hidden 11535 11536 #line 3057 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11537 if (!string.IsNullOrEmpty(infoItem.Title)) { 11538 11539 11540 #line default 11541 #line hidden 11542 WriteLiteralTo(__razor_helper_writer, " <div>"); 11543 11544 11545 #line 3058 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11546 WriteTo(__razor_helper_writer, infoItem.Title); 11547 11548 11549 #line default 11550 #line hidden 11551 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 11552 11553 11554 #line 3059 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11555 } 11556 11557 11558 #line default 11559 #line hidden 11560 WriteLiteralTo(__razor_helper_writer, " "); 11561 11562 11563 #line 3060 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11564 if (!string.IsNullOrEmpty(infoItem.Subtitle)) { 11565 11566 11567 #line default 11568 #line hidden 11569 WriteLiteralTo(__razor_helper_writer, " <div><small>"); 11570 11571 11572 #line 3061 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11573 WriteTo(__razor_helper_writer, infoItem.Subtitle); 11574 11575 11576 #line default 11577 #line hidden 11578 WriteLiteralTo(__razor_helper_writer, "</small></div>\r\n"); 11579 11580 11581 #line 3062 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11582 } 11583 11584 11585 #line default 11586 #line hidden 11587 WriteLiteralTo(__razor_helper_writer, " </td>\r\n"); 11588 11589 11590 #line 3064 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11591 11592 columnCount++; 11593 } 11594 11595 11596 #line default 11597 #line hidden 11598 WriteLiteralTo(__razor_helper_writer, " </tr>\r\n <tr>\r\n <td"); 11599 11600 WriteLiteralTo(__razor_helper_writer, " colspan=\"7\""); 11601 11602 WriteLiteralTo(__razor_helper_writer, " align=\"right\""); 11603 11604 WriteLiteralTo(__razor_helper_writer, " class=\"u-va-bottom u-no-border\""); 11605 11606 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 11607 11608 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 129717), Tuple.Create("\"", 129763) 11609 , Tuple.Create(Tuple.Create("", 129725), Tuple.Create("data-list__actions", 129725), true) 11610 11611 #line 3070 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11612 , Tuple.Create(Tuple.Create(" ", 129743), Tuple.Create<System.Object, System.Int32>(hideActions 11613 11614 #line default 11615 #line hidden 11616 , 129744), false) 11617 , Tuple.Create(Tuple.Create(" ", 129756), Tuple.Create("dw-mod", 129757), true) 11618 ); 11619 11620 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 129764), Tuple.Create("\"", 129793) 11621 , Tuple.Create(Tuple.Create("", 129769), Tuple.Create("ActionsMenu_", 129769), true) 11622 11623 #line 3070 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11624 , Tuple.Create(Tuple.Create("", 129781), Tuple.Create<System.Object, System.Int32>(listItem.Id 11625 11626 #line default 11627 #line hidden 11628 , 129781), false) 11629 ); 11630 11631 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 11632 11633 11634 #line 3071 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11635 11636 11637 #line default 11638 #line hidden 11639 11640 #line 3071 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11641 foreach (ButtonBase action in listItem.GetActions()) 11642 { 11643 action.ButtonLayout = ButtonLayout.LinkClean; 11644 action.Icon.CssClass += " u-full-height"; 11645 action.CssClass += " data-list__action-button link"; 11646 11647 11648 11649 #line default 11650 #line hidden 11651 11652 #line 3077 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11653 WriteTo(__razor_helper_writer, Render(action)); 11654 11655 11656 #line default 11657 #line hidden 11658 11659 #line 3077 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11660 11661 } 11662 11663 11664 #line default 11665 #line hidden 11666 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </td>\r\n </tr>\r" + 11667 "\n </tbody> \r\n"); 11668 11669 11670 #line 3083 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11671 } 11672 11673 11674 #line default 11675 #line hidden 11676 WriteLiteralTo(__razor_helper_writer, " </table>\r\n"); 11677 11678 11679 #line 3085 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11680 11681 11682 #line default 11683 #line hidden 11684 }); 11685 11686 #line 3085 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11687 } 11688 #line default 11689 #line hidden 11690 11691 11692 public RazorEngine_8f773d33a53846f08794f059d8c132df() { 11693 } 11694 11695 public override void Execute() { 11696 WriteLiteral("\r\n\r\n"); 11697 11698 WriteLiteral("\r\n"); 11699 11700 11701 #line 27 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11702 11703 isMobileOrTablet = Pageview.Device == DeviceType.Mobile || Pageview.Device == DeviceType.Tablet; 11704 int jobId; 11705 DanishagroBrandingMaster.JobsApi.Content contentList; 11706 colorSetting = Pageview.AreaSettings?.GetItem("Layout")?.GetString("BrandColorTwo") ?? ""; 11707 colorSetting = colorSetting != "" ? colorSetting : "#849938"; 11708 11709 HttpContext context = HttpContext.Current; 11710 var customerAlias = Model.Item.GetString("CustomerAliasJob"); 11711 jobUrl = "/Default.aspx?ID=" + GetPageIdByNavigationTag("404 agribusiness DK"); 11712 11713 if (context.Session["JobId"] == null || context.Session["Positions"] == null) 11714 { 11715 jobId = Convert.ToInt32(context.Request.QueryString["jobId"]); ; 11716 11717 IService service = new Service(); 11718 contentList = service.CreateObject(customerAlias); 11719 } 11720 else 11721 { 11722 jobId = (int)(context.Session["jobId"]); 11723 contentList = (DanishagroBrandingMaster.JobsApi.Content)(context.Session["Positions"]); 11724 } 11725 11726 11727 Item3 item = contentList.PositionList.Items.FirstOrDefault(x => x.Id == jobId); 11728 if (item != null) 11729 { 11730 Users users = item.Users; 11731 11732 IService service = new Service(); 11733 string advertisementUrl = service.GetAdvertisementUrl(item.AdvertisementUrl); 11734 11735 HtmlDocument doc = new HtmlDocument(); 11736 doc.LoadHtml(advertisementUrl); 11737 11738 advertisementUrl = doc.GetElementbyId("AdvertisementInnerContent").OuterHtml; 11739 address = service.GetAddressByCoordinates(item.WorkPlaceCoordinates); 11740 if (address == "") 11741 { 11742 address = Translate("No address found"); 11743 } 11744 11745 11746 11747 #line default 11748 #line hidden 11749 11750 #line 70 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11751 Write(RenderJobPage(advertisementUrl, item, users, contentList, context)); 11752 11753 11754 #line default 11755 #line hidden 11756 11757 #line 70 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11758 ; 11759 } 11760 else 11761 { 11762 11763 11764 #line default 11765 #line hidden 11766 11767 #line 74 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11768 Write(Render404()); 11769 11770 11771 #line default 11772 #line hidden 11773 11774 #line 74 "D:\dynamicweb.net\Solutions\danishagro-machinery.cloud.dynamicweb-cms.com\Files\Templates\Designs\Rapido\ContentPage\Paragraph\Job.cshtml" 11775 11776 } 11777 11778 11779 #line default 11780 #line hidden 11781 WriteLiteral("\r\n\r\n"); 11782 11783 WriteLiteral("\r\n"); 11784 11785 WriteLiteral("\r\n"); 11786 11787 WriteLiteral("\r\n\r\n"); 11788 11789 WriteLiteral("\r\n\r\n"); 11790 11791 WriteLiteral("\r\n"); 11792 11793 WriteLiteral("\r\n"); 11794 11795 WriteLiteral("\r\n\r\n"); 11796 11797 WriteLiteral("\r\n"); 11798 11799 WriteLiteral("\r\n"); 11800 11801 WriteLiteral("\r\n\r\n"); 11802 11803 WriteLiteral("\r\n"); 11804 11805 WriteLiteral("\r\n"); 11806 11807 WriteLiteral("\r\n\r\n"); 11808 11809 WriteLiteral("\r\n\r\n"); 11810 11811 WriteLiteral("\r\n"); 11812 11813 WriteLiteral("\r\n\r\n"); 11814 11815 WriteLiteral("\r\n"); 11816 11817 WriteLiteral("\r\n"); 11818 11819 WriteLiteral("\r\n"); 11820 11821 WriteLiteral("\r\n"); 11822 11823 WriteLiteral("\r\n"); 11824 11825 WriteLiteral("\r\n\r\n"); 11826 11827 WriteLiteral("\r\n\r\n"); 11828 11829 WriteLiteral("\r\n\r\n"); 11830 11831 WriteLiteral("\r\n\r\n"); 11832 11833 WriteLiteral("\r\n\r\n"); 11834 11835 WriteLiteral("\r\n\r\n"); 11836 11837 WriteLiteral("\r\n\r\n"); 11838 11839 WriteLiteral("\r\n\r\n"); 11840 11841 WriteLiteral("\r\n\r\n"); 11842 11843 WriteLiteral("\r\n\r\n"); 11844 11845 WriteLiteral("\r\n\r\n"); 11846 11847 WriteLiteral("\r\n"); 11848 11849 WriteLiteral("\r\n\r\n"); 11850 11851 WriteLiteral("\r\n\r\n"); 11852 11853 WriteLiteral("\r\n\r\n"); 11854 11855 WriteLiteral("\r\n"); 11856 11857 WriteLiteral("\r\n"); 11858 11859 WriteLiteral("\r\n\r\n"); 11860 11861 WriteLiteral("\r\n"); 11862 11863 WriteLiteral("\r\n\r\n"); 11864 11865 WriteLiteral("\r\n"); 11866 11867 WriteLiteral("\r\n\r\n"); 11868 11869 WriteLiteral("\r\n"); 11870 11871 WriteLiteral("\r\n\r\n"); 11872 11873 WriteLiteral("\r\n\r\n"); 11874 11875 WriteLiteral("\r\n\r\n"); 11876 11877 WriteLiteral("\r\n\r\n"); 11878 11879 WriteLiteral("\r\n\r\n"); 11880 11881 WriteLiteral("\r\n"); 11882 11883 WriteLiteral("\r\n\r\n"); 11884 11885 WriteLiteral("\r\n\r\n"); 11886 11887 WriteLiteral("\r\n\r\n"); 11888 11889 WriteLiteral("\r\n"); 11890 11891 WriteLiteral("\r\n\r\n"); 11892 11893 WriteLiteral("\r\n\r\n"); 11894 11895 WriteLiteral("\r\n\r\n"); 11896 11897 WriteLiteral("\r\n"); 11898 11899 WriteLiteral("\r\n"); 11900 11901 WriteLiteral("\r\n\r\n"); 11902 11903 WriteLiteral("\r\n\r\n"); 11904 11905 WriteLiteral("\r\n\r\n"); 11906 11907 WriteLiteral("\r\n\r\n"); 11908 11909 WriteLiteral("\r\n\r\n"); 11910 11911 WriteLiteral("\r\n\r\n"); 11912 11913 WriteLiteral("\r\n\r\n"); 11914 11915 WriteLiteral("\r\n\r\n"); 11916 11917 WriteLiteral("\r\n\r\n"); 11918 11919 WriteLiteral("\r\n"); 11920 11921 WriteLiteral("\r\n\r\n"); 11922 11923 WriteLiteral("\r\n\r\n"); 11924 11925 WriteLiteral("\r\n"); 11926 11927 WriteLiteral("\r\n\r\n"); 11928 11929 WriteLiteral("\r\n\r\n"); 11930 11931 WriteLiteral("\r\n\r\n"); 11932 11933 WriteLiteral("\r\n\r\n"); 11934 11935 WriteLiteral("\r\n\r\n"); 11936 11937 WriteLiteral("\r\n\r\n"); 11938 11939 WriteLiteral("\r\n\r\n"); 11940 11941 WriteLiteral("\r\n\r\n"); 11942 11943 WriteLiteral("\r\n"); 11944 11945 WriteLiteral("\r\n\r\n"); 11946 11947 WriteLiteral("\r\n"); 11948 11949 WriteLiteral("\r\n"); 11950 11951 WriteLiteral("\r\n"); 11952 11953 WriteLiteral("\r\n"); 11954 11955 WriteLiteral("\r\n\r\n"); 11956 11957 WriteLiteral("\r\n"); 11958 11959 WriteLiteral("\r\n\r\n"); 11960 11961 WriteLiteral("\r\n"); 11962 11963 WriteLiteral("\r\n\r\n"); 11964 11965 WriteLiteral("\r\n"); 11966 11967 WriteLiteral("\r\n\r\n"); 11968 11969 WriteLiteral("\r\n\r\n"); 11970 11971 WriteLiteral("\r\n\r\n"); 11972 11973 WriteLiteral("\r\n"); 11974 11975 WriteLiteral("\r\n"); 11976 11977 WriteLiteral("\r\n\r\n"); 11978 11979 WriteLiteral("\r\n"); 11980 11981 WriteLiteral("\r\n\r\n"); 11982 11983 WriteLiteral("\r\n"); 11984 11985 WriteLiteral("\r\n\r\n"); 11986 11987 WriteLiteral("\r\n"); 11988 11989 WriteLiteral("\r\n\r\n"); 11990 11991 WriteLiteral("\r\n"); 11992 11993 WriteLiteral("\r\n"); 11994 11995 WriteLiteral("\r\n\r\n"); 11996 11997 WriteLiteral("\r\n\r\n\r\n\r\n\r\n"); 11998 11999 } 12000 } 12001 } 12002

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.ParagraphViewModel> 2 @using System 3 @using System.Web 4 @using DanishagroBrandingMaster.JobsApi 5 @using Dynamicweb.Rapido.Blocks.Components.General 6 @using HtmlAgilityPack 7 @using Dynamicweb.Frontend.Devices 8 9 10 @functions 11 { 12 dynamic GetEnumSetting(dynamic enumSetting, string name = null) 13 { 14 string enumName = name == null ? enumSetting.GetType().Name : name; 15 enumSetting = HttpContext.Current.Request.QueryString.Get(enumName) != null ? System.Enum.Parse(enumSetting.GetType(), HttpContext.Current.Request.QueryString.Get(enumName)) : enumSetting; 16 return enumSetting; 17 } 18 19 string jobUrl = string.Empty; 20 string address = ""; 21 Dynamicweb.Content.ParagraphService paragraphService = new Dynamicweb.Content.ParagraphService(); 22 bool isMobileOrTablet; 23 string colorSetting; 24 25 } 26 27 @{ 28 isMobileOrTablet = Pageview.Device == DeviceType.Mobile || Pageview.Device == DeviceType.Tablet; 29 int jobId; 30 DanishagroBrandingMaster.JobsApi.Content contentList; 31 colorSetting = Pageview.AreaSettings?.GetItem("Layout")?.GetString("BrandColorTwo") ?? ""; 32 colorSetting = colorSetting != "" ? colorSetting : "#849938"; 33 34 HttpContext context = HttpContext.Current; 35 var customerAlias = Model.Item.GetString("CustomerAliasJob"); 36 jobUrl = "/Default.aspx?ID=" + GetPageIdByNavigationTag("404 agribusiness DK"); 37 38 if (context.Session["JobId"] == null || context.Session["Positions"] == null) 39 { 40 jobId = Convert.ToInt32(context.Request.QueryString["jobId"]); ; 41 42 IService service = new Service(); 43 contentList = service.CreateObject(customerAlias); 44 } 45 else 46 { 47 jobId = (int)(context.Session["jobId"]); 48 contentList = (DanishagroBrandingMaster.JobsApi.Content)(context.Session["Positions"]); 49 } 50 51 52 Item3 item = contentList.PositionList.Items.FirstOrDefault(x => x.Id == jobId); 53 if (item != null) 54 { 55 Users users = item.Users; 56 57 IService service = new Service(); 58 string advertisementUrl = service.GetAdvertisementUrl(item.AdvertisementUrl); 59 60 HtmlDocument doc = new HtmlDocument(); 61 doc.LoadHtml(advertisementUrl); 62 63 advertisementUrl = doc.GetElementbyId("AdvertisementInnerContent").OuterHtml; 64 address = service.GetAddressByCoordinates(item.WorkPlaceCoordinates); 65 if (address == "") 66 { 67 address = Translate("No address found"); 68 } 69 70 @RenderJobPage(advertisementUrl, item, users, contentList, context); 71 } 72 else 73 { 74 @Render404() 75 } 76 } 77 78 @helper RenderJobPage(string advertisementUrl, Item3 item, Users users, DanishagroBrandingMaster.JobsApi.Content contentList, HttpContext context) 79 { 80 var advertisementImage = item.Advertisements?.FirstOrDefault()?.ImageUrlSecure; 81 if (!string.IsNullOrEmpty(advertisementImage)) 82 { 83 if (isMobileOrTablet) 84 { 85 <div class="background-image-container-job"> 86 <img class="" src="@advertisementImage"> 87 </div> 88 } 89 else 90 { 91 <div class="center-container image-cover-job" style="background-image: url(@advertisementImage);"></div> 92 93 } 94 } 95 96 <div class="grid content-row--spacing-xl"> 97 <div class="grid__col-lg-8 content-text"> 98 <header> 99 <h1> 100 @item.Name 101 </h1> 102 </header> 103 @advertisementUrl 104 </div> 105 <div class="grid__col-lg-4"> 106 <div class="content-row__item rowItemContent-12903 dw-mod"> 107 <div class="u-full-width u-align-left u-align-self-start dw-mod content--background-and-color" style="background-color:@colorSetting" id="jobInformationBox"> 108 <div class="u-full-height"> 109 <div class="content-row__item__body padding-size-md padding-position-around dw-mod"> 110 <div class="u-margin-bottom--lg"> 111 <p> 112 <strong>@Translate("Workplace")</strong><br> 113 @{ 114 string mapsUrl = "https://www.google.com/maps/place/" + address; 115 var city = item.Department?.City ?? Translate("Ingen by fundet"); 116 @address <br /> 117 <a style="color:white;text-decoration:underline" href="@mapsUrl" target="_blank">@Translate("View map location") </a> 118 } 119 </p> 120 <p> 121 <strong>@Translate("Customer name")</strong><br> 122 @item.CustomerName 123 </p> 124 <p> 125 <strong>@Translate("Department")</strong><br> 126 @item.Department.Name 127 </p> 128 <p> 129 @if (item.ApplicationDue.ToShortDateString() != "01/01/0001") 130 { 131 <strong>@Translate("Application due")</strong><br> 132 @item.ApplicationDue.ToShortDateString() 133 } 134 </p> 135 <p> 136 @if (item.StartDateASAP) 137 { 138 <strong>@Translate("Start date")</strong><br> 139 @Translate("As soon as possible") 140 } 141 else if (item.StartDate.ToShortDateString() != "01/01/0001") 142 { 143 <strong>@Translate("Start date")</strong><br> 144 @item.StartDate.ToShortDateString() 145