Delfi Technologies A/S
You are writing directly to the supplier
Vi glæder os til at høre fra dig!
Delfi Technologies A/S
Error compiling template "Designs/exhibition_site/Forms/Form/mch365-modal-form.cshtml" Line 1635: The name 'SystemConfiguration' does not exist in the current context Line 1636: The name 'SystemConfiguration' does not exist in the current context1 //------------------------------------------------------------------------------ 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 using System; 13 using System.Collections.Generic; 14 using System.Linq; 15 16 #line 2 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 17 using System.Web; 18 19 #line default 20 #line hidden 21 22 #line 3 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 23 using Co3.Espresso.Website.Services; 24 25 #line default 26 #line hidden 27 28 29 public class RazorEngine_b75d0de697ad4204ac266ce862f712ae : Dynamicweb.Rendering.RazorTemplateBase< Dynamicweb.Rendering.RazorTemplateModel< Dynamicweb.Rendering.Template > > { 30 31 #line hidden 32 33 #line 5 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 34 35 36 public string getRequiredSymbol( bool required ) 37 { 38 string result = string.Empty; 39 if ( required == true ) 40 { 41 result = "<span class=\"text-danger\">*</span>"; 42 } 43 return result; 44 } 45 46 public string getDefaultSelected( bool selected, string type = "" ) 47 { 48 string result = string.Empty; 49 if ( selected == true ) 50 { 51 if ( type == "select" ) 52 { 53 result = "selected"; 54 } 55 else if ( type == "radio" || type == "checkbox" || type == "checkboxlist" ) 56 { 57 result = "checked"; 58 } 59 } 60 return result; 61 } 62 63 public string getClassList( List< string > classList, string type = "" ) 64 { 65 string result = string.Empty; 66 if ( type == "textinput" || type == "email" || type == "textarea" || type == "password" ) 67 { 68 classList.Add( "form-control" ); 69 } 70 else if ( type == "radio" || type == "checkbox" || type == "checkboxlist" ) 71 { 72 classList.Add( "custom-control-input" ); 73 } 74 else if ( type == "select" || type == "date" ) 75 { 76 classList.Add( "custom-select" ); 77 classList.Add( "w-100" ); 78 } 79 else if ( type == "file" ) 80 { 81 classList.Add( "w-100" ); 82 } 83 else if ( type == "text" ) 84 { 85 classList.Add( "mb-0" ); 86 } 87 if ( classList.Count > 0 ) 88 { 89 result = String.Join( " ", classList ).Trim(); 90 } 91 return result; 92 } 93 94 95 #line default 96 #line hidden 97 98 99 public RazorEngine_b75d0de697ad4204ac266ce862f712ae() { 100 } 101102 public override void Execute() { 103 WriteLiteral("\r\n"); 104105 WriteLiteral("\r\n"); 106107108 #line 67 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 109110 dynamic form = new 111 { 112 id = GetString( "Form.HtmlId" ), 113 action = GetString( "Form.Action" ), 114 systemFields = GetString( "Form.SystemFields" ), 115 scriptOnSubmit = GetString( "Form.OnSubmit" ), 116 scriptSpamControl = GetString( "Form.SpamScript" ), 117 labelBold = GetBoolean( "Form.LabelBold" ), 118 labelOverField = GetBoolean( "Form.LabelOverField" ), 119 classList = new List< string >() 120 { 121 "e-form-dw", 122 "", 123 GetString( "Form.CssClass" ) 124 }, 125 useCustomControls = true, 126 submitMax = GetInteger( "Form.MaxSubmits" ), 127 submitCount = GetInteger( "Form.SubmitCount" ) 128 }; 129 if ( form.labelBold == true ) 130 { 131 form.classList.Add( "e-form-labels-bold" ); 132 } 133 if ( form.labelOverField == true ) 134 { 135 form.classList.Add( "e-form-labels-hide" ); 136 } 137138 List<LoopItem> fields = GetLoop("Fields"); 139 bool hasReCaptcha = fields.Any(f => f.GetString("Field.SystemName").Equals("reCAPTCHA", StringComparison.InvariantCultureIgnoreCase)); 140141142 #line default 143 #line hidden 144 WriteLiteral("\r\n\r\n"); 145146147 #line 100 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 148 if ( form.submitMax > 0 && form.submitCount >= form.submitMax ) 149 { 150151152 #line default 153 #line hidden 154155 #line 102 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 156 Write(GetString( "Form.MaxSubmitsReachedText" )); 157158159 #line default 160 #line hidden 161162 #line 102 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 163164 } 165 else 166 { 167168169 #line default 170 #line hidden 171 WriteLiteral(" <form"); 172173 WriteAttribute("action", Tuple.Create(" action=\"", 3150), Tuple.Create("\"", 3171) 174175 #line 106 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 176 , Tuple.Create(Tuple.Create("", 3159), Tuple.Create<System.Object, System.Int32>(form.action 177178 #line default 179 #line hidden 180 , 3159), false) 181 ); 182183 WriteAttribute("class", Tuple.Create(" class=\"", 3172), Tuple.Create("\"", 3211) 184185 #line 106 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 186 , Tuple.Create(Tuple.Create("", 3180), Tuple.Create<System.Object, System.Int32>(getClassList( form.classList ) 187188 #line default 189 #line hidden 190 , 3180), false) 191 ); 192193 WriteLiteral(" data-nosnippet"); 194195 WriteLiteral(" enctype=\"multipart/form-data\""); 196197 WriteAttribute("id", Tuple.Create(" id=\"", 3257), Tuple.Create("\"", 3270) 198199 #line 106 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 200 , Tuple.Create(Tuple.Create("", 3262), Tuple.Create<System.Object, System.Int32>(form.id 201202 #line default 203 #line hidden 204 , 3262), false) 205 ); 206207 WriteLiteral(" method=\"post\""); 208209 WriteLiteral(">\r\n"); 210211 WriteLiteral(" "); 212213214 #line 107 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 215 Write(form.systemFields); 216217218 #line default 219 #line hidden 220 WriteLiteral("\r\n"); 221222223 #line 108 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 224225226 #line default 227 #line hidden 228229 #line 108 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 230 foreach ( LoopItem itemField in fields ) 231 { 232 dynamic field = new 233 { 234 type = itemField.GetString( "Field.Type" ).ToLower(), 235 id = string.Format( "{0}-{1}-{2}", form.id, itemField.GetString( "Field.HtmlId" ), itemField.GetString( "Field.ID" ) ), 236 name = itemField.GetString( "Field.SystemName" ), 237 title = itemField.GetString( "Field.Name" ), 238 placeholder = itemField.GetString( "Field.Placeholder" ), 239 value = HttpUtility.HtmlAttributeEncode( !string.IsNullOrEmpty( itemField.GetString( "Field.Value" ) ) ? itemField.GetString( "Field.Value" ) : itemField.GetString( "Field.DefaultValue" ) ), 240 defaultValue = itemField.GetString( "Field.DefaultValue" ), 241 required = itemField.GetBoolean( "Field.Required" ), 242 description = itemField.GetString( "Field.Description" ), 243 classList = new List< string >() 244 { 245 itemField.GetString( "Field.CssClass" ) 246 }, 247 html = itemField.GetString( "Field.Control" ), 248 }; 249 if ( field.required == true ) 250 { 251 field.classList.Add( "required" ); 252 } 253 if ( field.type == "email" ) 254 { 255 field.classList.Add( "email" ); 256 } 257258 if ( (field.type == "textinput" || field.type == "email") && itemField.GetString("Field.SystemName").Equals("reCAPTCHA", StringComparison.InvariantCultureIgnoreCase) == false ) 259 { 260261262 #line default 263 #line hidden 264 WriteLiteral(" <fieldset"); 265266 WriteLiteral(" class=\"form-group\""); 267268 WriteLiteral(">\r\n <label"); 269270 WriteLiteral(" class=\"form-control-label\""); 271272 WriteAttribute("for", Tuple.Create(" for=\"", 4923), Tuple.Create("\"", 4938) 273274 #line 139 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 275 , Tuple.Create(Tuple.Create("", 4929), Tuple.Create<System.Object, System.Int32>(field.id 276277 #line default 278 #line hidden 279 , 4929), false) 280 ); 281282 WriteLiteral(">\r\n"); 283284 WriteLiteral(" "); 285286287 #line 140 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 288 Write(field.title); 289290291 #line default 292 #line hidden 293 WriteLiteral(" "); 294295296 #line 140 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 297 Write(getRequiredSymbol( field.required )); 298299300 #line default 301 #line hidden 302 WriteLiteral("\r\n"); 303304305 #line 141 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 306307308 #line default 309 #line hidden 310311 #line 141 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 312 if ( field.description != "" ) 313 { 314315316 #line default 317 #line hidden 318 WriteLiteral(" <small"); 319320 WriteLiteral(" class=\"form-text text-muted\""); 321322 WriteLiteral(">"); 323324325 #line 143 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 326 Write(field.description); 327328329 #line default 330 #line hidden 331 WriteLiteral("</small>\r\n"); 332333334 #line 144 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 335 } 336337338 #line default 339 #line hidden 340 WriteLiteral(" </label>\r\n <input"); 341342 WriteAttribute("class", Tuple.Create(" class=\"", 5248), Tuple.Create("\"", 5300) 343344 #line 146 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 345 , Tuple.Create(Tuple.Create("", 5256), Tuple.Create<System.Object, System.Int32>(getClassList( field.classList, field.type ) 346347 #line default 348 #line hidden 349 , 5256), false) 350 ); 351352 WriteAttribute("id", Tuple.Create(" id=\"", 5301), Tuple.Create("\"", 5315) 353354 #line 146 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 355 , Tuple.Create(Tuple.Create("", 5306), Tuple.Create<System.Object, System.Int32>(field.id 356357 #line default 358 #line hidden 359 , 5306), false) 360 ); 361362 WriteAttribute("name", Tuple.Create(" name=\"", 5316), Tuple.Create("\"", 5334) 363364 #line 146 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 365 , Tuple.Create(Tuple.Create("", 5323), Tuple.Create<System.Object, System.Int32>(field.name 366367 #line default 368 #line hidden 369 , 5323), false) 370 ); 371372 WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 5335), Tuple.Create("\"", 5367) 373374 #line 146 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 375 , Tuple.Create(Tuple.Create("", 5349), Tuple.Create<System.Object, System.Int32>(field.placeholder 376377 #line default 378 #line hidden 379 , 5349), false) 380 ); 381382 WriteLiteral(" type=\"text\""); 383384 WriteAttribute("value", Tuple.Create(" value=\"", 5380), Tuple.Create("\"", 5400) 385386 #line 146 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 387 , Tuple.Create(Tuple.Create("", 5388), Tuple.Create<System.Object, System.Int32>(field.value 388389 #line default 390 #line hidden 391 , 5388), false) 392 ); 393394 WriteLiteral(">\r\n <div"); 395396 WriteLiteral(" class=\"d-none js-e-form-validation-msg\""); 397398 WriteLiteral("></div>\r\n </fieldset>\r\n"); 399400401 #line 149 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 402 } 403 else if ( field.type == "password" ) 404 { 405406407 #line default 408 #line hidden 409 WriteLiteral(" <fieldset"); 410411 WriteLiteral(" class=\"form-group\""); 412413 WriteLiteral(">\r\n <label"); 414415 WriteLiteral(" class=\"form-control-label\""); 416417 WriteAttribute("for", Tuple.Create(" for=\"", 5658), Tuple.Create("\"", 5673) 418419 #line 153 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 420 , Tuple.Create(Tuple.Create("", 5664), Tuple.Create<System.Object, System.Int32>(field.id 421422 #line default 423 #line hidden 424 , 5664), false) 425 ); 426427 WriteLiteral(">\r\n"); 428429 WriteLiteral(" "); 430431432 #line 154 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 433 Write(field.title); 434435436 #line default 437 #line hidden 438 WriteLiteral(" "); 439440441 #line 154 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 442 Write(getRequiredSymbol( field.required )); 443444445 #line default 446 #line hidden 447 WriteLiteral("\r\n"); 448449450 #line 155 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 451452453 #line default 454 #line hidden 455456 #line 155 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 457 if ( field.description != "" ) 458 { 459460461 #line default 462 #line hidden 463 WriteLiteral(" <small"); 464465 WriteLiteral(" class=\"form-text text-muted\""); 466467 WriteLiteral(">"); 468469470 #line 157 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 471 Write(field.description); 472473474 #line default 475 #line hidden 476 WriteLiteral("</small>\r\n"); 477478479 #line 158 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 480 } 481482483 #line default 484 #line hidden 485 WriteLiteral(" </label>\r\n <input"); 486487 WriteAttribute("class", Tuple.Create(" class=\"", 5983), Tuple.Create("\"", 6035) 488489 #line 160 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 490 , Tuple.Create(Tuple.Create("", 5991), Tuple.Create<System.Object, System.Int32>(getClassList( field.classList, field.type ) 491492 #line default 493 #line hidden 494 , 5991), false) 495 ); 496497 WriteAttribute("id", Tuple.Create(" id=\"", 6036), Tuple.Create("\"", 6050) 498499 #line 160 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 500 , Tuple.Create(Tuple.Create("", 6041), Tuple.Create<System.Object, System.Int32>(field.id 501502 #line default 503 #line hidden 504 , 6041), false) 505 ); 506507 WriteAttribute("name", Tuple.Create(" name=\"", 6051), Tuple.Create("\"", 6069) 508509 #line 160 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 510 , Tuple.Create(Tuple.Create("", 6058), Tuple.Create<System.Object, System.Int32>(field.name 511512 #line default 513 #line hidden 514 , 6058), false) 515 ); 516517 WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 6070), Tuple.Create("\"", 6102) 518519 #line 160 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 520 , Tuple.Create(Tuple.Create("", 6084), Tuple.Create<System.Object, System.Int32>(field.placeholder 521522 #line default 523 #line hidden 524 , 6084), false) 525 ); 526527 WriteLiteral(" type=\"password\""); 528529 WriteAttribute("value", Tuple.Create(" value=\"", 6119), Tuple.Create("\"", 6139) 530531 #line 160 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 532 , Tuple.Create(Tuple.Create("", 6127), Tuple.Create<System.Object, System.Int32>(field.value 533534 #line default 535 #line hidden 536 , 6127), false) 537 ); 538539 WriteLiteral(">\r\n <div"); 540541 WriteLiteral(" class=\"d-none js-e-form-validation-msg\""); 542543 WriteLiteral("></div>\r\n </fieldset>\r\n"); 544545546 #line 163 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 547 } 548 else if ( field.type == "textarea" ) 549 { 550551552 #line default 553 #line hidden 554 WriteLiteral(" <fieldset"); 555556 WriteLiteral(" class=\"form-group\""); 557558 WriteLiteral(">\r\n <label"); 559560 WriteLiteral(" class=\"form-control-label\""); 561562 WriteAttribute("for", Tuple.Create(" for=\"", 6397), Tuple.Create("\"", 6412) 563564 #line 167 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 565 , Tuple.Create(Tuple.Create("", 6403), Tuple.Create<System.Object, System.Int32>(field.id 566567 #line default 568 #line hidden 569 , 6403), false) 570 ); 571572 WriteLiteral(">\r\n"); 573574 WriteLiteral(" "); 575576577 #line 168 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 578 Write(field.title); 579580581 #line default 582 #line hidden 583 WriteLiteral(" "); 584585586 #line 168 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 587 Write(getRequiredSymbol( field.required )); 588589590 #line default 591 #line hidden 592 WriteLiteral("\r\n"); 593594595 #line 169 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 596597598 #line default 599 #line hidden 600601 #line 169 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 602 if ( field.description != "" ) 603 { 604605606 #line default 607 #line hidden 608 WriteLiteral(" <small"); 609610 WriteLiteral(" class=\"form-text text-muted\""); 611612 WriteLiteral(">"); 613614615 #line 171 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 616 Write(field.description); 617618619 #line default 620 #line hidden 621 WriteLiteral("</small>\r\n"); 622623624 #line 172 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 625 } 626627628 #line default 629 #line hidden 630 WriteLiteral(" </label>\r\n <textarea"); 631632 WriteAttribute("class", Tuple.Create(" class=\"", 6725), Tuple.Create("\"", 6777) 633634 #line 174 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 635 , Tuple.Create(Tuple.Create("", 6733), Tuple.Create<System.Object, System.Int32>(getClassList( field.classList, field.type ) 636637 #line default 638 #line hidden 639 , 6733), false) 640 ); 641642 WriteAttribute("id", Tuple.Create(" id=\"", 6778), Tuple.Create("\"", 6792) 643644 #line 174 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 645 , Tuple.Create(Tuple.Create("", 6783), Tuple.Create<System.Object, System.Int32>(field.id 646647 #line default 648 #line hidden 649 , 6783), false) 650 ); 651652 WriteAttribute("name", Tuple.Create(" name=\"", 6793), Tuple.Create("\"", 6811) 653654 #line 174 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 655 , Tuple.Create(Tuple.Create("", 6800), Tuple.Create<System.Object, System.Int32>(field.name 656657 #line default 658 #line hidden 659 , 6800), false) 660 ); 661662 WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 6812), Tuple.Create("\"", 6844) 663664 #line 174 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 665 , Tuple.Create(Tuple.Create("", 6826), Tuple.Create<System.Object, System.Int32>(field.placeholder 666667 #line default 668 #line hidden 669 , 6826), false) 670 ); 671672 WriteLiteral(">"); 673674675 #line 174 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 676 Write(field.value); 677678679 #line default 680 #line hidden 681 WriteLiteral("</textarea>\r\n <div"); 682683 WriteLiteral(" class=\"d-none js-e-form-validation-msg\""); 684685 WriteLiteral("></div>\r\n </fieldset>\r\n"); 686687688 #line 177 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 689 } 690 else if ( field.type == "checkbox" ) 691 { 692693694 #line default 695 #line hidden 696 WriteLiteral(" <fieldset"); 697698 WriteLiteral(" class=\"form-group\""); 699700 WriteLiteral(">\r\n <div"); 701702 WriteLiteral(" class=\"\""); 703704 WriteLiteral(">\r\n <label"); 705706 WriteLiteral(" class=\"custom-checkbox custom-control\""); 707708 WriteLiteral(">\r\n <input"); 709710 WriteAttribute("class", Tuple.Create(" class=\"", 7206), Tuple.Create("\"", 7258) 711712 #line 183 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 713 , Tuple.Create(Tuple.Create("", 7214), Tuple.Create<System.Object, System.Int32>(getClassList( field.classList, field.type ) 714715 #line default 716 #line hidden 717 , 7214), false) 718 ); 719720 WriteAttribute("id", Tuple.Create(" id=\"", 7259), Tuple.Create("\"", 7273) 721722 #line 183 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 723 , Tuple.Create(Tuple.Create("", 7264), Tuple.Create<System.Object, System.Int32>(field.id 724725 #line default 726 #line hidden 727 , 7264), false) 728 ); 729730 WriteAttribute("name", Tuple.Create(" name=\"", 7274), Tuple.Create("\"", 7292) 731732 #line 183 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 733 , Tuple.Create(Tuple.Create("", 7281), Tuple.Create<System.Object, System.Int32>(field.name 734735 #line default 736 #line hidden 737 , 7281), false) 738 ); 739740 WriteLiteral(" type=\"checkbox\""); 741742 WriteLiteral(" "); 743744745 #line 183 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 746 Write(getDefaultSelected( ( field.defaultValue.ToLower() == "true" ), field.type )); 747748749 #line default 750 #line hidden 751 WriteLiteral(">\r\n <span"); 752753 WriteLiteral(" class=\"custom-control-indicator\""); 754755 WriteLiteral("></span>\r\n <span"); 756757 WriteLiteral(" class=\"custom-control-description\""); 758759 WriteLiteral(">"); 760761762 #line 185 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 763 Write(field.title); 764765766 #line default 767 #line hidden 768 WriteLiteral(" "); 769770771 #line 185 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 772 Write(getRequiredSymbol( field.required )); 773774775 #line default 776 #line hidden 777 WriteLiteral("</span>\r\n </label>\r\n <div"); 778779 WriteLiteral(" class=\"d-none js-e-form-validation-msg\""); 780781 WriteLiteral("></div>\r\n"); 782783784 #line 188 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 785786787 #line default 788 #line hidden 789790 #line 188 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 791 if ( field.description != "" ) 792 { 793794795 #line default 796 #line hidden 797 WriteLiteral(" <small"); 798799 WriteLiteral(" class=\"form-text text-muted\""); 800801 WriteLiteral(">"); 802803804 #line 190 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 805 Write(field.description); 806807808 #line default 809 #line hidden 810 WriteLiteral("</small>\r\n"); 811812813 #line 191 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 814 } 815816817 #line default 818 #line hidden 819 WriteLiteral(" </div>\r\n </fieldset>\r\n"); 820821822 #line 194 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 823 } 824 else if ( field.type == "checkboxlist" ) 825 { 826827828 #line default 829 #line hidden 830 WriteLiteral(" <fieldset"); 831832 WriteLiteral(" class=\"form-group\""); 833834 WriteLiteral(">\r\n <legend"); 835836 WriteLiteral(" class=\"form-legend\""); 837838 WriteLiteral(">\r\n"); 839840 WriteLiteral(" "); 841842843 #line 199 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 844 Write(field.title); 845846847 #line default 848 #line hidden 849 WriteLiteral(" "); 850851852 #line 199 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 853 Write(getRequiredSymbol( field.required )); 854855856 #line default 857 #line hidden 858 WriteLiteral("\r\n"); 859860861 #line 200 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 862863864 #line default 865 #line hidden 866867 #line 200 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 868 if ( field.description != "" ) 869 { 870871872 #line default 873 #line hidden 874 WriteLiteral(" <small"); 875876 WriteLiteral(" class=\"form-text text-muted\""); 877878 WriteLiteral(">"); 879880881 #line 202 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 882 Write(field.description); 883884885 #line default 886 #line hidden 887 WriteLiteral("</small>\r\n"); 888889890 #line 203 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 891 } 892893894 #line default 895 #line hidden 896 WriteLiteral(" </legend>\r\n <div"); 897898 WriteLiteral(" class=\"d-none js-e-form-validation-msg\""); 899900 WriteLiteral("></div>\r\n"); 901902903 #line 206 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 904905906 #line default 907 #line hidden 908909 #line 206 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 910 foreach ( LoopItem option in itemField.GetLoop( "Options" ) ) 911 { 912 if ( option.GetBoolean( "Option.Active" ) == true ) 913 { 914915916 #line default 917 #line hidden 918 WriteLiteral(" <div"); 919920 WriteLiteral(" class=\"\""); 921922 WriteLiteral(">\r\n <label"); 923924 WriteLiteral(" class=\"custom-checkbox custom-control\""); 925926 WriteLiteral(">\r\n <input"); 927928 WriteAttribute("class", Tuple.Create(" class=\"", 8788), Tuple.Create("\"", 8840) 929930 #line 212 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 931 , Tuple.Create(Tuple.Create("", 8796), Tuple.Create<System.Object, System.Int32>(getClassList( field.classList, field.type ) 932933 #line default 934 #line hidden 935 , 8796), false) 936 ); 937938 WriteAttribute("name", Tuple.Create(" name=\"", 8841), Tuple.Create("\"", 8859) 939940 #line 212 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 941 , Tuple.Create(Tuple.Create("", 8848), Tuple.Create<System.Object, System.Int32>(field.name 942943 #line default 944 #line hidden 945 , 8848), false) 946 ); 947948 WriteLiteral(" type=\"checkbox\""); 949950 WriteAttribute("value", Tuple.Create(" value=\"", 8876), Tuple.Create("\"", 8919) 951952 #line 212 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 953 , Tuple.Create(Tuple.Create("", 8884), Tuple.Create<System.Object, System.Int32>(option.GetString( "Option.Value" ) 954955 #line default 956 #line hidden 957 , 8884), false) 958 ); 959960 WriteLiteral(" "); 961962963 #line 212 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 964 Write(getDefaultSelected( option.GetBoolean( "Option.DefaultSelected" ), field.type )); 965966967 #line default 968 #line hidden 969 WriteLiteral(">\r\n <span"); 970971 WriteLiteral(" class=\"custom-control-indicator\""); 972973 WriteLiteral("></span>\r\n <span"); 974975 WriteLiteral(" class=\"custom-control-description small\""); 976977 WriteLiteral(">"); 978979980 #line 214 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 981 Write(option.GetString( "Option.Text" )); 982983984 #line default 985 #line hidden 986 WriteLiteral("</span>\r\n </label>\r\n </div>\r\n"); 987988989 #line 217 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 990 } 991 } 992993994 #line default 995 #line hidden 996 WriteLiteral(" </fieldset>\r\n"); 997998999 #line 220 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1000 } 1001 else if ( field.type == "radio" ) 1002 { 100310041005 #line default 1006 #line hidden 1007 WriteLiteral(" <fieldset"); 10081009 WriteLiteral(" class=\"form-group\""); 10101011 WriteLiteral(">\r\n <legend"); 10121013 WriteLiteral(" class=\"form-legend\""); 10141015 WriteLiteral(">\r\n"); 10161017 WriteLiteral(" "); 101810191020 #line 225 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1021 Write(field.title); 102210231024 #line default 1025 #line hidden 1026 WriteLiteral(" "); 102710281029 #line 225 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1030 Write(getRequiredSymbol( field.required )); 103110321033 #line default 1034 #line hidden 1035 WriteLiteral("\r\n"); 103610371038 #line 226 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 103910401041 #line default 1042 #line hidden 10431044 #line 226 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1045 if ( field.description != "" ) 1046 { 104710481049 #line default 1050 #line hidden 1051 WriteLiteral(" <small"); 10521053 WriteLiteral(" class=\"form-text text-muted\""); 10541055 WriteLiteral(">"); 105610571058 #line 228 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1059 Write(field.description); 106010611062 #line default 1063 #line hidden 1064 WriteLiteral("</small>\r\n"); 106510661067 #line 229 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1068 } 106910701071 #line default 1072 #line hidden 1073 WriteLiteral(" </legend>\r\n <div"); 10741075 WriteLiteral(" class=\"d-none js-e-form-validation-msg\""); 10761077 WriteLiteral("></div>\r\n"); 107810791080 #line 232 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 108110821083 #line default 1084 #line hidden 10851086 #line 232 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1087 foreach ( LoopItem option in itemField.GetLoop( "Options" ) ) 1088 { 1089 if ( option.GetBoolean( "Option.Active" ) == true ) 1090 { 109110921093 #line default 1094 #line hidden 1095 WriteLiteral(" <div"); 10961097 WriteLiteral(" class=\"\""); 10981099 WriteLiteral(">\r\n <label"); 11001101 WriteLiteral(" class=\"custom-control custom-radio\""); 11021103 WriteLiteral(">\r\n <input"); 11041105 WriteAttribute("class", Tuple.Create(" class=\"", 10197), Tuple.Create("\"", 10249) 11061107 #line 238 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1108 , Tuple.Create(Tuple.Create("", 10205), Tuple.Create<System.Object, System.Int32>(getClassList( field.classList, field.type ) 11091110 #line default 1111 #line hidden 1112 , 10205), false) 1113 ); 11141115 WriteAttribute("name", Tuple.Create(" name=\"", 10250), Tuple.Create("\"", 10268) 11161117 #line 238 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1118 , Tuple.Create(Tuple.Create("", 10257), Tuple.Create<System.Object, System.Int32>(field.name 11191120 #line default 1121 #line hidden 1122 , 10257), false) 1123 ); 11241125 WriteLiteral(" type=\"radio\""); 11261127 WriteAttribute("value", Tuple.Create(" value=\"", 10282), Tuple.Create("\"", 10325) 11281129 #line 238 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1130 , Tuple.Create(Tuple.Create("", 10290), Tuple.Create<System.Object, System.Int32>(option.GetString( "Option.Value" ) 11311132 #line default 1133 #line hidden 1134 , 10290), false) 1135 ); 11361137 WriteLiteral(" "); 113811391140 #line 238 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1141 Write(getDefaultSelected( option.GetBoolean( "Option.DefaultSelected" ), field.type )); 114211431144 #line default 1145 #line hidden 1146 WriteLiteral(">\r\n <span"); 11471148 WriteLiteral(" class=\"custom-control-indicator\""); 11491150 WriteLiteral("></span>\r\n <span"); 11511152 WriteLiteral(" class=\"custom-control-description\""); 11531154 WriteLiteral(">"); 115511561157 #line 240 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1158 Write(option.GetString( "Option.Text" )); 115911601161 #line default 1162 #line hidden 1163 WriteLiteral("</span>\r\n </label>\r\n </div>\r\n"); 116411651166 #line 243 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1167 } 1168 } 116911701171 #line default 1172 #line hidden 1173 WriteLiteral(" </fieldset>\r\n"); 117411751176 #line 246 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1177 } 1178 else if ( field.type == "select" ) 1179 { 118011811182 #line default 1183 #line hidden 1184 WriteLiteral(" <fieldset"); 11851186 WriteLiteral(" class=\"form-group\""); 11871188 WriteLiteral(">\r\n <label"); 11891190 WriteLiteral(" class=\"form-control-label\""); 11911192 WriteAttribute("for", Tuple.Create(" for=\"", 10901), Tuple.Create("\"", 10916) 11931194 #line 250 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1195 , Tuple.Create(Tuple.Create("", 10907), Tuple.Create<System.Object, System.Int32>(field.id 11961197 #line default 1198 #line hidden 1199 , 10907), false) 1200 ); 12011202 WriteLiteral(">\r\n"); 12031204 WriteLiteral(" "); 120512061207 #line 251 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1208 Write(field.title); 120912101211 #line default 1212 #line hidden 1213 WriteLiteral(" "); 121412151216 #line 251 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1217 Write(getRequiredSymbol( field.required )); 121812191220 #line default 1221 #line hidden 1222 WriteLiteral("\r\n"); 122312241225 #line 252 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 122612271228 #line default 1229 #line hidden 12301231 #line 252 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1232 if ( field.description != "" ) 1233 { 123412351236 #line default 1237 #line hidden 1238 WriteLiteral(" <small"); 12391240 WriteLiteral(" class=\"form-text text-muted\""); 12411242 WriteLiteral(">"); 124312441245 #line 254 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1246 Write(field.description); 124712481249 #line default 1250 #line hidden 1251 WriteLiteral("</small>\r\n"); 125212531254 #line 255 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1255 } 125612571258 #line default 1259 #line hidden 1260 WriteLiteral(" </label>\r\n <select"); 12611262 WriteAttribute("class", Tuple.Create(" class=\"", 11227), Tuple.Create("\"", 11279) 12631264 #line 257 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1265 , Tuple.Create(Tuple.Create("", 11235), Tuple.Create<System.Object, System.Int32>(getClassList( field.classList, field.type ) 12661267 #line default 1268 #line hidden 1269 , 11235), false) 1270 ); 12711272 WriteAttribute("id", Tuple.Create(" id=\"", 11280), Tuple.Create("\"", 11294) 12731274 #line 257 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1275 , Tuple.Create(Tuple.Create("", 11285), Tuple.Create<System.Object, System.Int32>(field.id 12761277 #line default 1278 #line hidden 1279 , 11285), false) 1280 ); 12811282 WriteAttribute("name", Tuple.Create(" name=\"", 11295), Tuple.Create("\"", 11313) 12831284 #line 257 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1285 , Tuple.Create(Tuple.Create("", 11302), Tuple.Create<System.Object, System.Int32>(field.name 12861287 #line default 1288 #line hidden 1289 , 11302), false) 1290 ); 12911292 WriteLiteral(">\r\n"); 129312941295 #line 258 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 129612971298 #line default 1299 #line hidden 13001301 #line 258 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1302 foreach ( LoopItem option in itemField.GetLoop( "Options" ) ) 1303 { 1304 if ( option.GetBoolean( "Option.Active" ) == true ) 1305 { 130613071308 #line default 1309 #line hidden 1310 WriteLiteral(" <option"); 13111312 WriteAttribute("value", Tuple.Create(" value=\"", 11563), Tuple.Create("\"", 11606) 13131314 #line 262 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1315 , Tuple.Create(Tuple.Create("", 11571), Tuple.Create<System.Object, System.Int32>(option.GetString( "Option.Value" ) 13161317 #line default 1318 #line hidden 1319 , 11571), false) 1320 ); 13211322 WriteLiteral(" "); 132313241325 #line 262 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1326 Write(getDefaultSelected( option.GetBoolean( "Option.DefaultSelected" ), field.type )); 132713281329 #line default 1330 #line hidden 1331 WriteLiteral(">\r\n"); 13321333 WriteLiteral(" "); 133413351336 #line 263 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1337 Write(option.GetString( "Option.Text" )); 133813391340 #line default 1341 #line hidden 1342 WriteLiteral("\r\n </option>\r\n"); 134313441345 #line 265 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1346 } 1347 } 134813491350 #line default 1351 #line hidden 1352 WriteLiteral(" </select>\r\n <div"); 13531354 WriteLiteral(" class=\"d-none js-e-form-validation-msg\""); 13551356 WriteLiteral("></div>\r\n </fieldset>\r\n"); 135713581359 #line 270 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1360 } 13611362 else if ( field.type == "date" ) 1363 { 136413651366 #line default 1367 #line hidden 1368 WriteLiteral(" <fieldset"); 13691370 WriteLiteral(" class=\"form-group\""); 13711372 WriteLiteral(">\r\n <label"); 13731374 WriteLiteral(" class=\"form-control-label\""); 13751376 WriteAttribute("for", Tuple.Create(" for=\"", 12127), Tuple.Create("\"", 12142) 13771378 #line 275 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1379 , Tuple.Create(Tuple.Create("", 12133), Tuple.Create<System.Object, System.Int32>(field.id 13801381 #line default 1382 #line hidden 1383 , 12133), false) 1384 ); 13851386 WriteLiteral(">\r\n"); 13871388 WriteLiteral(" "); 138913901391 #line 276 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1392 Write(field.title); 139313941395 #line default 1396 #line hidden 1397 WriteLiteral(" "); 139813991400 #line 276 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1401 Write(getRequiredSymbol( field.required )); 140214031404 #line default 1405 #line hidden 1406 WriteLiteral("\r\n"); 140714081409 #line 277 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 141014111412 #line default 1413 #line hidden 14141415 #line 277 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1416 if ( field.description != "" ) 1417 { 141814191420 #line default 1421 #line hidden 1422 WriteLiteral(" <small"); 14231424 WriteLiteral(" class=\"form-text text-muted\""); 14251426 WriteLiteral(">"); 142714281429 #line 279 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1430 Write(field.description); 143114321433 #line default 1434 #line hidden 1435 WriteLiteral("</small>\r\n"); 143614371438 #line 280 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1439 } 144014411442 #line default 1443 #line hidden 1444 WriteLiteral(" </label>\r\n <input"); 14451446 WriteAttribute("class", Tuple.Create(" class=\"", 12452), Tuple.Create("\"", 12504) 14471448 #line 282 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1449 , Tuple.Create(Tuple.Create("", 12460), Tuple.Create<System.Object, System.Int32>(getClassList( field.classList, field.type ) 14501451 #line default 1452 #line hidden 1453 , 12460), false) 1454 ); 14551456 WriteAttribute("id", Tuple.Create(" id=\"", 12505), Tuple.Create("\"", 12519) 14571458 #line 282 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1459 , Tuple.Create(Tuple.Create("", 12510), Tuple.Create<System.Object, System.Int32>(field.id 14601461 #line default 1462 #line hidden 1463 , 12510), false) 1464 ); 14651466 WriteAttribute("name", Tuple.Create(" name=\"", 12520), Tuple.Create("\"", 12538) 14671468 #line 282 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1469 , Tuple.Create(Tuple.Create("", 12527), Tuple.Create<System.Object, System.Int32>(field.name 14701471 #line default 1472 #line hidden 1473 , 12527), false) 1474 ); 14751476 WriteAttribute("placeholder", Tuple.Create(" placeholder=\"", 12539), Tuple.Create("\"", 12571) 14771478 #line 282 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1479 , Tuple.Create(Tuple.Create("", 12553), Tuple.Create<System.Object, System.Int32>(field.placeholder 14801481 #line default 1482 #line hidden 1483 , 12553), false) 1484 ); 14851486 WriteLiteral(" type=\"date\""); 14871488 WriteAttribute("value", Tuple.Create(" value=\"", 12584), Tuple.Create("\"", 12604) 14891490 #line 282 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1491 , Tuple.Create(Tuple.Create("", 12592), Tuple.Create<System.Object, System.Int32>(field.value 14921493 #line default 1494 #line hidden 1495 , 12592), false) 1496 ); 14971498 WriteLiteral(">\r\n </fieldset>\r\n"); 149915001501 #line 284 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1502 } 15031504 else if ( field.type == "file" ) 1505 { 150615071508 #line default 1509 #line hidden 1510 WriteLiteral(" <fieldset"); 15111512 WriteLiteral(" class=\"form-group\""); 15131514 WriteLiteral(">\r\n <label"); 15151516 WriteLiteral(" class=\"form-control-label\""); 15171518 WriteAttribute("for", Tuple.Create(" for=\"", 12791), Tuple.Create("\"", 12806) 15191520 #line 289 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1521 , Tuple.Create(Tuple.Create("", 12797), Tuple.Create<System.Object, System.Int32>(field.id 15221523 #line default 1524 #line hidden 1525 , 12797), false) 1526 ); 15271528 WriteLiteral(">\r\n"); 15291530 WriteLiteral(" "); 153115321533 #line 290 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1534 Write(field.title); 153515361537 #line default 1538 #line hidden 1539 WriteLiteral(" "); 154015411542 #line 290 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1543 Write(getRequiredSymbol( field.required )); 154415451546 #line default 1547 #line hidden 1548 WriteLiteral("\r\n </label>\r\n <p"); 15491550 WriteAttribute("class", Tuple.Create(" class=\"", 12925), Tuple.Create("\"", 12977) 15511552 #line 292 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1553 , Tuple.Create(Tuple.Create("", 12933), Tuple.Create<System.Object, System.Int32>(getClassList( field.classList, field.type ) 15541555 #line default 1556 #line hidden 1557 , 12933), false) 1558 ); 15591560 WriteLiteral(">"); 156115621563 #line 292 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1564 Write(field.html); 156515661567 #line default 1568 #line hidden 1569 WriteLiteral("</p>\r\n </fieldset>\r\n"); 157015711572 #line 294 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1573 } 15741575 else if ( field.type == "hidden" ) 1576 { 157715781579 #line default 1580 #line hidden 1581 WriteLiteral(" <input"); 15821583 WriteAttribute("class", Tuple.Create(" class=\"", 13107), Tuple.Create("\"", 13159) 15841585 #line 298 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1586 , Tuple.Create(Tuple.Create("", 13115), Tuple.Create<System.Object, System.Int32>(getClassList( field.classList, field.type ) 15871588 #line default 1589 #line hidden 1590 , 13115), false) 1591 ); 15921593 WriteAttribute("id", Tuple.Create(" id=\"", 13160), Tuple.Create("\"", 13174) 15941595 #line 298 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1596 , Tuple.Create(Tuple.Create("", 13165), Tuple.Create<System.Object, System.Int32>(field.id 15971598 #line default 1599 #line hidden 1600 , 13165), false) 1601 ); 16021603 WriteAttribute("name", Tuple.Create(" name=\"", 13175), Tuple.Create("\"", 13193) 16041605 #line 298 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1606 , Tuple.Create(Tuple.Create("", 13182), Tuple.Create<System.Object, System.Int32>(field.name 16071608 #line default 1609 #line hidden 1610 , 13182), false) 1611 ); 16121613 WriteLiteral(" type=\"hidden\""); 16141615 WriteAttribute("value", Tuple.Create(" value=\"", 13208), Tuple.Create("\"", 13228) 16161617 #line 298 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1618 , Tuple.Create(Tuple.Create("", 13216), Tuple.Create<System.Object, System.Int32>(field.value 16191620 #line default 1621 #line hidden 1622 , 13216), false) 1623 ); 16241625 WriteLiteral(">\r\n"); 162616271628 #line 299 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1629 } 1630 else if ( field.type == "submit" ) 1631 { 16321633 if (hasReCaptcha) 1634 { 1635 string siteKey = SystemConfiguration.Instance.GetValue("/Globalsettings/Co3.MCH/ReCaptcha/SiteKey"); 1636 string secretKey = SystemConfiguration.Instance.GetValue("/Globalsettings/Co3.MCH/ReCaptcha/SecretKey"); 1637163816391640 #line default 1641 #line hidden 1642 WriteLiteral(" <div"); 16431644 WriteLiteral(" class=\"form-group d-flex\""); 16451646 WriteLiteral(">\r\n <div"); 16471648 WriteLiteral(" class=\"mr-3\""); 16491650 WriteLiteral(">\r\n <button"); 16511652 WriteAttribute("class", Tuple.Create(" class=\"", 13695), Tuple.Create("\"", 13751) 1653 , Tuple.Create(Tuple.Create("", 13703), Tuple.Create("btn", 13703), true) 16541655 #line 310 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1656 , Tuple.Create(Tuple.Create(" ", 13706), Tuple.Create<System.Object, System.Int32>(getClassList( field.classList, field.type ) 16571658 #line default 1659 #line hidden 1660 , 13707), false) 1661 ); 16621663 WriteLiteral(" type=\"submit\""); 16641665 WriteLiteral(">"); 166616671668 #line 310 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1669 Write(field.title); 167016711672 #line default 1673 #line hidden 1674 WriteLiteral("</button>\r\n </div>\r\n <div>\r\n <div"); 16751676 WriteLiteral(" class=\"g-recaptcha\""); 16771678 WriteLiteral(" data-sitekey=\""); 167916801681 #line 313 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1682 Write(siteKey); 168316841685 #line default 1686 #line hidden 1687 WriteLiteral("\""); 16881689 WriteLiteral("></div>\r\n <input"); 16901691 WriteLiteral(" type=\"text\""); 16921693 WriteLiteral(" name=\"reCAPTCHA\""); 16941695 WriteLiteral(" class=\"recaptcha-hidden\""); 16961697 WriteLiteral(" required"); 16981699 WriteLiteral(" style=\"opacity:0.001;position: absolute;width:1px;height:1px;overflow: hidden;\""); 17001701 WriteLiteral("/>\r\n </div>\r\n </div>\r\n"); 170217031704 #line 317 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1705170617071708 #line default 1709 #line hidden 1710 WriteLiteral(" <style>\r\n .g-recaptcha.has-error > div {\r\n " + 1711 " border: 1px solid #d93025;\r\n }\r\n </style>\r\n"); 171217131714 #line 323 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1715 } 1716 else 1717 { 171817191720 #line default 1721 #line hidden 1722 WriteLiteral(" <fieldset"); 17231724 WriteLiteral(" class=\"form-group\""); 17251726 WriteLiteral(">\r\n <button"); 17271728 WriteAttribute("class", Tuple.Create(" class=\"", 14407), Tuple.Create("\"", 14463) 1729 , Tuple.Create(Tuple.Create("", 14415), Tuple.Create("btn", 14415), true) 17301731 #line 327 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1732 , Tuple.Create(Tuple.Create(" ", 14418), Tuple.Create<System.Object, System.Int32>(getClassList( field.classList, field.type ) 17331734 #line default 1735 #line hidden 1736 , 14419), false) 1737 ); 17381739 WriteLiteral(" type=\"submit\""); 17401741 WriteLiteral(">"); 174217431744 #line 327 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1745 Write(field.title); 174617471748 #line default 1749 #line hidden 1750 WriteLiteral("</button>\r\n </fieldset>\r\n"); 175117521753 #line 329 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1754 } 1755 } 1756 else if ( field.type == "text" ) 1757 { 175817591760 #line default 1761 #line hidden 1762 WriteLiteral(" <div"); 17631764 WriteLiteral(" class=\"form-group\""); 17651766 WriteLiteral(">\r\n <p"); 17671768 WriteAttribute("class", Tuple.Create(" class=\"", 14664), Tuple.Create("\"", 14716) 17691770 #line 334 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1771 , Tuple.Create(Tuple.Create("", 14672), Tuple.Create<System.Object, System.Int32>(getClassList( field.classList, field.type ) 17721773 #line default 1774 #line hidden 1775 , 14672), false) 1776 ); 17771778 WriteLiteral(">"); 177917801781 #line 334 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1782 Write(field.html); 178317841785 #line default 1786 #line hidden 1787 WriteLiteral("</p>\r\n"); 178817891790 #line 335 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 179117921793 #line default 1794 #line hidden 17951796 #line 335 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1797 if ( field.description != "" ) 1798 { 179918001801 #line default 1802 #line hidden 1803 WriteLiteral(" <p"); 18041805 WriteLiteral(" class=\"form-text mb-0 small text-muted\""); 18061807 WriteLiteral(">"); 180818091810 #line 337 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1811 Write(field.description); 181218131814 #line default 1815 #line hidden 1816 WriteLiteral("</p>\r\n"); 181718181819 #line 338 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1820 } 182118221823 #line default 1824 #line hidden 1825 WriteLiteral(" </div>\r\n"); 182618271828 #line 340 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1829 } 1830 else 1831 { 183218331834 #line default 1835 #line hidden 1836 WriteLiteral(" <fieldset"); 18371838 WriteLiteral(" class=\"form-group\""); 18391840 WriteLiteral(">\r\n Field type not suported: "); 184118421843 #line 344 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1844 Write(field.type); 184518461847 #line default 1848 #line hidden 1849 WriteLiteral("\r\n"); 185018511852 #line 345 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 185318541855 #line default 1856 #line hidden 18571858 #line 345 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1859 if ( field.title != "" ) 1860 { 186118621863 #line default 1864 #line hidden 1865 WriteLiteral(" <label"); 18661867 WriteLiteral(" class=\"form-control-label\""); 18681869 WriteAttribute("for", Tuple.Create(" for=\"", 15177), Tuple.Create("\"", 15192) 18701871 #line 347 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1872 , Tuple.Create(Tuple.Create("", 15183), Tuple.Create<System.Object, System.Int32>(field.id 18731874 #line default 1875 #line hidden 1876 , 15183), false) 1877 ); 18781879 WriteLiteral(">"); 188018811882 #line 347 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1883 Write(field.title); 188418851886 #line default 1887 #line hidden 1888 WriteLiteral("</label>\r\n"); 188918901891 #line 348 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1892 } 189318941895 #line default 1896 #line hidden 1897 WriteLiteral(" "); 189818991900 #line 349 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1901 Write(field.html); 190219031904 #line default 1905 #line hidden 1906 WriteLiteral("\r\n"); 190719081909 #line 350 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 191019111912 #line default 1913 #line hidden 19141915 #line 350 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1916 if ( field.description != "" ) 1917 { 191819191920 #line default 1921 #line hidden 1922 WriteLiteral(" <small"); 19231924 WriteLiteral(" class=\"form-text text-muted\""); 19251926 WriteLiteral(">"); 192719281929 #line 352 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1930 Write(field.description); 193119321933 #line default 1934 #line hidden 1935 WriteLiteral("</small>\r\n"); 193619371938 #line 353 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1939 } 194019411942 #line default 1943 #line hidden 1944 WriteLiteral(" </fieldset>\r\n"); 194519461947 #line 355 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1948 } 1949 } 195019511952 #line default 1953 #line hidden 1954 WriteLiteral(" <script>\r\n e4.data.set(\'"); 195519561957 #line 358 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1958 Write(string.Format( "forms.dwSpamScripts.{0}", form.id )); 195919601961 #line default 1962 #line hidden 1963 WriteLiteral("\', "); 196419651966 #line 358 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1967 Write(form.scriptSpamControl); 196819691970 #line default 1971 #line hidden 1972 WriteLiteral(");\r\n </script>\r\n </form>\r\n"); 197319741975 #line 361 "E:\dynamicweb.net\Solutions\mch365.espresso5.dk\Files\Templates\Designs\exhibition_site\Forms\Form\mch365-modal-form.cshtml" 1976 } 197719781979 #line default 1980 #line hidden 1981 } 1982 } 1983 } 19841 @inherits Dynamicweb.Rendering.RazorTemplateBase< Dynamicweb.Rendering.RazorTemplateModel< Dynamicweb.Rendering.Template > > 2 @using System.Web 3 @using Co3.Espresso.Website.Services 4 5 @functions{ 6 7 public string getRequiredSymbol( bool required ) 8 { 9 string result = string.Empty; 10 if ( required == true ) 11 { 12 result = "<span class=\"text-danger\">*</span>"; 13 } 14 return result; 15 } 16 17 public string getDefaultSelected( bool selected, string type = "" ) 18 { 19 string result = string.Empty; 20 if ( selected == true ) 21 { 22 if ( type == "select" ) 23 { 24 result = "selected"; 25 } 26 else if ( type == "radio" || type == "checkbox" || type == "checkboxlist" ) 27 { 28 result = "checked"; 29 } 30 } 31 return result; 32 } 33 34 public string getClassList( List< string > classList, string type = "" ) 35 { 36 string result = string.Empty; 37 if ( type == "textinput" || type == "email" || type == "textarea" || type == "password" ) 38 { 39 classList.Add( "form-control" ); 40 } 41 else if ( type == "radio" || type == "checkbox" || type == "checkboxlist" ) 42 { 43 classList.Add( "custom-control-input" ); 44 } 45 else if ( type == "select" || type == "date" ) 46 { 47 classList.Add( "custom-select" ); 48 classList.Add( "w-100" ); 49 } 50 else if ( type == "file" ) 51 { 52 classList.Add( "w-100" ); 53 } 54 else if ( type == "text" ) 55 { 56 classList.Add( "mb-0" ); 57 } 58 if ( classList.Count > 0 ) 59 { 60 result = String.Join( " ", classList ).Trim(); 61 } 62 return result; 63 } 64 65 } 66 67 @{ 68 dynamic form = new 69 { 70 id = GetString( "Form.HtmlId" ), 71 action = GetString( "Form.Action" ), 72 systemFields = GetString( "Form.SystemFields" ), 73 scriptOnSubmit = GetString( "Form.OnSubmit" ), 74 scriptSpamControl = GetString( "Form.SpamScript" ), 75 labelBold = GetBoolean( "Form.LabelBold" ), 76 labelOverField = GetBoolean( "Form.LabelOverField" ), 77 classList = new List< string >() 78 { 79 "e-form-dw", 80 "", 81 GetString( "Form.CssClass" ) 82 }, 83 useCustomControls = true, 84 submitMax = GetInteger( "Form.MaxSubmits" ), 85 submitCount = GetInteger( "Form.SubmitCount" ) 86 }; 87 if ( form.labelBold == true ) 88 { 89 form.classList.Add( "e-form-labels-bold" ); 90 } 91 if ( form.labelOverField == true ) 92 { 93 form.classList.Add( "e-form-labels-hide" ); 94 } 95 96 List<LoopItem> fields = GetLoop("Fields"); 97 bool hasReCaptcha = fields.Any(f => f.GetString("Field.SystemName").Equals("reCAPTCHA", StringComparison.InvariantCultureIgnoreCase)); 98 } 99100 @if ( form.submitMax > 0 && form.submitCount >= form.submitMax ) 101 { 102 @GetString( "Form.MaxSubmitsReachedText" ) 103 } 104 else 105 { 106 <form action="@form.action" class="@getClassList( form.classList )" data-nosnippet enctype="multipart/form-data" id="@form.id" method="post"> 107 @form.systemFields 108 @foreach ( LoopItem itemField in fields ) 109 { 110 dynamic field = new 111 { 112 type = itemField.GetString( "Field.Type" ).ToLower(), 113 id = string.Format( "{0}-{1}-{2}", form.id, itemField.GetString( "Field.HtmlId" ), itemField.GetString( "Field.ID" ) ), 114 name = itemField.GetString( "Field.SystemName" ), 115 title = itemField.GetString( "Field.Name" ), 116 placeholder = itemField.GetString( "Field.Placeholder" ), 117 value = HttpUtility.HtmlAttributeEncode( !string.IsNullOrEmpty( itemField.GetString( "Field.Value" ) ) ? itemField.GetString( "Field.Value" ) : itemField.GetString( "Field.DefaultValue" ) ), 118 defaultValue = itemField.GetString( "Field.DefaultValue" ), 119 required = itemField.GetBoolean( "Field.Required" ), 120 description = itemField.GetString( "Field.Description" ), 121 classList = new List< string >() 122 { 123 itemField.GetString( "Field.CssClass" ) 124 }, 125 html = itemField.GetString( "Field.Control" ), 126 }; 127 if ( field.required == true ) 128 { 129 field.classList.Add( "required" ); 130 } 131 if ( field.type == "email" ) 132 { 133 field.classList.Add( "email" ); 134 } 135136 if ( (field.type == "textinput" || field.type == "email") && itemField.GetString("Field.SystemName").Equals("reCAPTCHA", StringComparison.InvariantCultureIgnoreCase) == false ) 137 { 138 <fieldset class="form-group"> 139 <label class="form-control-label" for="@field.id"> 140 @field.title @getRequiredSymbol( field.required ) 141 @if ( field.description != "" ) 142 { 143 <small class="form-text text-muted">@field.description</small> 144 } 145 </label> 146 <input class="@getClassList( field.classList, field.type )" id="@field.id" name="@field.name" placeholder="@field.placeholder" type="text" value="@field.value"> 147 <div class="d-none js-e-form-validation-msg"></div> 148 </fieldset> 149 } 150 else if ( field.type == "password" ) 151 { 152 <fieldset class="form-group"> 153 <label class="form-control-label" for="@field.id"> 154 @field.title @getRequiredSymbol( field.required ) 155 @if ( field.description != "" ) 156 { 157 <small class="form-text text-muted">@field.description</small> 158 } 159 </label> 160 <input class="@getClassList( field.classList, field.type )" id="@field.id" name="@field.name" placeholder="@field.placeholder" type="password" value="@field.value"> 161 <div class="d-none js-e-form-validation-msg"></div> 162 </fieldset> 163 } 164 else if ( field.type == "textarea" ) 165 { 166 <fieldset class="form-group"> 167 <label class="form-control-label" for="@field.id"> 168 @field.title @getRequiredSymbol( field.required ) 169 @if ( field.description != "" ) 170 { 171 <small class="form-text text-muted">@field.description</small> 172 } 173 </label> 174 <textarea class="@getClassList( field.classList, field.type )" id="@field.id" name="@field.name" placeholder="@field.placeholder">@field.value</textarea> 175 <div class="d-none js-e-form-validation-msg"></div> 176 </fieldset> 177 } 178 else if ( field.type == "checkbox" ) 179 { 180 <fieldset class="form-group"> 181 <div class=""> 182 <label class="custom-checkbox custom-control"> 183 <input class="@getClassList( field.classList, field.type )" id="@field.id" name="@field.name" type="checkbox" @getDefaultSelected( ( field.defaultValue.ToLower() == "true" ), field.type )> 184 <span class="custom-control-indicator"></span> 185 <span class="custom-control-description">@field.title @getRequiredSymbol( field.required )</span> 186 </label> 187 <div class="d-none js-e-form-validation-msg"></div> 188 @if ( field.description != "" ) 189 { 190 <small class="form-text text-muted">@field.description</small> 191 } 192 </div> 193 </fieldset> 194 } 195 else if ( field.type == "checkboxlist" ) 196 { 197 <fieldset class="form-group"> 198 <legend class="form-legend"> 199 @field.title @getRequiredSymbol( field.required ) 200 @if ( field.description != "" ) 201 { 202 <small class="form-text text-muted">@field.description</small> 203 } 204 </legend> 205 <div class="d-none js-e-form-validation-msg"></div> 206 @foreach ( LoopItem option in itemField.GetLoop( "Options" ) ) 207 { 208 if ( option.GetBoolean( "Option.Active" ) == true ) 209 { 210 <div class=""> 211 <label class="custom-checkbox custom-control"> 212 <input class="@getClassList( field.classList, field.type )" name="@field.name" type="checkbox" value="@option.GetString( "Option.Value" )" @getDefaultSelected( option.GetBoolean( "Option.DefaultSelected" ), field.type )> 213 <span class="custom-control-indicator"></span> 214 <span class="custom-control-description small">@option.GetString( "Option.Text" )</span> 215 </label> 216 </div> 217 } 218 } 219 </fieldset> 220 } 221 else if ( field.type == "radio" ) 222 { 223 <fieldset class="form-group"> 224 <legend class="form-legend"> 225 @field.title @getRequiredSymbol( field.required ) 226 @if ( field.description != "" ) 227 { 228 <small class="form-text text-muted">@field.description</small> 229 } 230 </legend> 231 <div class="d-none js-e-form-validation-msg"></div> 232 @foreach ( LoopItem option in itemField.GetLoop( "Options" ) ) 233 { 234 if ( option.GetBoolean( "Option.Active" ) == true ) 235 { 236 <div class=""> 237 <label class="custom-control custom-radio"> 238 <input class="@getClassList( field.classList, field.type )" name="@field.name" type="radio" value="@option.GetString( "Option.Value" )" @getDefaultSelected( option.GetBoolean( "Option.DefaultSelected" ), field.type )> 239 <span class="custom-control-indicator"></span> 240 <span class="custom-control-description">@option.GetString( "Option.Text" )</span> 241 </label> 242 </div> 243 } 244 } 245 </fieldset> 246 } 247 else if ( field.type == "select" ) 248 { 249 <fieldset class="form-group"> 250 <label class="form-control-label" for="@field.id"> 251 @field.title @getRequiredSymbol( field.required ) 252 @if ( field.description != "" ) 253 { 254 <small class="form-text text-muted">@field.description</small> 255 } 256 </label> 257 <select class="@getClassList( field.classList, field.type )" id="@field.id" name="@field.name"> 258 @foreach ( LoopItem option in itemField.GetLoop( "Options" ) ) 259 { 260 if ( option.GetBoolean( "Option.Active" ) == true ) 261 { 262 <option value="@option.GetString( "Option.Value" )" @getDefaultSelected( option.GetBoolean( "Option.DefaultSelected" ), field.type )> 263 @option.GetString( "Option.Text" ) 264 </option> 265 } 266 } 267 </select> 268 <div class="d-none js-e-form-validation-msg"></div> 269 </fieldset> 270 } 271272 else if ( field.type == "date" ) 273 { 274 <fieldset class="form-group"> 275 <label class="form-control-label" for="@field.id"> 276 @field.title @getRequiredSymbol( field.required ) 277 @if ( field.description != "" ) 278 { 279 <small class="form-text text-muted">@field.description</small> 280 } 281 </label> 282 <input class="@getClassList( field.classList, field.type )" id="@field.id" name="@field.name" placeholder="@field.placeholder" type="date" value="@field.value"> 283 </fieldset> 284 } 285286 else if ( field.type == "file" ) 287 { 288 <fieldset class="form-group"> 289 <label class="form-control-label" for="@field.id"> 290 @field.title @getRequiredSymbol( field.required ) 291 </label> 292 <p class="@getClassList( field.classList, field.type )">@field.html</p> 293 </fieldset> 294 } 295296 else if ( field.type == "hidden" ) 297 { 298 <input class="@getClassList( field.classList, field.type )" id="@field.id" name="@field.name" type="hidden" value="@field.value"> 299 } 300 else if ( field.type == "submit" ) 301 { 302303 if (hasReCaptcha) 304 { 305 string siteKey = SystemConfiguration.Instance.GetValue("/Globalsettings/Co3.MCH/ReCaptcha/SiteKey"); 306 string secretKey = SystemConfiguration.Instance.GetValue("/Globalsettings/Co3.MCH/ReCaptcha/SecretKey"); 307308 <div class="form-group d-flex"> 309 <div class="mr-3"> 310 <button class="btn @getClassList( field.classList, field.type )" type="submit">@field.title</button> 311 </div> 312 <div> 313 <div class="g-recaptcha" data-sitekey="@siteKey"></div> 314 <input type="text" name="reCAPTCHA" class="recaptcha-hidden" required style="opacity:0.001;position: absolute;width:1px;height:1px;overflow: hidden;"/> 315 </div> 316 </div> 317318 <style> 319 .g-recaptcha.has-error > div { 320 border: 1px solid #d93025; 321 } 322 </style> 323 } 324 else 325 { 326 <fieldset class="form-group"> 327 <button class="btn @getClassList( field.classList, field.type )" type="submit">@field.title</button> 328 </fieldset> 329 } 330 } 331 else if ( field.type == "text" ) 332 { 333 <div class="form-group"> 334 <p class="@getClassList( field.classList, field.type )">@field.html</p> 335 @if ( field.description != "" ) 336 { 337 <p class="form-text mb-0 small text-muted">@field.description</p> 338 } 339 </div> 340 } 341 else 342 { 343 <fieldset class="form-group"> 344 Field type not suported: @field.type 345 @if ( field.title != "" ) 346 { 347 <label class="form-control-label" for="@field.id">@field.title</label> 348 } 349 @field.html 350 @if ( field.description != "" ) 351 { 352 <small class="form-text text-muted">@field.description</small> 353 } 354 </fieldset> 355 } 356 } 357 <script> 358 e4.data.set('@string.Format( "forms.dwSpamScripts.{0}", form.id )', @form.scriptSpamControl); 359 </script> 360 </form> 361 } 362
Tak for din henvendelse
Vi tager kontakt til dig snarest

Number of employees
100+
Locations
Køge, Danmark
Stockholm, Sverige
Schönkirchen, Tyskland
Find us at
Delfi Technologies is a European IT company that develops and sells barcode solutions for a wide range of industries. The company has grown significantly in recent years and more than 130 employees with offices in Denmark, Sweden, Norway, Germany, Italy and Vietnam.
At Delfi Technologies, we deliver innovative barcode solutions with proprietary software – which optimizes our customers’ business and competitiveness. We have more than 33 years of experience with barcodes and data capture, including inventory management and store solutions that ensure the necessary omnichannel foundation.
Our expertise covers solutions with, among other things, handheld terminals and PDAs, barcode scanners, receipt printers, label printers, POS systems, RFID, etc. Since 1988, we have provided software solutions and the right combination of hardware for the store, warehouse, industry and healthcare sector.
Company profiles as well as specialties and areas of interest are filled out and added by the suppliers themselves and are not based on knowledge or assessment from Foodexpo.










