Create Account For Admins

Create Account For Admins

Error compiling template "Designs/VisionSpring/UserManagement/CreateProfile/CreateUserAccount.cshtml"
Line 7218: 'User.GetCurrentUser()' is obsolete: 'Use Current() with PagePermissionLevels instead.'
Line 7442: The variable 'alternativeTemplate' is assigned but its value is never used
Line 7759: 'Currency.Format(double, bool)' is obsolete: 'Use Ecommerce.Services.Currencies.Format instead'
Line 9025: 'Currency.Format(double, bool)' is obsolete: 'Use Ecommerce.Services.Currencies.Format instead'
Line 9033: 'Currency.Format(double, bool)' is obsolete: 'Use Ecommerce.Services.Currencies.Format instead'
Line 9067: 'Currency.Format(double, bool)' is obsolete: 'Use Ecommerce.Services.Currencies.Format instead'
Line 10011: 'Currency.Format(double, bool)' is obsolete: 'Use Ecommerce.Services.Currencies.Format instead'
Line 11684: The name 'RenderUserCurrencySelector' does not exist in the current context

1 //------------------------------------------------------------------------------ 2 // <auto-generated> 3 // This code was generated by a tool. 4 // Runtime Version:4.0.30319.42000 5 // 6 // Changes to this file may cause incorrect behavior and will be lost if 7 // the code is regenerated. 8 // </auto-generated> 9 //------------------------------------------------------------------------------ 10 11 namespace CompiledRazorTemplates.Dynamic { 12 13 #line 2556 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 14 using System; 15 16 #line default 17 #line hidden 18 19 #line 2557 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 20 using System.Collections.Generic; 21 22 #line default 23 #line hidden 24 25 #line 2558 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 26 using System.Linq; 27 28 #line default 29 #line hidden 30 31 #line 2555 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 32 using Dynamicweb.Rendering; 33 34 #line default 35 #line hidden 36 37 #line 2562 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 38 using Dna.Frontend.Forms; 39 40 #line default 41 #line hidden 42 43 #line 2564 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 44 using Dna.Frontend.UI; 45 46 #line default 47 #line hidden 48 49 #line 2563 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 50 using Dna.Validation; 51 52 #line default 53 #line hidden 54 55 #line 2566 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 56 using Dynamicweb.Core; 57 58 #line default 59 #line hidden 60 61 #line 1776 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 62 using Dynamicweb.Forms; 63 64 #line default 65 #line hidden 66 67 #line 14 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 68 using System.Runtime.InteropServices; 69 70 #line default 71 #line hidden 72 73 #line 2565 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 74 using Dna.UrlServices; 75 76 #line default 77 #line hidden 78 79 #line 18 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 80 using Dynamicweb.Content; 81 82 #line default 83 #line hidden 84 85 #line 20 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 86 using Lucene.Net.Util; 87 88 #line default 89 #line hidden 90 91 #line 1086 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 92 using System.Collections.Specialized; 93 94 #line default 95 #line hidden 96 97 #line 26 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 98 using System.IO; 99 100 #line default 101 #line hidden 102 103 #line 2559 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 104 using System.Web; 105 106 #line default 107 #line hidden 108 109 #line 266 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 110 using System.Text.RegularExpressions; 111 112 #line default 113 #line hidden 114 115 #line 2561 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 116 using Dna.Frontend; 117 118 #line default 119 #line hidden 120 121 #line 2570 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 122 using Dynamicweb.Security.UserManagement; 123 124 #line default 125 #line hidden 126 127 #line 2560 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 128 using System.Web.Script.Serialization; 129 130 #line default 131 #line hidden 132 133 #line 2567 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 134 using Dynamicweb.Ecommerce; 135 136 #line default 137 #line hidden 138 139 #line 2568 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 140 using Dynamicweb.Ecommerce.Orders; 141 142 #line default 143 #line hidden 144 145 #line 2569 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 146 using Dynamicweb.Ecommerce.Orders.SalesDiscounts; 147 148 #line default 149 #line hidden 150 151 152 public class RazorEngine_7f76848898f849febc506c49d318c8e6 : RazorTemplateBase<RazorTemplateModel<Template>> { 153 154 #line hidden 155 156 #line 33 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 157 158 159 #region Css functions 160 161 public static string GetPalletColorNumber(int number = 0) 162 { 163 switch (number) 164 { 165 case 1: 166 return "#666666"; 167 case 2: 168 return "#333333"; 169 default: 170 return "#ffffff"; 171 } 172 } 173 174 public static string GetFontFamilyNumber(int number = 0) 175 { 176 switch (number) 177 { 178 case 1: 179 return "font-family: Arial, sans-serif;"; 180 default: 181 return "font-family: Helvetica, Arial, sans-serif;"; 182 } 183 } 184 185 public static string GetFontSize(int fontSize = 0) 186 { 187 return fontSize >= 0 ? string.Concat("font-size: ", fontSize, "px;") : "font-size: 14px"; 188 } 189 190 #endregion Css functions 191 192 #region Icon functions 193 194 public static string GetIcon(string cssPartialClass, string label = "", string position = "") 195 { 196 var icon = "<i class='fa " + cssPartialClass + "'></i>"; 197 var spacing = string.Empty; 198 199 if (!label.IsNullOrEmpty()) 200 { 201 spacing = "<text>&nbsp;</text>"; 202 } 203 204 if (cssPartialClass.IsNullOrEmpty()) return label; 205 if (position == IconPosition.Left.ToString() || position.IsNullOrEmpty()) 206 { 207 return icon + spacing + label; 208 } 209 return label + spacing + icon; 210 } 211 212 #endregion Icon functions 213 214 #region Url functions 215 216 public string GetCustomerCenterSortUrl(string field, string listType = "Order") 217 { 218 var paragraphId = Pageview.CurrentParagraph.ID.ToString(); 219 var sortDirectionParameter = "CCSort" + listType + paragraphId; 220 var sortFieldParameter = "CC" + listType + "ByField" + paragraphId; 221 var sortDirection = Sanitize.Parameter(sortDirectionParameter) == "Desc" || Sanitize.Parameter(sortFieldParameter) == field ? "Desc" : "Asc"; 222 223 if (field.IsNotNullOrEmpty()) 224 { 225 return "/Default.aspx?ID=" + Pageview.Page.ID + "&" + sortFieldParameter + "=" + field + "&" + sortDirectionParameter + "=" + sortDirection; 226 } 227 228 return string.Empty; 229 } 230 231 public string GetSortFieldParameter(string key, string field = "", string listType = "Order") 232 { 233 var paragraphId = Pageview.CurrentParagraph.ID.ToString(); 234 if (key.IsNullOrEmpty()) throw new NotSupportedException("'key' is a required field"); 235 236 switch (key) 237 { 238 case "name": 239 var parameter = "CC" + listType + "ByField" + paragraphId; 240 return Sanitize.Parameter(parameter); 241 case "value": 242 if (field.IsNullOrEmpty()) return "asc"; 243 var sortDirectionParameter = "CCSort" + listType + paragraphId; 244 var sortFieldParameter = "CC" + listType + "ByField" + paragraphId; 245 return Sanitize.Parameter(sortDirectionParameter) == "Desc" || Sanitize.Parameter(sortFieldParameter) == field ? "Desc" : "Asc"; 246 default: 247 throw new NotSupportedException(string.Format("The key '{0}' in not supported", key)); 248 } 249 } 250 251 #endregion Url functions 252 253 #region Address functions 254 255 public string GetAddressFormatted(string address, string address2, string city, string zip, string region, string country, bool getRegionName = false, bool getCountryName = false, bool addLineBreakBetweenAddressAndCity = false, string splitBetweenRegionAndCountry = " ") 256 { 257 var formattedAddress = address; 258 259 if (address2.IsNotNullOrEmpty()) 260 { 261 formattedAddress += " " + address2; 262 } 263 if (addLineBreakBetweenAddressAndCity && (city + region + country).IsNotNullOrEmpty()) 264 { 265 formattedAddress += "<br/>"; 266 } 267 if (city.IsNotNullOrEmpty()) 268 { 269 formattedAddress += " " + city + ", "; 270 } 271 if (zip.IsNotNullOrEmpty()) 272 { 273 formattedAddress += zip; 274 } 275 if (region.IsNotNullOrEmpty()) 276 { 277 int index1 = region.IndexOf(','); 278 if (index1 != -1) 279 { 280 region = region.Remove(index1, 1); 281 } 282 if (getRegionName && country.IsNotNullOrEmpty()) 283 { 284 var regionName = Dynamicweb.Ecommerce.Services.Countries.GetRegions(country).First(c => c.RegionCode == region).Name; 285 region = regionName.IsNotNullOrEmpty() ? regionName : region; 286 } 287 formattedAddress += " " + region; 288 } 289 290 if (country.IsNullOrEmpty()) 291 { 292 return formattedAddress; 293 } 294 295 formattedAddress += splitBetweenRegionAndCountry.IsNotNullOrEmpty() ? splitBetweenRegionAndCountry : " "; 296 if (getCountryName && country.IsNotNullOrEmpty()) 297 { 298 var countryName = Dynamicweb.Ecommerce.Services.Countries.GetCountry(country) != null ? Dynamicweb.Ecommerce.Services.Countries.GetCountry(country).Name : country; 299 country = countryName.IsNotNullOrEmpty() ? countryName : country; 300 } 301 formattedAddress += country; 302 303 return formattedAddress; 304 } 305 306 #endregion Address functions 307 308 #region Generic functions 309 310 private static int FormatInteger(object value) 311 { 312 int num; 313 if (value == null) 314 { 315 value = string.Empty; 316 } 317 return int.TryParse(value.ToString(), out num) ? num : 0; 318 } 319 320 public static string GetAttributes(Dictionary<string, string> attributes) 321 { 322 if (attributes == null || !attributes.Any()) 323 { 324 return string.Empty; 325 } 326 327 var attributesConcat = attributes.Aggregate(string.Empty, (current, attribute) => current + GetAttribute(attribute.Key, attribute.Value)); 328 329 return attributesConcat; 330 } 331 332 public static string GetAttribute(string attributeName, string attributeValue) 333 { 334 if (attributeValue.IsNullOrEmpty()) return string.Empty; 335 return " " + attributeName + "=\"" + attributeValue + "\""; 336 } 337 338 #endregion Generic functions 339 340 #region Files functions 341 342 const string ImagesListTitleKey = "title"; 343 const string ImagesListImageKey = "image"; 344 345 public List<Dictionary<string, string>> GetFilesInFolder(string defaultImage, string searchPattern, bool addDefaultImage = true) 346 { 347 var imagesList = new List<Dictionary<string, string>>(); 348 var mapPath = HttpContext.Current.Server.MapPath(defaultImage); 349 var folderServerPath = Path.GetDirectoryName(mapPath); 350 351 if (!Directory.Exists(folderServerPath)) return imagesList; 352 353 // Get Images from folder 354 const string temp = @"\"; 355 const string metafield = "title"; 356 var metadata = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(defaultImage); 357 var title = metadata != null && metadata.GetValue(metafield).IsNullOrEmpty() ? metadata.GetValue(metafield) : GetString("Ecom:Product.Name"); 358 var folderWebPath = defaultImage.Contains("/") ? defaultImage.Substring(0, defaultImage.LastIndexOf("/")) : defaultImage; 359 360 var dctImage = new Dictionary<string, string>(); 361 362 if (addDefaultImage && File.Exists(mapPath)) 363 { 364 dctImage.Add(ImagesListTitleKey, title); 365 dctImage.Add(ImagesListImageKey, defaultImage); 366 imagesList.Add(dctImage); 367 } 368 369 foreach (var file in Directory.GetFiles(folderServerPath, searchPattern)) 370 { 371 dctImage = new Dictionary<string, string>(); 372 var image = folderWebPath + "/" + file.Substring(file.LastIndexOf(temp, StringComparison.Ordinal) + 1, file.Length - file.LastIndexOf(temp, StringComparison.Ordinal) - 1); 373 metadata = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(image); 374 title = metadata != null && metadata.GetValue(metafield).IsNullOrEmpty() ? metadata.GetValue(metafield) : GetString("Ecom:Product.Name"); 375 376 dctImage.Add(ImagesListTitleKey, title); 377 dctImage.Add(ImagesListImageKey, image); 378 imagesList.Add(dctImage); 379 } 380 381 return imagesList; 382 } 383 384 #endregion Files functions 385 386 #line default 387 #line hidden 388 389 390 #line 273 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 391 392 393 #region Form Field functions 394 395 public string GetWrapperStart(bool includeWrapper, FieldType fieldType, string htmlElement, bool isRequired = false, string fieldClass = "") 396 { 397 if (!includeWrapper || htmlElement.IsNullOrEmpty()) return string.Empty; 398 var cssClass = new List<string> {fieldType.ToString().ToLower(), fieldClass}; 399 if (isRequired) 400 { 401 cssClass.Add("mandatory"); 402 } 403 return "<" + htmlElement + " class='" + string.Join(" ", cssClass.ToArray()) + "'>"; 404 } 405 406 public string GetWrapperEnd(bool includeWrapper, string htmlElement) 407 { 408 return !includeWrapper ? string.Empty : "</" + htmlElement + ">"; 409 } 410 411 public string GetControlWithRequiredClass(bool isRequired, string control) 412 { 413 if (!isRequired) return control; 414 var regex = new Regex(Regex.Escape(" ")); 415 return regex.Replace(control, " required class=\"mandatory\" ", 1); 416 } 417 418 public static string GetAttributes(FieldSettings settings, bool returnFieldType = true) 419 { 420 var attributes = string.Empty; 421 if (returnFieldType) 422 { 423 var fieldType = string.Empty; 424 switch (settings.Type) 425 { 426 case FieldType.Select: 427 break; 428 case FieldType.Checkboxlist: 429 fieldType = FieldType.Checkbox.ToString().ToLower(); 430 break; 431 case FieldType.DatetimeLocal: 432 fieldType = "datetime-local"; 433 break; 434 default: 435 fieldType = settings.Type.ToString().ToLower(); 436 break; 437 } 438 if (!settings.Attributes.ContainsKey("type")) 439 { 440 attributes += GetAttribute("type", fieldType); 441 } 442 } 443 attributes += GetAttribute("class", settings.CssClass); 444 attributes += GetAttribute("id", settings.Id); 445 attributes += GetAttribute("name", settings.SystemName); 446 attributes += GetAttribute("value", settings.Value); 447 if (settings.Type == FieldType.Email || settings.Type == FieldType.Password || settings.Type == FieldType.Search || settings.Type == FieldType.Tel || settings.Type == FieldType.Text || settings.Type == FieldType.Url) 448 { 449 // Only works wit these types 450 attributes += GetAttribute("placeholder", settings.Placeholder); 451 } 452 if (settings.Type != FieldType.Checkboxlist) 453 { 454 attributes += GetAttribute("required", settings.IsRequired); 455 } 456 attributes += GetAttributes(settings.Attributes); 457 return attributes; 458 } 459 460 public static string GetAttributes(FieldOption optionSettings) 461 { 462 var attributes = string.Empty; 463 attributes += GetAttribute("name", optionSettings.SystemName); 464 attributes += GetAttribute("value", optionSettings.Value); 465 attributes += GetAttributes(optionSettings.Attributes); 466 return attributes; 467 } 468 469 public static string GetAttribute(string attributeName, bool attributeValue) 470 { 471 if (!attributeValue) return string.Empty; 472 return " " + attributeName + "=\"" + attributeName + "\""; 473 } 474 475 #endregion 476 477 const string HighlightedCountriesSplit = "----------------"; 478 479 internal readonly List<string> HighlightedCountries = new List<string> 480 { 481 "US", 482 HighlightedCountriesSplit 483 }; 484 485 486 #line default 487 #line hidden 488 489 490 #line 370 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 491 public RazorEngine.Templating.TemplateWriter RenderField(FieldSettings settings) 492 { 493 #line default 494 #line hidden 495 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 496 497 #line 371 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 498 499 switch (settings.Type) 500 { 501 case FieldType.Button: 502 case FieldType.Reset: 503 case FieldType.Submit: 504 505 506 #line default 507 #line hidden 508 509 #line 377 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 510 WriteTo(__razor_helper_writer, RenderButtonField(settings)); 511 512 513 #line default 514 #line hidden 515 516 #line 377 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 517 518 break; 519 case FieldType.Checkbox: 520 521 522 #line default 523 #line hidden 524 525 #line 380 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 526 WriteTo(__razor_helper_writer, RenderCheckboxField(settings)); 527 528 529 #line default 530 #line hidden 531 532 #line 380 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 533 534 break; 535 case FieldType.Image: 536 537 538 #line default 539 #line hidden 540 541 #line 383 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 542 WriteTo(__razor_helper_writer, RenderImageField(settings)); 543 544 545 #line default 546 #line hidden 547 548 #line 383 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 549 550 break; 551 case FieldType.Checkboxlist: 552 case FieldType.Radio: 553 554 555 #line default 556 #line hidden 557 558 #line 387 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 559 WriteTo(__razor_helper_writer, RenderRadioOrCheckboxListField(settings)); 560 561 562 #line default 563 #line hidden 564 565 #line 387 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 566 567 break; 568 case FieldType.Select: 569 570 571 #line default 572 #line hidden 573 574 #line 390 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 575 WriteTo(__razor_helper_writer, RenderSelectField(settings)); 576 577 578 #line default 579 #line hidden 580 581 #line 390 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 582 583 break; 584 case FieldType.Color: 585 case FieldType.Date: 586 case FieldType.DatetimeLocal: 587 case FieldType.Email: 588 case FieldType.File: 589 case FieldType.Hidden: 590 case FieldType.Password: 591 case FieldType.Month: 592 case FieldType.Number: 593 case FieldType.Range: 594 case FieldType.Search: 595 case FieldType.Tel: 596 case FieldType.Text: 597 case FieldType.Time: 598 case FieldType.Url: 599 case FieldType.Week: 600 601 602 #line default 603 #line hidden 604 605 #line 408 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 606 WriteTo(__razor_helper_writer, RenderInputField(settings)); 607 608 609 #line default 610 #line hidden 611 612 #line 408 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 613 614 break; 615 case FieldType.Textarea: 616 617 618 #line default 619 #line hidden 620 621 #line 411 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 622 WriteTo(__razor_helper_writer, RenderTextareaField(settings)); 623 624 625 #line default 626 #line hidden 627 628 #line 411 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 629 630 break; 631 case FieldType.Textstring: 632 633 634 #line default 635 #line hidden 636 637 #line 414 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 638 WriteTo(__razor_helper_writer, RenderTextStringField(settings)); 639 640 641 #line default 642 #line hidden 643 644 #line 414 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 645 646 break; 647 case FieldType.Divider: 648 649 650 #line default 651 #line hidden 652 653 #line 417 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 654 WriteTo(__razor_helper_writer, RenderDividerField(settings)); 655 656 657 #line default 658 #line hidden 659 660 #line 417 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 661 662 break; 663 case FieldType.Datetime: 664 665 666 #line default 667 #line hidden 668 669 #line 420 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 670 WriteTo(__razor_helper_writer, RenderDateTimeField(settings)); 671 672 673 #line default 674 #line hidden 675 676 #line 420 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 677 678 break; 679 case FieldType.Unknown: 680 681 682 #line default 683 #line hidden 684 WriteLiteralTo(__razor_helper_writer, " "); 685 686 WriteLiteralTo(__razor_helper_writer, "<div style=\"color: #f00\">Undefined FieldType: <strong>"); 687 688 689 #line 423 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 690 WriteTo(__razor_helper_writer, settings.Type); 691 692 693 #line default 694 #line hidden 695 WriteLiteralTo(__razor_helper_writer, "</strong></div>\r\n"); 696 697 698 #line 424 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 699 break; 700 default: 701 throw new NotSupportedException(string.Format("Unsupported Field Type: {0}.", settings.Type.ToString())); 702 } 703 704 705 #line default 706 #line hidden 707 }); 708 709 #line 428 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 710 } 711 #line default 712 #line hidden 713 714 715 #line 430 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 716 public RazorEngine.Templating.TemplateWriter RenderCheckboxField(FieldSettings settings) 717 { 718 #line default 719 #line hidden 720 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 721 722 #line 431 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 723 724 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 725 { 726 settings.Assert(FieldType.Checkbox); 727 728 729 730 #line default 731 #line hidden 732 733 #line 436 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 734 WriteTo(__razor_helper_writer, RenderFieldHeader(settings, false)); 735 736 737 #line default 738 #line hidden 739 740 #line 436 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 741 742 743 if (settings.Label.IsNotNullOrEmpty()) 744 { 745 var possibleClasses = new List<string> {settings.Type.ToString().ToLower(), settings.LabelCssClass}; 746 var cssClass = string.Join(" ", possibleClasses.Where(s => s.IsNotNullOrEmpty())); 747 748 749 750 #line default 751 #line hidden 752 753 #line 443 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 754 WriteTo(__razor_helper_writer, "<" + "label class=" + cssClass + " " + GetAttribute("for", settings.Id) + ">"); 755 756 757 #line default 758 #line hidden 759 760 #line 443 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 761 762 if (settings.Control.IsNotNullOrEmpty()) 763 { 764 765 766 #line default 767 #line hidden 768 769 #line 446 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 770 WriteTo(__razor_helper_writer, settings.Control); 771 772 773 #line default 774 #line hidden 775 776 #line 446 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 777 778 } 779 else 780 { 781 782 783 #line default 784 #line hidden 785 786 #line 450 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 787 WriteTo(__razor_helper_writer, RenderHtmlField("input", settings)); 788 789 790 #line default 791 #line hidden 792 793 #line 450 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 794 795 } 796 797 798 #line default 799 #line hidden 800 WriteLiteralTo(__razor_helper_writer, " <span>\r\n"); 801 802 WriteLiteralTo(__razor_helper_writer, " "); 803 804 805 #line 453 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 806 WriteTo(__razor_helper_writer, settings.Label); 807 808 809 #line default 810 #line hidden 811 WriteLiteralTo(__razor_helper_writer, "\r\n </span>\r\n"); 812 813 814 #line 455 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 815 816 817 #line default 818 #line hidden 819 820 #line 455 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 821 WriteTo(__razor_helper_writer, "<" + "/label" + ">"); 822 823 824 #line default 825 #line hidden 826 827 #line 455 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 828 829 } 830 else 831 { 832 if (settings.Control.IsNotNullOrEmpty()) 833 { 834 835 836 #line default 837 #line hidden 838 839 #line 461 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 840 WriteTo(__razor_helper_writer, settings.Control); 841 842 843 #line default 844 #line hidden 845 846 #line 461 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 847 848 } 849 else 850 { 851 852 853 #line default 854 #line hidden 855 856 #line 465 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 857 WriteTo(__razor_helper_writer, RenderHtmlField("input", settings)); 858 859 860 #line default 861 #line hidden 862 863 #line 465 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 864 865 } 866 } 867 868 869 870 #line default 871 #line hidden 872 873 #line 469 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 874 WriteTo(__razor_helper_writer, RenderFieldFooter(settings)); 875 876 877 #line default 878 #line hidden 879 880 #line 469 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 881 882 } 883 884 885 #line default 886 #line hidden 887 }); 888 889 #line 471 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 890 } 891 #line default 892 #line hidden 893 894 895 #line 473 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 896 public RazorEngine.Templating.TemplateWriter RenderTextareaField(FieldSettings settings) 897 { 898 #line default 899 #line hidden 900 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 901 902 #line 474 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 903 904 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 905 { 906 settings.Assert(FieldType.Textarea); 907 908 909 910 #line default 911 #line hidden 912 913 #line 479 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 914 WriteTo(__razor_helper_writer, RenderFieldHeader(settings)); 915 916 917 #line default 918 #line hidden 919 920 #line 479 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 921 922 923 if (settings.Control.IsNotNullOrEmpty()) 924 { 925 926 927 #line default 928 #line hidden 929 930 #line 483 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 931 WriteTo(__razor_helper_writer, GetControlWithRequiredClass(settings.IsRequired, settings.Control)); 932 933 934 #line default 935 #line hidden 936 937 #line 483 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 938 939 } 940 else 941 { 942 if (!settings.Attributes.ContainsKey("rows")) 943 { 944 settings.Attributes.Add("rows", "6"); 945 } 946 if (!settings.Attributes.ContainsKey("cols")) 947 { 948 settings.Attributes.Add("cols", "50"); 949 } 950 951 952 #line default 953 #line hidden 954 955 #line 495 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 956 WriteTo(__razor_helper_writer, RenderHtmlField("textarea", settings, false)); 957 958 959 #line default 960 #line hidden 961 962 #line 495 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 963 964 } 965 966 967 968 #line default 969 #line hidden 970 971 #line 498 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 972 WriteTo(__razor_helper_writer, RenderFieldFooter(settings)); 973 974 975 #line default 976 #line hidden 977 978 #line 498 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 979 980 } 981 982 983 #line default 984 #line hidden 985 }); 986 987 #line 500 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 988 } 989 #line default 990 #line hidden 991 992 993 #line 502 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 994 public RazorEngine.Templating.TemplateWriter RenderRadioOrCheckboxListField(FieldSettings settings) 995 { 996 #line default 997 #line hidden 998 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 999 1000 #line 503 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1001 1002 if (settings.LoopOptions.Any() || settings.FieldOptionsList.Any() || settings.Control.IsNotNullOrEmpty()) 1003 { 1004 var optionCount = 0; 1005 1006 settings.Assert(FieldType.Radio); 1007 1008 1009 1010 #line default 1011 #line hidden 1012 1013 #line 510 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1014 WriteTo(__razor_helper_writer, RenderFieldHeader(settings)); 1015 1016 1017 #line default 1018 #line hidden 1019 1020 #line 510 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1021 1022 1023 if (settings.LoopOptions.Any()) 1024 { 1025 settings.CssClass = settings.Type.ToString().ToLower(); 1026 foreach (var option in settings.LoopOptions) 1027 { 1028 optionCount++; 1029 settings.Id = settings.SystemName + optionCount; 1030 1031 1032 #line default 1033 #line hidden 1034 WriteLiteralTo(__razor_helper_writer, " <label"); 1035 1036 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 18633), Tuple.Create("\"", 18659) 1037 1038 #line 519 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1039 , Tuple.Create(Tuple.Create("", 18641), Tuple.Create<System.Object, System.Int32>(settings.CssClass 1040 1041 #line default 1042 #line hidden 1043 , 18641), false) 1044 ); 1045 1046 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 18660), Tuple.Create("\"", 18678) 1047 1048 #line 519 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1049 , Tuple.Create(Tuple.Create("", 18666), Tuple.Create<System.Object, System.Int32>(settings.Id 1050 1051 #line default 1052 #line hidden 1053 , 18666), false) 1054 ); 1055 1056 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1057 1058 WriteLiteralTo(__razor_helper_writer, " "); 1059 1060 1061 #line 520 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1062 WriteTo(__razor_helper_writer, RenderHtmlField("input", settings)); 1063 1064 1065 #line default 1066 #line hidden 1067 WriteLiteralTo(__razor_helper_writer, "\r\n <span>"); 1068 1069 1070 #line 521 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1071 WriteTo(__razor_helper_writer, option.GetString(settings.LabelLoopTag)); 1072 1073 1074 #line default 1075 #line hidden 1076 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </label>\r\n"); 1077 1078 1079 #line 523 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1080 } 1081 } 1082 else if (settings.FieldOptionsList.Any()) 1083 { 1084 foreach (var option in settings.FieldOptionsList) 1085 { 1086 optionCount++; 1087 option.Id = option.SystemName + optionCount; 1088 option.CssClass = settings.Type.ToString().ToLower(); 1089 1090 1091 1092 #line default 1093 #line hidden 1094 WriteLiteralTo(__razor_helper_writer, " <label"); 1095 1096 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 19267), Tuple.Create("\"", 19291) 1097 1098 #line 533 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1099 , Tuple.Create(Tuple.Create("", 19275), Tuple.Create<System.Object, System.Int32>(option.CssClass 1100 1101 #line default 1102 #line hidden 1103 , 19275), false) 1104 ); 1105 1106 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 19292), Tuple.Create("\"", 19308) 1107 1108 #line 533 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1109 , Tuple.Create(Tuple.Create("", 19298), Tuple.Create<System.Object, System.Int32>(option.Id 1110 1111 #line default 1112 #line hidden 1113 , 19298), false) 1114 ); 1115 1116 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1117 1118 1119 #line 534 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1120 1121 1122 #line default 1123 #line hidden 1124 1125 #line 534 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1126 if (settings.Type == FieldType.Checkboxlist) 1127 { 1128 1129 1130 #line default 1131 #line hidden 1132 1133 #line 536 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1134 WriteTo(__razor_helper_writer, RenderHtmlField("input", option, FieldType.Checkbox)); 1135 1136 1137 #line default 1138 #line hidden 1139 1140 #line 536 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1141 ; 1142 } 1143 else 1144 { 1145 1146 1147 #line default 1148 #line hidden 1149 1150 #line 540 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1151 WriteTo(__razor_helper_writer, RenderHtmlField("input", option, settings.Type)); 1152 1153 1154 #line default 1155 #line hidden 1156 1157 #line 540 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1158 1159 } 1160 1161 #line default 1162 #line hidden 1163 WriteLiteralTo(__razor_helper_writer, "\r\n <span>"); 1164 1165 1166 #line 542 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1167 WriteTo(__razor_helper_writer, option.Label); 1168 1169 1170 #line default 1171 #line hidden 1172 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </label>\r\n"); 1173 1174 1175 #line 544 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1176 } 1177 } 1178 else if (settings.Control.IsNotNullOrEmpty()) 1179 { 1180 1181 1182 #line default 1183 #line hidden 1184 1185 #line 548 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1186 WriteTo(__razor_helper_writer, settings.Control); 1187 1188 1189 #line default 1190 #line hidden 1191 1192 #line 548 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1193 1194 } 1195 1196 1197 1198 #line default 1199 #line hidden 1200 1201 #line 551 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1202 WriteTo(__razor_helper_writer, RenderFieldFooter(settings)); 1203 1204 1205 #line default 1206 #line hidden 1207 1208 #line 551 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1209 1210 } 1211 1212 1213 #line default 1214 #line hidden 1215 }); 1216 1217 #line 553 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1218 } 1219 #line default 1220 #line hidden 1221 1222 1223 #line 555 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1224 public RazorEngine.Templating.TemplateWriter RenderInputField(FieldSettings settings) 1225 { 1226 #line default 1227 #line hidden 1228 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1229 1230 #line 556 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1231 1232 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 1233 { 1234 settings.Assert(FieldType.Text); 1235 1236 1237 1238 #line default 1239 #line hidden 1240 1241 #line 561 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1242 WriteTo(__razor_helper_writer, RenderFieldHeader(settings)); 1243 1244 1245 #line default 1246 #line hidden 1247 1248 #line 561 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1249 1250 1251 if (settings.Control.IsNotNullOrEmpty()) 1252 { 1253 var type = settings.Type.ToString().ToLower(); 1254 if (settings.Type == FieldType.DatetimeLocal) 1255 { 1256 type = "datetime-local"; 1257 } 1258 1259 settings.Control = settings.Control.Replace("type=\"text\"", "type=\"" + type + "\""); 1260 if (settings.Type == FieldType.Password) 1261 { 1262 settings.Control = settings.Control.Replace("input ", "input autocomplete=\"off\" "); 1263 } 1264 1265 1266 #line default 1267 #line hidden 1268 1269 #line 576 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1270 WriteTo(__razor_helper_writer, GetControlWithRequiredClass(settings.IsRequired, settings.Control)); 1271 1272 1273 #line default 1274 #line hidden 1275 1276 #line 576 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1277 1278 } 1279 else 1280 { 1281 if (settings.Type == FieldType.Password && !settings.Attributes.ContainsKey("autocomplete")) 1282 { 1283 settings.Attributes.Add("autocomplete", "off"); 1284 } 1285 1286 1287 #line default 1288 #line hidden 1289 1290 #line 584 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1291 WriteTo(__razor_helper_writer, RenderHtmlField("input", settings)); 1292 1293 1294 #line default 1295 #line hidden 1296 1297 #line 584 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1298 1299 } 1300 1301 1302 1303 #line default 1304 #line hidden 1305 1306 #line 587 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1307 WriteTo(__razor_helper_writer, RenderFieldFooter(settings)); 1308 1309 1310 #line default 1311 #line hidden 1312 1313 #line 587 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1314 1315 } 1316 1317 1318 #line default 1319 #line hidden 1320 }); 1321 1322 #line 589 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1323 } 1324 #line default 1325 #line hidden 1326 1327 1328 #line 591 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1329 public RazorEngine.Templating.TemplateWriter RenderDateTimeField(FieldSettings settings) 1330 { 1331 #line default 1332 #line hidden 1333 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1334 1335 #line 592 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1336 1337 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 1338 { 1339 settings.Assert(FieldType.Datetime); 1340 settings.Attributes = new Dictionary<string, string> 1341 { 1342 {"placeholder", "&#xf073;"} 1343 }; 1344 1345 1346 1347 #line default 1348 #line hidden 1349 1350 #line 601 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1351 WriteTo(__razor_helper_writer, RenderFieldHeader(settings)); 1352 1353 1354 #line default 1355 #line hidden 1356 1357 #line 601 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1358 1359 1360 if (settings.Control.IsNotNullOrEmpty()) 1361 { 1362 var type = settings.Type.ToString().ToLower(); 1363 1364 settings.Control = settings.Control.Replace("type=\"text\"", "type=\"" + type + "\""); 1365 1366 1367 #line default 1368 #line hidden 1369 1370 #line 608 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1371 WriteTo(__razor_helper_writer, GetControlWithRequiredClass(settings.IsRequired, settings.Control)); 1372 1373 1374 #line default 1375 #line hidden 1376 1377 #line 608 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1378 1379 } 1380 else 1381 { 1382 1383 1384 #line default 1385 #line hidden 1386 1387 #line 612 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1388 WriteTo(__razor_helper_writer, RenderHtmlField("input", settings)); 1389 1390 1391 #line default 1392 #line hidden 1393 1394 #line 612 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1395 1396 } 1397 1398 1399 1400 #line default 1401 #line hidden 1402 1403 #line 615 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1404 WriteTo(__razor_helper_writer, RenderFieldFooter(settings)); 1405 1406 1407 #line default 1408 #line hidden 1409 1410 #line 615 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1411 1412 } 1413 1414 1415 #line default 1416 #line hidden 1417 }); 1418 1419 #line 617 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1420 } 1421 #line default 1422 #line hidden 1423 1424 1425 #line 619 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1426 public RazorEngine.Templating.TemplateWriter RenderSelectField(FieldSettings settings) 1427 { 1428 #line default 1429 #line hidden 1430 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1431 1432 #line 620 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1433 1434 const int limit = 10; 1435 1436 settings.Assert(FieldType.Select); 1437 1438 if (settings.CssClass.ToLower().Contains("country")) 1439 { 1440 1441 1442 #line default 1443 #line hidden 1444 1445 #line 627 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1446 WriteTo(__razor_helper_writer, RenderCountriesDropdownField(settings, true, settings.CssClass.ToLower().Contains("highlights"))); 1447 1448 1449 #line default 1450 #line hidden 1451 1452 #line 627 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1453 1454 } 1455 else 1456 { 1457 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty() || settings.FieldOptionsList.Any() || settings.ValuesList.Any()) 1458 { 1459 1460 1461 #line default 1462 #line hidden 1463 1464 #line 633 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1465 WriteTo(__razor_helper_writer, RenderFieldHeader(settings)); 1466 1467 1468 #line default 1469 #line hidden 1470 1471 #line 633 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1472 1473 1474 var optionsCount = 0; 1475 if (settings.Control.IsNotNullOrEmpty()) 1476 { 1477 optionsCount = Regex.Matches(settings.Control, "option ").Count; 1478 1479 if (optionsCount > limit) 1480 { 1481 settings.Control = settings.Control.Replace("select ", "select data-live-search=\"true\" "); 1482 } 1483 1484 1485 #line default 1486 #line hidden 1487 1488 #line 644 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1489 WriteTo(__razor_helper_writer, GetControlWithRequiredClass(settings.IsRequired, settings.Control)); 1490 1491 1492 #line default 1493 #line hidden 1494 1495 #line 644 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1496 1497 } 1498 else 1499 { 1500 optionsCount = settings.FieldOptionsList.Count + settings.ValuesList.Count; 1501 1502 if (!settings.Attributes.ContainsKey("multiple") && !settings.Attributes.ContainsKey("data-live-search") && optionsCount > limit) 1503 { 1504 settings.Attributes.Add("data-live-search", "true"); 1505 } 1506 1507 1508 #line default 1509 #line hidden 1510 1511 #line 654 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1512 WriteTo(__razor_helper_writer, RenderHtmlField("select", settings)); 1513 1514 1515 #line default 1516 #line hidden 1517 1518 #line 654 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1519 1520 1521 if (settings.FirstHardcodedOptionLabel.IsNotNullOrEmpty()) 1522 { 1523 1524 1525 #line default 1526 #line hidden 1527 1528 #line 658 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1529 WriteTo(__razor_helper_writer, RenderOption(FieldOption.CreateOption(settings.FirstHardcodedOptionLabel, settings.FirstHardcodedOptionValue, settings.IsFirstHardcodedOptionSelected))); 1530 1531 1532 #line default 1533 #line hidden 1534 1535 #line 658 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1536 1537 } 1538 1539 foreach (var option in settings.FieldOptionsList) 1540 { 1541 1542 1543 #line default 1544 #line hidden 1545 1546 #line 663 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1547 WriteTo(__razor_helper_writer, RenderOption(option)); 1548 1549 1550 #line default 1551 #line hidden 1552 1553 #line 663 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1554 1555 } 1556 foreach (var option in settings.ValuesList) 1557 { 1558 1559 1560 #line default 1561 #line hidden 1562 1563 #line 667 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1564 WriteTo(__razor_helper_writer, RenderOption(FieldOption.CreateOption(option, option))); 1565 1566 1567 #line default 1568 #line hidden 1569 1570 #line 667 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1571 1572 } 1573 1574 1575 1576 #line default 1577 #line hidden 1578 1579 #line 670 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1580 1581 1582 1583 #line default 1584 #line hidden 1585 WriteLiteralTo(__razor_helper_writer, " "); 1586 1587 WriteLiteralTo(__razor_helper_writer, "</select>\r\n"); 1588 1589 1590 #line 672 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1591 } 1592 1593 1594 1595 #line default 1596 #line hidden 1597 1598 #line 674 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1599 WriteTo(__razor_helper_writer, RenderFieldFooter(settings)); 1600 1601 1602 #line default 1603 #line hidden 1604 1605 #line 674 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1606 1607 } 1608 } 1609 1610 1611 #line default 1612 #line hidden 1613 }); 1614 1615 #line 677 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1616 } 1617 #line default 1618 #line hidden 1619 1620 1621 #line 679 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1622 public RazorEngine.Templating.TemplateWriter RenderButtonField(FieldSettings settings) 1623 { 1624 #line default 1625 #line hidden 1626 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1627 1628 #line 680 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1629 1630 settings.Assert(FieldType.Button); 1631 1632 1633 1634 #line default 1635 #line hidden 1636 1637 #line 683 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1638 WriteTo(__razor_helper_writer, RenderFieldHeader(settings, false)); 1639 1640 1641 #line default 1642 #line hidden 1643 1644 #line 683 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1645 1646 1647 if (settings.Control.IsNotNullOrEmpty()) 1648 { 1649 var controlOutput = settings.Control; 1650 switch (settings.Type) 1651 { 1652 case FieldType.Submit: 1653 controlOutput = controlOutput.Replace("input ", "input class='btn btn-default'"); 1654 break; 1655 case FieldType.Reset: 1656 controlOutput = controlOutput.Replace("input ", "input class='btn btn-bg2'"); 1657 break; 1658 default: 1659 throw new NotSupportedException(string.Format("Unsupported Field Type: {0}.", settings.Type.ToString())); 1660 } 1661 1662 1663 #line default 1664 #line hidden 1665 1666 #line 699 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1667 WriteTo(__razor_helper_writer, controlOutput); 1668 1669 1670 #line default 1671 #line hidden 1672 1673 #line 699 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1674 1675 } 1676 else 1677 { 1678 settings.CssClass = settings.CssClass.IsNullOrEmpty() ? "btn btn-default" : "btn " + settings.CssClass; 1679 if (settings.Type == FieldType.Button) 1680 { 1681 1682 1683 #line default 1684 #line hidden 1685 1686 #line 706 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1687 WriteTo(__razor_helper_writer, RenderHtmlField("button", settings)); 1688 1689 1690 #line default 1691 #line hidden 1692 1693 #line 706 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1694 1695 1696 1697 #line default 1698 #line hidden 1699 1700 #line 707 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1701 WriteTo(__razor_helper_writer, settings.Label); 1702 1703 1704 #line default 1705 #line hidden 1706 1707 #line 707 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1708 1709 1710 1711 #line default 1712 #line hidden 1713 WriteLiteralTo(__razor_helper_writer, " "); 1714 1715 WriteLiteralTo(__razor_helper_writer, "</button>\r\n"); 1716 1717 1718 #line 709 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1719 } 1720 else 1721 { 1722 1723 1724 #line default 1725 #line hidden 1726 1727 #line 712 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1728 WriteTo(__razor_helper_writer, RenderHtmlField("input", settings)); 1729 1730 1731 #line default 1732 #line hidden 1733 1734 #line 712 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1735 1736 } 1737 } 1738 1739 1740 1741 #line default 1742 #line hidden 1743 1744 #line 716 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1745 WriteTo(__razor_helper_writer, RenderFieldFooter(settings)); 1746 1747 1748 #line default 1749 #line hidden 1750 1751 #line 716 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1752 1753 1754 1755 #line default 1756 #line hidden 1757 }); 1758 1759 #line 717 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1760 } 1761 #line default 1762 #line hidden 1763 1764 1765 #line 721 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1766 public RazorEngine.Templating.TemplateWriter RenderTextStringField(FieldSettings settings) 1767 { 1768 #line default 1769 #line hidden 1770 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1771 1772 #line 722 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1773 1774 settings.Assert(FieldType.Textstring); 1775 1776 if (settings.Description.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 1777 { 1778 if (settings.Control.IsNotNullOrEmpty()) 1779 { 1780 1781 1782 #line default 1783 #line hidden 1784 1785 #line 729 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1786 WriteTo(__razor_helper_writer, settings.Control); 1787 1788 1789 #line default 1790 #line hidden 1791 1792 #line 729 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1793 1794 } 1795 else 1796 { 1797 1798 1799 #line default 1800 #line hidden 1801 WriteLiteralTo(__razor_helper_writer, " <p"); 1802 1803 WriteLiteralTo(__razor_helper_writer, " class=\"help-block\""); 1804 1805 WriteLiteralTo(__razor_helper_writer, ">"); 1806 1807 1808 #line 733 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1809 WriteTo(__razor_helper_writer, settings.Description); 1810 1811 1812 #line default 1813 #line hidden 1814 WriteLiteralTo(__razor_helper_writer, "</p>\r\n"); 1815 1816 1817 #line 734 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1818 } 1819 } 1820 1821 1822 #line default 1823 #line hidden 1824 }); 1825 1826 #line 736 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1827 } 1828 #line default 1829 #line hidden 1830 1831 1832 #line 738 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1833 public RazorEngine.Templating.TemplateWriter RenderImageField(FieldSettings settings) 1834 { 1835 #line default 1836 #line hidden 1837 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1838 1839 #line 739 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1840 1841 settings.Assert(FieldType.Image); 1842 1843 if (settings.Control.IsNotNullOrEmpty()) 1844 { 1845 1846 1847 #line default 1848 #line hidden 1849 1850 #line 744 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1851 WriteTo(__razor_helper_writer, settings.Control); 1852 1853 1854 #line default 1855 #line hidden 1856 1857 #line 744 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1858 1859 } 1860 1861 1862 #line default 1863 #line hidden 1864 }); 1865 1866 #line 746 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1867 } 1868 #line default 1869 #line hidden 1870 1871 1872 #line 748 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1873 public RazorEngine.Templating.TemplateWriter RenderDividerField(FieldSettings settings) 1874 { 1875 #line default 1876 #line hidden 1877 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1878 1879 #line 749 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1880 1881 settings.Assert(FieldType.Divider); 1882 1883 1884 1885 #line default 1886 #line hidden 1887 WriteLiteralTo(__razor_helper_writer, " <hr"); 1888 1889 WriteLiteralTo(__razor_helper_writer, " class=\"divider\""); 1890 1891 WriteLiteralTo(__razor_helper_writer, " />\r\n"); 1892 1893 1894 #line 753 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1895 1896 1897 #line default 1898 #line hidden 1899 }); 1900 1901 #line 753 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1902 } 1903 #line default 1904 #line hidden 1905 1906 1907 #line 757 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1908 public RazorEngine.Templating.TemplateWriter RenderHtmlField(string htmlElement, FieldSettings settings, bool returnFieldType = true) 1909 { 1910 #line default 1911 #line hidden 1912 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1913 1914 #line 758 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1915 1916 if (settings.IsChecked && !settings.Attributes.ContainsKey("checked")) 1917 { 1918 settings.Attributes.Add("checked", "checked"); 1919 } 1920 1921 // NOTE: Include files do not process html elements properly. The fix is to split '<' char from the html element 1922 switch (htmlElement) 1923 { 1924 case "textarea": 1925 1926 1927 #line default 1928 #line hidden 1929 1930 #line 768 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1931 WriteTo(__razor_helper_writer, "<" + htmlElement + GetAttributes(settings, false) + "></" + htmlElement + ">"); 1932 1933 1934 #line default 1935 #line hidden 1936 1937 #line 768 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1938 1939 break; 1940 case "select": 1941 1942 1943 #line default 1944 #line hidden 1945 1946 #line 771 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1947 WriteTo(__razor_helper_writer, "<" + htmlElement + GetAttributes(settings, false) + ">"); 1948 1949 1950 #line default 1951 #line hidden 1952 1953 #line 771 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1954 1955 break; 1956 case "button": 1957 1958 1959 #line default 1960 #line hidden 1961 1962 #line 774 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1963 WriteTo(__razor_helper_writer, "<" + htmlElement + GetAttributes(settings) + ">"); 1964 1965 1966 #line default 1967 #line hidden 1968 1969 #line 774 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1970 1971 break; 1972 default: 1973 1974 1975 #line default 1976 #line hidden 1977 1978 #line 777 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1979 WriteTo(__razor_helper_writer, "<" + htmlElement + GetAttributes(settings, returnFieldType) + "/>"); 1980 1981 1982 #line default 1983 #line hidden 1984 1985 #line 777 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1986 1987 break; 1988 } 1989 1990 1991 #line default 1992 #line hidden 1993 }); 1994 1995 #line 780 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 1996 } 1997 #line default 1998 #line hidden 1999 2000 2001 #line 782 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2002 public RazorEngine.Templating.TemplateWriter RenderHtmlField(string htmlElement, FieldOption optionSettings, FieldType type = FieldType.Radio) 2003 { 2004 #line default 2005 #line hidden 2006 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2007 2008 #line 783 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2009 2010 var attributes = GetAttribute("type", type.ToString().ToLower()); 2011 attributes += GetAttribute("value", optionSettings.Value); 2012 attributes += GetAttribute("name", optionSettings.SystemName); 2013 attributes += optionSettings.Id.IsNotNullOrEmpty() ? GetAttribute("id", optionSettings.Id) : ""; 2014 attributes += GetAttributes(optionSettings.Attributes); 2015 2016 if (optionSettings.IsSelected) 2017 { 2018 attributes += GetAttribute("checked", "checked"); 2019 } 2020 if (optionSettings.IsDisabled) 2021 { 2022 attributes += GetAttribute("disabled", "disabled"); 2023 } 2024 2025 2026 2027 #line default 2028 #line hidden 2029 2030 #line 799 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2031 WriteTo(__razor_helper_writer, "<" + htmlElement + attributes + ">"); 2032 2033 2034 #line default 2035 #line hidden 2036 2037 #line 799 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2038 2039 2040 2041 #line default 2042 #line hidden 2043 }); 2044 2045 #line 800 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2046 } 2047 #line default 2048 #line hidden 2049 2050 2051 #line 802 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2052 public RazorEngine.Templating.TemplateWriter RenderOption(FieldOption optionSettings) 2053 { 2054 #line default 2055 #line hidden 2056 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2057 2058 #line 803 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2059 2060 var selected = optionSettings.IsSelected ? " selected" : string.Empty; 2061 var disabled = optionSettings.IsDisabled ? " disabled" : string.Empty; 2062 var readOnly = optionSettings.IsReadOnly ? " readonly" : string.Empty; 2063 var attributes = GetAttributes(optionSettings); 2064 2065 2066 2067 #line default 2068 #line hidden 2069 2070 #line 809 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2071 WriteTo(__razor_helper_writer, string.Concat("<", "option ", attributes, selected, disabled, readOnly, ">", optionSettings.Label, "</", "option", ">")); 2072 2073 2074 #line default 2075 #line hidden 2076 2077 #line 809 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2078 2079 2080 2081 #line default 2082 #line hidden 2083 }); 2084 2085 #line 810 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2086 } 2087 #line default 2088 #line hidden 2089 2090 2091 #line 812 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2092 public RazorEngine.Templating.TemplateWriter RenderFieldHeader(FieldSettings settings, bool renderLabel = true) 2093 { 2094 #line default 2095 #line hidden 2096 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2097 2098 #line 813 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2099 2100 2101 2102 #line default 2103 #line hidden 2104 2105 #line 814 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2106 WriteTo(__razor_helper_writer, GetWrapperStart(settings.IncludeWrapper, settings.Type, settings.WrapperElement, settings.IsRequired, settings.WrapperCssClass)); 2107 2108 2109 #line default 2110 #line hidden 2111 2112 #line 814 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2113 2114 if (settings.Label.IsNotNullOrEmpty() && renderLabel) 2115 { 2116 if (settings.Type == FieldType.Checkboxlist || settings.Type == FieldType.Radio) 2117 { 2118 2119 2120 #line default 2121 #line hidden 2122 WriteLiteralTo(__razor_helper_writer, " <label"); 2123 2124 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 29902), Tuple.Create("\"", 29944) 2125 , Tuple.Create(Tuple.Create("", 29910), Tuple.Create("form-label", 29910), true) 2126 2127 #line 819 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2128 , Tuple.Create(Tuple.Create(" ", 29920), Tuple.Create<System.Object, System.Int32>(settings.LabelCssClass 2129 2130 #line default 2131 #line hidden 2132 , 29921), false) 2133 ); 2134 2135 WriteLiteralTo(__razor_helper_writer, ">"); 2136 2137 2138 #line 819 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2139 WriteTo(__razor_helper_writer, settings.Label); 2140 2141 2142 #line default 2143 #line hidden 2144 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 2145 2146 2147 #line 820 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2148 } 2149 else 2150 { 2151 2152 2153 #line default 2154 #line hidden 2155 WriteLiteralTo(__razor_helper_writer, " <label"); 2156 2157 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 30041), Tuple.Create("\"", 30067) 2158 2159 #line 823 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2160 , Tuple.Create(Tuple.Create("", 30047), Tuple.Create<System.Object, System.Int32>(settings.SystemName 2161 2162 #line default 2163 #line hidden 2164 , 30047), false) 2165 ); 2166 2167 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 30068), Tuple.Create("\"", 30110) 2168 , Tuple.Create(Tuple.Create("", 30076), Tuple.Create("form-label", 30076), true) 2169 2170 #line 823 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2171 , Tuple.Create(Tuple.Create(" ", 30086), Tuple.Create<System.Object, System.Int32>(settings.LabelCssClass 2172 2173 #line default 2174 #line hidden 2175 , 30087), false) 2176 ); 2177 2178 WriteLiteralTo(__razor_helper_writer, ">"); 2179 2180 2181 #line 823 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2182 WriteTo(__razor_helper_writer, settings.Label); 2183 2184 2185 #line default 2186 #line hidden 2187 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 2188 2189 2190 #line 824 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2191 } 2192 2193 } 2194 if (settings.Prepend.IsNotNullOrEmpty()) 2195 { 2196 2197 2198 #line default 2199 #line hidden 2200 WriteLiteralTo(__razor_helper_writer, " <div"); 2201 2202 WriteLiteralTo(__razor_helper_writer, " class=\"fieldPrepend input-group-addon\""); 2203 2204 WriteLiteralTo(__razor_helper_writer, ">"); 2205 2206 2207 #line 829 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2208 WriteTo(__razor_helper_writer, settings.Prepend); 2209 2210 2211 #line default 2212 #line hidden 2213 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 2214 2215 2216 #line 830 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2217 } 2218 if (settings.IncludeFieldWrapper) 2219 { 2220 2221 2222 #line default 2223 #line hidden 2224 WriteLiteralTo(__razor_helper_writer, " "); 2225 2226 WriteLiteralTo(__razor_helper_writer, "<div class=\"fieldContainer hidden\">\r\n"); 2227 2228 2229 #line 834 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2230 } 2231 2232 2233 #line default 2234 #line hidden 2235 }); 2236 2237 #line 835 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2238 } 2239 #line default 2240 #line hidden 2241 2242 2243 #line 837 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2244 public RazorEngine.Templating.TemplateWriter RenderFieldFooter(FieldSettings settings) 2245 { 2246 #line default 2247 #line hidden 2248 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2249 2250 #line 838 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2251 2252 if (settings.Icon.IsNotNullOrEmpty()) 2253 { 2254 2255 2256 #line default 2257 #line hidden 2258 2259 #line 841 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2260 WriteTo(__razor_helper_writer, RenderIcon(settings.Icon, settings.Tooltip, IconPosition.Left, true)); 2261 2262 2263 #line default 2264 #line hidden 2265 2266 #line 841 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2267 2268 } 2269 if (settings.Append.IsNotNullOrEmpty()) 2270 { 2271 2272 2273 #line default 2274 #line hidden 2275 WriteLiteralTo(__razor_helper_writer, " <div"); 2276 2277 WriteLiteralTo(__razor_helper_writer, " class=\"fieldAppend input-group-addon\""); 2278 2279 WriteLiteralTo(__razor_helper_writer, ">"); 2280 2281 2282 #line 845 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2283 WriteTo(__razor_helper_writer, settings.Append); 2284 2285 2286 #line default 2287 #line hidden 2288 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 2289 2290 2291 #line 846 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2292 } 2293 if (settings.Description.IsNotNullOrEmpty()) 2294 { 2295 2296 2297 #line default 2298 #line hidden 2299 WriteLiteralTo(__razor_helper_writer, " <p"); 2300 2301 WriteLiteralTo(__razor_helper_writer, " class=\"help-block\""); 2302 2303 WriteLiteralTo(__razor_helper_writer, ">"); 2304 2305 2306 #line 849 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2307 WriteTo(__razor_helper_writer, settings.Description); 2308 2309 2310 #line default 2311 #line hidden 2312 WriteLiteralTo(__razor_helper_writer, "</p>\r\n"); 2313 2314 2315 #line 850 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2316 } 2317 if (settings.IncludeFieldWrapper) 2318 { 2319 2320 2321 #line default 2322 #line hidden 2323 WriteLiteralTo(__razor_helper_writer, " "); 2324 2325 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 2326 2327 2328 #line 854 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2329 } 2330 2331 2332 #line default 2333 #line hidden 2334 2335 #line 855 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2336 WriteTo(__razor_helper_writer, GetWrapperEnd(settings.IncludeWrapper, settings.WrapperElement)); 2337 2338 2339 #line default 2340 #line hidden 2341 2342 #line 855 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2343 2344 2345 2346 #line default 2347 #line hidden 2348 }); 2349 2350 #line 856 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2351 } 2352 #line default 2353 #line hidden 2354 2355 2356 #line 858 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2357 public RazorEngine.Templating.TemplateWriter RenderQuantityField(int productStock, int selectedQuantity = 1, int productType = 0) 2358 { 2359 #line default 2360 #line hidden 2361 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2362 2363 #line 859 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2364 2365 2366 2367 #line default 2368 #line hidden 2369 2370 #line 860 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2371 WriteTo(__razor_helper_writer, RenderQuantityField(productStock, selectedQuantity, string.Empty, 10, false, false, productType)); 2372 2373 2374 #line default 2375 #line hidden 2376 2377 #line 860 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2378 2379 2380 2381 #line default 2382 #line hidden 2383 }); 2384 2385 #line 861 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2386 } 2387 #line default 2388 #line hidden 2389 2390 2391 #line 863 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2392 public RazorEngine.Templating.TemplateWriter RenderQuantityField(int productStock, int selectedQuantity = 1, bool variantGroupsExistList = false) 2393 { 2394 #line default 2395 #line hidden 2396 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2397 2398 #line 864 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2399 2400 2401 2402 #line default 2403 #line hidden 2404 2405 #line 865 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2406 WriteTo(__razor_helper_writer, RenderQuantityField(productStock, selectedQuantity, string.Empty, 10, false, variantGroupsExistList)); 2407 2408 2409 #line default 2410 #line hidden 2411 2412 #line 865 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2413 2414 2415 2416 #line default 2417 #line hidden 2418 }); 2419 2420 #line 866 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2421 } 2422 #line default 2423 #line hidden 2424 2425 2426 #line 868 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2427 public RazorEngine.Templating.TemplateWriter RenderQuantityField(int productStock, int selectedQuantity = 1, string fieldSystemName = "", int limit = 10, bool isCheckout = true, bool variantGroupsExistList = false, int productType = 0, string productId = "" , string variantText = "") 2428 { 2429 #line default 2430 #line hidden 2431 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2432 2433 #line 869 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2434 2435 var isQuantityTextHidden = selectedQuantity < 10 && productStock > 0 || !isCheckout ? " hidden" : string.Empty; 2436 var isSelectDisabled = productStock <= 0 && !isCheckout; 2437 var quantityTextFieldSettings = new FieldSettings 2438 { 2439 Value = selectedQuantity.ToString(), 2440 SystemName = fieldSystemName.IsNullOrEmpty() ? "quantity" : fieldSystemName, 2441 Id = (fieldSystemName.IsNullOrEmpty() ? "quantity_" : fieldSystemName) + productId, 2442 Attributes = new Dictionary<string, string> 2443 { 2444 {"maxlength", "5"}, 2445 {"data-productStock", productStock.ToString()}, 2446 {"data-outofstock", Translate("outOfStock", "Out of stock")}, 2447 {"data-product-id" , productId}, 2448 {"data-variant-text" , variantText}, 2449 {"data-stocktranslate", Translate("currentStock", "The current stock is")} 2450 } 2451 }; 2452 2453 if (productType != 1 && productType != 3) 2454 { 2455 quantityTextFieldSettings.Type = FieldType.Number; 2456 quantityTextFieldSettings.Label = Translate("qty", "Qty"); 2457 quantityTextFieldSettings.CssClass = "col-xs-4 col-sm-7 quantityInput" + isQuantityTextHidden; 2458 quantityTextFieldSettings.LabelCssClass = productStock > 0 ? "" : "hidden"; 2459 2460 2461 2462 #line default 2463 #line hidden 2464 WriteLiteralTo(__razor_helper_writer, " <fieldset"); 2465 2466 WriteLiteralTo(__razor_helper_writer, " class=\"quantity-container pull-left\""); 2467 2468 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2469 2470 2471 #line 896 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2472 2473 2474 #line default 2475 #line hidden 2476 2477 #line 896 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2478 if (isCheckout) 2479 { 2480 2481 2482 #line default 2483 #line hidden 2484 WriteLiteralTo(__razor_helper_writer, " <div"); 2485 2486 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 33367), Tuple.Create("\"", 33419) 2487 2488 #line 898 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2489 , Tuple.Create(Tuple.Create("", 33375), Tuple.Create<System.Object, System.Int32>(isQuantityTextHidden 2490 2491 #line default 2492 #line hidden 2493 , 33375), false) 2494 , Tuple.Create(Tuple.Create(" ", 33396), Tuple.Create("quantityPriceContainer", 33397), true) 2495 ); 2496 2497 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2498 2499 WriteLiteralTo(__razor_helper_writer, " "); 2500 2501 2502 #line 899 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2503 WriteTo(__razor_helper_writer, RenderInputField(quantityTextFieldSettings)); 2504 2505 2506 #line default 2507 #line hidden 2508 WriteLiteralTo(__razor_helper_writer, "\r\n"); 2509 2510 WriteLiteralTo(__razor_helper_writer, " "); 2511 2512 2513 #line 900 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2514 WriteTo(__razor_helper_writer, RenderBootstrapButton(new BootstrapButtonSettings {IconCssClass = "fa-refresh", CssClass = "submitQuantity btnCart-blue", ButtonType = BootstrapButtonSettings.BootstrapButtonType.Button})); 2515 2516 2517 #line default 2518 #line hidden 2519 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 2520 2521 2522 #line 902 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2523 } 2524 else 2525 { 2526 2527 2528 #line default 2529 #line hidden 2530 2531 #line 905 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2532 WriteTo(__razor_helper_writer, RenderInputField(quantityTextFieldSettings)); 2533 2534 2535 #line default 2536 #line hidden 2537 2538 #line 905 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2539 2540 } 2541 2542 #line default 2543 #line hidden 2544 WriteLiteralTo(__razor_helper_writer, "\r\n\r\n"); 2545 2546 2547 #line 908 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2548 2549 2550 #line default 2551 #line hidden 2552 2553 #line 908 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2554 if (selectedQuantity < limit) 2555 { 2556 var quantityOptionLimit = productStock <= 0 ? 10 : productStock < limit ? productStock : limit; 2557 var quantityFieldSettings = new FieldSettings 2558 { 2559 Type = FieldType.Select, 2560 SystemName = "quantitySelect", 2561 Id = "quantitySelect" + productId 2562 }; 2563 if (isSelectDisabled) 2564 { 2565 quantityFieldSettings.Attributes.Add("disabled", "disabled"); 2566 } 2567 2568 for (var num = 1; num < quantityOptionLimit; num++) 2569 { 2570 quantityFieldSettings.FieldOptionsList.Add(new FieldOption {Label = num.ToString(), Value = num.ToString(), IsSelected = selectedQuantity == num}); 2571 } 2572 if (productStock >= limit || variantGroupsExistList) 2573 { 2574 var limitPlus = limit + "+"; 2575 quantityFieldSettings.FieldOptionsList.Add(new FieldOption {Label = limitPlus, Value = limitPlus}); 2576 } 2577 2578 2579 #line default 2580 #line hidden 2581 2582 #line 931 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2583 WriteTo(__razor_helper_writer, RenderSelectField(quantityFieldSettings)); 2584 2585 2586 #line default 2587 #line hidden 2588 2589 #line 931 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2590 2591 } 2592 2593 #line default 2594 #line hidden 2595 WriteLiteralTo(__razor_helper_writer, "\r\n </fieldset>\r\n"); 2596 2597 2598 #line 934 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2599 } 2600 else 2601 { 2602 quantityTextFieldSettings.Type = FieldType.Hidden; 2603 2604 2605 #line default 2606 #line hidden 2607 2608 #line 938 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2609 WriteTo(__razor_helper_writer, RenderInputField(quantityTextFieldSettings)); 2610 2611 2612 #line default 2613 #line hidden 2614 2615 #line 938 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2616 2617 } 2618 2619 2620 #line default 2621 #line hidden 2622 }); 2623 2624 #line 940 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2625 } 2626 #line default 2627 #line hidden 2628 2629 2630 #line 944 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2631 public RazorEngine.Templating.TemplateWriter RenderCountriesDropdownField(FieldSettings settings, bool renderJsVariables = true, bool renderHighlightOptions = true) 2632 { 2633 #line default 2634 #line hidden 2635 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2636 2637 #line 945 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2638 2639 2640 if (settings.SystemName.IsNotNullOrEmpty()) 2641 { 2642 const int limit = 10; 2643 const int numOfCountriesForHighlight = 10; 2644 var countries = EcommerceHelpers.GetEcomCountries(); 2645 var numOfCountries = settings.LoopOptions.Any() ? settings.LoopOptions.Count : settings.ValuesList.Any() ? settings.ValuesList.Count : countries.Count; 2646 2647 settings.Assert(FieldType.Select); 2648 if (settings.FirstHardcodedOptionLabel.IsNullOrEmpty()) 2649 { 2650 settings.FirstHardcodedOptionLabel = Translate("selectAnOption", "Select an option"); 2651 } 2652 if (!settings.Attributes.ContainsKey("multiple") && !settings.Attributes.ContainsKey("data-live-search") && numOfCountries > limit) 2653 { 2654 settings.Attributes.Add("data-live-search", "true"); 2655 } 2656 2657 if (renderJsVariables) 2658 { 2659 2660 2661 #line default 2662 #line hidden 2663 2664 #line 966 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2665 WriteTo(__razor_helper_writer, RenderCountryAndRegionsJsVariables(countries)); 2666 2667 2668 #line default 2669 #line hidden 2670 2671 #line 966 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2672 2673 } 2674 2675 2676 2677 #line default 2678 #line hidden 2679 2680 #line 969 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2681 WriteTo(__razor_helper_writer, RenderFieldHeader(settings)); 2682 2683 2684 #line default 2685 #line hidden 2686 2687 #line 969 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2688 2689 2690 2691 #line default 2692 #line hidden 2693 2694 #line 970 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2695 WriteTo(__razor_helper_writer, RenderHtmlField("select", settings)); 2696 2697 2698 #line default 2699 #line hidden 2700 2701 #line 970 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2702 2703 2704 2705 #line default 2706 #line hidden 2707 2708 #line 971 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2709 WriteTo(__razor_helper_writer, RenderOption(FieldOption.CreateOption(settings.FirstHardcodedOptionLabel, settings.FirstHardcodedOptionValue, settings.IsFirstHardcodedOptionSelected))); 2710 2711 2712 #line default 2713 #line hidden 2714 2715 #line 971 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2716 2717 2718 if (numOfCountries > numOfCountriesForHighlight) 2719 { 2720 2721 2722 #line default 2723 #line hidden 2724 2725 #line 975 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2726 WriteTo(__razor_helper_writer, RenderSnippet("highlightedContries")); 2727 2728 2729 #line default 2730 #line hidden 2731 2732 #line 975 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2733 2734 } 2735 2736 if (settings.LoopOptions.Any()) 2737 { 2738 foreach (var country in settings.LoopOptions) 2739 { 2740 var countryName = country.GetString("Ecom:Country.Name"); 2741 var countryCode = country.GetString("Ecom:Country.Code2"); 2742 2743 if (renderHighlightOptions && HighlightedCountries.Any(w => countryCode.Contains(w))) 2744 { 2745 2746 2747 #line default 2748 #line hidden 2749 2750 #line 987 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2751 WriteTo(__razor_helper_writer, PopulateHighlightedCountries(countryName, countryCode)); 2752 2753 2754 #line default 2755 #line hidden 2756 2757 #line 987 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2758 2759 } 2760 2761 2762 2763 #line default 2764 #line hidden 2765 2766 #line 990 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2767 WriteTo(__razor_helper_writer, RenderOption(FieldOption.CreateOption(countryName, countryCode))); 2768 2769 2770 #line default 2771 #line hidden 2772 2773 #line 990 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2774 2775 } 2776 } 2777 else if (settings.ValuesList.Any()) 2778 { 2779 foreach (var countryCode in settings.ValuesList.OrderBy(s => s)) 2780 { 2781 var countryName = countries.Any(c => c.Code2 == countryCode) ? countries.First(c => c.Code2 == countryCode).Name : countryCode;; 2782 2783 if (renderHighlightOptions && HighlightedCountries.Any(w => countryCode.Contains(w))) 2784 { 2785 2786 2787 #line default 2788 #line hidden 2789 2790 #line 1001 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2791 WriteTo(__razor_helper_writer, PopulateHighlightedCountries(countryName, countryCode)); 2792 2793 2794 #line default 2795 #line hidden 2796 2797 #line 1001 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2798 //changed from country.Name to countryName 2799 } 2800 2801 2802 2803 #line default 2804 #line hidden 2805 2806 #line 1004 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2807 WriteTo(__razor_helper_writer, RenderOption(FieldOption.CreateOption(countryName, countryCode))); 2808 2809 2810 #line default 2811 #line hidden 2812 2813 #line 1004 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2814 //changed from country.Name to countryName 2815 } 2816 } 2817 else 2818 { 2819 foreach (var country in countries.OrderBy(s => s.Name)) 2820 { 2821 var countryCode = country.Code2; 2822 2823 if (renderHighlightOptions && HighlightedCountries.Any(w => countryCode.Contains(w))) 2824 { 2825 2826 2827 #line default 2828 #line hidden 2829 2830 #line 1015 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2831 WriteTo(__razor_helper_writer, PopulateHighlightedCountries(country.Name, countryCode)); 2832 2833 2834 #line default 2835 #line hidden 2836 2837 #line 1015 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2838 2839 } 2840 2841 2842 #line default 2843 #line hidden 2844 2845 #line 1017 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2846 WriteTo(__razor_helper_writer, RenderOption(FieldOption.CreateOption(country.Name, countryCode))); 2847 2848 2849 #line default 2850 #line hidden 2851 2852 #line 1017 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2853 2854 } 2855 } 2856 2857 if (renderHighlightOptions && numOfCountries > numOfCountriesForHighlight && HighlightedCountries.Any(w => HighlightedCountriesSplit.Contains(w))) 2858 { 2859 2860 2861 #line default 2862 #line hidden 2863 2864 #line 1023 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2865 WriteTo(__razor_helper_writer, PopulateHighlightedCountries(HighlightedCountriesSplit, string.Empty, false, true)); 2866 2867 2868 #line default 2869 #line hidden 2870 2871 #line 1023 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2872 2873 } 2874 2875 2876 2877 #line default 2878 #line hidden 2879 2880 #line 1026 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2881 2882 2883 2884 #line default 2885 #line hidden 2886 WriteLiteralTo(__razor_helper_writer, " "); 2887 2888 WriteLiteralTo(__razor_helper_writer, " </select>\r\n"); 2889 2890 2891 #line 1028 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2892 2893 2894 2895 #line default 2896 #line hidden 2897 2898 #line 1029 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2899 WriteTo(__razor_helper_writer, RenderFieldFooter(settings)); 2900 2901 2902 #line default 2903 #line hidden 2904 2905 #line 1029 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2906 2907 } 2908 2909 2910 #line default 2911 #line hidden 2912 }); 2913 2914 #line 1031 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2915 } 2916 #line default 2917 #line hidden 2918 2919 2920 #line 1033 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2921 public RazorEngine.Templating.TemplateWriter PopulateHighlightedCountries(string label, string value, bool isSelected = false, bool isDisabled = false) 2922 { 2923 #line default 2924 #line hidden 2925 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2926 2927 #line 1034 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2928 2929 HighlightedCountries.Remove(value); 2930 if (value.IsNullOrEmpty()) 2931 { 2932 HighlightedCountries.Remove(label); 2933 } 2934 2935 2936 #line default 2937 #line hidden 2938 2939 #line 1040 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2940 WriteTo(__razor_helper_writer, SnippetStart("highlightedContries")); 2941 2942 2943 #line default 2944 #line hidden 2945 2946 #line 1040 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2947 2948 2949 2950 #line default 2951 #line hidden 2952 2953 #line 1041 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2954 WriteTo(__razor_helper_writer, RenderOption(FieldOption.CreateOption(label, value, isSelected, isDisabled))); 2955 2956 2957 #line default 2958 #line hidden 2959 2960 #line 1041 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2961 2962 2963 2964 #line default 2965 #line hidden 2966 2967 #line 1042 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2968 WriteTo(__razor_helper_writer, SnippetEnd("highlightedContries")); 2969 2970 2971 #line default 2972 #line hidden 2973 2974 #line 1042 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2975 2976 2977 2978 #line default 2979 #line hidden 2980 }); 2981 2982 #line 1043 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2983 } 2984 #line default 2985 #line hidden 2986 2987 2988 #line 1045 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2989 public RazorEngine.Templating.TemplateWriter RenderCountryAndRegionsJsVariables(Dynamicweb.Ecommerce.International.CountryCollection countries = null) 2990 { 2991 #line default 2992 #line hidden 2993 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2994 2995 #line 1046 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 2996 2997 if (countries == null) 2998 { 2999 countries = Dynamicweb.Ecommerce.Services.Countries.GetCountries(); 3000 } 3001 3002 if (countries.Any()) 3003 { 3004 3005 3006 #line default 3007 #line hidden 3008 WriteLiteralTo(__razor_helper_writer, " "); 3009 3010 WriteLiteralTo(__razor_helper_writer, " "); 3011 3012 3013 #line 1054 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3014 WriteTo(__razor_helper_writer, SnippetStart("jsVariables")); 3015 3016 3017 #line default 3018 #line hidden 3019 WriteLiteralTo(__razor_helper_writer, " var countryRegions = {}; "); 3020 3021 3022 #line 1054 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3023 WriteTo(__razor_helper_writer, SnippetEnd("jsVariables")); 3024 3025 3026 #line default 3027 #line hidden 3028 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3029 3030 3031 #line 1055 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3032 3033 foreach (var country in countries.OrderBy(s => s.Name)) 3034 { 3035 var regions = Dynamicweb.Ecommerce.Services.Countries.GetRegions(country.Code2); 3036 3037 if (regions.Any()) 3038 { 3039 3040 3041 #line default 3042 #line hidden 3043 WriteLiteralTo(__razor_helper_writer, " "); 3044 3045 WriteLiteralTo(__razor_helper_writer, " "); 3046 3047 3048 #line 1062 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3049 WriteTo(__razor_helper_writer, SnippetStart("jsVariables")); 3050 3051 3052 #line default 3053 #line hidden 3054 WriteLiteralTo(__razor_helper_writer, " countryRegions."); 3055 3056 3057 #line 1062 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3058 WriteTo(__razor_helper_writer, country.Code2); 3059 3060 3061 #line default 3062 #line hidden 3063 WriteLiteralTo(__razor_helper_writer, " = {}; "); 3064 3065 3066 #line 1062 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3067 WriteTo(__razor_helper_writer, SnippetEnd("jsVariables")); 3068 3069 3070 #line default 3071 #line hidden 3072 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3073 3074 WriteLiteralTo(__razor_helper_writer, " "); 3075 3076 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3077 3078 WriteLiteralTo(__razor_helper_writer, " "); 3079 3080 3081 #line 1064 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3082 WriteTo(__razor_helper_writer, SnippetStart("jsVariables")); 3083 3084 3085 #line default 3086 #line hidden 3087 WriteLiteralTo(__razor_helper_writer, "\r\n countryRegions."); 3088 3089 3090 #line 1065 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3091 WriteTo(__razor_helper_writer, country.Code2); 3092 3093 3094 #line default 3095 #line hidden 3096 WriteLiteralTo(__razor_helper_writer, ".code = [];\r\n countryRegions."); 3097 3098 3099 #line 1066 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3100 WriteTo(__razor_helper_writer, country.Code2); 3101 3102 3103 #line default 3104 #line hidden 3105 WriteLiteralTo(__razor_helper_writer, ".name = [];\r\n"); 3106 3107 WriteLiteralTo(__razor_helper_writer, " "); 3108 3109 3110 #line 1067 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3111 WriteTo(__razor_helper_writer, SnippetEnd("jsVariables")); 3112 3113 3114 #line default 3115 #line hidden 3116 WriteLiteralTo(__razor_helper_writer, "\r\n "); 3117 3118 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3119 3120 3121 #line 1069 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3122 foreach (var region in regions.OrderBy(s => s.Name)) 3123 { 3124 3125 3126 #line default 3127 #line hidden 3128 WriteLiteralTo(__razor_helper_writer, " "); 3129 3130 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3131 3132 WriteLiteralTo(__razor_helper_writer, " "); 3133 3134 3135 #line 1072 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3136 WriteTo(__razor_helper_writer, SnippetStart("jsVariables")); 3137 3138 3139 #line default 3140 #line hidden 3141 WriteLiteralTo(__razor_helper_writer, "\r\n countryRegions[\""); 3142 3143 3144 #line 1073 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3145 WriteTo(__razor_helper_writer, country.Code2); 3146 3147 3148 #line default 3149 #line hidden 3150 WriteLiteralTo(__razor_helper_writer, "\"].code.push(\""); 3151 3152 3153 #line 1073 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3154 WriteTo(__razor_helper_writer, region.RegionCode); 3155 3156 3157 #line default 3158 #line hidden 3159 WriteLiteralTo(__razor_helper_writer, "\");\r\n countryRegions[\""); 3160 3161 3162 #line 1074 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3163 WriteTo(__razor_helper_writer, country.Code2); 3164 3165 3166 #line default 3167 #line hidden 3168 WriteLiteralTo(__razor_helper_writer, "\"].name.push(\""); 3169 3170 3171 #line 1074 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3172 WriteTo(__razor_helper_writer, region.Name); 3173 3174 3175 #line default 3176 #line hidden 3177 WriteLiteralTo(__razor_helper_writer, "\");\r\n"); 3178 3179 WriteLiteralTo(__razor_helper_writer, " "); 3180 3181 3182 #line 1075 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3183 WriteTo(__razor_helper_writer, SnippetEnd("jsVariables")); 3184 3185 3186 #line default 3187 #line hidden 3188 WriteLiteralTo(__razor_helper_writer, "\r\n "); 3189 3190 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3191 3192 3193 #line 1077 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3194 } 3195 } 3196 } 3197 } 3198 3199 3200 #line default 3201 #line hidden 3202 }); 3203 3204 #line 1081 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3205 } 3206 #line default 3207 #line hidden 3208 3209 3210 #line 1092 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3211 public RazorEngine.Templating.TemplateWriter RenderPaging() 3212 { 3213 #line default 3214 #line hidden 3215 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3216 3217 #line 1093 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3218 3219 3220 3221 #line default 3222 #line hidden 3223 3224 #line 1094 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3225 WriteTo(__razor_helper_writer, RenderPaging( 3226 GetInteger("Ecom:CustomerCenter.Paging.NumPages"), 3227 "CCPage", 3228 GetString("Ecom:CustomerCenter.Paging.Back.URL"), 3229 GetString("Ecom:CustomerCenter.Paging.Forward.URL"), 3230 GetInteger("Ecom:CustomerCenter.Paging.CurrentPage"), 3231 GetLoop("Ecom:CustomerCenter.Paging.Pages"), 3232 "Ecom:CustomerCenter.Paging.PageIndex" 3233 )); 3234 3235 3236 #line default 3237 #line hidden 3238 3239 #line 1102 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3240 3241 3242 3243 #line default 3244 #line hidden 3245 }); 3246 3247 #line 1103 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3248 } 3249 #line default 3250 #line hidden 3251 3252 3253 #line 1105 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3254 public RazorEngine.Templating.TemplateWriter RenderPaging(int numOfPages, string pageQueryParameter, int currentPage) 3255 { 3256 #line default 3257 #line hidden 3258 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3259 3260 #line 1105 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3261 3262 3263 #line default 3264 #line hidden 3265 3266 #line 1106 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3267 3268 var queryParameters = HttpUtility.ParseQueryString(Dynamicweb.Context.Current.Request.Url.Query); 3269 var url = Helpers.GetCurrentUrl(true, true); 3270 var previousPageUrl = string.Empty; 3271 var nextPageUrl = string.Empty; 3272 3273 if (currentPage > 1) 3274 { 3275 queryParameters = Helpers.UpdateQueryStringKeyValue(queryParameters, pageQueryParameter, (currentPage - 1).ToString()); 3276 previousPageUrl = (string) Helpers.BuildUri(url, queryParameters).ToString(); 3277 } 3278 if (currentPage < numOfPages) 3279 { 3280 queryParameters = Helpers.UpdateQueryStringKeyValue(queryParameters, pageQueryParameter, (currentPage + 1).ToString()); 3281 nextPageUrl = (string) Helpers.BuildUri(url, queryParameters).ToString(); 3282 } 3283 3284 3285 3286 #line default 3287 #line hidden 3288 3289 #line 1123 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3290 WriteTo(__razor_helper_writer, RenderPaging(numOfPages, pageQueryParameter, previousPageUrl, nextPageUrl, currentPage)); 3291 3292 3293 #line default 3294 #line hidden 3295 3296 #line 1123 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3297 3298 3299 3300 #line default 3301 #line hidden 3302 }); 3303 3304 #line 1124 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3305 } 3306 #line default 3307 #line hidden 3308 3309 3310 #line 1126 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3311 public RazorEngine.Templating.TemplateWriter RenderPaging(int numOfPages, string pageQueryParameter, string previousPageUrl, string nextPageUrl, int currentPage, List<LoopItem> pagesLoop = null, string pageNumTag = "", string pageHrefTag = "", bool includeWrapper = true) 3312 { 3313 #line default 3314 #line hidden 3315 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3316 3317 #line 1126 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3318 3319 3320 #line default 3321 #line hidden 3322 3323 #line 1127 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3324 3325 if (numOfPages > 1) 3326 { 3327 3328 3329 #line default 3330 #line hidden 3331 3332 #line 1130 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3333 3334 3335 3336 #line default 3337 #line hidden 3338 3339 #line 1136 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3340 3341 3342 var loopPageSize = 3; 3343 var startPage = 1; 3344 var endPage = numOfPages; 3345 3346 var pageQueryParameter2 = pageQueryParameter == "PageNum" || pageQueryParameter == "page" || pageQueryParameter == "DWPagingPageNum" ? string.Empty : Pageview.CurrentParagraph.ID.ToString(); 3347 var pageNumQueryParameter = pageQueryParameter + pageQueryParameter2; 3348 3349 var queryParameters = HttpUtility.ParseQueryString(Dynamicweb.Context.Current.Request.Url.Query); 3350 queryParameters.Remove(pageNumQueryParameter); 3351 queryParameters.Remove("pid"); 3352 3353 if (pageQueryParameter == "page") 3354 { 3355 queryParameters.Add("pid", Pageview.CurrentParagraph.ID.ToString()); 3356 } 3357 3358 if (pagesLoop != null) 3359 { 3360 loopPageSize = pagesLoop.Count; 3361 endPage = 1; 3362 } 3363 else 3364 { 3365 var pageOffset = Math.Floor(Convert.ToDecimal(loopPageSize / 2)); 3366 var middlePage = pageOffset + 1; 3367 3368 if (numOfPages > loopPageSize) 3369 { 3370 startPage = Convert.ToInt32(currentPage - pageOffset) < 1 ? 1 : Convert.ToInt32(currentPage - pageOffset); 3371 endPage = Convert.ToInt32(currentPage + pageOffset) > numOfPages ? numOfPages : Convert.ToInt32(currentPage + pageOffset); 3372 3373 if (currentPage < middlePage) 3374 { 3375 endPage = loopPageSize; 3376 } 3377 else if (currentPage >= middlePage) 3378 { 3379 if (numOfPages < currentPage + pageOffset) 3380 { 3381 startPage = numOfPages - loopPageSize; 3382 if (loopPageSize % 2 != 0) 3383 { 3384 startPage += 1; 3385 } 3386 } 3387 3388 if (loopPageSize % 2 == 0) 3389 { 3390 startPage += 1; 3391 } 3392 } 3393 } 3394 } 3395 3396 if (includeWrapper) 3397 { 3398 3399 3400 #line default 3401 #line hidden 3402 WriteLiteralTo(__razor_helper_writer, " "); 3403 3404 WriteLiteralTo(__razor_helper_writer, "<div class=\"col-xs-12 text-center paginationContainer\">\r\n"); 3405 3406 3407 #line 1195 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3408 } 3409 3410 3411 #line default 3412 #line hidden 3413 WriteLiteralTo(__razor_helper_writer, " <ul"); 3414 3415 WriteLiteralTo(__razor_helper_writer, " class=\"pagination\""); 3416 3417 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3418 3419 3420 #line 1197 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3421 3422 3423 #line default 3424 #line hidden 3425 3426 #line 1197 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3427 if (previousPageUrl.IsNotNullOrEmpty() && previousPageUrl != "#") 3428 { 3429 3430 3431 #line default 3432 #line hidden 3433 3434 #line 1199 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3435 WriteTo(__razor_helper_writer, RenderPageItem(previousPageUrl, Translate("Previous"), "fa-caret-left", IconPosition.Left)); 3436 3437 3438 #line default 3439 #line hidden 3440 3441 #line 1199 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3442 3443 } 3444 3445 3446 #line default 3447 #line hidden 3448 WriteLiteralTo(__razor_helper_writer, " "); 3449 3450 3451 #line 1201 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3452 if (pagesLoop != null) 3453 { 3454 3455 3456 #line default 3457 #line hidden 3458 3459 #line 1203 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3460 WriteTo(__razor_helper_writer, RenderGoToFirstPage(queryParameters, pageNumQueryParameter, currentPage, numOfPages, loopPageSize, pagesLoop[0].GetInteger(pageNumTag))); 3461 3462 3463 #line default 3464 #line hidden 3465 3466 #line 1203 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3467 3468 foreach (var page in pagesLoop) 3469 { 3470 var pageItemHref = pageQueryParameter == "PageNum" || pageQueryParameter == "page" ? page.GetString(pageHrefTag) : string.Empty; 3471 endPage = page.GetInteger(pageNumTag); 3472 3473 queryParameters.Remove(pageNumQueryParameter); 3474 3475 if (pageItemHref.IsNotNullOrEmpty()) 3476 { 3477 queryParameters.Add(pageNumQueryParameter, page.GetString(pageNumTag)); 3478 } 3479 3480 3481 #line default 3482 #line hidden 3483 3484 #line 1215 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3485 WriteTo(__razor_helper_writer, RenderPageItem(queryParameters, page.GetString(pageNumTag), page.GetInteger(pageNumTag) == currentPage ? "active" : string.Empty)); 3486 3487 3488 #line default 3489 #line hidden 3490 3491 #line 1215 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3492 3493 3494 } 3495 3496 3497 #line default 3498 #line hidden 3499 3500 #line 1218 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3501 WriteTo(__razor_helper_writer, RenderGoToLastPage(queryParameters, pageNumQueryParameter, currentPage, numOfPages, loopPageSize, endPage)); 3502 3503 3504 #line default 3505 #line hidden 3506 3507 #line 1218 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3508 3509 } 3510 else 3511 { 3512 3513 3514 #line default 3515 #line hidden 3516 3517 #line 1222 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3518 WriteTo(__razor_helper_writer, RenderGoToFirstPage(queryParameters, pageNumQueryParameter, currentPage, numOfPages, loopPageSize)); 3519 3520 3521 #line default 3522 #line hidden 3523 3524 #line 1222 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3525 3526 for (var page = startPage; page <= endPage; page++) 3527 { 3528 queryParameters = Helpers.UpdateQueryStringKeyValue(queryParameters, pageNumQueryParameter, page.ToString()); 3529 3530 3531 #line default 3532 #line hidden 3533 3534 #line 1226 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3535 WriteTo(__razor_helper_writer, RenderPageItem(queryParameters, page.ToString(), page == currentPage ? "active" : string.Empty)); 3536 3537 3538 #line default 3539 #line hidden 3540 3541 #line 1226 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3542 3543 } 3544 3545 3546 #line default 3547 #line hidden 3548 3549 #line 1228 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3550 WriteTo(__razor_helper_writer, RenderGoToLastPage(queryParameters, pageNumQueryParameter, currentPage, numOfPages, loopPageSize, endPage)); 3551 3552 3553 #line default 3554 #line hidden 3555 3556 #line 1228 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3557 3558 } 3559 3560 3561 #line default 3562 #line hidden 3563 WriteLiteralTo(__razor_helper_writer, " \r\n"); 3564 3565 3566 #line 1231 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3567 3568 3569 #line default 3570 #line hidden 3571 3572 #line 1231 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3573 if (nextPageUrl.IsNotNullOrEmpty() && nextPageUrl != "#") 3574 { 3575 3576 3577 #line default 3578 #line hidden 3579 3580 #line 1233 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3581 WriteTo(__razor_helper_writer, RenderPageItem(nextPageUrl, Translate("Next"), "fa-caret-right", IconPosition.Right)); 3582 3583 3584 #line default 3585 #line hidden 3586 3587 #line 1233 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3588 3589 } 3590 3591 3592 #line default 3593 #line hidden 3594 WriteLiteralTo(__razor_helper_writer, " </ul>\r\n"); 3595 3596 3597 #line 1236 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3598 if (includeWrapper) 3599 { 3600 3601 3602 #line default 3603 #line hidden 3604 WriteLiteralTo(__razor_helper_writer, " "); 3605 3606 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 3607 3608 3609 #line 1239 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3610 } 3611 } 3612 3613 3614 #line default 3615 #line hidden 3616 }); 3617 3618 #line 1241 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3619 } 3620 #line default 3621 #line hidden 3622 3623 3624 #line 1242 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3625 public RazorEngine.Templating.TemplateWriter RenderGoToFirstPage(NameValueCollection queryParameters, string pageNumQueryParameter, int currentPage, int numOfPages, int loopPageSize, int currentPageNum = 0) 3626 { 3627 #line default 3628 #line hidden 3629 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3630 3631 #line 1243 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3632 3633 if (currentPageNum == 0) 3634 { 3635 currentPageNum = currentPage; 3636 } 3637 3638 if (currentPage > 2 && numOfPages > loopPageSize && currentPageNum != 1) 3639 { 3640 queryParameters.Remove(pageNumQueryParameter); 3641 3642 3643 #line default 3644 #line hidden 3645 3646 #line 1252 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3647 WriteTo(__razor_helper_writer, RenderPageItem(queryParameters, "1")); 3648 3649 3650 #line default 3651 #line hidden 3652 3653 #line 1252 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3654 3655 3656 3657 #line default 3658 #line hidden 3659 3660 #line 1253 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3661 WriteTo(__razor_helper_writer, RenderEllipsis()); 3662 3663 3664 #line default 3665 #line hidden 3666 3667 #line 1253 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3668 3669 } 3670 3671 3672 #line default 3673 #line hidden 3674 }); 3675 3676 #line 1255 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3677 } 3678 #line default 3679 #line hidden 3680 3681 3682 #line 1257 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3683 public RazorEngine.Templating.TemplateWriter RenderGoToLastPage(NameValueCollection queryParameters, string pageNumQueryParameter, int currentPage, int numOfPages, int loopPageSize, int endPage) 3684 { 3685 #line default 3686 #line hidden 3687 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3688 3689 #line 1258 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3690 3691 if (currentPage < numOfPages - 1 && numOfPages > loopPageSize && endPage != numOfPages) 3692 { 3693 queryParameters = Helpers.UpdateQueryStringKeyValue(queryParameters, pageNumQueryParameter, numOfPages.ToString()); 3694 3695 3696 #line default 3697 #line hidden 3698 3699 #line 1262 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3700 WriteTo(__razor_helper_writer, RenderEllipsis()); 3701 3702 3703 #line default 3704 #line hidden 3705 3706 #line 1262 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3707 3708 3709 3710 #line default 3711 #line hidden 3712 3713 #line 1263 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3714 WriteTo(__razor_helper_writer, RenderPageItem(queryParameters, numOfPages.ToString())); 3715 3716 3717 #line default 3718 #line hidden 3719 3720 #line 1263 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3721 3722 } 3723 3724 3725 #line default 3726 #line hidden 3727 }); 3728 3729 #line 1265 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3730 } 3731 #line default 3732 #line hidden 3733 3734 3735 #line 1267 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3736 public RazorEngine.Templating.TemplateWriter RenderPageItem(NameValueCollection queryParameters, string pageNum, string cssClass = "") 3737 { 3738 #line default 3739 #line hidden 3740 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3741 3742 #line 1268 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3743 3744 var url = Helpers.GetCurrentUrl(true, true); 3745 var href = Helpers.BuildUri(url, queryParameters); 3746 3747 3748 3749 #line default 3750 #line hidden 3751 WriteLiteralTo(__razor_helper_writer, " <li"); 3752 3753 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 50217), Tuple.Create("\"", 50234) 3754 3755 #line 1272 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3756 , Tuple.Create(Tuple.Create("", 50225), Tuple.Create<System.Object, System.Int32>(cssClass 3757 3758 #line default 3759 #line hidden 3760 , 50225), false) 3761 ); 3762 3763 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 3764 3765 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 50248), Tuple.Create("\"", 50273) 3766 3767 #line 1273 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3768 , Tuple.Create(Tuple.Create("", 50255), Tuple.Create<System.Object, System.Int32>(href.PathAndQuery 3769 3770 #line default 3771 #line hidden 3772 , 50255), false) 3773 ); 3774 3775 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3776 3777 WriteLiteralTo(__razor_helper_writer, " "); 3778 3779 3780 #line 1274 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3781 WriteTo(__razor_helper_writer, pageNum); 3782 3783 3784 #line default 3785 #line hidden 3786 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </li>\r\n"); 3787 3788 3789 #line 1277 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3790 3791 3792 #line default 3793 #line hidden 3794 }); 3795 3796 #line 1277 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3797 } 3798 #line default 3799 #line hidden 3800 3801 3802 #line 1279 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3803 public RazorEngine.Templating.TemplateWriter RenderPageItem(string href, string label, string cssPartialClass, IconPosition position) 3804 { 3805 #line default 3806 #line hidden 3807 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3808 3809 #line 1280 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3810 3811 3812 3813 #line default 3814 #line hidden 3815 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <a"); 3816 3817 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 50450), Tuple.Create("\"", 50462) 3818 3819 #line 1282 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3820 , Tuple.Create(Tuple.Create("", 50457), Tuple.Create<System.Object, System.Int32>(href 3821 3822 #line default 3823 #line hidden 3824 , 50457), false) 3825 ); 3826 3827 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3828 3829 WriteLiteralTo(__razor_helper_writer, " "); 3830 3831 3832 #line 1283 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3833 WriteTo(__razor_helper_writer, RenderIcon(cssPartialClass, label, position)); 3834 3835 3836 #line default 3837 #line hidden 3838 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </li>\r\n"); 3839 3840 3841 #line 1286 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3842 3843 3844 #line default 3845 #line hidden 3846 }); 3847 3848 #line 1286 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3849 } 3850 #line default 3851 #line hidden 3852 3853 3854 #line 1288 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3855 public RazorEngine.Templating.TemplateWriter RenderEllipsis() 3856 { 3857 #line default 3858 #line hidden 3859 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3860 3861 #line 1289 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3862 3863 3864 3865 #line default 3866 #line hidden 3867 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <span>...</span>\r\n </li>\r\n"); 3868 3869 3870 #line 1293 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3871 3872 3873 #line default 3874 #line hidden 3875 }); 3876 3877 #line 1293 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3878 } 3879 #line default 3880 #line hidden 3881 3882 3883 #line 1297 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3884 public RazorEngine.Templating.TemplateWriter RenderTableHeading(string label, string sortByField = "", string listType = "Order") 3885 { 3886 #line default 3887 #line hidden 3888 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3889 3890 #line 1298 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3891 3892 3893 if (sortByField.IsNotNullOrEmpty()) 3894 { 3895 var href = string.Empty; 3896 var icon = "fa-sort-amount-asc"; 3897 if (listType == "Order" || listType == "Rma") 3898 { 3899 href = GetCustomerCenterSortUrl(sortByField, listType); 3900 if (GetSortFieldParameter("name") == sortByField) 3901 { 3902 icon = "fa-sort-amount-" + GetSortFieldParameter("value", sortByField).ToLower(); 3903 } 3904 } 3905 3906 3907 #line default 3908 #line hidden 3909 WriteLiteralTo(__razor_helper_writer, " <a"); 3910 3911 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 51306), Tuple.Create("\"", 51318) 3912 3913 #line 1312 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3914 , Tuple.Create(Tuple.Create("", 51313), Tuple.Create<System.Object, System.Int32>(href 3915 3916 #line default 3917 #line hidden 3918 , 51313), false) 3919 ); 3920 3921 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3922 3923 WriteLiteralTo(__razor_helper_writer, " "); 3924 3925 3926 #line 1313 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3927 WriteTo(__razor_helper_writer, RenderIcon(icon, label, IconPosition.Right)); 3928 3929 3930 #line default 3931 #line hidden 3932 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n"); 3933 3934 3935 #line 1315 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3936 } 3937 else 3938 { 3939 3940 3941 #line default 3942 #line hidden 3943 3944 #line 1318 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3945 WriteTo(__razor_helper_writer, label); 3946 3947 3948 #line default 3949 #line hidden 3950 3951 #line 1318 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3952 3953 } 3954 3955 3956 #line default 3957 #line hidden 3958 }); 3959 3960 #line 1320 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3961 } 3962 #line default 3963 #line hidden 3964 3965 3966 #line 1322 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3967 public RazorEngine.Templating.TemplateWriter RenderDataListItem(string label, string value, string labelCss = "col-xs-4 text-right", string valueCss = "col-xs-8", string alternativeValue = "", bool isLabelBold = true) 3968 { 3969 #line default 3970 #line hidden 3971 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3972 3973 #line 1323 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3974 3975 if (value.IsNotNullOrEmpty() || alternativeValue.IsNotNullOrEmpty()) 3976 { 3977 var displayValue = alternativeValue.IsNullOrEmpty() ? value : alternativeValue; 3978 3979 3980 3981 #line default 3982 #line hidden 3983 WriteLiteralTo(__razor_helper_writer, " <dt"); 3984 3985 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 51878), Tuple.Create("\"", 51895) 3986 3987 #line 1328 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3988 , Tuple.Create(Tuple.Create("", 51886), Tuple.Create<System.Object, System.Int32>(labelCss 3989 3990 #line default 3991 #line hidden 3992 , 51886), false) 3993 ); 3994 3995 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3996 3997 3998 #line 1329 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 3999 4000 4001 #line default 4002 #line hidden 4003 4004 #line 1329 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4005 if (isLabelBold) 4006 { 4007 4008 4009 #line default 4010 #line hidden 4011 WriteLiteralTo(__razor_helper_writer, " "); 4012 4013 WriteLiteralTo(__razor_helper_writer, " <strong>\r\n"); 4014 4015 4016 #line 1332 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4017 } 4018 4019 #line default 4020 #line hidden 4021 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4022 4023 WriteLiteralTo(__razor_helper_writer, " "); 4024 4025 4026 #line 1333 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4027 WriteTo(__razor_helper_writer, label); 4028 4029 4030 #line default 4031 #line hidden 4032 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4033 4034 4035 #line 1334 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4036 4037 4038 #line default 4039 #line hidden 4040 4041 #line 1334 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4042 if (isLabelBold) 4043 { 4044 4045 4046 #line default 4047 #line hidden 4048 WriteLiteralTo(__razor_helper_writer, " "); 4049 4050 WriteLiteralTo(__razor_helper_writer, " </strong>\r\n"); 4051 4052 4053 #line 1337 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4054 } 4055 4056 #line default 4057 #line hidden 4058 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n"); 4059 4060 WriteLiteralTo(__razor_helper_writer, " <dd"); 4061 4062 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 52170), Tuple.Create("\"", 52187) 4063 4064 #line 1339 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4065 , Tuple.Create(Tuple.Create("", 52178), Tuple.Create<System.Object, System.Int32>(valueCss 4066 4067 #line default 4068 #line hidden 4069 , 52178), false) 4070 ); 4071 4072 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4073 4074 WriteLiteralTo(__razor_helper_writer, " "); 4075 4076 4077 #line 1340 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4078 WriteTo(__razor_helper_writer, displayValue); 4079 4080 4081 #line default 4082 #line hidden 4083 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 4084 4085 4086 #line 1342 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4087 } 4088 4089 4090 #line default 4091 #line hidden 4092 }); 4093 4094 #line 1343 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4095 } 4096 #line default 4097 #line hidden 4098 4099 4100 #line 1345 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4101 public RazorEngine.Templating.TemplateWriter RenderTableRowSpacer(int height = 30, int colspan = 1) 4102 { 4103 #line default 4104 #line hidden 4105 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4106 4107 #line 1346 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4108 4109 if (height == 0) 4110 { 4111 height = 30; 4112 } 4113 4114 4115 4116 #line default 4117 #line hidden 4118 WriteLiteralTo(__razor_helper_writer, " <tr>\r\n"); 4119 4120 4121 #line 1353 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4122 4123 4124 #line default 4125 #line hidden 4126 4127 #line 1353 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4128 if (colspan > 1) 4129 { 4130 4131 4132 #line default 4133 #line hidden 4134 WriteLiteralTo(__razor_helper_writer, " "); 4135 4136 WriteLiteralTo(__razor_helper_writer, " <td colspan=\""); 4137 4138 4139 #line 1355 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4140 WriteTo(__razor_helper_writer, colspan); 4141 4142 4143 #line default 4144 #line hidden 4145 WriteLiteralTo(__razor_helper_writer, "\" height=\""); 4146 4147 4148 #line 1355 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4149 WriteTo(__razor_helper_writer, height); 4150 4151 4152 #line default 4153 #line hidden 4154 WriteLiteralTo(__razor_helper_writer, "\"></td>\r\n"); 4155 4156 4157 #line 1356 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4158 } 4159 else 4160 { 4161 4162 4163 #line default 4164 #line hidden 4165 WriteLiteralTo(__razor_helper_writer, " <td"); 4166 4167 WriteAttributeTo(__razor_helper_writer, "height", Tuple.Create(" height=\"", 52613), Tuple.Create("\"", 52629) 4168 4169 #line 1359 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4170 , Tuple.Create(Tuple.Create("", 52622), Tuple.Create<System.Object, System.Int32>(height 4171 4172 #line default 4173 #line hidden 4174 , 52622), false) 4175 ); 4176 4177 WriteLiteralTo(__razor_helper_writer, "></td>\r\n"); 4178 4179 4180 #line 1360 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4181 } 4182 4183 #line default 4184 #line hidden 4185 WriteLiteralTo(__razor_helper_writer, "\r\n </tr>\r\n"); 4186 4187 4188 #line 1362 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4189 4190 4191 #line default 4192 #line hidden 4193 }); 4194 4195 #line 1362 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4196 } 4197 #line default 4198 #line hidden 4199 4200 4201 #line 1364 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4202 public RazorEngine.Templating.TemplateWriter RenderTableCellSpacer(int width = 10, int height = 10) 4203 { 4204 #line default 4205 #line hidden 4206 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4207 4208 #line 1365 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4209 4210 if (width == 0) 4211 { 4212 width = 10; 4213 } 4214 if (height == 0) 4215 { 4216 height = 10; 4217 } 4218 4219 4220 #line default 4221 #line hidden 4222 WriteLiteralTo(__razor_helper_writer, " <td"); 4223 4224 WriteAttributeTo(__razor_helper_writer, "width", Tuple.Create(" width=\"", 52913), Tuple.Create("\"", 52927) 4225 4226 #line 1374 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4227 , Tuple.Create(Tuple.Create("", 52921), Tuple.Create<System.Object, System.Int32>(width 4228 4229 #line default 4230 #line hidden 4231 , 52921), false) 4232 ); 4233 4234 WriteAttributeTo(__razor_helper_writer, "height", Tuple.Create(" height=\"", 52928), Tuple.Create("\"", 52944) 4235 4236 #line 1374 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4237 , Tuple.Create(Tuple.Create("", 52937), Tuple.Create<System.Object, System.Int32>(height 4238 4239 #line default 4240 #line hidden 4241 , 52937), false) 4242 ); 4243 4244 WriteLiteralTo(__razor_helper_writer, ">&nbsp;</td>\r\n"); 4245 4246 4247 #line 1375 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4248 4249 4250 #line default 4251 #line hidden 4252 }); 4253 4254 #line 1375 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4255 } 4256 #line default 4257 #line hidden 4258 4259 4260 #line 1379 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4261 public RazorEngine.Templating.TemplateWriter RenderTabHeader(string key, string label, string cssClass = "") 4262 { 4263 #line default 4264 #line hidden 4265 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4266 4267 #line 1380 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4268 4269 4270 4271 #line default 4272 #line hidden 4273 4274 #line 1381 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4275 WriteTo(__razor_helper_writer, SnippetStart("tabHeaders")); 4276 4277 4278 #line default 4279 #line hidden 4280 4281 #line 1381 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4282 4283 4284 4285 #line default 4286 #line hidden 4287 WriteLiteralTo(__razor_helper_writer, " <li"); 4288 4289 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 53133), Tuple.Create("\"", 53150) 4290 4291 #line 1382 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4292 , Tuple.Create(Tuple.Create("", 53141), Tuple.Create<System.Object, System.Int32>(cssClass 4293 4294 #line default 4295 #line hidden 4296 , 53141), false) 4297 ); 4298 4299 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 4300 4301 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 53168), Tuple.Create("\"", 53179) 4302 4303 #line 1383 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4304 , Tuple.Create(Tuple.Create("", 53175), Tuple.Create<System.Object, System.Int32>(key 4305 4306 #line default 4307 #line hidden 4308 , 53175), false) 4309 ); 4310 4311 WriteLiteralTo(__razor_helper_writer, ">"); 4312 4313 4314 #line 1383 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4315 WriteTo(__razor_helper_writer, label); 4316 4317 4318 #line default 4319 #line hidden 4320 WriteLiteralTo(__razor_helper_writer, "</a>\r\n </li>\r\n"); 4321 4322 4323 #line 1385 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4324 4325 4326 #line default 4327 #line hidden 4328 4329 #line 1385 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4330 WriteTo(__razor_helper_writer, SnippetEnd("tabHeaders")); 4331 4332 4333 #line default 4334 #line hidden 4335 4336 #line 1385 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4337 4338 4339 4340 #line default 4341 #line hidden 4342 }); 4343 4344 #line 1386 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4345 } 4346 #line default 4347 #line hidden 4348 4349 4350 #line 1388 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4351 public RazorEngine.Templating.TemplateWriter RenderTabContent(string tabKey, string tabLabel, string tabContent, string cssClass = "") 4352 { 4353 #line default 4354 #line hidden 4355 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4356 4357 #line 1389 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4358 4359 if (tabContent.IsNotNullOrEmpty()) 4360 { 4361 4362 4363 #line default 4364 #line hidden 4365 4366 #line 1392 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4367 WriteTo(__razor_helper_writer, RenderTabHeader("#" + tabKey, tabLabel, cssClass)); 4368 4369 4370 #line default 4371 #line hidden 4372 4373 #line 1392 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4374 4375 4376 4377 #line default 4378 #line hidden 4379 WriteLiteralTo(__razor_helper_writer, " <div"); 4380 4381 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 53501), Tuple.Create("\"", 53528) 4382 , Tuple.Create(Tuple.Create("", 53509), Tuple.Create("col-xs-12", 53509), true) 4383 4384 #line 1393 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4385 , Tuple.Create(Tuple.Create(" ", 53518), Tuple.Create<System.Object, System.Int32>(cssClass 4386 4387 #line default 4388 #line hidden 4389 , 53519), false) 4390 ); 4391 4392 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 53529), Tuple.Create("\"", 53541) 4393 4394 #line 1393 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4395 , Tuple.Create(Tuple.Create("", 53534), Tuple.Create<System.Object, System.Int32>(tabKey 4396 4397 #line default 4398 #line hidden 4399 , 53534), false) 4400 ); 4401 4402 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4403 4404 WriteLiteralTo(__razor_helper_writer, " "); 4405 4406 4407 #line 1394 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4408 WriteTo(__razor_helper_writer, tabContent); 4409 4410 4411 #line default 4412 #line hidden 4413 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 4414 4415 4416 #line 1396 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4417 } 4418 4419 4420 #line default 4421 #line hidden 4422 }); 4423 4424 #line 1397 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4425 } 4426 #line default 4427 #line hidden 4428 4429 4430 #line 1401 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4431 public RazorEngine.Templating.TemplateWriter RenderIcon(string cssPartialClass, string label = "", IconPosition position = IconPosition.Left, bool isLabelATooltip = false) 4432 { 4433 #line default 4434 #line hidden 4435 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4436 4437 #line 1402 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4438 4439 var icon = !isLabelATooltip ? "<i class='fa " + cssPartialClass + "'></i>" : "<i class='fa " + cssPartialClass + "' data-toggle='" + label + "'></i>"; 4440 var spacing = string.Empty; 4441 4442 if (label.IsNotNullOrEmpty()) 4443 { 4444 spacing = "<text>&nbsp;</text>"; 4445 } 4446 if (cssPartialClass.IsNotNullOrEmpty()) 4447 { 4448 if (isLabelATooltip) 4449 { 4450 4451 4452 #line default 4453 #line hidden 4454 4455 #line 1414 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4456 WriteTo(__razor_helper_writer, icon); 4457 4458 4459 #line default 4460 #line hidden 4461 4462 #line 1414 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4463 4464 } 4465 else if (position == IconPosition.Left) 4466 { 4467 4468 4469 #line default 4470 #line hidden 4471 4472 #line 1418 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4473 WriteTo(__razor_helper_writer, icon); 4474 4475 4476 #line default 4477 #line hidden 4478 4479 #line 1418 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4480 4481 4482 4483 #line default 4484 #line hidden 4485 4486 #line 1419 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4487 WriteTo(__razor_helper_writer, spacing); 4488 4489 4490 #line default 4491 #line hidden 4492 4493 #line 1419 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4494 4495 4496 4497 #line default 4498 #line hidden 4499 4500 #line 1420 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4501 WriteTo(__razor_helper_writer, label); 4502 4503 4504 #line default 4505 #line hidden 4506 4507 #line 1420 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4508 4509 } 4510 else 4511 { 4512 4513 4514 #line default 4515 #line hidden 4516 4517 #line 1424 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4518 WriteTo(__razor_helper_writer, label); 4519 4520 4521 #line default 4522 #line hidden 4523 4524 #line 1424 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4525 4526 4527 4528 #line default 4529 #line hidden 4530 4531 #line 1425 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4532 WriteTo(__razor_helper_writer, spacing); 4533 4534 4535 #line default 4536 #line hidden 4537 4538 #line 1425 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4539 4540 4541 4542 #line default 4543 #line hidden 4544 4545 #line 1426 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4546 WriteTo(__razor_helper_writer, icon); 4547 4548 4549 #line default 4550 #line hidden 4551 4552 #line 1426 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4553 4554 } 4555 } 4556 else 4557 { 4558 4559 4560 #line default 4561 #line hidden 4562 4563 #line 1431 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4564 WriteTo(__razor_helper_writer, label); 4565 4566 4567 #line default 4568 #line hidden 4569 4570 #line 1431 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4571 4572 } 4573 4574 4575 #line default 4576 #line hidden 4577 }); 4578 4579 #line 1433 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4580 } 4581 #line default 4582 #line hidden 4583 4584 4585 #line 1435 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4586 public RazorEngine.Templating.TemplateWriter RenderStackedIcons(string cssPrincipalPartialClass, string cssSecondaryPartialClass, string label = "", IconPosition position = IconPosition.Left, bool isLabelATooltip = false) 4587 { 4588 #line default 4589 #line hidden 4590 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4591 4592 #line 1436 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4593 4594 var icon = "<span class='fa-stack'>"; 4595 icon += !isLabelATooltip ? "<i class='fa " + cssPrincipalPartialClass + " fa-stack-2x'></i>" : "<i class='fa " + cssPrincipalPartialClass + " fa-stack-2x' data-toggle='" + label + "'></i>"; 4596 icon += "<i class='fa " + cssSecondaryPartialClass + " fa-stack-1x'></i>"; 4597 icon += "</span>"; 4598 var spacing = string.Empty; 4599 4600 if (label.IsNotNullOrEmpty()) 4601 { 4602 spacing = "<text>&nbsp;</text>"; 4603 } 4604 if (cssPrincipalPartialClass.IsNotNullOrEmpty() && cssSecondaryPartialClass.IsNotNullOrEmpty()) 4605 { 4606 if (isLabelATooltip) 4607 { 4608 4609 4610 #line default 4611 #line hidden 4612 4613 #line 1451 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4614 WriteTo(__razor_helper_writer, icon); 4615 4616 4617 #line default 4618 #line hidden 4619 4620 #line 1451 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4621 4622 } 4623 else if (position == IconPosition.Left) 4624 { 4625 4626 4627 #line default 4628 #line hidden 4629 4630 #line 1455 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4631 WriteTo(__razor_helper_writer, icon); 4632 4633 4634 #line default 4635 #line hidden 4636 4637 #line 1455 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4638 4639 4640 4641 #line default 4642 #line hidden 4643 4644 #line 1456 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4645 WriteTo(__razor_helper_writer, spacing); 4646 4647 4648 #line default 4649 #line hidden 4650 4651 #line 1456 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4652 4653 4654 4655 #line default 4656 #line hidden 4657 4658 #line 1457 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4659 WriteTo(__razor_helper_writer, label); 4660 4661 4662 #line default 4663 #line hidden 4664 4665 #line 1457 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4666 4667 } 4668 else 4669 { 4670 4671 4672 #line default 4673 #line hidden 4674 4675 #line 1461 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4676 WriteTo(__razor_helper_writer, label); 4677 4678 4679 #line default 4680 #line hidden 4681 4682 #line 1461 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4683 4684 4685 4686 #line default 4687 #line hidden 4688 4689 #line 1462 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4690 WriteTo(__razor_helper_writer, spacing); 4691 4692 4693 #line default 4694 #line hidden 4695 4696 #line 1462 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4697 4698 4699 4700 #line default 4701 #line hidden 4702 4703 #line 1463 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4704 WriteTo(__razor_helper_writer, icon); 4705 4706 4707 #line default 4708 #line hidden 4709 4710 #line 1463 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4711 4712 } 4713 } 4714 else 4715 { 4716 4717 4718 #line default 4719 #line hidden 4720 4721 #line 1468 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4722 WriteTo(__razor_helper_writer, label); 4723 4724 4725 #line default 4726 #line hidden 4727 4728 #line 1468 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4729 4730 } 4731 4732 4733 #line default 4734 #line hidden 4735 }); 4736 4737 #line 1470 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4738 } 4739 #line default 4740 #line hidden 4741 4742 4743 #line 1472 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4744 public RazorEngine.Templating.TemplateWriter RenderAction(IconAction action, string href = "", string title = "", string onClickConfirm = "") 4745 { 4746 #line default 4747 #line hidden 4748 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4749 4750 #line 1473 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4751 4752 var attributes = new Dictionary<string, string>(); 4753 4754 if (title.IsNullOrEmpty()) 4755 { 4756 attributes.Add("title", title); 4757 } 4758 if (onClickConfirm.IsNotNullOrEmpty()) 4759 { 4760 attributes.Add("onclick", "return confirm('" + onClickConfirm + "');"); 4761 } 4762 4763 4764 #line default 4765 #line hidden 4766 4767 #line 1484 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4768 WriteTo(__razor_helper_writer, RenderAction(action, href, attributes)); 4769 4770 4771 #line default 4772 #line hidden 4773 4774 #line 1484 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4775 4776 4777 4778 #line default 4779 #line hidden 4780 }); 4781 4782 #line 1485 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4783 } 4784 #line default 4785 #line hidden 4786 4787 4788 #line 1487 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4789 public RazorEngine.Templating.TemplateWriter RenderAction(IconAction action, string href, Dictionary<string, string> attributes) 4790 { 4791 #line default 4792 #line hidden 4793 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4794 4795 #line 1488 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4796 4797 var icon = string.Empty; 4798 var linkAttributes = string.Empty; 4799 var label = Translate(action.ToString()); 4800 4801 if (attributes != null) 4802 { 4803 linkAttributes = GetAttributes(attributes); 4804 } 4805 4806 switch (action) 4807 { 4808 case IconAction.Add: 4809 break; 4810 case IconAction.View: 4811 icon = "fa-eye"; 4812 break; 4813 case IconAction.Edit: 4814 icon = "fa-edit"; 4815 break; 4816 case IconAction.Cancel: 4817 case IconAction.Remove: 4818 icon = "fa-times"; 4819 break; 4820 case IconAction.Delete: 4821 icon = "fa-trash"; 4822 break; 4823 case IconAction.Print: 4824 icon = "fa-print"; 4825 break; 4826 case IconAction.Save: 4827 break; 4828 case IconAction.Reset: 4829 break; 4830 case IconAction.Undo: 4831 break; 4832 case IconAction.Reorder: 4833 icon = "fa-repeat"; 4834 break; 4835 case IconAction.SetDefault: 4836 icon = "fa-times"; 4837 label = string.Empty; 4838 break; 4839 case IconAction.IsDefault: 4840 icon = "fa-check"; 4841 label = string.Empty; 4842 break; 4843 default: 4844 throw new NotSupportedException("An action is needed to render this helper!"); 4845 } 4846 if (icon.IsNotNullOrEmpty()) 4847 { 4848 if (href.IsNotNullOrEmpty()) 4849 { 4850 4851 4852 #line default 4853 #line hidden 4854 4855 #line 1542 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4856 WriteTo(__razor_helper_writer, "<" + "a href=\"" + href + "\" " + linkAttributes + ">"); 4857 4858 4859 #line default 4860 #line hidden 4861 4862 #line 1542 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4863 4864 4865 4866 #line default 4867 #line hidden 4868 4869 #line 1543 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4870 WriteTo(__razor_helper_writer, RenderIcon(icon, label)); 4871 4872 4873 #line default 4874 #line hidden 4875 4876 #line 1543 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4877 4878 4879 4880 #line default 4881 #line hidden 4882 4883 #line 1544 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4884 WriteTo(__razor_helper_writer, "<" + "/a" + ">"); 4885 4886 4887 #line default 4888 #line hidden 4889 4890 #line 1544 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4891 4892 } 4893 else if (label.IsNullOrEmpty()) 4894 { 4895 4896 4897 #line default 4898 #line hidden 4899 4900 #line 1548 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4901 WriteTo(__razor_helper_writer, RenderIcon(icon)); 4902 4903 4904 #line default 4905 #line hidden 4906 4907 #line 1548 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4908 4909 } 4910 } 4911 4912 4913 4914 #line default 4915 #line hidden 4916 }); 4917 4918 #line 1552 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4919 } 4920 #line default 4921 #line hidden 4922 4923 4924 #line 1554 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4925 public RazorEngine.Templating.TemplateWriter RenderBootstrapButton(BootstrapButtonSettings settings) 4926 { 4927 #line default 4928 #line hidden 4929 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4930 4931 #line 1555 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4932 4933 var attributes = GetAttribute("class", "btn " + (settings.CssClass.IsNotNullOrEmpty() ? settings.CssClass : "btn-default")); 4934 attributes += GetAttribute("target", settings.Target); 4935 attributes += GetAttribute("href", settings.Href); 4936 attributes += GetAttribute("name", settings.SystemName); 4937 attributes += GetAttribute("id", settings.Id); 4938 attributes += GetAttribute("value", settings.Value); 4939 if (settings.ButtonType == BootstrapButtonSettings.BootstrapButtonType.Button && !settings.Attributes.ContainsKey("type")) 4940 { 4941 settings.Attributes.Add("type","submit"); 4942 } 4943 4944 attributes += GetAttributes(settings.Attributes); 4945 4946 switch (settings.ButtonType) 4947 { 4948 case BootstrapButtonSettings.BootstrapButtonType.Button: 4949 4950 4951 #line default 4952 #line hidden 4953 WriteLiteralTo(__razor_helper_writer, " "); 4954 4955 WriteLiteralTo(__razor_helper_writer, " <button "); 4956 4957 4958 #line 1572 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4959 WriteTo(__razor_helper_writer, attributes); 4960 4961 4962 #line default 4963 #line hidden 4964 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4965 4966 4967 #line 1573 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4968 4969 4970 #line default 4971 #line hidden 4972 4973 #line 1573 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4974 WriteTo(__razor_helper_writer, RenderIcon(settings.IconCssClass, settings.Label, settings.IconPosition)); 4975 4976 4977 #line default 4978 #line hidden 4979 4980 #line 1573 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4981 4982 4983 4984 #line default 4985 #line hidden 4986 WriteLiteralTo(__razor_helper_writer, " "); 4987 4988 WriteLiteralTo(__razor_helper_writer, " </button>\r\n"); 4989 4990 4991 #line 1575 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 4992 break; 4993 4994 case BootstrapButtonSettings.BootstrapButtonType.Anchor: 4995 4996 4997 #line default 4998 #line hidden 4999 WriteLiteralTo(__razor_helper_writer, " "); 5000 5001 WriteLiteralTo(__razor_helper_writer, " <a "); 5002 5003 5004 #line 1578 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5005 WriteTo(__razor_helper_writer, attributes); 5006 5007 5008 #line default 5009 #line hidden 5010 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5011 5012 5013 #line 1579 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5014 5015 5016 #line default 5017 #line hidden 5018 5019 #line 1579 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5020 WriteTo(__razor_helper_writer, RenderIcon(settings.IconCssClass, settings.Label, settings.IconPosition)); 5021 5022 5023 #line default 5024 #line hidden 5025 5026 #line 1579 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5027 5028 5029 5030 #line default 5031 #line hidden 5032 WriteLiteralTo(__razor_helper_writer, " "); 5033 5034 WriteLiteralTo(__razor_helper_writer, " </a>\r\n"); 5035 5036 5037 #line 1581 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5038 break; 5039 default: 5040 throw new NotSupportedException(string.Format("Unsupported Bootstrap Button type: {0}.", settings.ButtonType.ToString())); 5041 } 5042 5043 5044 #line default 5045 #line hidden 5046 }); 5047 5048 #line 1585 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5049 } 5050 #line default 5051 #line hidden 5052 5053 5054 #line 1587 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5055 public RazorEngine.Templating.TemplateWriter RenderAddToCart(string productId, string productVariantId, int availableAmount = 0) 5056 { 5057 #line default 5058 #line hidden 5059 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5060 5061 #line 1588 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5062 5063 var addToCartButtonSettings = new BootstrapButtonSettings 5064 { 5065 Label = Translate("addToCart", "Add to Cart"), 5066 CssClass = "btn-default addToCartSubmit", 5067 Href = string.Concat(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetPageIdByNavigationTag("MiniCart")),"?productid=", productId, "&amp;variantID=", productVariantId, "&amp;cartcmd=add"), 5068 IconCssClass = "fa-shopping-cart", 5069 Attributes = new Dictionary<string, string> 5070 { 5071 {"data-add", Translate("addToCart", "Add to Cart")}, 5072 {"data-added", Translate("added", "Added")} 5073 } 5074 }; 5075 if (availableAmount > 0) 5076 { 5077 addToCartButtonSettings.Attributes.Add("data-outofstock", Translate("outOfStock", "Out of stock")); 5078 addToCartButtonSettings.Attributes.Add("data-stock", availableAmount.ToString()); 5079 } 5080 5081 5082 5083 #line default 5084 #line hidden 5085 5086 #line 1607 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5087 WriteTo(__razor_helper_writer, RenderBootstrapButton(addToCartButtonSettings)); 5088 5089 5090 #line default 5091 #line hidden 5092 5093 #line 1607 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5094 5095 5096 5097 #line default 5098 #line hidden 5099 5100 #line 1608 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5101 WriteTo(__razor_helper_writer, RenderButtonField(FieldSettings.CreateSubmitField(Translate("addToCart", "Add to cart"), "hidden"))); 5102 5103 5104 #line default 5105 #line hidden 5106 5107 #line 1608 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5108 5109 5110 5111 #line default 5112 #line hidden 5113 }); 5114 5115 #line 1609 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5116 } 5117 #line default 5118 #line hidden 5119 5120 5121 #line 1611 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5122 public RazorEngine.Templating.TemplateWriter RenderSocialMediaShare() 5123 { 5124 #line default 5125 #line hidden 5126 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5127 5128 #line 1612 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5129 5130 5131 5132 #line default 5133 #line hidden 5134 WriteLiteralTo(__razor_helper_writer, " <div"); 5135 5136 WriteLiteralTo(__razor_helper_writer, " class=\"shareIcons\""); 5137 5138 WriteLiteralTo(__razor_helper_writer, ">\r\n <span>"); 5139 5140 5141 #line 1614 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5142 WriteTo(__razor_helper_writer, Translate("share", "Share")); 5143 5144 5145 #line default 5146 #line hidden 5147 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 5148 5149 WriteLiteralTo(__razor_helper_writer, " "); 5150 5151 5152 #line 1615 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5153 WriteTo(__razor_helper_writer, RenderSocialMedia(false, true)); 5154 5155 5156 #line default 5157 #line hidden 5158 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 5159 5160 5161 #line 1617 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5162 5163 5164 #line default 5165 #line hidden 5166 }); 5167 5168 #line 1617 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5169 } 5170 #line default 5171 #line hidden 5172 5173 5174 #line 1619 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5175 public RazorEngine.Templating.TemplateWriter RenderOpenGraphMeta(string type, string image, string title, string teaser = "", string imageAlt = "") 5176 { 5177 #line default 5178 #line hidden 5179 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5180 5181 #line 1620 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5182 5183 var culture = Pageview.Area.Culture.Replace("-", "_"); 5184 teaser = System.Text.RegularExpressions.Regex.Replace(teaser, "<.*?>", string.Empty); 5185 if (type.IsNullOrEmpty()) 5186 { 5187 type = "article"; 5188 } 5189 if (imageAlt.IsNullOrEmpty()) 5190 { 5191 imageAlt = title; 5192 } 5193 5194 5195 5196 #line default 5197 #line hidden 5198 5199 #line 1632 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5200 WriteTo(__razor_helper_writer, SnippetStart("OGMeta")); 5201 5202 5203 #line default 5204 #line hidden 5205 5206 #line 1632 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5207 5208 5209 5210 #line default 5211 #line hidden 5212 WriteLiteralTo(__razor_helper_writer, " <meta"); 5213 5214 WriteLiteralTo(__razor_helper_writer, " property=\"og:title\""); 5215 5216 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 62008), Tuple.Create("\"", 62024) 5217 5218 #line 1633 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5219 , Tuple.Create(Tuple.Create("", 62018), Tuple.Create<System.Object, System.Int32>(title 5220 5221 #line default 5222 #line hidden 5223 , 62018), false) 5224 ); 5225 5226 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 5227 5228 WriteLiteralTo(__razor_helper_writer, " <meta"); 5229 5230 WriteLiteralTo(__razor_helper_writer, " property=\"og:image\""); 5231 5232 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 62062), Tuple.Create("\"", 62122) 5233 5234 #line 1634 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5235 , Tuple.Create(Tuple.Create("", 62072), Tuple.Create<System.Object, System.Int32>(string.Concat(Helpers.GetCurrentUrl(true), image) 5236 5237 #line default 5238 #line hidden 5239 , 62072), false) 5240 ); 5241 5242 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 5243 5244 WriteLiteralTo(__razor_helper_writer, " <meta"); 5245 5246 WriteLiteralTo(__razor_helper_writer, " property=\"og:image:alt\""); 5247 5248 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 62164), Tuple.Create("\"", 62183) 5249 5250 #line 1635 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5251 , Tuple.Create(Tuple.Create("", 62174), Tuple.Create<System.Object, System.Int32>(imageAlt 5252 5253 #line default 5254 #line hidden 5255 , 62174), false) 5256 ); 5257 5258 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 5259 5260 WriteLiteralTo(__razor_helper_writer, " <meta"); 5261 5262 WriteLiteralTo(__razor_helper_writer, " property=\"og:site_name\""); 5263 5264 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 62225), Tuple.Create("\"", 62269) 5265 5266 #line 1636 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5267 , Tuple.Create(Tuple.Create("", 62235), Tuple.Create<System.Object, System.Int32>(Pageview.Area.Item["CompanyName"] 5268 5269 #line default 5270 #line hidden 5271 , 62235), false) 5272 ); 5273 5274 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 5275 5276 WriteLiteralTo(__razor_helper_writer, " <meta"); 5277 5278 WriteLiteralTo(__razor_helper_writer, " property=\"og:url\""); 5279 5280 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 62305), Tuple.Create("\"", 62339) 5281 5282 #line 1637 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5283 , Tuple.Create(Tuple.Create("", 62315), Tuple.Create<System.Object, System.Int32>(Helpers.GetCurrentUrl() 5284 5285 #line default 5286 #line hidden 5287 , 62315), false) 5288 ); 5289 5290 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 5291 5292 WriteLiteralTo(__razor_helper_writer, " <meta"); 5293 5294 WriteLiteralTo(__razor_helper_writer, " property=\"og:description\""); 5295 5296 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 62383), Tuple.Create("\"", 62400) 5297 5298 #line 1638 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5299 , Tuple.Create(Tuple.Create("", 62393), Tuple.Create<System.Object, System.Int32>(teaser 5300 5301 #line default 5302 #line hidden 5303 , 62393), false) 5304 ); 5305 5306 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 5307 5308 WriteLiteralTo(__razor_helper_writer, " <meta"); 5309 5310 WriteLiteralTo(__razor_helper_writer, " property=\"og:type\""); 5311 5312 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 62437), Tuple.Create("\"", 62452) 5313 5314 #line 1639 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5315 , Tuple.Create(Tuple.Create("", 62447), Tuple.Create<System.Object, System.Int32>(type 5316 5317 #line default 5318 #line hidden 5319 , 62447), false) 5320 ); 5321 5322 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 5323 5324 WriteLiteralTo(__razor_helper_writer, " <meta"); 5325 5326 WriteLiteralTo(__razor_helper_writer, " property=\"og:locale\""); 5327 5328 WriteAttributeTo(__razor_helper_writer, "content", Tuple.Create(" content=\"", 62491), Tuple.Create("\"", 62509) 5329 5330 #line 1640 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5331 , Tuple.Create(Tuple.Create("", 62501), Tuple.Create<System.Object, System.Int32>(culture 5332 5333 #line default 5334 #line hidden 5335 , 62501), false) 5336 ); 5337 5338 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 5339 5340 5341 #line 1641 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5342 5343 5344 #line default 5345 #line hidden 5346 5347 #line 1641 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5348 WriteTo(__razor_helper_writer, SnippetEnd("OGMeta")); 5349 5350 5351 #line default 5352 #line hidden 5353 5354 #line 1641 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5355 5356 5357 5358 #line default 5359 #line hidden 5360 }); 5361 5362 #line 1642 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5363 } 5364 #line default 5365 #line hidden 5366 5367 5368 #line 1644 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5369 public RazorEngine.Templating.TemplateWriter RenderSocialMedia(bool isEmailTemplate = false, bool isToShare = false) 5370 { 5371 #line default 5372 #line hidden 5373 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5374 5375 #line 1645 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5376 5377 var page = Dynamicweb.Extensibility.ServiceLocator.Current.GetPageService().GetPage(GetPageIdByNavigationTag("GeneralSettings")); 5378 var generalSettings = Dynamicweb.Content.Items.Item.GetItemById(page.ItemType, page.ItemId); 5379 5380 if(generalSettings["SocialMedia"] != null) { 5381 var socialMedia = Dynamicweb.Content.Items.ItemList.GetItemListById(int.Parse(generalSettings["SocialMedia"].ToString())); 5382 5383 if(socialMedia.Relations.Any()) 5384 { 5385 if(!isEmailTemplate) 5386 { 5387 5388 5389 #line default 5390 #line hidden 5391 WriteLiteralTo(__razor_helper_writer, " "); 5392 5393 WriteLiteralTo(__razor_helper_writer, "<ul class=\"socialMedia\">\r\n"); 5394 5395 5396 #line 1657 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5397 } 5398 foreach (var r in socialMedia.Relations) 5399 { 5400 var socialNetwork = Dynamicweb.Content.Items.Item.GetItemById("SocialLinks", r.Id); 5401 var className = (socialNetwork["Icon"] ?? "").ToString(); 5402 var socialName = (socialNetwork["Name"] ?? "").ToString(); 5403 var socialLink = (socialNetwork["Link"] ?? "").ToString(); 5404 var shareLink = (socialNetwork["ShareURL"] ?? "").ToString(); 5405 5406 if (isEmailTemplate) 5407 { 5408 5409 5410 #line default 5411 #line hidden 5412 WriteLiteralTo(__razor_helper_writer, " <a"); 5413 5414 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 63894), Tuple.Create("\"", 63913) 5415 5416 #line 1668 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5417 , Tuple.Create(Tuple.Create("", 63902), Tuple.Create<System.Object, System.Int32>(socialName 5418 5419 #line default 5420 #line hidden 5421 , 63902), false) 5422 ); 5423 5424 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 5425 5426 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 63930), Tuple.Create("\"", 63948) 5427 5428 #line 1668 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5429 , Tuple.Create(Tuple.Create("", 63937), Tuple.Create<System.Object, System.Int32>(socialLink 5430 5431 #line default 5432 #line hidden 5433 , 63937), false) 5434 ); 5435 5436 WriteLiteralTo(__razor_helper_writer, "> "); 5437 5438 5439 #line 1668 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5440 WriteTo(__razor_helper_writer, socialName); 5441 5442 5443 #line default 5444 #line hidden 5445 WriteLiteralTo(__razor_helper_writer, " </a>\r\n"); 5446 5447 5448 #line 1669 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5449 } 5450 else if(!isToShare || shareLink.IsNotNullOrEmpty()) 5451 { 5452 5453 5454 #line default 5455 #line hidden 5456 WriteLiteralTo(__razor_helper_writer, " <li>\r\n <a"); 5457 5458 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 64148), Tuple.Create("\"", 64167) 5459 5460 #line 1673 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5461 , Tuple.Create(Tuple.Create("", 64156), Tuple.Create<System.Object, System.Int32>(socialName 5462 5463 #line default 5464 #line hidden 5465 , 64156), false) 5466 ); 5467 5468 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 64168), Tuple.Create("\"", 64189) 5469 5470 #line 1673 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5471 , Tuple.Create(Tuple.Create("", 64176), Tuple.Create<System.Object, System.Int32>(className 5472 5473 #line default 5474 #line hidden 5475 , 64176), false) 5476 , Tuple.Create(Tuple.Create(" ", 64186), Tuple.Create("fa", 64187), true) 5477 ); 5478 5479 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 5480 5481 WriteLiteralTo(__razor_helper_writer, " data-sharehref=\""); 5482 5483 5484 #line 1673 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5485 WriteTo(__razor_helper_writer, shareLink); 5486 5487 5488 #line default 5489 #line hidden 5490 5491 #line 1673 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5492 WriteTo(__razor_helper_writer, Helpers.GetCurrentUrl()); 5493 5494 5495 #line default 5496 #line hidden 5497 WriteLiteralTo(__razor_helper_writer, "\""); 5498 5499 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 64258), Tuple.Create("\"", 64276) 5500 5501 #line 1673 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5502 , Tuple.Create(Tuple.Create("", 64265), Tuple.Create<System.Object, System.Int32>(socialLink 5503 5504 #line default 5505 #line hidden 5506 , 64265), false) 5507 ); 5508 5509 WriteLiteralTo(__razor_helper_writer, "><span"); 5510 5511 WriteLiteralTo(__razor_helper_writer, " class=\"hidden\""); 5512 5513 WriteLiteralTo(__razor_helper_writer, ">"); 5514 5515 5516 #line 1673 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5517 WriteTo(__razor_helper_writer, socialName); 5518 5519 5520 #line default 5521 #line hidden 5522 WriteLiteralTo(__razor_helper_writer, "</span></a>\r\n </li>\r\n"); 5523 5524 5525 #line 1675 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5526 } 5527 } 5528 if(!isEmailTemplate) 5529 { 5530 5531 5532 #line default 5533 #line hidden 5534 WriteLiteralTo(__razor_helper_writer, " "); 5535 5536 WriteLiteralTo(__razor_helper_writer, "</ul>\r\n"); 5537 5538 5539 #line 1680 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5540 } 5541 } 5542 } 5543 5544 5545 #line default 5546 #line hidden 5547 }); 5548 5549 #line 1683 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5550 } 5551 #line default 5552 #line hidden 5553 5554 5555 #line 1685 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5556 public RazorEngine.Templating.TemplateWriter RenderNoResults(string wording, string title = "", bool hasWrapper = false, string wrapperClass = "col-xs-12 noPadding" ) 5557 { 5558 #line default 5559 #line hidden 5560 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5561 5562 #line 1686 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5563 5564 if (hasWrapper) 5565 { 5566 5567 5568 #line default 5569 #line hidden 5570 WriteLiteralTo(__razor_helper_writer, " "); 5571 5572 WriteLiteralTo(__razor_helper_writer, "<div class=\"noResultsWrapper "); 5573 5574 5575 #line 1689 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5576 WriteTo(__razor_helper_writer, wrapperClass); 5577 5578 5579 #line default 5580 #line hidden 5581 WriteLiteralTo(__razor_helper_writer, "\">\r\n"); 5582 5583 5584 #line 1690 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5585 } 5586 if (title.IsNotNullOrEmpty()) 5587 { 5588 5589 5590 #line default 5591 #line hidden 5592 WriteLiteralTo(__razor_helper_writer, " <h2>"); 5593 5594 5595 #line 1693 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5596 WriteTo(__razor_helper_writer, title); 5597 5598 5599 #line default 5600 #line hidden 5601 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n"); 5602 5603 5604 #line 1694 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5605 } 5606 5607 5608 #line default 5609 #line hidden 5610 WriteLiteralTo(__razor_helper_writer, " <p>"); 5611 5612 5613 #line 1695 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5614 WriteTo(__razor_helper_writer, wording); 5615 5616 5617 #line default 5618 #line hidden 5619 WriteLiteralTo(__razor_helper_writer, "</p>\r\n"); 5620 5621 5622 #line 1696 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5623 if (hasWrapper) 5624 { 5625 5626 5627 #line default 5628 #line hidden 5629 WriteLiteralTo(__razor_helper_writer, " "); 5630 5631 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 5632 5633 5634 #line 1699 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5635 } 5636 5637 5638 #line default 5639 #line hidden 5640 }); 5641 5642 #line 1700 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5643 } 5644 #line default 5645 #line hidden 5646 5647 5648 #line 1702 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5649 public RazorEngine.Templating.TemplateWriter RenderImage(ImageSettings imageSettings) 5650 { 5651 #line default 5652 #line hidden 5653 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5654 5655 #line 1703 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5656 5657 var imageMarkup = string.Empty; 5658 5659 if (!imageSettings.Attributes.ContainsKey("class")) 5660 { 5661 imageSettings.Attributes.Add("class", "img-responsive img-fluid" + imageSettings.CssClass); 5662 } 5663 if (!imageSettings.Attributes.ContainsKey("src")) 5664 { 5665 imageSettings.Attributes.Add("src", imageSettings.Source); 5666 } 5667 if (!imageSettings.Attributes.ContainsKey("alt")) 5668 { 5669 imageSettings.Attributes.Add("alt", imageSettings.AltText); 5670 } 5671 if (!imageSettings.Attributes.ContainsKey("title")) 5672 { 5673 imageSettings.Attributes.Add("title", imageSettings.Title); 5674 } 5675 5676 if (imageSettings.IncludeWrapper) 5677 { 5678 var wrapperAttributes = new Dictionary<string, string>(); 5679 if (imageSettings.WrapperCssClass.IsNotNullOrEmpty()) 5680 { 5681 wrapperAttributes.Add("class", imageSettings.WrapperCssClass); 5682 } 5683 5684 imageMarkup += "<"; 5685 imageMarkup += imageSettings.WrapperElement + " " + GetAttributes(wrapperAttributes) + ">"; 5686 } 5687 5688 if (imageSettings.Href.IsNotNullOrEmpty()) 5689 { 5690 var linkAttributes = new Dictionary<string, string> {{"href", imageSettings.Href}}; 5691 if (imageSettings.HrefCssClass.IsNotNullOrEmpty()) 5692 { 5693 linkAttributes.Add("class", imageSettings.HrefCssClass); 5694 } 5695 if (imageSettings.HrefTarget.IsNotNullOrEmpty()) 5696 { 5697 linkAttributes.Add("target", imageSettings.HrefTarget); 5698 } 5699 5700 imageMarkup += "<"; 5701 imageMarkup += "a " + GetAttributes(linkAttributes) + ">"; 5702 } 5703 5704 imageMarkup += "<"; 5705 imageMarkup += "img " + GetAttributes(imageSettings.Attributes) + " />"; 5706 5707 if (imageSettings.Href.IsNotNullOrEmpty()) 5708 { 5709 imageMarkup += "<"; 5710 imageMarkup += "/a>"; 5711 } 5712 5713 if (imageSettings.IncludeWrapper) 5714 { 5715 imageMarkup += "<"; 5716 imageMarkup += "/" + imageSettings.WrapperElement + ">"; 5717 } 5718 5719 5720 5721 #line default 5722 #line hidden 5723 5724 #line 1766 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5725 WriteTo(__razor_helper_writer, imageMarkup); 5726 5727 5728 #line default 5729 #line hidden 5730 5731 #line 1766 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5732 5733 5734 5735 #line default 5736 #line hidden 5737 }); 5738 5739 #line 1767 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5740 } 5741 #line default 5742 #line hidden 5743 5744 5745 #line 1783 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5746 public RazorEngine.Templating.TemplateWriter RenderAddressFieldsCustom(AddressSource addressSource = AddressSource.UserProfile, List<LoopItem> countriesLoop = null) 5747 { 5748 #line default 5749 #line hidden 5750 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5751 5752 #line 1784 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5753 5754 var addressSettings = new FieldSettings 5755 { 5756 Label = Translate("address", "Address"), 5757 IsRequired = false, 5758 IncludeWrapper = true 5759 }; 5760 var address2Settings = new FieldSettings 5761 { 5762 Label = Translate("address2", "Address 2"), 5763 IncludeWrapper = true 5764 }; 5765 var citySettings = new FieldSettings 5766 { 5767 Label = Translate("city", "City"), 5768 IsRequired = true, 5769 IncludeWrapper = true 5770 }; 5771 var regionSettings = new FieldSettings 5772 { 5773 SystemName = "state", 5774 Type = FieldType.Select, 5775 Label = Translate("stateProvince", "State / Province"), 5776 FirstHardcodedOptionLabel = Translate("stateProvince", "State / Province"), 5777 IsFirstHardcodedOptionSelected = true, 5778 CssClass = "state", 5779 IsRequired = false, 5780 IncludeWrapper = true 5781 }; 5782 regionSettings.Attributes.Add("data-size", "8"); 5783 regionSettings.Attributes.Add("data-text", regionSettings.FirstHardcodedOptionLabel); 5784 regionSettings.Attributes.Add("data-textUS", Translate("state", "State")); 5785 regionSettings.Attributes.Add("data-textCA", Translate("province", "Province")); 5786 5787 var zipSettings = new FieldSettings 5788 { 5789 Label = Translate("zip", "Zip"), 5790 IsRequired = false, 5791 IncludeWrapper = true 5792 }; 5793 var countrySettings = new FieldSettings 5794 { 5795 SystemName = "country", 5796 Label = Translate("country", "Country"), 5797 IsFirstHardcodedOptionSelected = true, 5798 CssClass = "country", 5799 IsRequired = true, 5800 IncludeWrapper = true 5801 }; 5802 5803 switch (addressSource) 5804 { 5805 case AddressSource.UserProfile: 5806 addressSettings.Control = GetString("UserManagement:User.Address.Input"); 5807 5808 address2Settings.Control = GetString("UserManagement:User.Address2.Input"); 5809 5810 citySettings.Control = GetString("UserManagement:User.City.Input"); 5811 5812 zipSettings.Control = GetString("UserManagement:User.Zip.Input"); 5813 5814 countrySettings.SystemName = GetString("UserManagement:User.Country.InputName"); 5815 countrySettings.Value = GetString("UserManagement:User.Country"); 5816 5817 regionSettings.SystemName = GetString("UserManagement:User.State.InputName"); 5818 regionSettings.Value = GetString("UserManagement:User.State"); 5819 5820 break; 5821 case AddressSource.UserAddress: 5822 addressSettings.Control = GetString("UserManagement:User.UserAddress.Address"); 5823 5824 address2Settings.Control = GetString("UserManagement:User.UserAddress.Address2"); 5825 5826 citySettings.Control = GetString("UserManagement:User.UserAddress.City"); 5827 5828 zipSettings.Control = GetString("UserManagement:User.UserAddress.Zip"); 5829 5830 countrySettings.SystemName = GetString("UserManagement:User.UserAddress.Country.InputName"); 5831 countrySettings.Value = GetString("UserManagement:User.UserAddress.Country.Value"); 5832 5833 regionSettings.SystemName = GetString("UserManagement:User.UserAddress.State.InputName"); 5834 regionSettings.Value = GetString("UserManagement:User.UserAddress.State.Value"); 5835 5836 break; 5837 case AddressSource.EcomCustomer: 5838 addressSettings.SystemName = "EcomOrderCustomerAddress"; 5839 addressSettings.Value = GetString("Ecom:Order.Customer.Address"); 5840 5841 address2Settings.SystemName = "EcomOrderCustomerAddress2"; 5842 address2Settings.Value = GetString("Ecom:Order.Customer.Address2"); 5843 5844 citySettings.SystemName = "EcomOrderCustomerCity"; 5845 citySettings.Value = GetString("Ecom:Order.Customer.City"); 5846 5847 regionSettings.SystemName = "EcomOrderCustomerRegion"; 5848 5849 zipSettings.SystemName = "EcomOrderCustomerZip"; 5850 zipSettings.Value = GetString("Ecom:Order.Customer.Zip"); 5851 5852 countrySettings.SystemName = "EcomOrderCustomerCountry"; 5853 countrySettings.LoopOptions = countriesLoop; 5854 countrySettings.ValueLoopTag = "Ecom:Country.Code2"; 5855 countrySettings.LabelLoopTag = "Ecom:Country.Name"; 5856 5857 regionSettings.Attributes.Add("data-region", GetString("Ecom:Order.Customer.Region")); 5858 5859 break; 5860 5861 case AddressSource.EcomDelivery: 5862 addressSettings.SystemName = "EcomOrderDeliveryAddress"; 5863 addressSettings.Value = GetString("Ecom:Order.Delivery.Address"); 5864 5865 address2Settings.SystemName = "EcomOrderDeliveryAddress2"; 5866 address2Settings.Value = GetString("Ecom:Order.Delivery.Address2"); 5867 5868 citySettings.SystemName = "EcomOrderDeliveryCity"; 5869 citySettings.Value = GetString("Ecom:Order.Delivery.City"); 5870 5871 regionSettings.SystemName = "EcomOrderDeliveryRegion"; 5872 5873 zipSettings.SystemName = "EcomOrderDeliveryZip"; 5874 zipSettings.Value = GetString("Ecom:Order.Delivery.Zip"); 5875 5876 countrySettings.SystemName = "EcomOrderDeliveryCountry"; 5877 5878 5879 countrySettings.LoopOptions = countriesLoop; 5880 countrySettings.ValueLoopTag = "Ecom:Country.Code"; 5881 countrySettings.LabelLoopTag = "Ecom:Country.Name"; 5882 5883 regionSettings.Attributes.Add("data-region", GetString("Ecom:Order.Delivery.Region")); 5884 5885 break; 5886 default: 5887 throw new NotSupportedException(string.Format("Unsupported user address source: {0}.", addressSource)); 5888 5889 } 5890 5891 5892 5893 #line default 5894 #line hidden 5895 5896 #line 1922 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5897 WriteTo(__razor_helper_writer, RenderInputField(addressSettings)); 5898 5899 5900 #line default 5901 #line hidden 5902 5903 #line 1922 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5904 5905 5906 5907 #line default 5908 #line hidden 5909 5910 #line 1923 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5911 WriteTo(__razor_helper_writer, RenderInputField(address2Settings)); 5912 5913 5914 #line default 5915 #line hidden 5916 5917 #line 1923 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5918 5919 5920 5921 #line default 5922 #line hidden 5923 5924 #line 1924 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5925 WriteTo(__razor_helper_writer, RenderInputField(citySettings)); 5926 5927 5928 #line default 5929 #line hidden 5930 5931 #line 1924 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5932 5933 5934 5935 #line default 5936 #line hidden 5937 5938 #line 1925 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5939 WriteTo(__razor_helper_writer, RenderSelectField(regionSettings)); 5940 5941 5942 #line default 5943 #line hidden 5944 5945 #line 1925 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5946 5947 5948 5949 #line default 5950 #line hidden 5951 5952 #line 1926 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5953 WriteTo(__razor_helper_writer, RenderCountriesDropdownField(countrySettings)); 5954 5955 5956 #line default 5957 #line hidden 5958 5959 #line 1926 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5960 5961 5962 5963 #line default 5964 #line hidden 5965 5966 #line 1927 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5967 WriteTo(__razor_helper_writer, RenderInputField(zipSettings)); 5968 5969 5970 #line default 5971 #line hidden 5972 5973 #line 1927 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5974 5975 5976 5977 5978 #line default 5979 #line hidden 5980 }); 5981 5982 #line 1929 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5983 } 5984 #line default 5985 #line hidden 5986 5987 5988 #line 1931 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5989 public RazorEngine.Templating.TemplateWriter RenderAddressFields(AddressSource addressSource = AddressSource.UserProfile, List<LoopItem> countriesLoop = null) 5990 { 5991 #line default 5992 #line hidden 5993 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5994 5995 #line 1932 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 5996 5997 5998 var addressSettings = new FieldSettings 5999 { 6000 Label = Translate("address", "Address"), 6001 IsRequired = false, 6002 IncludeWrapper = true 6003 }; 6004 var address2Settings = new FieldSettings 6005 { 6006 Label = Translate("address2", "Address 2"), 6007 IncludeWrapper = true 6008 }; 6009 var citySettings = new FieldSettings 6010 { 6011 Label = Translate("city", "City"), 6012 IsRequired = true, 6013 IncludeWrapper = true 6014 }; 6015 var regionSettings = new FieldSettings 6016 { 6017 SystemName = "state", 6018 Label = Translate("stateProvince", "State / Province"), 6019 FirstHardcodedOptionLabel = Translate("stateProvince", "State / Province"), 6020 IsFirstHardcodedOptionSelected = true, 6021 IsRequired = false, 6022 IncludeWrapper = true 6023 }; 6024 regionSettings.Attributes.Add("data-size", "8"); 6025 regionSettings.Attributes.Add("data-text", regionSettings.FirstHardcodedOptionLabel); 6026 regionSettings.Attributes.Add("data-textUS", Translate("state", "State")); 6027 regionSettings.Attributes.Add("data-textCA", Translate("province", "Province")); 6028 6029 var zipSettings = new FieldSettings 6030 { 6031 Label = Translate("zip", "Zip"), 6032 IsRequired = false, 6033 IncludeWrapper = true 6034 }; 6035 var countrySettings = new FieldSettings 6036 { 6037 SystemName = "country", 6038 Label = Translate("country", "Country"), 6039 IsFirstHardcodedOptionSelected = true, 6040 IsRequired = true, 6041 IncludeWrapper = true 6042 }; 6043 6044 switch (addressSource) 6045 { 6046 case AddressSource.UserProfile: 6047 addressSettings.Control = GetString("UserManagement:User.Address.Input"); 6048 6049 address2Settings.Control = GetString("UserManagement:User.Address2.Input"); 6050 6051 citySettings.Control = GetString("UserManagement:User.City.Input"); 6052 6053 zipSettings.Control = GetString("UserManagement:User.Zip.Input"); 6054 6055 countrySettings.SystemName = GetString("UserManagement:User.Country.InputName"); 6056 countrySettings.Value = GetString("UserManagement:User.Country"); 6057 6058 regionSettings.SystemName = GetString("UserManagement:User.State.InputName"); 6059 regionSettings.Value = GetString("UserManagement:User.State"); 6060 6061 break; 6062 case AddressSource.UserAddress: 6063 addressSettings.Control = GetString("UserManagement:User.UserAddress.Address"); 6064 6065 address2Settings.Control = GetString("UserManagement:User.UserAddress.Address2"); 6066 6067 citySettings.Control = GetString("UserManagement:User.UserAddress.City"); 6068 6069 zipSettings.Control = GetString("UserManagement:User.UserAddress.Zip"); 6070 6071 countrySettings.SystemName = GetString("UserManagement:User.UserAddress.Country.InputName"); 6072 countrySettings.Value = GetString("UserManagement:User.UserAddress.Country.Value"); 6073 6074 //var countryValueUA = Dna.IP.Frontend.GetCountryCode().IsNotNullOrEmpty() ? Dna.IP.Frontend.GetCountryCode() : "US"; 6075 //countrySettings.Value = countryValueUA; 6076 //countrySettings.FirstHardcodedOptionLabel = Dynamicweb.Ecommerce.Services.Countries.GetCountry(countryValueUA).Name; 6077 //countrySettings.FirstHardcodedOptionValue = countryValueUA; 6078 6079 regionSettings.SystemName = GetString("UserManagement:User.UserAddress.State.InputName"); 6080 var costumerRegion = GetString("UserManagement:User.UserAddress.State.Value"); 6081 if (costumerRegion.IsNotNullOrEmpty()) 6082 { 6083 /*Creepy virgula*/ 6084 int index1 = costumerRegion.IndexOf(','); 6085 if (index1 != -1) 6086 { 6087 costumerRegion = costumerRegion.Remove(index1, 1); 6088 } 6089 } 6090 regionSettings.Value = costumerRegion; 6091 6092 break; 6093 case AddressSource.EcomCustomer: 6094 addressSettings.SystemName = "EcomOrderCustomerAddress"; 6095 addressSettings.Value = GetString("Ecom:Order.Customer.Address"); 6096 6097 address2Settings.SystemName = "EcomOrderCustomerAddress2"; 6098 address2Settings.Value = GetString("Ecom:Order.Customer.Address2"); 6099 6100 citySettings.SystemName = "EcomOrderCustomerCity"; 6101 citySettings.Value = GetString("Ecom:Order.Customer.City"); 6102 6103 regionSettings.SystemName = "EcomOrderCustomerRegion"; 6104 6105 zipSettings.SystemName = "EcomOrderCustomerZip"; 6106 zipSettings.Value = GetString("Ecom:Order.Customer.Zip"); 6107 6108 countrySettings.SystemName = "EcomOrderCustomerCountry"; 6109 countrySettings.LoopOptions = countriesLoop; 6110 countrySettings.ValueLoopTag = "Ecom:Country.Code2"; 6111 countrySettings.LabelLoopTag = "Ecom:Country.Name"; 6112 6113 regionSettings.Attributes.Add("data-region", GetString("Ecom:Order.Customer.Region")); 6114 6115 break; 6116 6117 case AddressSource.EcomDelivery: 6118 addressSettings.SystemName = "EcomOrderDeliveryAddress"; 6119 addressSettings.Value = GetString("Ecom:Order.Delivery.Address"); 6120 6121 address2Settings.SystemName = "EcomOrderDeliveryAddress2"; 6122 address2Settings.Value = GetString("Ecom:Order.Delivery.Address2"); 6123 6124 citySettings.SystemName = "EcomOrderDeliveryCity"; 6125 citySettings.Value = GetString("Ecom:Order.Delivery.City"); 6126 6127 regionSettings.Id = "EcomOrderDeliveryRegion"; 6128 regionSettings.SystemName = "EcomOrderDeliveryRegion"; 6129 6130 zipSettings.SystemName = "EcomOrderDeliveryZip"; 6131 zipSettings.Value = GetString("Ecom:Order.Delivery.Zip"); 6132 6133 countrySettings.SystemName = "EcomOrderDeliveryCountry"; 6134 countrySettings.LoopOptions = countriesLoop; 6135 countrySettings.ValueLoopTag = "Ecom:Country.Code2"; 6136 countrySettings.LabelLoopTag = "Ecom:Country.Name"; 6137 6138 var CountryCode = GetString("Ecom:Order.Delivery.Country.Code").IsNotNullOrEmpty() ? GetString("Ecom:Order.Delivery.Country.Code") : GetString("UserManagement:User.DefaultAddress.CountryCode").IsNotNullOrEmpty() ? GetString("UserManagement:User.DefaultAddress.CountryCode") : GetString("UserManagement:User.DefaultAddress.Country"); 6139 countrySettings.FirstHardcodedOptionLabel = Dynamicweb.Ecommerce.Services.Countries.GetCountry(CountryCode).Name; 6140 countrySettings.FirstHardcodedOptionValue = CountryCode; 6141 regionSettings.Attributes.Add("data-region", GetString("Ecom:Order.Delivery.Region")); 6142 6143 break; 6144 default: 6145 throw new NotSupportedException(string.Format("Unsupported user address source: {0}.", addressSource)); 6146 6147 } 6148 6149 6150 6151 #line default 6152 #line hidden 6153 6154 #line 2085 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6155 WriteTo(__razor_helper_writer, RenderInputField(addressSettings)); 6156 6157 6158 #line default 6159 #line hidden 6160 6161 #line 2085 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6162 6163 6164 6165 #line default 6166 #line hidden 6167 6168 #line 2086 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6169 WriteTo(__razor_helper_writer, RenderInputField(address2Settings)); 6170 6171 6172 #line default 6173 #line hidden 6174 6175 #line 2086 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6176 6177 6178 6179 #line default 6180 #line hidden 6181 6182 #line 2087 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6183 WriteTo(__razor_helper_writer, RenderInputField(citySettings)); 6184 6185 6186 #line default 6187 #line hidden 6188 6189 #line 2087 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6190 6191 6192 6193 #line default 6194 #line hidden 6195 6196 #line 2088 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6197 WriteTo(__razor_helper_writer, RenderSelectField(regionSettings)); 6198 6199 6200 #line default 6201 #line hidden 6202 6203 #line 2088 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6204 6205 6206 6207 #line default 6208 #line hidden 6209 6210 #line 2089 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6211 WriteTo(__razor_helper_writer, RenderCountriesDropdownField(countrySettings)); 6212 6213 6214 #line default 6215 #line hidden 6216 6217 #line 2089 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6218 6219 6220 6221 #line default 6222 #line hidden 6223 6224 #line 2090 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6225 WriteTo(__razor_helper_writer, RenderInputField(zipSettings)); 6226 6227 6228 #line default 6229 #line hidden 6230 6231 #line 2090 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6232 6233 6234 6235 6236 #line default 6237 #line hidden 6238 }); 6239 6240 #line 2092 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6241 } 6242 #line default 6243 #line hidden 6244 6245 6246 #line 2094 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6247 public RazorEngine.Templating.TemplateWriter RenderAddressFieldsQuote(AddressSource addressSource = AddressSource.UserProfile, List<LoopItem> countriesLoop = null) 6248 { 6249 #line default 6250 #line hidden 6251 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6252 6253 #line 2095 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6254 6255 var addressSettings = new FieldSettings 6256 { 6257 Label = Translate("address", "Address"), 6258 IsRequired = true, 6259 IncludeWrapper = true 6260 6261 }; 6262 var address2Settings = new FieldSettings 6263 { 6264 //SystemName = "attn", 6265 Label = Translate("address2", "Address 2"), 6266 IsRequired= false, 6267 IncludeWrapper = true 6268 }; 6269 var citySettings = new FieldSettings 6270 { 6271 Label = Translate("city", "City"), 6272 IsRequired = true, 6273 IncludeWrapper = true 6274 }; 6275 var regionSettings = new FieldSettings 6276 { 6277 SystemName = "EcomOrderDeliveryRegion", 6278 Id = "EcomOrderDeliveryRegion", 6279 Label = Translate("stateProvince", "State / Province"), 6280 FirstHardcodedOptionLabel = Translate("stateProvince", "State / Province"), 6281 IsFirstHardcodedOptionSelected = true, 6282 IsRequired = true, 6283 IncludeWrapper = true 6284 }; 6285 regionSettings.Attributes.Add("data-size", "8"); 6286 regionSettings.Attributes.Add("data-text", regionSettings.FirstHardcodedOptionLabel); 6287 regionSettings.Attributes.Add("data-textUS", Translate("state", "State")); 6288 regionSettings.Attributes.Add("data-textCA", Translate("province", "Province")); 6289 6290 var addressTypeText = GetString("UserManagement:User.AccessUserAddress_AddressType").ToString(); 6291 var addressTypeTextSelected = addressTypeText == null ? Translate("AddressTypeSelect", "Select") : addressTypeText; 6292 var addressType = new FieldSettings 6293 { 6294 Type = FieldType.Select, 6295 SystemName = "AccessUserAddress_AddressType", 6296 Label = Translate("Address Type", "Address Type"), 6297 FirstHardcodedOptionLabel = addressTypeTextSelected, 6298 IsFirstHardcodedOptionSelected = true, 6299 IsRequired = false, 6300 IncludeWrapper = true 6301 }; 6302 addressType.FieldOptionsList.Add(new FieldOption 6303 { 6304 Label = @Translate("Residence"), 6305 Value = "Residence" 6306 }); 6307 addressType.FieldOptionsList.Add(new FieldOption 6308 { 6309 Label = @Translate("Business"), 6310 Value = "Business" 6311 }); 6312 addressType.FieldOptionsList.Add(new FieldOption 6313 { 6314 Label = @Translate("Pick Up Location"), 6315 Value = "Pick Up Location" 6316 }); 6317 addressType.FieldOptionsList.Add(new FieldOption 6318 { 6319 Label = @Translate("Airport"), 6320 Value = "Airport" 6321 }); 6322 var zipSettings = new FieldSettings 6323 { 6324 Label = Translate("zip", "Zip"), 6325 IsRequired = false, 6326 IncludeWrapper = true 6327 }; 6328 6329 6330 var countrySettings = new FieldSettings 6331 { 6332 SystemName = "country", 6333 Label = Translate("country", "Country"), 6334 FirstHardcodedOptionLabel = GetString("UserManagement:User.Country.Name"), 6335 FirstHardcodedOptionValue = GetString("UserManagement:User.Country"), 6336 IsFirstHardcodedOptionSelected = true, 6337 IsRequired = true, 6338 IncludeWrapper = true 6339 }; 6340 6341 switch (addressSource) 6342 { 6343 case AddressSource.UserProfile: 6344 addressSettings.Control = GetString("UserManagement:User.Address.Input"); 6345 6346 address2Settings.Control = GetString("UserManagement:User.Address2.Input"); 6347 6348 citySettings.Control = GetString("UserManagement:User.City.Input"); 6349 6350 zipSettings.Control = GetString("UserManagement:User.Zip.Input"); 6351 6352 countrySettings.SystemName = GetString("UserManagement:User.Country.InputName"); 6353 countrySettings.Value = GetString("UserManagement:User.Country"); 6354 6355 regionSettings.SystemName = GetString("UserManagement:User.State.InputName"); 6356 regionSettings.Value = GetString("UserManagement:User.State"); 6357 6358 break; 6359 case AddressSource.UserAddress: 6360 addressSettings.Control = GetString("UserManagement:User.UserAddress.Address"); 6361 6362 address2Settings.Control = GetString("UserManagement:User.UserAddress.Address2"); 6363 6364 citySettings.Control = GetString("UserManagement:User.UserAddress.City"); 6365 6366 zipSettings.Control = GetString("UserManagement:User.UserAddress.Zip"); 6367 6368 countrySettings.SystemName = GetString("UserManagement:User.UserAddress.Country.InputName"); 6369 countrySettings.Value = GetString("UserManagement:User.UserAddress.Country.Value"); 6370 6371 regionSettings.SystemName = GetString("UserManagement:User.UserAddress.State.InputName"); 6372 regionSettings.Value = GetString("UserManagement:User.UserAddress.State.Value"); 6373 6374 break; 6375 case AddressSource.EcomCustomer: 6376 addressSettings.SystemName = "EcomOrderCustomerAddress"; 6377 addressSettings.Value = GetString("Ecom:Order.Customer.Address"); 6378 6379 address2Settings.SystemName = "EcomOrderCustomerAddress2"; 6380 address2Settings.Value = GetString("Ecom:Order.Customer.Address2"); 6381 6382 citySettings.SystemName = "EcomOrderCustomerCity"; 6383 citySettings.Value = GetString("Ecom:Order.Customer.City"); 6384 6385 regionSettings.SystemName = "EcomOrderCustomerRegion"; 6386 6387 zipSettings.SystemName = "EcomOrderCustomerZip"; 6388 zipSettings.Value = GetString("Ecom:Order.Customer.Zip"); 6389 6390 countrySettings.SystemName = "EcomOrderCustomerCountry"; 6391 countrySettings.LoopOptions = countriesLoop; 6392 countrySettings.ValueLoopTag = "Ecom:Country.Code2"; 6393 countrySettings.LabelLoopTag = "Ecom:Country.Name"; 6394 6395 regionSettings.Attributes.Add("data-region", GetString("Ecom:Order.Customer.Region")); 6396 6397 break; 6398 6399 case AddressSource.EcomDelivery: 6400 addressSettings.SystemName = "EcomOrderDeliveryAddress"; 6401 addressSettings.Value = GetString("Ecom:Order.Delivery.Address"); 6402 6403 address2Settings.SystemName = "EcomOrderDeliveryAddress2"; 6404 address2Settings.Value = GetString("Ecom:Order.Delivery.Address2"); 6405 6406 citySettings.SystemName = "EcomOrderDeliveryCity"; 6407 citySettings.Value = GetString("Ecom:Order.Delivery.City"); 6408 6409 regionSettings.SystemName = "EcomOrderDeliveryRegion"; 6410 6411 //stateSettings.SystemName = "EcomOrderDeliveryRegion2"; 6412 6413 zipSettings.SystemName = "EcomOrderDeliveryZip"; 6414 zipSettings.Value = GetString("Ecom:Order.Delivery.Zip"); 6415 6416 countrySettings.SystemName = "EcomOrderDeliveryCountry"; 6417 6418 var CountryCode = GetString("Ecom:Order.Delivery.Country.Code").IsNotNullOrEmpty() ? GetString("Ecom:Order.Delivery.Country.Code") : GetString("UserManagement:User.DefaultAddress.CountryCode").IsNotNullOrEmpty() ? GetString("UserManagement:User.DefaultAddress.CountryCode") : GetString("UserManagement:User.DefaultAddress.Country"); 6419 if (CountryCode.IsNotNullOrEmpty() && CountryCode.Length == 2 ) 6420 { 6421 countrySettings.Value = CountryCode; 6422 if (CountryCode != "US" && CountryCode != "CA") 6423 { 6424 countrySettings.FirstHardcodedOptionLabel = Dynamicweb.Ecommerce.Services.Countries.GetCountry(CountryCode).Name; 6425 countrySettings.FirstHardcodedOptionValue = CountryCode; 6426 } 6427 else 6428 { 6429 countrySettings.IsFirstHardcodedOptionSelected = false; 6430 countrySettings.FirstHardcodedOptionValue = ""; 6431 } 6432 6433 } 6434 6435 if (Sanitize.Parameter("CartV2.GotoStep0").IsNotNullOrEmpty()) 6436 { 6437 countrySettings.LoopOptions = countriesLoop; 6438 countrySettings.ValueLoopTag = "Ecom:Country.Code2"; 6439 countrySettings.LabelLoopTag = "Ecom:Country.Name"; 6440 } 6441 6442 var deliveryRegion = GetString("Ecom:Order.Delivery.Region"); 6443 if (deliveryRegion.IsNotNullOrEmpty()) 6444 { 6445 /*Creepy virgula*/ 6446 int index1 = deliveryRegion.IndexOf(','); 6447 if (index1 != -1) 6448 { 6449 deliveryRegion = deliveryRegion.Remove(index1, 1); 6450 } 6451 6452 } 6453 regionSettings.Attributes.Add("data-region", deliveryRegion); 6454 6455 break; 6456 default: 6457 throw new NotSupportedException(string.Format("Unsupported user address source: {0}.", addressSource)); 6458 6459 } 6460 6461 6462 6463 #line default 6464 #line hidden 6465 6466 #line 2302 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6467 6468 6469 6470 #line default 6471 #line hidden 6472 6473 #line 2303 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6474 WriteTo(__razor_helper_writer, RenderInputField(new FieldSettings {Label = Translate("Organization"), SystemName = "EcomOrderDeliveryCompany", Value = GetString("Ecom:Order.Delivery.Company") != "" ? GetString("Ecom:Order.Delivery.Company") : GetString("Ecom:Order.Customer.Company"), IsRequired = true, IncludeWrapper = true})); 6475 6476 6477 #line default 6478 #line hidden 6479 6480 #line 2303 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6481 6482 6483 6484 #line default 6485 #line hidden 6486 6487 #line 2304 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6488 WriteTo(__razor_helper_writer, RenderSelectField(addressType)); 6489 6490 6491 #line default 6492 #line hidden 6493 6494 #line 2304 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6495 6496 6497 6498 #line default 6499 #line hidden 6500 6501 #line 2305 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6502 WriteTo(__razor_helper_writer, RenderInputField(addressSettings)); 6503 6504 6505 #line default 6506 #line hidden 6507 6508 #line 2305 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6509 6510 6511 6512 #line default 6513 #line hidden 6514 6515 #line 2306 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6516 WriteTo(__razor_helper_writer, RenderInputField(address2Settings)); 6517 6518 6519 #line default 6520 #line hidden 6521 6522 #line 2306 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6523 6524 6525 6526 #line default 6527 #line hidden 6528 6529 #line 2307 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6530 WriteTo(__razor_helper_writer, RenderInputField(citySettings)); 6531 6532 6533 #line default 6534 #line hidden 6535 6536 #line 2307 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6537 6538 6539 6540 #line default 6541 #line hidden 6542 6543 #line 2308 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6544 6545 6546 6547 #line default 6548 #line hidden 6549 6550 #line 2309 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6551 WriteTo(__razor_helper_writer, RenderSelectField(regionSettings)); 6552 6553 6554 #line default 6555 #line hidden 6556 6557 #line 2309 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6558 6559 6560 6561 #line default 6562 #line hidden 6563 6564 #line 2310 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6565 WriteTo(__razor_helper_writer, RenderInputField(zipSettings)); 6566 6567 6568 #line default 6569 #line hidden 6570 6571 #line 2310 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6572 6573 6574 6575 #line default 6576 #line hidden 6577 6578 #line 2311 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6579 WriteTo(__razor_helper_writer, RenderCountriesDropdownField(countrySettings)); 6580 6581 6582 #line default 6583 #line hidden 6584 6585 #line 2311 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6586 6587 6588 6589 6590 6591 6592 #line default 6593 #line hidden 6594 6595 #line 2319 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6596 6597 6598 6599 6600 #line default 6601 #line hidden 6602 6603 #line 2326 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6604 6605 6606 6607 6608 #line default 6609 #line hidden 6610 }); 6611 6612 #line 2328 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6613 } 6614 #line default 6615 #line hidden 6616 6617 6618 #line 2330 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6619 public RazorEngine.Templating.TemplateWriter RenderAddressFieldsQuoteAnonymous(AddressSource addressSource = AddressSource.UserProfile, List<LoopItem> countriesLoop = null) 6620 { 6621 #line default 6622 #line hidden 6623 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6624 6625 #line 2331 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6626 6627 var addressSettings = new FieldSettings 6628 { 6629 Label = Translate("address", "Address"), 6630 IsRequired = false, 6631 IncludeWrapper = true 6632 6633 }; 6634 var address2Settings = new FieldSettings 6635 { 6636 Label = string.Empty, 6637 IsRequired= false, 6638 IncludeWrapper = true 6639 }; 6640 var citySettings = new FieldSettings 6641 { 6642 Label = Translate("city", "City"), 6643 IsRequired = false, 6644 IncludeWrapper = true 6645 }; 6646 var companySetting = new FieldSettings 6647 { 6648 Label = Translate("Organization", "Organization"), 6649 IsRequired = true, 6650 IncludeWrapper = true 6651 }; 6652 var regionSettings = new FieldSettings 6653 { 6654 SystemName = "state", 6655 6656 Label = Translate("stateProvince", "State / Province"), 6657 FirstHardcodedOptionLabel = Translate("stateProvince", "State / Province"), 6658 IsFirstHardcodedOptionSelected = true, 6659 IsRequired = true, 6660 IncludeWrapper = true 6661 }; 6662 regionSettings.Attributes.Add("data-size", "8"); 6663 regionSettings.Attributes.Add("data-text", regionSettings.FirstHardcodedOptionLabel); 6664 regionSettings.Attributes.Add("data-textUS", Translate("state", "State")); 6665 regionSettings.Attributes.Add("data-textCA", Translate("province", "Province")); 6666 6667 var stateSettings = new FieldSettings 6668 { 6669 SystemName = "state", 6670 Label = Translate("stateProvince", "State / Province"), 6671 FirstHardcodedOptionLabel = Translate("stateProvince", "State / Province"), 6672 IsFirstHardcodedOptionSelected = true, 6673 IsRequired = false, 6674 IncludeWrapper = true 6675 }; 6676 6677 var addressType = new FieldSettings 6678 { 6679 Type = FieldType.Select, 6680 SystemName = "AccessUserAddress_AddressType", 6681 Label = Translate("Address Type", "Address Type"), 6682 FirstHardcodedOptionLabel = Translate("AddressTypeSelect", "Select"), 6683 IsFirstHardcodedOptionSelected = true, 6684 IsRequired = false, 6685 IncludeWrapper = true 6686 }; 6687 addressType.FieldOptionsList.Add(new FieldOption 6688 { 6689 Label = @Translate("Residence"), 6690 Value = "Residence" 6691 }); 6692 addressType.FieldOptionsList.Add(new FieldOption 6693 { 6694 Label = @Translate("Business"), 6695 Value = "Business" 6696 }); 6697 addressType.FieldOptionsList.Add(new FieldOption 6698 { 6699 Label = @Translate("Pick Up Location"), 6700 Value = "Pick Up Location" 6701 }); 6702 addressType.FieldOptionsList.Add(new FieldOption 6703 { 6704 Label = @Translate("Airport"), 6705 Value = "Airport" 6706 }); 6707 var zipSettings = new FieldSettings 6708 { 6709 Label = Translate("zip", "Zip"), 6710 IsRequired = false, 6711 IncludeWrapper = true 6712 }; 6713 var countrySettings = new FieldSettings 6714 { 6715 SystemName = "country", 6716 Label = Translate("country", "Country"), 6717 IsFirstHardcodedOptionSelected = true, 6718 IsRequired = true, 6719 IncludeWrapper = true 6720 }; 6721 var customerEmailFieldSettings = new FieldSettings 6722 { 6723 Type = FieldType.Email, 6724 Label = Translate("email", "Email"), 6725 SystemName = "EcomOrderCustomerEmail", 6726 Value = GetString("Ecom:Order.Customer.Email"), //GetString("UserManagement:SecondaryUser.Email"),//using the email address of the login user GetString("Ecom:Order.Customer.Email"), 6727 IsRequired = true, 6728 IncludeWrapper = true, 6729 Prepend = Translate("receiptWillBeSentToEmail", "A receipt will be sent to this address"), 6730 WrapperCssClass = "checkEmail", 6731 CssClass = "checkEmail" 6732 }; 6733 switch (addressSource) 6734 { 6735 case AddressSource.UserProfile: 6736 addressSettings.Control = GetString("UserManagement:User.Address.Input"); 6737 6738 address2Settings.Control = GetString("UserManagement:User.Address2.Input"); 6739 6740 citySettings.Control = GetString("UserManagement:User.City.Input"); 6741 6742 zipSettings.Control = GetString("UserManagement:User.Zip.Input"); 6743 6744 countrySettings.SystemName = GetString("UserManagement:User.Country.InputName"); 6745 countrySettings.Value = GetString("UserManagement:User.Country"); 6746 6747 regionSettings.SystemName = GetString("UserManagement:User.State.InputName"); 6748 regionSettings.Value = GetString("UserManagement:User.State"); 6749 6750 break; 6751 case AddressSource.UserAddress: 6752 addressSettings.Control = GetString("UserManagement:User.UserAddress.Address"); 6753 6754 address2Settings.Control = GetString("UserManagement:User.UserAddress.Address2"); 6755 6756 citySettings.Control = GetString("UserManagement:User.UserAddress.City"); 6757 6758 zipSettings.Control = GetString("UserManagement:User.UserAddress.Zip"); 6759 countrySettings.SystemName = GetString("UserManagement:User.UserAddress.Country.InputName"); 6760 countrySettings.Value = GetString("UserManagement:User.UserAddress.Country.Value"); 6761 6762 regionSettings.SystemName = GetString("UserManagement:User.UserAddress.State.InputName"); 6763 regionSettings.Value = GetString("UserManagement:User.UserAddress.State.Value"); 6764 break; 6765 case AddressSource.EcomCustomer: 6766 addressSettings.SystemName = "EcomOrderCustomerAddress"; 6767 addressSettings.Value = GetString("Ecom:Order.Customer.Address"); 6768 address2Settings.SystemName = "EcomOrderCustomerAddress2"; 6769 address2Settings.Value = GetString("Ecom:Order.Customer.Address2"); 6770 citySettings.SystemName = "EcomOrderCustomerCity"; 6771 citySettings.Value = GetString("Ecom:Order.Customer.City"); 6772 6773 var customerRegion = GetString("Ecom:Order.Customer.Region"); 6774 int index1 = GetString("Ecom:Order.Customer.Region").IndexOf(','); 6775 if (index1 != -1) 6776 { 6777 customerRegion = GetString("Ecom:Order.Customer.Region").Remove(index1, 1); 6778 } 6779 regionSettings.Attributes.Add("data-region",customerRegion); 6780 6781 //Ecom:Order.Customer.Region 6782 stateSettings.Id = "EcomOrderCustomerRegion"; 6783 stateSettings.SystemName = "EcomOrderCustomerRegion"; 6784 stateSettings.Value = customerRegion; 6785 stateSettings.SystemName = "EcomOrderCustomerRegion"; 6786 6787 zipSettings.SystemName = "EcomOrderCustomerZip"; 6788 zipSettings.Value = GetString("Ecom:Order.Customer.Zip"); 6789 countrySettings.SystemName = "EcomOrderCustomerCountry"; 6790 countrySettings.Value = GetString("Ecom:Order.Customer.Country"); 6791 var countryValue = Dna.IP.Frontend.GetCountryCode().IsNotNullOrEmpty() ? Dna.IP.Frontend.GetCountryCode() : "US"; 6792 countrySettings.Value = countryValue; 6793 countrySettings.FirstHardcodedOptionLabel = Dynamicweb.Ecommerce.Services.Countries.GetCountry(countryValue).Name == "United States of America" ? "" : Dynamicweb.Ecommerce.Services.Countries.GetCountry(countryValue).Name; 6794 countrySettings.FirstHardcodedOptionValue = countryValue == "US" ? "" : countryValue; 6795 // On first Instance, the Ecom:Order.Customer.Country is setup to equal "UserAcess" Rules and Values 6796 var CountryCode = GetString("Ecom:Order.Customer.Country.Code").IsNotNullOrEmpty() ? GetString("Ecom:Order.Customer.Country.Code") : string.Empty; 6797 if (CountryCode!="") 6798 { 6799 countrySettings.Value = CountryCode; 6800 if (CountryCode != "US" && CountryCode != "CA") 6801 { 6802 countrySettings.FirstHardcodedOptionLabel = Dynamicweb.Ecommerce.Services.Countries.GetCountry(CountryCode).Name; 6803 countrySettings.FirstHardcodedOptionValue = CountryCode; 6804 } 6805 else 6806 { 6807 countrySettings.IsFirstHardcodedOptionSelected = false; 6808 } 6809 } 6810 6811 countrySettings.LoopOptions = countriesLoop; 6812 countrySettings.ValueLoopTag = "Ecom:Country.Code2"; 6813 countrySettings.LabelLoopTag = "Ecom:Country.Name"; 6814 break; 6815 default: 6816 throw new NotSupportedException(string.Format("Unsupported user address source: {0}.", addressSource)); 6817 6818 } 6819 6820 6821 6822 #line default 6823 #line hidden 6824 6825 #line 2525 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6826 WriteTo(__razor_helper_writer, RenderInputField(customerEmailFieldSettings)); 6827 6828 6829 #line default 6830 #line hidden 6831 6832 #line 2525 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6833 6834 6835 6836 #line default 6837 #line hidden 6838 6839 #line 2526 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6840 WriteTo(__razor_helper_writer, RenderInputField(new FieldSettings {Label = Translate("phone", "Phone"), SystemName = "EcomOrderCustomerPhone", Value = GetString("Ecom:Order.Customer.Phone"), IsRequired = false, IncludeWrapper = true})); 6841 6842 6843 #line default 6844 #line hidden 6845 6846 #line 2526 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6847 6848 6849 6850 #line default 6851 #line hidden 6852 6853 #line 2527 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6854 WriteTo(__razor_helper_writer, RenderInputField(new FieldSettings {Label = Translate("Organization"), SystemName = "EcomOrderCustomerCompany", Value = GetString("Ecom:Order.Customer.Company"), IsRequired = true, IncludeWrapper = true})); 6855 6856 6857 #line default 6858 #line hidden 6859 6860 #line 2527 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6861 6862 6863 6864 #line default 6865 #line hidden 6866 6867 #line 2528 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6868 WriteTo(__razor_helper_writer, RenderInputField(addressSettings)); 6869 6870 6871 #line default 6872 #line hidden 6873 6874 #line 2528 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6875 6876 6877 6878 6879 #line default 6880 #line hidden 6881 6882 #line 2530 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6883 WriteTo(__razor_helper_writer, RenderInputField(citySettings)); 6884 6885 6886 #line default 6887 #line hidden 6888 6889 #line 2530 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6890 6891 6892 6893 #line default 6894 #line hidden 6895 6896 #line 2531 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6897 WriteTo(__razor_helper_writer, RenderSelectField(stateSettings)); 6898 6899 6900 #line default 6901 #line hidden 6902 6903 #line 2531 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6904 6905 6906 6907 #line default 6908 #line hidden 6909 6910 #line 2532 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6911 WriteTo(__razor_helper_writer, RenderCountriesDropdownField(countrySettings)); 6912 6913 6914 #line default 6915 #line hidden 6916 6917 #line 2532 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6918 6919 6920 6921 #line default 6922 #line hidden 6923 6924 #line 2533 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6925 WriteTo(__razor_helper_writer, RenderInputField(companySetting)); 6926 6927 6928 #line default 6929 #line hidden 6930 6931 #line 2533 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6932 6933 6934 6935 6936 #line default 6937 #line hidden 6938 }); 6939 6940 #line 2535 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6941 } 6942 #line default 6943 #line hidden 6944 6945 6946 #line 2537 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6947 public RazorEngine.Templating.TemplateWriter RenderUserPasswordWithConfirmationFields() 6948 { 6949 #line default 6950 #line hidden 6951 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6952 6953 #line 2538 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6954 6955 6956 6957 #line default 6958 #line hidden 6959 6960 #line 2539 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6961 WriteTo(__razor_helper_writer, RenderInputField(new FieldSettings {Type = FieldType.Password, Label = Translate("newPassword", "New Password"), Id = "UserManagement_Form_NewPassword", Control = GetString("UserManagement:User.NewPassword.Input"), Description = Translate("passwordRulesMessage", "1) the password must contain letters and numbers and </br> 2) it must be at least 8 characters long."), CssClass = "confirmation", IsRequired = true, IncludeWrapper = true})); 6962 6963 6964 #line default 6965 #line hidden 6966 6967 #line 2539 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6968 6969 6970 6971 #line default 6972 #line hidden 6973 6974 #line 2540 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6975 WriteTo(__razor_helper_writer, RenderInputField(new FieldSettings {Type = FieldType.Password, Label = Translate("confirmPassword", "Confirm Password"), Id = "UserManagement_Form_NewPasswordConfirm", Control = GetString("UserManagement:User.NewPasswordConfirm.Input"), CssClass = "confirmation", IsRequired = true, IncludeWrapper = true})); 6976 6977 6978 #line default 6979 #line hidden 6980 6981 #line 2540 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6982 6983 6984 6985 #line default 6986 #line hidden 6987 }); 6988 6989 #line 2541 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6990 } 6991 #line default 6992 #line hidden 6993 6994 6995 #line 2542 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 6996 public RazorEngine.Templating.TemplateWriter RenderGroupList(IEnumerable<Dynamicweb.Security.UserManagement.Group> selectableGroups, ReadOnlyGroupCollection userGroups, int columnWidth = 12, string title = "") 6997 { 6998 #line default 6999 #line hidden 7000 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7001 7002 #line 2543 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7003 7004 7005 7006 #line default 7007 #line hidden 7008 WriteLiteralTo(__razor_helper_writer, " <li"); 7009 7010 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 102236), Tuple.Create("\"", 102273) 7011 , Tuple.Create(Tuple.Create("", 102244), Tuple.Create("col-xs-12", 102244), true) 7012 , Tuple.Create(Tuple.Create(" ", 102253), Tuple.Create("col-sm-", 102254), true) 7013 7014 #line 2544 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7015 , Tuple.Create(Tuple.Create("", 102261), Tuple.Create<System.Object, System.Int32>(columnWidth 7016 7017 #line default 7018 #line hidden 7019 , 102261), false) 7020 ); 7021 7022 WriteLiteralTo(__razor_helper_writer, ">\r\n <h3>"); 7023 7024 7025 #line 2545 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7026 WriteTo(__razor_helper_writer, title); 7027 7028 7029 #line default 7030 #line hidden 7031 WriteLiteralTo(__razor_helper_writer, "</h3>\r\n"); 7032 7033 7034 #line 2546 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7035 7036 7037 #line default 7038 #line hidden 7039 7040 #line 2546 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7041 foreach (var selectableGroup in selectableGroups) 7042 { 7043 var fieldSystemName = "UserManagement_Form_SelectableGroup_" + selectableGroup.ID; 7044 7045 7046 7047 #line default 7048 #line hidden 7049 7050 #line 2550 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7051 WriteTo(__razor_helper_writer, RenderCheckboxField(new FieldSettings { SystemName = fieldSystemName, Label = selectableGroup.Name, IsChecked = userGroups.Any(i => i.ID.Equals(selectableGroup.ID)), IncludeWrapper = true})); 7052 7053 7054 #line default 7055 #line hidden 7056 7057 #line 2550 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7058 7059 } 7060 7061 7062 #line default 7063 #line hidden 7064 WriteLiteralTo(__razor_helper_writer, "\r\n </li>\r\n"); 7065 7066 7067 #line 2554 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7068 7069 7070 #line default 7071 #line hidden 7072 }); 7073 7074 #line 2554 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7075 } 7076 #line default 7077 #line hidden 7078 7079 7080 #line 2572 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7081 7082 7083 public string GetAddressHash(AddressSource addressSource) 7084 { 7085 switch (addressSource) 7086 { 7087 case AddressSource.UserProfile: 7088 return GetAddressHash(GetString("UserManagement:User.Address"), GetString("UserManagement:User.Address2"), GetString("UserManagement:User.City"), GetString("UserManagement:User.State"), GetString("UserManagement:User.Zip"), GetString("UserManagement:User.Country")); 7089 case AddressSource.EcomCustomer: 7090 return GetAddressHash(GetString("Ecom:Order.Customer.Address"), GetString("Ecom:Order.Customer.Address2"), GetString("Ecom:Order.Customer.City"), GetString("Ecom:Order.Customer.Region"), GetString("Ecom:Order.Customer.Zip"), GetString("Ecom:Order.Customer.Country.Code")); 7091 case AddressSource.EcomDelivery: 7092 return GetAddressHash(GetString("Ecom:Order.Delivery.Address"), GetString("Ecom:Order.Delivery.Address2"), GetString("Ecom:Order.Delivery.City"), GetString("Ecom:Order.Delivery.Region"), GetString("Ecom:Order.Delivery.Zip"), GetString("Ecom:Order.Delivery.Country.Code")); 7093 default: 7094 throw new ArgumentOutOfRangeException("addressSource property", addressSource, null); 7095 } 7096 } 7097 7098 public bool AreAddressesTheSame() 7099 { 7100 var customerAddressHash = GetAddressHash(AddressSource.UserProfile); 7101 var deliveryAddressHash = GetAddressHash(AddressSource.EcomDelivery); 7102 7103 return customerAddressHash == deliveryAddressHash; 7104 } 7105 7106 public string GetAddressHash(string address, string address2, string city, string region, string zip, string country) 7107 { 7108 int index1 = region.IndexOf(','); 7109 int index2 = address.IndexOf(','); 7110 if (index1 != -1) 7111 { 7112 region = region.Remove(index1, 1); 7113 } 7114 if (index2 != -1 && address.EndsWith(",")) 7115 { 7116 address = address.Remove(address.Length - 1); 7117 7118 } 7119 return string.Concat(address,city, zip, region, country); 7120 } 7121 7122 public void CreateNewAddress(AddressSource addressSource) 7123 { 7124 switch (addressSource) 7125 { 7126 case AddressSource.EcomCustomer: 7127 CreateNewAddress( 7128 GetString("Ecom:Order.Customer.Address"), 7129 GetString("Ecom:Order.Customer.Address2"), 7130 GetString("Ecom:Order.Customer.City"), 7131 GetString("Ecom:Order.Customer.Region"), 7132 GetString("Ecom:Order.Customer.Zip"), 7133 GetString("Ecom:Order.Customer.Country.Code"), 7134 Pageview.User.ID, 7135 GetString("Ecom:Order.Customer.Phone"), 7136 GetString("Ecom:Order.Customer.Email"), 7137 GetString("Ecom:Order.Delivery.Company") 7138 ); 7139 break; 7140 case AddressSource.EcomDelivery: 7141 CreateNewAddress( 7142 GetString("Ecom:Order.Delivery.Address"), 7143 GetString("Ecom:Order.Delivery.Address2"), 7144 GetString("Ecom:Order.Delivery.City"), 7145 GetString("Ecom:Order.Delivery.Region"), 7146 GetString("Ecom:Order.Delivery.Zip"), 7147 GetString("Ecom:Order.Delivery.Country.Code"), 7148 Pageview.User.ID, 7149 GetString("Ecom:Order.Delivery.Phone"), 7150 GetString("Ecom:Order.Delivery.Email"), 7151 GetString("Ecom:Order.Delivery.Company") 7152 ); 7153 break; 7154 default: 7155 throw new ArgumentOutOfRangeException("addressSource property", addressSource, null); 7156 } 7157 7158 } 7159 7160 public void CreateNewAddress(string address, string address2, string city, string state, string zip, string country, int userId, string phone, string email, string company ) 7161 { 7162 var newAddress = new Dynamicweb.Security.UserManagement.UserAddress(); 7163 newAddress.Address = address; 7164 newAddress.Address2 = address2; 7165 newAddress.City = city; 7166 newAddress.State = state; 7167 newAddress.Zip = zip; 7168 newAddress.Country = country; 7169 newAddress.UserID = userId; 7170 newAddress.Phone = phone; 7171 newAddress.Email = email; 7172 newAddress.Company = company; 7173 // newAddress.Title = addressTitle; 7174 newAddress.Save(); 7175 } 7176 7177 public void UpdateUserAddress(AddressSource addressSource, int addressId) 7178 { 7179 switch (addressSource) 7180 { 7181 case AddressSource.EcomCustomer: 7182 UpdateUserAddress( 7183 GetString("Ecom:Order.Customer.Address"), 7184 GetString("Ecom:Order.Customer.Address2"), 7185 GetString("Ecom:Order.Customer.City"), 7186 GetString("Ecom:Order.Customer.Region"), 7187 GetString("Ecom:Order.Customer.Zip"), 7188 GetString("Ecom:Order.Customer.Country.Code"), 7189 GetString("Ecom:Order.Customer.Phone"), 7190 GetString("Ecom:Order.Customer.Email"), 7191 addressId, 7192 GetString("Ecom:Order.Customer.Company") 7193 ); 7194 break; 7195 case AddressSource.EcomDelivery: 7196 UpdateUserAddress( 7197 GetString("Ecom:Order.Delivery.Address"), 7198 GetString("Ecom:Order.Delivery.Address2"), 7199 GetString("Ecom:Order.Delivery.City"), 7200 GetString("Ecom:Order.Delivery.Region"), 7201 GetString("Ecom:Order.Delivery.Zip"), 7202 GetString("Ecom:Order.Delivery.Country.Code"), 7203 GetString("Ecom:Order.Delivery.Phone"), 7204 GetString("Ecom:Order.Delivery.Email"), 7205 addressId, 7206 GetString("Ecom:Order.Delivery.Company") 7207 ); 7208 break; 7209 default: 7210 throw new ArgumentOutOfRangeException("addressSource property", addressSource, null); 7211 } 7212 } 7213 7214 public void UpdateUserAddress(string address, string address2, string city, string state, string zip, string country, string phone, string email,int addressId,string company ) 7215 { 7216 if (addressId == Pageview.User.ID) 7217 { 7218 var addressToUpdate = User.GetCurrentUser(); 7219 7220 addressToUpdate.Company = company; 7221 addressToUpdate.Address = address; 7222 addressToUpdate.Address2 = address2; 7223 addressToUpdate.City = city; 7224 addressToUpdate.State = state; 7225 addressToUpdate.Zip = zip; 7226 addressToUpdate.Country = country; 7227 addressToUpdate.Phone = phone; 7228 addressToUpdate.Email = email; 7229 addressToUpdate.Save(); 7230 } 7231 else 7232 { 7233 var addressToUpdate = UserAddress.GetUserAddressById(addressId); 7234 // addressToUpdate.Title = addressTitle;// -> https://doc.dynamicweb.com/api/html/4a74b514-b36d-5365-046c-94587b29d8fc.htm 7235 addressToUpdate.Address = address; 7236 addressToUpdate.Company = company; 7237 addressToUpdate.Address2 = address2; 7238 addressToUpdate.City = city; 7239 addressToUpdate.State = state; 7240 addressToUpdate.Zip = zip; 7241 addressToUpdate.Country = country; 7242 addressToUpdate.Phone = phone; 7243 addressToUpdate.Email = email; 7244 addressToUpdate.Save(); 7245 } 7246 } 7247 public void CreateAddressFromBillingAndShipping() 7248 { 7249 if (HttpContext.Current.Request.Cookies["SaveAddress"] == null) return; 7250 7251 var saveAddressCookie = HttpContext.Current.Request.Cookies["SaveAddress"]; 7252 //UpdateDeliveryAddress 7253 if (saveAddressCookie.HasKeys) 7254 { 7255 if(saveAddressCookie["SaveBillingAddress"] != null || saveAddressCookie["UpdateDeliveryAddress"] == "0") { 7256 if (saveAddressCookie["SaveBillingAddress"] == "True") 7257 { 7258 if (!isAnUserAddress(GetAddressHash(GetString("Ecom:Order.Customer.Address"), GetString("Ecom:Order.Customer.Address2"), GetString("Ecom:Order.Customer.City"), GetString("Ecom:Order.Customer.Region"), GetString("Ecom:Order.Customer.Zip"), GetString("Ecom:Order.Customer.Country")))) 7259 { 7260 CreateNewAddress(AddressSource.EcomCustomer); 7261 } 7262 } 7263 if (saveAddressCookie["SaveDeliveryAddress"] == "True" || saveAddressCookie["UpdateDeliveryAddress"] == "0") 7264 { 7265 CreateNewAddress(AddressSource.EcomDelivery); 7266 } 7267 } 7268 else { 7269 if (saveAddressCookie["UpdateBillingAddress"] != null) 7270 { 7271 int num; 7272 if(int.TryParse(saveAddressCookie["UpdateBillingAddress"], out num)) 7273 { 7274 UpdateUserAddress(AddressSource.EcomCustomer, num); 7275 } 7276 } 7277 if (saveAddressCookie["UpdateDeliveryAddress"] != null) 7278 { 7279 int num; 7280 if (int.TryParse(saveAddressCookie["UpdateDeliveryAddress"], out num)) 7281 { 7282 UpdateUserAddress(AddressSource.EcomDelivery, num); 7283 } 7284 } 7285 } 7286 } 7287 saveAddressCookie.Expires = DateTime.Now.AddDays(-1d); 7288 HttpContext.Current.Response.Cookies.Add(saveAddressCookie); 7289 } 7290 7291 public bool isAnUserAddress(string addressHash) 7292 { 7293 return UserAddress.GetUserAddresses(Pageview.User.ID).Any(address => string.Equals(GetAddressHash(address.Address, address.Address2, address.City, address.State, address.Zip, address.Country), addressHash, StringComparison.OrdinalIgnoreCase)); 7294 } 7295 7296 public void ShouldChangeThePageTemplate(string template) 7297 { 7298 // TODO - The LayoutTemplate property changes the Page template in DW intead of just change in the pageview. I created a thread in DW forum: http://doc.dynamicweb.com/forum?ThreadID=55154&PID=1605 7299 if (Pageview.Page.LayoutTemplate.Contains(template)) return; 7300 7301 Pageview.Page.LayoutTemplate = "Designs/" + Pageview.Area.Layout.Design.Name + "/" + template; 7302 HttpContext.Current.Response.Redirect(Helpers.GetCurrentUrl()); 7303 } 7304 7305 7306 #line default 7307 #line hidden 7308 7309 7310 #line 2800 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7311 public RazorEngine.Templating.TemplateWriter RenderViewCartActions() 7312 { 7313 #line default 7314 #line hidden 7315 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7316 7317 #line 2801 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7318 7319 7320 7321 #line default 7322 #line hidden 7323 WriteLiteralTo(__razor_helper_writer, " <div"); 7324 7325 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 checkoutButton noPadding\""); 7326 7327 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7328 7329 WriteLiteralTo(__razor_helper_writer, " "); 7330 7331 7332 #line 2803 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7333 WriteTo(__razor_helper_writer, RenderBootstrapButton(BootstrapButtonSettings.CreateButton(Translate("Checkout", "CHECKOUT"), "#", "btn-default pull-right mb-5 gotoCheckout"))); 7334 7335 7336 #line default 7337 #line hidden 7338 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 7339 7340 7341 #line 2805 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7342 7343 7344 #line default 7345 #line hidden 7346 }); 7347 7348 #line 2805 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7349 } 7350 #line default 7351 #line hidden 7352 7353 7354 #line 2807 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7355 public RazorEngine.Templating.TemplateWriter RenderCheckoutActions(bool showPrevious = false) 7356 { 7357 #line default 7358 #line hidden 7359 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7360 7361 #line 2808 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7362 7363 7364 7365 #line default 7366 #line hidden 7367 WriteLiteralTo(__razor_helper_writer, " <div"); 7368 7369 WriteLiteralTo(__razor_helper_writer, " class=\"continueButton col-xs-12\""); 7370 7371 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7372 7373 7374 #line 2810 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7375 7376 7377 #line default 7378 #line hidden 7379 7380 #line 2810 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7381 if (showPrevious) 7382 { 7383 var previousButton = "/Default.aspx?ID=" + Pageview.Page.ID + "&amp;" + GetString("CartV2.PreviousStepButtonName") + "=true"; 7384 7385 7386 #line default 7387 #line hidden 7388 7389 #line 2813 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7390 WriteTo(__razor_helper_writer, RenderBootstrapButton(BootstrapButtonSettings.CreateButton(Translate("previous", "Previous"), previousButton, "pull-left previousButton"))); 7391 7392 7393 #line default 7394 #line hidden 7395 7396 #line 2813 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7397 7398 } 7399 7400 #line default 7401 #line hidden 7402 WriteLiteralTo(__razor_helper_writer, "\r\n"); 7403 7404 WriteLiteralTo(__razor_helper_writer, " "); 7405 7406 7407 #line 2815 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7408 WriteTo(__razor_helper_writer, RenderButtonField(FieldSettings.CreateSubmitField(Translate("Checkout"), "btn-default pull-right"))); 7409 7410 7411 #line default 7412 #line hidden 7413 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 7414 7415 7416 #line 2817 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7417 7418 7419 #line default 7420 #line hidden 7421 }); 7422 7423 #line 2817 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7424 } 7425 #line default 7426 #line hidden 7427 7428 7429 #line 2834 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7430 public RazorEngine.Templating.TemplateWriter RenderCheckoutCompleteActions(bool isCheckoutFlow = true) 7431 { 7432 #line default 7433 #line hidden 7434 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7435 7436 #line 2835 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7437 7438 var urlParameter = isCheckoutFlow ? "?print=true" : "&amp;print=true"; 7439 var printUrl = HttpContext.Current.Request.RawUrl + urlParameter; 7440 var pdfUrl = printUrl + "&amp;pdf=true&amp;filename=Order_" + GetString("Ecom:Order.ID") + ".pdf"; 7441 var printOrderUrl = HttpContext.Current.Request.RawUrl + "&print=true&AltTemplate=/Files/Templates/Designs/VisionSpring/QuoteCheckoutPage.cshtml"; 7442 var alternativeTemplate = "AltTemplate=/Files/Templates/Designs/VisionSpring/CheckoutPage.cshtml"; 7443 var pdfPrintUrl = HttpContext.Current.Request.RawUrl + "&print=true&pdf=true" + "&amp;filename=Order_" + GetString("Ecom:Order.ID") + ".pdf" + "&AltTemplate=/Files/Templates/Designs/VisionSpring/QuoteCheckoutPage.cshtml"; 7444 7445 7446 7447 #line default 7448 #line hidden 7449 WriteLiteralTo(__razor_helper_writer, " <div"); 7450 7451 WriteLiteralTo(__razor_helper_writer, " class=\"continueButton col-xs-12 hidden-xs\""); 7452 7453 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7454 7455 WriteLiteralTo(__razor_helper_writer, " "); 7456 7457 7458 #line 2844 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7459 WriteTo(__razor_helper_writer, RenderBootstrapButton(new BootstrapButtonSettings 7460 { 7461 Label = Translate("print", "Print"), 7462 Href = printOrderUrl, 7463 CssClass = "btn-outline pull-left print", 7464 Target = "_blank" 7465 })); 7466 7467 7468 #line default 7469 #line hidden 7470 WriteLiteralTo(__razor_helper_writer, "\r\n"); 7471 7472 WriteLiteralTo(__razor_helper_writer, " "); 7473 7474 7475 #line 2851 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7476 WriteTo(__razor_helper_writer, RenderBootstrapButton(new BootstrapButtonSettings 7477 { 7478 Label = Translate("downloadAsPdf", "Download as PDF"), 7479 Href = pdfPrintUrl, 7480 CssClass = "btn-outline pull-left dwnPdf", 7481 Target = "_blank" 7482 })); 7483 7484 7485 #line default 7486 #line hidden 7487 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n\r\n"); 7488 7489 7490 #line 2860 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7491 7492 7493 #line default 7494 #line hidden 7495 7496 #line 2860 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7497 if (!isCheckoutFlow) 7498 { 7499 7500 7501 #line default 7502 #line hidden 7503 7504 #line 2862 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7505 WriteTo(__razor_helper_writer, RenderBootstrapButton(new BootstrapButtonSettings 7506 { 7507 Label = Translate("back", "Back"), 7508 Href = "javascript:history.back();", 7509 CssClass = "btn-bg2 pull-right", 7510 IconCssClass = "fa-arrow-left" 7511 })); 7512 7513 7514 #line default 7515 #line hidden 7516 7517 #line 2868 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7518 7519 } 7520 7521 #line default 7522 #line hidden 7523 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 7524 7525 7526 #line 2871 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7527 7528 7529 #line default 7530 #line hidden 7531 }); 7532 7533 #line 2871 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7534 } 7535 #line default 7536 #line hidden 7537 7538 7539 #line 2873 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7540 public RazorEngine.Templating.TemplateWriter RenderCartContents(List<LoopItem> orderlines, CartOutputType outputType = CartOutputType.ReadOnly) 7541 { 7542 #line default 7543 #line hidden 7544 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7545 7546 #line 2874 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7547 7548 if (outputType != CartOutputType.Email && outputType != CartOutputType.MiniCart) 7549 { 7550 7551 7552 #line default 7553 #line hidden 7554 WriteLiteralTo(__razor_helper_writer, " <header"); 7555 7556 WriteLiteralTo(__razor_helper_writer, " class=\"showCartHeader col-sm-12 noPadding\""); 7557 7558 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 7559 7560 WriteLiteralTo(__razor_helper_writer, " class=\"hidden-xs col-sm-2 col-xs-offset-4 noPadding mdAlignRight\""); 7561 7562 WriteLiteralTo(__razor_helper_writer, ">"); 7563 7564 7565 #line 2878 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7566 WriteTo(__razor_helper_writer, Translate("unitPrice", "Unit price")); 7567 7568 7569 #line default 7570 #line hidden 7571 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <div"); 7572 7573 WriteLiteralTo(__razor_helper_writer, " class=\"hidden-xs col-sm-2 noPadding mdAlignRight\""); 7574 7575 WriteLiteralTo(__razor_helper_writer, ">"); 7576 7577 7578 #line 2879 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7579 WriteTo(__razor_helper_writer, Translate("smallQuantity", "Qty")); 7580 7581 7582 #line default 7583 #line hidden 7584 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <div"); 7585 7586 WriteLiteralTo(__razor_helper_writer, " class=\"hidden-xs col-sm-2 noPadding mdAlignRight\""); 7587 7588 WriteLiteralTo(__razor_helper_writer, ">"); 7589 7590 7591 #line 2880 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7592 WriteTo(__razor_helper_writer, Translate("discount", "Discount")); 7593 7594 7595 #line default 7596 #line hidden 7597 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <div"); 7598 7599 WriteLiteralTo(__razor_helper_writer, " class=\"col-sm-2 totalPrice text-right\""); 7600 7601 WriteLiteralTo(__razor_helper_writer, ">"); 7602 7603 7604 #line 2881 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7605 WriteTo(__razor_helper_writer, Translate("totalPrice", "Total Price")); 7606 7607 7608 #line default 7609 #line hidden 7610 WriteLiteralTo(__razor_helper_writer, "</div>\r\n </header>\r\n"); 7611 7612 WriteLiteralTo(__razor_helper_writer, " "); 7613 7614 WriteLiteralTo(__razor_helper_writer, " <ul class=\"cartProductsList\">\r\n"); 7615 7616 7617 #line 2884 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7618 } 7619 else if (outputType == CartOutputType.MiniCart) 7620 { 7621 var totalQty = GetInteger("Ecom:Order.OrderLines.TotalProductQuantity"); // variable needed to avoid Ajax issues with the attribute value 7622 7623 7624 7625 #line default 7626 #line hidden 7627 WriteLiteralTo(__razor_helper_writer, " "); 7628 7629 WriteLiteralTo(__razor_helper_writer, "<div>\r\n"); 7630 7631 WriteLiteralTo(__razor_helper_writer, " "); 7632 7633 WriteLiteralTo(__razor_helper_writer, "<div id=\"miniCart\" data-quantity=\""); 7634 7635 7636 #line 2890 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7637 WriteTo(__razor_helper_writer, totalQty); 7638 7639 7640 #line default 7641 #line hidden 7642 WriteLiteralTo(__razor_helper_writer, "\" data-orderId=\'"); 7643 7644 7645 #line 2890 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7646 WriteTo(__razor_helper_writer, GetString("Ecom:Order.ID")); 7647 7648 7649 #line default 7650 #line hidden 7651 WriteLiteralTo(__razor_helper_writer, "\'>\r\n"); 7652 7653 WriteLiteralTo(__razor_helper_writer, " "); 7654 7655 WriteLiteralTo(__razor_helper_writer, "<ul class=\"col-xs-12\" id=\"miniCartContainer\" > \r\n"); 7656 7657 7658 #line 2892 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7659 } 7660 7661 foreach (var orderline in orderlines) 7662 { 7663 7664 var orderLineType = (OrderLineType) orderline.GetInteger("Ecom:Order:OrderLine.Type"); 7665 if (orderLineType == OrderLineType.Product || 7666 orderLineType == OrderLineType.GiftCard || 7667 orderLineType == OrderLineType.Fixed || 7668 orderLineType == OrderLineType.PointProduct || 7669 orderLineType == OrderLineType.Discount || 7670 orderLineType == OrderLineType.ProductDiscount) 7671 { 7672 if (outputType == CartOutputType.Email) 7673 { 7674 7675 7676 #line default 7677 #line hidden 7678 7679 #line 2907 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7680 WriteTo(__razor_helper_writer, RenderEmailCartContentLine(orderline)); 7681 7682 7683 #line default 7684 #line hidden 7685 7686 #line 2907 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7687 7688 } 7689 else 7690 { 7691 7692 7693 7694 #line default 7695 #line hidden 7696 7697 #line 2912 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7698 WriteTo(__razor_helper_writer, RenderCartContentLine(orderline, outputType)); 7699 7700 7701 #line default 7702 #line hidden 7703 7704 #line 2912 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7705 7706 } 7707 } 7708 } 7709 7710 if (outputType != CartOutputType.Email) 7711 { 7712 7713 7714 #line default 7715 #line hidden 7716 WriteLiteralTo(__razor_helper_writer, " "); 7717 7718 WriteLiteralTo(__razor_helper_writer, "</ul>\r\n"); 7719 7720 7721 #line 2920 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7722 } 7723 if (outputType == CartOutputType.MiniCart) 7724 { 7725 var subtotal = orderlines.Where(t => t.GetInteger("Ecom:Order:OrderLine.Type") == (int) OrderLineType.Product || t.GetInteger("Ecom:Order:OrderLine.Type") == (int) OrderLineType.GiftCard).Sum(a => a.GetDouble("Ecom:Order:OrderLine.TotalPriceWithProductDiscounts.Price")); 7726 var checkoutUrl= Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl("Default.aspx?ID=" + GetPageIdByNavigationTag("MyQuote") + "?CartV2.GotoStep1=true"); 7727 7728 7729 7730 #line default 7731 #line hidden 7732 WriteLiteralTo(__razor_helper_writer, " <footer"); 7733 7734 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12\""); 7735 7736 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 7737 7738 WriteLiteralTo(__razor_helper_writer, " class=\"subTotal col-xs-12 noPadding\""); 7739 7740 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7741 7742 WriteLiteralTo(__razor_helper_writer, " "); 7743 7744 7745 #line 2928 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7746 WriteTo(__razor_helper_writer, Translate("subtotal", "Subtotal")); 7747 7748 7749 #line default 7750 #line hidden 7751 WriteLiteralTo(__razor_helper_writer, " <span"); 7752 7753 WriteLiteralTo(__razor_helper_writer, " class=\"pull-right\""); 7754 7755 WriteLiteralTo(__razor_helper_writer, ">"); 7756 7757 7758 #line 2928 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7759 WriteTo(__razor_helper_writer, Dynamicweb.Ecommerce.Common.Context.Currency.Format(subtotal, true)); 7760 7761 7762 #line default 7763 #line hidden 7764 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </div>\r\n <div"); 7765 7766 WriteLiteralTo(__razor_helper_writer, " class=\"miniCartBtns col-xs-12 noPadding\""); 7767 7768 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7769 7770 WriteLiteralTo(__razor_helper_writer, " "); 7771 7772 7773 #line 2931 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7774 WriteTo(__razor_helper_writer, RenderBootstrapButton(BootstrapButtonSettings.CreateButton(Translate("showCart", "Show Cart"), Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetPageIdByNavigationTag("MyQoute")), "btn-default pull-left"))); 7775 7776 7777 #line default 7778 #line hidden 7779 WriteLiteralTo(__razor_helper_writer, "\r\n"); 7780 7781 WriteLiteralTo(__razor_helper_writer, " "); 7782 7783 7784 #line 2932 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7785 WriteTo(__razor_helper_writer, RenderBootstrapButton(BootstrapButtonSettings.CreateButton(Translate("checkout", "Checkout"), checkoutUrl, "btn-default pull-right"))); 7786 7787 7788 #line default 7789 #line hidden 7790 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n \r\n"); 7791 7792 WriteLiteralTo(__razor_helper_writer, " "); 7793 7794 7795 #line 2935 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7796 WriteTo(__razor_helper_writer, RenderOrderAmountsDisclaimer()); 7797 7798 7799 #line default 7800 #line hidden 7801 WriteLiteralTo(__razor_helper_writer, "\r\n </footer>\r\n"); 7802 7803 WriteLiteralTo(__razor_helper_writer, " "); 7804 7805 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 7806 7807 WriteLiteralTo(__razor_helper_writer, " "); 7808 7809 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 7810 7811 WriteLiteralTo(__razor_helper_writer, " "); 7812 7813 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 7814 7815 7816 #line 2940 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7817 } 7818 7819 7820 #line default 7821 #line hidden 7822 }); 7823 7824 #line 2941 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7825 } 7826 #line default 7827 #line hidden 7828 7829 7830 #line 2949 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7831 public RazorEngine.Templating.TemplateWriter RenderCartContentLine(LoopItem orderline, CartOutputType outputType = CartOutputType.ReadOnly) 7832 { 7833 #line default 7834 #line hidden 7835 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7836 7837 #line 2950 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7838 7839 7840 7841 #line default 7842 #line hidden 7843 7844 #line 2957 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7845 7846 7847 var orderlineId = orderline.GetString("Ecom:Order:OrderLine.Id"); 7848 var orderlineDeleteLink = orderline.GetString("Ecom:Order:OrderLine.DeleteLink"); 7849 var productMinimumOrderQuantity = orderline.GetString("Ecom:Product:Field.MOQ"); 7850 var isService = orderline.GetInteger("Ecom:Product.Type") == 1; 7851 // var productStock = isService ? 10000 : orderline.GetInteger("Ecom:Product.AvailableAmount"); 7852 var productStock = isService ? 10000 : 10000; 7853 var productQuantity = orderline.GetInteger("Ecom:Order:OrderLine.Quantity"); 7854 var productId = orderline.GetString("Ecom:Order:OrderLine.ProductID"); 7855 var productName = orderline.GetString("Ecom:Order:OrderLine.ProductName"); 7856 var productNumber = orderline.GetString("Ecom:Product.Number"); 7857 var productImage = orderline.GetImagePath(); 7858 var imageUrl = Images.GetImage(productImage, 95, 95); 7859 var variantText = orderline.GetString("Ecom:Order:OrderLine.ProductVariantText"); 7860 var productUrl = "/Default.aspx?ID=" + GetPageIdByNavigationTag("Products") + "&amp;ProductID=" +productId; 7861 var figureClass = outputType == CartOutputType.MiniCart ? "text-center col-xs-3 col-sm-3 noPadding" : "text-center col-xs-4 col-sm-4"; 7862 var prodContainerClass = outputType == CartOutputType.MiniCart ? "col-xs-9 col-sm-9 noPaddingRight" : "col-xs-8 col-sm-8 mt-3 prodName noPadding"; 7863 var productFriendlyUrl = string.Concat(HttpContext.Current.Request.Url.Scheme, "://", HttpContext.Current.Request.Url.Host, Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetPageIdByNavigationTag("Products")) + string.Concat("?ProductID=", productId)); 7864 var shareFacebookUrl = string.Concat("https://www.facebook.com/sharer/sharer.php?u=",productFriendlyUrl); 7865 var shareTwitterUrl = string.Concat("https://twitter.com/home?status=", productFriendlyUrl); 7866 7867 var productType = orderline.GetInteger("Ecom:Product.Type"); 7868 var productVariantCount = orderline.GetInteger("Ecom:Product.VariantCount"); 7869 7870 7871 7872 var imageSettings = new ImageSettings 7873 { 7874 Source = imageUrl, 7875 AltText = productName, 7876 Href = productUrl, 7877 IncludeWrapper = true, 7878 WrapperElement = Sanitize.Parameter("print").IsNotNullOrEmpty() ? "div" : "figure", 7879 WrapperCssClass = figureClass 7880 }; 7881 7882 if(productType == 0 && productVariantCount > 0) { 7883 7884 7885 7886 #line default 7887 #line hidden 7888 WriteLiteralTo(__razor_helper_writer, " <li"); 7889 7890 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 7891 7892 WriteLiteralTo(__razor_helper_writer, " data-facebook=\""); 7893 7894 7895 #line 2996 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7896 WriteTo(__razor_helper_writer, shareFacebookUrl); 7897 7898 7899 #line default 7900 #line hidden 7901 WriteLiteralTo(__razor_helper_writer, "\""); 7902 7903 WriteLiteralTo(__razor_helper_writer, " data-twitter=\""); 7904 7905 7906 #line 2996 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7907 WriteTo(__razor_helper_writer, shareTwitterUrl); 7908 7909 7910 #line default 7911 #line hidden 7912 WriteLiteralTo(__razor_helper_writer, "\""); 7913 7914 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7915 7916 7917 #line 2997 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7918 7919 7920 #line default 7921 #line hidden 7922 7923 #line 2997 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7924 if (outputType != CartOutputType.MiniCart) 7925 { 7926 7927 7928 #line default 7929 #line hidden 7930 WriteLiteralTo(__razor_helper_writer, " "); 7931 7932 WriteLiteralTo(__razor_helper_writer, "<div class=\"col-xs-12 col-sm-4 noPaddingLeft noPadding-xs\">\r\n"); 7933 7934 7935 #line 3000 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7936 } 7937 7938 #line default 7939 #line hidden 7940 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 7941 7942 WriteLiteralTo(__razor_helper_writer, " "); 7943 7944 7945 #line 3002 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7946 WriteTo(__razor_helper_writer, RenderImage(imageSettings)); 7947 7948 7949 #line default 7950 #line hidden 7951 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n <div"); 7952 7953 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 124642), Tuple.Create("\"", 124669) 7954 7955 #line 3004 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7956 , Tuple.Create(Tuple.Create("", 124650), Tuple.Create<System.Object, System.Int32>(prodContainerClass 7957 7958 #line default 7959 #line hidden 7960 , 124650), false) 7961 ); 7962 7963 WriteLiteralTo(__razor_helper_writer, ">\r\n <h2>\r\n <a"); 7964 7965 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 124717), Tuple.Create("\"", 124735) 7966 7967 #line 3006 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7968 , Tuple.Create(Tuple.Create("", 124724), Tuple.Create<System.Object, System.Int32>(productUrl 7969 7970 #line default 7971 #line hidden 7972 , 124724), false) 7973 ); 7974 7975 WriteLiteralTo(__razor_helper_writer, ">\r\n <strong>"); 7976 7977 7978 #line 3007 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7979 WriteTo(__razor_helper_writer, productName); 7980 7981 7982 #line default 7983 #line hidden 7984 WriteLiteralTo(__razor_helper_writer, "</strong>\r\n"); 7985 7986 7987 #line 3008 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7988 7989 7990 #line default 7991 #line hidden 7992 7993 #line 3008 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 7994 if (variantText.IsNotNullOrEmpty()) 7995 { 7996 7997 7998 #line default 7999 #line hidden 8000 WriteLiteralTo(__razor_helper_writer, " <br/>\r\n"); 8001 8002 WriteLiteralTo(__razor_helper_writer, " <small>"); 8003 8004 8005 #line 3011 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8006 WriteTo(__razor_helper_writer, variantText); 8007 8008 8009 #line default 8010 #line hidden 8011 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 8012 8013 8014 #line 3012 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8015 } 8016 8017 #line default 8018 #line hidden 8019 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </h2>\r\n"); 8020 8021 8022 #line 3015 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8023 8024 8025 #line default 8026 #line hidden 8027 8028 #line 3015 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8029 if (outputType == CartOutputType.MiniCart) 8030 { 8031 8032 8033 #line default 8034 #line hidden 8035 WriteLiteralTo(__razor_helper_writer, " <span"); 8036 8037 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 8038 8039 WriteLiteralTo(__razor_helper_writer, ">\r\n <strong>"); 8040 8041 8042 #line 3018 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8043 WriteTo(__razor_helper_writer, Translate("qty", "Qty")); 8044 8045 8046 #line default 8047 #line hidden 8048 WriteLiteralTo(__razor_helper_writer, ": </strong>"); 8049 8050 8051 #line 3018 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8052 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.Quantity")); 8053 8054 8055 #line default 8056 #line hidden 8057 WriteLiteralTo(__razor_helper_writer, " <span"); 8058 8059 WriteLiteralTo(__razor_helper_writer, " class=\"pull-right\""); 8060 8061 WriteLiteralTo(__razor_helper_writer, ">"); 8062 8063 8064 #line 3018 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8065 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.TotalPrice")); 8066 8067 8068 #line default 8069 #line hidden 8070 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </span>\r\n"); 8071 8072 8073 #line 3020 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8074 } 8075 else if (productNumber.IsNotNullOrEmpty() && outputType != CartOutputType.MiniCart) 8076 { 8077 8078 8079 #line default 8080 #line hidden 8081 WriteLiteralTo(__razor_helper_writer, " <div"); 8082 8083 WriteLiteralTo(__razor_helper_writer, " class=\"itemDetails\""); 8084 8085 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8086 8087 WriteLiteralTo(__razor_helper_writer, " "); 8088 8089 8090 #line 3024 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8091 WriteTo(__razor_helper_writer, Translate("item#", "Item #")); 8092 8093 8094 #line default 8095 #line hidden 8096 WriteLiteralTo(__razor_helper_writer, ": "); 8097 8098 8099 #line 3024 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8100 WriteTo(__razor_helper_writer, productNumber); 8101 8102 8103 #line default 8104 #line hidden 8105 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 8106 8107 8108 #line 3026 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8109 } 8110 8111 #line default 8112 #line hidden 8113 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n \r\n"); 8114 8115 8116 #line 3029 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8117 8118 8119 #line default 8120 #line hidden 8121 8122 #line 3029 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8123 if (outputType != CartOutputType.MiniCart) 8124 { 8125 8126 8127 #line default 8128 #line hidden 8129 WriteLiteralTo(__razor_helper_writer, " "); 8130 8131 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 8132 8133 8134 #line 3032 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8135 } 8136 8137 #line default 8138 #line hidden 8139 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n \r\n"); 8140 8141 8142 #line 3035 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8143 8144 8145 #line default 8146 #line hidden 8147 8148 #line 3035 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8149 if (outputType != CartOutputType.MiniCart) 8150 { 8151 8152 8153 #line default 8154 #line hidden 8155 WriteLiteralTo(__razor_helper_writer, " <div"); 8156 8157 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-8 col-xs-offset-4 col-sm-offset-0 col-sm-2 price noPadding mdAlign" + 8158 "Right\""); 8159 8160 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8161 8162 8163 #line 3038 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8164 8165 8166 #line default 8167 #line hidden 8168 8169 #line 3038 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8170 8171 var orderLineType = (OrderLineType) orderline.GetInteger("Ecom:Order:OrderLine.Type"); 8172 if (orderLineType == OrderLineType.PointProduct) 8173 { 8174 8175 8176 #line default 8177 #line hidden 8178 WriteLiteralTo(__razor_helper_writer, " "); 8179 8180 8181 #line 3042 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8182 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.UnitPoints")); 8183 8184 8185 #line default 8186 #line hidden 8187 WriteLiteralTo(__razor_helper_writer, "&nbsp;"); 8188 8189 8190 #line 3042 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8191 WriteTo(__razor_helper_writer, Translate(orderline.GetString("Ecom:Order:OrderLine.UnitPoints") == "1" ? "point" : "points")); 8192 8193 8194 #line default 8195 #line hidden 8196 WriteLiteralTo(__razor_helper_writer, "\r\n"); 8197 8198 8199 #line 3043 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8200 } 8201 else 8202 { 8203 8204 8205 #line default 8206 #line hidden 8207 8208 #line 3046 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8209 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.UnitPrice")); 8210 8211 8212 #line default 8213 #line hidden 8214 8215 #line 3046 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8216 8217 } 8218 8219 8220 #line default 8221 #line hidden 8222 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 8223 8224 8225 #line 3050 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8226 8227 8228 8229 #line default 8230 #line hidden 8231 WriteLiteralTo(__razor_helper_writer, " <div"); 8232 8233 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-4 col-xs-offset-4 col-sm-offset-0 col-sm-2 quantity noPaddingLeft " + 8234 "mdAlignRight\""); 8235 8236 WriteLiteralTo(__razor_helper_writer, ">\r\n <strong"); 8237 8238 WriteLiteralTo(__razor_helper_writer, " class=\"hidden-sm hidden-md hidden-lg pull-left\""); 8239 8240 WriteLiteralTo(__razor_helper_writer, ">"); 8241 8242 8243 #line 3052 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8244 WriteTo(__razor_helper_writer, Translate("smallQuantity", "Qty")); 8245 8246 8247 #line default 8248 #line hidden 8249 WriteLiteralTo(__razor_helper_writer, "&nbsp;&nbsp;</strong>\r\n"); 8250 8251 8252 #line 3053 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8253 8254 8255 #line default 8256 #line hidden 8257 8258 #line 3053 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8259 if (outputType != CartOutputType.Editable || orderLineType == OrderLineType.Discount || orderLineType == OrderLineType.ProductDiscount || orderLineType == OrderLineType.GiftCard || orderline.GetInteger("Ecom:Product.Type") == 1) 8260 { 8261 8262 8263 #line default 8264 #line hidden 8265 8266 #line 3055 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8267 WriteTo(__razor_helper_writer, productQuantity); 8268 8269 8270 #line default 8271 #line hidden 8272 8273 #line 3055 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8274 8275 } 8276 else 8277 { 8278 8279 8280 #line default 8281 #line hidden 8282 8283 #line 3059 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8284 WriteTo(__razor_helper_writer, productQuantity); 8285 8286 8287 #line default 8288 #line hidden 8289 8290 #line 3059 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8291 8292 8293 8294 #line default 8295 #line hidden 8296 8297 #line 3062 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8298 8299 } 8300 8301 #line default 8302 #line hidden 8303 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 8304 8305 8306 #line 3065 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8307 8308 8309 8310 #line default 8311 #line hidden 8312 WriteLiteralTo(__razor_helper_writer, " <div"); 8313 8314 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-8 col-xs-offset-4 col-sm-offset-0 col-sm-2 discount noPadding mdAl" + 8315 "ignRight\""); 8316 8317 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 8318 8319 WriteLiteralTo(__razor_helper_writer, " class=\"hidden-sm hidden-md hidden-lg\""); 8320 8321 WriteLiteralTo(__razor_helper_writer, ">"); 8322 8323 8324 #line 3067 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8325 WriteTo(__razor_helper_writer, Translate("discount", "Discount")); 8326 8327 8328 #line default 8329 #line hidden 8330 WriteLiteralTo(__razor_helper_writer, ":</span>\r\n"); 8331 8332 8333 #line 3068 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8334 8335 8336 #line default 8337 #line hidden 8338 8339 #line 3068 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8340 if (orderline.GetBoolean("Ecom:Product.Discount.TotalAmount.IsZero") || orderline.GetBoolean("Ecom:Order:OrderLine.IsDiscount")) 8341 { 8342 8343 8344 #line default 8345 #line hidden 8346 WriteLiteralTo(__razor_helper_writer, " "); 8347 8348 WriteLiteralTo(__razor_helper_writer, "-.--\r\n"); 8349 8350 8351 #line 3071 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8352 } 8353 else 8354 { 8355 8356 8357 #line default 8358 #line hidden 8359 8360 #line 3074 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8361 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Product.Discount.TotalAmount.PriceWithVATFormatted")); 8362 8363 8364 #line default 8365 #line hidden 8366 8367 #line 3074 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8368 8369 } 8370 8371 #line default 8372 #line hidden 8373 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 8374 8375 8376 #line 3077 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8377 8378 8379 8380 #line default 8381 #line hidden 8382 WriteLiteralTo(__razor_helper_writer, " <div"); 8383 8384 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 col-sm-2 totalPrice noPadding text-right noPadding-xs mdAlignRi" + 8385 "ght\""); 8386 8387 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8388 8389 WriteLiteralTo(__razor_helper_writer, " "); 8390 8391 8392 #line 3079 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8393 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.TotalPriceWithProductDiscounts.PriceWithVATFormatted")); 8394 8395 8396 #line default 8397 #line hidden 8398 WriteLiteralTo(__razor_helper_writer, "\r\n"); 8399 8400 8401 #line 3080 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8402 8403 8404 #line default 8405 #line hidden 8406 8407 #line 3080 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8408 if (outputType == CartOutputType.Editable && !orderline.GetBoolean("Ecom:Order:OrderLine.IsDiscount")) 8409 { 8410 8411 8412 #line default 8413 #line hidden 8414 WriteLiteralTo(__razor_helper_writer, " <a"); 8415 8416 WriteLiteralTo(__razor_helper_writer, " class=\"removeFromCart\""); 8417 8418 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 129098), Tuple.Create("\"", 129160) 8419 8420 #line 3082 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8421 , Tuple.Create(Tuple.Create("", 129105), Tuple.Create<System.Object, System.Int32>(orderline.GetString("Ecom:Order:OrderLine.DeleteLink") 8422 8423 #line default 8424 #line hidden 8425 , 129105), false) 8426 ); 8427 8428 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8429 8430 WriteLiteralTo(__razor_helper_writer, " "); 8431 8432 8433 #line 3083 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8434 WriteTo(__razor_helper_writer, RenderIcon("fa-times")); 8435 8436 8437 #line default 8438 #line hidden 8439 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n"); 8440 8441 8442 #line 3085 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8443 } 8444 8445 #line default 8446 #line hidden 8447 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 8448 8449 8450 #line 3087 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8451 } 8452 8453 #line default 8454 #line hidden 8455 WriteLiteralTo(__razor_helper_writer, "\r\n </li>\r\n"); 8456 8457 8458 #line 3089 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8459 8460 } 8461 8462 8463 #line default 8464 #line hidden 8465 }); 8466 8467 #line 3091 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8468 } 8469 #line default 8470 #line hidden 8471 8472 8473 #line 3097 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8474 public RazorEngine.Templating.TemplateWriter RenderEmailCartContentLine(LoopItem orderline) 8475 { 8476 #line default 8477 #line hidden 8478 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8479 8480 #line 3098 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8481 8482 var domain = Helpers.GetCurrentUrl(true); 8483 var productId = orderline.GetString("Ecom:Order:OrderLine.ProductID"); 8484 var productName = orderline.GetString("Ecom:Order:OrderLine.ProductName"); 8485 var productNumber = orderline.GetString("Ecom:Product.Number"); 8486 var productImage = orderline.GetImagePath(); 8487 var imageUrl = domain + Images.GetImage(productImage, 95, 123); 8488 var variantText = orderline.GetString("Ecom:Order:OrderLine.ProductVariantText"); 8489 var productUrl = domain + "/Default.aspx?ID=" + GetPageIdByNavigationTag("Products") + "&ProductID=" + productId; 8490 var isDiscount = orderline.GetBoolean("Ecom:Order:OrderLine.IsDiscount"); 8491 var discountStyle = !isDiscount ? "" : "border-bottom: 1px solid #b2b2b2"; 8492 8493 8494 8495 #line default 8496 #line hidden 8497 8498 #line 3110 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8499 WriteTo(__razor_helper_writer, RenderTableRowSpacer(10, 3)); 8500 8501 8502 #line default 8503 #line hidden 8504 8505 #line 3110 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8506 8507 8508 8509 #line default 8510 #line hidden 8511 WriteLiteralTo(__razor_helper_writer, " <tr"); 8512 8513 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 130284), Tuple.Create("\"", 130306) 8514 8515 #line 3111 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8516 , Tuple.Create(Tuple.Create("", 130292), Tuple.Create<System.Object, System.Int32>(discountStyle 8517 8518 #line default 8519 #line hidden 8520 , 130292), false) 8521 ); 8522 8523 WriteLiteralTo(__razor_helper_writer, ">\r\n <td>\r\n <figure"); 8524 8525 WriteLiteralTo(__razor_helper_writer, " align=\"left\""); 8526 8527 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8528 8529 8530 #line 3114 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8531 8532 8533 #line default 8534 #line hidden 8535 8536 #line 3114 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8537 if (!isDiscount) 8538 { 8539 8540 8541 #line default 8542 #line hidden 8543 WriteLiteralTo(__razor_helper_writer, " <a"); 8544 8545 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 8546 8547 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 130471), Tuple.Create("\"", 130489) 8548 8549 #line 3116 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8550 , Tuple.Create(Tuple.Create("", 130478), Tuple.Create<System.Object, System.Int32>(productUrl 8551 8552 #line default 8553 #line hidden 8554 , 130478), false) 8555 ); 8556 8557 WriteLiteralTo(__razor_helper_writer, ">\r\n <img"); 8558 8559 WriteAttributeTo(__razor_helper_writer, "alt", Tuple.Create(" alt=\"", 130525), Tuple.Create("\"", 130543) 8560 8561 #line 3117 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8562 , Tuple.Create(Tuple.Create("", 130531), Tuple.Create<System.Object, System.Int32>(productName 8563 8564 #line default 8565 #line hidden 8566 , 130531), false) 8567 ); 8568 8569 WriteAttributeTo(__razor_helper_writer, "title", Tuple.Create(" title=\"", 130544), Tuple.Create("\"", 130564) 8570 8571 #line 3117 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8572 , Tuple.Create(Tuple.Create("", 130552), Tuple.Create<System.Object, System.Int32>(productName 8573 8574 #line default 8575 #line hidden 8576 , 130552), false) 8577 ); 8578 8579 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 130565), Tuple.Create("\"", 130580) 8580 8581 #line 3117 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8582 , Tuple.Create(Tuple.Create("", 130571), Tuple.Create<System.Object, System.Int32>(imageUrl 8583 8584 #line default 8585 #line hidden 8586 , 130571), false) 8587 ); 8588 8589 WriteLiteralTo(__razor_helper_writer, "/>\r\n </a>\r\n"); 8590 8591 8592 #line 3119 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8593 } 8594 8595 #line default 8596 #line hidden 8597 WriteLiteralTo(__razor_helper_writer, "\r\n </figure>\r\n </td>\r\n <td"); 8598 8599 WriteLiteralTo(__razor_helper_writer, " valign=\"top\""); 8600 8601 WriteLiteralTo(__razor_helper_writer, ">\r\n <a"); 8602 8603 WriteLiteralTo(__razor_helper_writer, " target=\"_blank\""); 8604 8605 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 130749), Tuple.Create("\"", 130767) 8606 8607 #line 3123 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8608 , Tuple.Create(Tuple.Create("", 130756), Tuple.Create<System.Object, System.Int32>(productUrl 8609 8610 #line default 8611 #line hidden 8612 , 130756), false) 8613 ); 8614 8615 WriteLiteralTo(__razor_helper_writer, ">\r\n <strong>"); 8616 8617 8618 #line 3124 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8619 WriteTo(__razor_helper_writer, productName); 8620 8621 8622 #line default 8623 #line hidden 8624 WriteLiteralTo(__razor_helper_writer, "</strong>\r\n"); 8625 8626 8627 #line 3125 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8628 8629 8630 #line default 8631 #line hidden 8632 8633 #line 3125 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8634 if (variantText.IsNotNullOrEmpty() || productNumber.IsNotNullOrEmpty()) 8635 { 8636 8637 8638 #line default 8639 #line hidden 8640 WriteLiteralTo(__razor_helper_writer, " <br/>\r\n"); 8641 8642 8643 #line 3128 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8644 } 8645 8646 #line default 8647 #line hidden 8648 WriteLiteralTo(__razor_helper_writer, "\r\n"); 8649 8650 8651 #line 3129 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8652 8653 8654 #line default 8655 #line hidden 8656 8657 #line 3129 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8658 if (variantText.IsNotNullOrEmpty()) 8659 { 8660 8661 8662 #line default 8663 #line hidden 8664 8665 #line 3131 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8666 WriteTo(__razor_helper_writer, variantText); 8667 8668 8669 #line default 8670 #line hidden 8671 8672 #line 3131 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8673 8674 if (productNumber.IsNotNullOrEmpty()) 8675 { 8676 8677 8678 #line default 8679 #line hidden 8680 WriteLiteralTo(__razor_helper_writer, " "); 8681 8682 WriteLiteralTo(__razor_helper_writer, " - "); 8683 8684 WriteLiteralTo(__razor_helper_writer, "\r\n"); 8685 8686 8687 #line 3135 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8688 } 8689 } 8690 8691 #line default 8692 #line hidden 8693 WriteLiteralTo(__razor_helper_writer, "\r\n"); 8694 8695 8696 #line 3137 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8697 8698 8699 #line default 8700 #line hidden 8701 8702 #line 3137 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8703 if (productNumber.IsNotNullOrEmpty()) 8704 { 8705 8706 8707 #line default 8708 #line hidden 8709 WriteLiteralTo(__razor_helper_writer, " "); 8710 8711 8712 #line 3139 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8713 WriteTo(__razor_helper_writer, Translate("item#", "Item #")); 8714 8715 8716 #line default 8717 #line hidden 8718 WriteLiteralTo(__razor_helper_writer, ": "); 8719 8720 8721 #line 3139 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8722 WriteTo(__razor_helper_writer, productNumber); 8723 8724 8725 #line default 8726 #line hidden 8727 WriteLiteralTo(__razor_helper_writer, "\r\n"); 8728 8729 8730 #line 3140 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8731 } 8732 8733 #line default 8734 #line hidden 8735 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n <br/>\r\n"); 8736 8737 8738 #line 3143 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8739 8740 8741 #line default 8742 #line hidden 8743 8744 #line 3143 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8745 8746 var orderLineType = (OrderLineType) orderline.GetInteger("Ecom:Order:OrderLine.Type"); 8747 if (orderLineType == OrderLineType.PointProduct) 8748 { 8749 8750 8751 #line default 8752 #line hidden 8753 WriteLiteralTo(__razor_helper_writer, " "); 8754 8755 WriteLiteralTo(__razor_helper_writer, "<strong>"); 8756 8757 8758 #line 3147 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8759 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.UnitPoints")); 8760 8761 8762 #line default 8763 #line hidden 8764 WriteLiteralTo(__razor_helper_writer, "&nbsp;"); 8765 8766 8767 #line 3147 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8768 WriteTo(__razor_helper_writer, Translate(orderline.GetString("Ecom:Order:OrderLine.UnitPoints") == "1" ? "point" : "points")); 8769 8770 8771 #line default 8772 #line hidden 8773 WriteLiteralTo(__razor_helper_writer, "</strong>\r\n"); 8774 8775 8776 #line 3148 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8777 } 8778 else 8779 { 8780 8781 8782 #line default 8783 #line hidden 8784 WriteLiteralTo(__razor_helper_writer, " <strong>"); 8785 8786 8787 #line 3151 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8788 WriteTo(__razor_helper_writer, Translate("unitPrice", "Unit price")); 8789 8790 8791 #line default 8792 #line hidden 8793 WriteLiteralTo(__razor_helper_writer, "</strong>\r\n"); 8794 8795 8796 #line 3152 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8797 8798 8799 #line default 8800 #line hidden 8801 8802 #line 3152 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8803 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.UnitPrice")); 8804 8805 8806 #line default 8807 #line hidden 8808 8809 #line 3152 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8810 8811 } 8812 8813 8814 #line default 8815 #line hidden 8816 WriteLiteralTo(__razor_helper_writer, "\r\n <br/>\r\n <strong>"); 8817 8818 8819 #line 3156 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8820 WriteTo(__razor_helper_writer, Translate("quantity", "Quantity")); 8821 8822 8823 #line default 8824 #line hidden 8825 WriteLiteralTo(__razor_helper_writer, "</strong> "); 8826 8827 8828 #line 3156 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8829 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.Quantity")); 8830 8831 8832 #line default 8833 #line hidden 8834 WriteLiteralTo(__razor_helper_writer, "\r\n <br/>\r\n </td>\r\n <td"); 8835 8836 WriteLiteralTo(__razor_helper_writer, " class=\"noPadding\""); 8837 8838 WriteLiteralTo(__razor_helper_writer, " valign=\"top\""); 8839 8840 WriteLiteralTo(__razor_helper_writer, " style=\"text-align: right; padding-right: 90px\""); 8841 8842 WriteLiteralTo(__razor_helper_writer, ">\r\n <strong>"); 8843 8844 8845 #line 3160 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8846 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.TotalPriceWithProductDiscounts.PriceWithoutVATFormatted")); 8847 8848 8849 #line default 8850 #line hidden 8851 WriteLiteralTo(__razor_helper_writer, "</strong>\r\n </td>\r\n </tr>\r\n"); 8852 8853 WriteLiteralTo(__razor_helper_writer, " <tr>\r\n <td"); 8854 8855 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 132710), Tuple.Create("\"", 132783) 8856 , Tuple.Create(Tuple.Create("", 132718), Tuple.Create("border-bottom:", 132718), true) 8857 , Tuple.Create(Tuple.Create(" ", 132732), Tuple.Create("1px", 132733), true) 8858 , Tuple.Create(Tuple.Create(" ", 132736), Tuple.Create("solid", 132737), true) 8859 8860 #line 3164 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8861 , Tuple.Create(Tuple.Create(" ", 132742), Tuple.Create<System.Object, System.Int32>(GetPalletColorNumber(1) 8862 8863 #line default 8864 #line hidden 8865 , 132743), false) 8866 , Tuple.Create(Tuple.Create(" ", 132767), Tuple.Create("text-align:left", 132768), true) 8867 ); 8868 8869 WriteLiteralTo(__razor_helper_writer, " colspan=\"3\""); 8870 8871 WriteLiteralTo(__razor_helper_writer, " height=\"10\""); 8872 8873 WriteLiteralTo(__razor_helper_writer, "></td>\r\n </tr>\r\n"); 8874 8875 8876 #line 3166 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8877 8878 8879 #line default 8880 #line hidden 8881 }); 8882 8883 #line 3166 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8884 } 8885 #line default 8886 #line hidden 8887 8888 8889 #line 3168 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8890 public RazorEngine.Templating.TemplateWriter RenderCartContentsSummary(List<LoopItem> orderlines, string voucherValue, CartOutputType outputType = CartOutputType.ReadOnly) 8891 { 8892 #line default 8893 #line hidden 8894 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8895 8896 #line 3169 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8897 8898 var voucherResult = PromoCodeChecker.CheckOrderPromoCode(voucherValue); 8899 8900 8901 #line default 8902 #line hidden 8903 8904 #line 3171 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8905 WriteTo(__razor_helper_writer, RenderCartContentsSummary(orderlines, voucherValue, voucherResult, outputType)); 8906 8907 8908 #line default 8909 #line hidden 8910 8911 #line 3171 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8912 8913 8914 8915 #line default 8916 #line hidden 8917 }); 8918 8919 #line 3172 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8920 } 8921 #line default 8922 #line hidden 8923 8924 8925 #line 3174 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8926 public RazorEngine.Templating.TemplateWriter RenderCartContentsSummary(List<LoopItem> orderlines, string voucherValue, PromoCodeInfo voucherResult, CartOutputType outputType = CartOutputType.ReadOnly) 8927 { 8928 #line default 8929 #line hidden 8930 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8931 8932 #line 3175 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8933 8934 var orderDiscount = (int) orderlines.Where(t => t.GetInteger("Ecom:Order:OrderLine.Type") == (int) OrderLineType.Discount).Sum(s => s.GetDouble("Ecom:Order:olPrice.Price")); 8935 //var subtotal = orderlines.Where(t => t.GetInteger("Ecom:Order:OrderLine.Type") == (int) OrderLineType.Product || t.GetInteger("Ecom:Order:OrderLine.Type") == (int) OrderLineType.GiftCard).Sum(a => a.GetDouble("Ecom:Order:OrderLine.TotalPriceWithProductDiscounts.Price")); 8936 //var discountForCalculation = GetString("Ecom:Order.ShippingFee.PriceWithoutVATFormatted") != null ? GetString("Ecom:Order.ShippingFee.PriceWithoutVATFormatted") : "0"; 8937 var shippingFeeForCalculation = GetDouble("Ecom:Order.ShippingFee.PriceWithVAT.Value"); 8938 var discountForCalculation = GetDouble("Ecom:Order.TotalDiscount.PriceWithVAT.Value"); 8939 var totalPriceForCalculation = GetDouble("Ecom:Order.Price.PriceWithoutVAT.Value"); 8940 var subtotal = totalPriceForCalculation - discountForCalculation - shippingFeeForCalculation; 8941 8942 if (outputType != CartOutputType.Email) 8943 { 8944 8945 8946 #line default 8947 #line hidden 8948 WriteLiteralTo(__razor_helper_writer, " "); 8949 8950 WriteLiteralTo(__razor_helper_writer, "<div id=\"totalPriceContainer\" class=\"col-xs-12 col-sm-6 row noPadding pull-right\"" + 8951 "> \r\n"); 8952 8953 WriteLiteralTo(__razor_helper_writer, " "); 8954 8955 WriteLiteralTo(__razor_helper_writer, "<div class=\"row noPadding mx-0 col-12\">\r\n"); 8956 8957 8958 #line 3188 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8959 } 8960 8961 if (voucherResult.Valid && !voucherResult.Expired && !voucherResult.Inactive && voucherValue.IsNotNullOrEmpty()) 8962 { 8963 8964 8965 #line default 8966 #line hidden 8967 WriteLiteralTo(__razor_helper_writer, " <div"); 8968 8969 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 8970 8971 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 8972 8973 WriteLiteralTo(__razor_helper_writer, " class=\"discountContainer col-xs-12\""); 8974 8975 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 8976 8977 WriteLiteralTo(__razor_helper_writer, " class=\"row\""); 8978 8979 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 8980 8981 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-8 col-sm-7 noPadding\""); 8982 8983 WriteLiteralTo(__razor_helper_writer, ">"); 8984 8985 8986 #line 3195 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8987 WriteTo(__razor_helper_writer, Translate("voucher", "Voucher:")); 8988 8989 8990 #line default 8991 #line hidden 8992 WriteLiteralTo(__razor_helper_writer, " "); 8993 8994 8995 #line 3195 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 8996 WriteTo(__razor_helper_writer, EcommerceHelpers.GetVoucherName(voucherValue)); 8997 8998 8999 #line default 9000 #line hidden 9001 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </div>\r\n </div>\r\n </div>\r\n" + 9002 ""); 9003 9004 9005 #line 3199 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9006 } 9007 9008 if (GetInteger("Ecom:Order.RewardTotalPoints") != 0) 9009 { 9010 9011 9012 #line default 9013 #line hidden 9014 9015 #line 3203 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9016 WriteTo(__razor_helper_writer, RenderTotalAmountLine(Translate("loyaltyPointsEarned", "Loyalty Points Earned"), GetString("Ecom:Order.RewardTotalPoints"), false, outputType)); 9017 9018 9019 #line default 9020 #line hidden 9021 9022 #line 3203 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9023 9024 } 9025 if (Dynamicweb.Ecommerce.Common.Context.Currency.Format(subtotal, true) != GetString("Ecom:Order.Price") || orderDiscount != 0) 9026 { 9027 9028 9029 #line default 9030 #line hidden 9031 9032 #line 3207 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9033 WriteTo(__razor_helper_writer, RenderTotalAmountLine(Translate("subtotal", "Subtotal"), Dynamicweb.Ecommerce.Common.Context.Currency.Format(subtotal, true), true, outputType)); 9034 9035 9036 #line default 9037 #line hidden 9038 9039 #line 3207 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9040 9041 } 9042 if (!GetBoolean("Ecom:Order.ShippingFee.IsZero")) 9043 { 9044 9045 9046 #line default 9047 #line hidden 9048 9049 #line 3211 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9050 WriteTo(__razor_helper_writer, RenderTotalAmountLine(GetString("Ecom:Order.ShippingMethod"), GetString("Ecom:Order.ShippingFee.PriceWithoutVATFormatted"), false, outputType)); 9051 9052 9053 #line default 9054 #line hidden 9055 9056 #line 3211 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9057 9058 } 9059 if(discountForCalculation.ToString() != "0"){ 9060 9061 9062 9063 #line default 9064 #line hidden 9065 9066 #line 3215 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9067 WriteTo(__razor_helper_writer, RenderTotalAmountLine(Translate("orderSavings", "Order Savings"), Dynamicweb.Ecommerce.Common.Context.Currency.Format(discountForCalculation, true), false, outputType)); 9068 9069 9070 #line default 9071 #line hidden 9072 9073 #line 3215 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9074 9075 } 9076 9077 if (GetString("Ecom:Order.Taxes.Total.Price") != "0.00") 9078 { 9079 9080 9081 #line default 9082 #line hidden 9083 9084 #line 3220 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9085 WriteTo(__razor_helper_writer, RenderTotalAmountLine(Translate("taxes", "Taxes"), GetString("Ecom:Order.Taxes.Total"), false, outputType)); 9086 9087 9088 #line default 9089 #line hidden 9090 9091 #line 3220 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9092 9093 9094 } 9095 9096 9097 #line default 9098 #line hidden 9099 9100 #line 3223 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9101 WriteTo(__razor_helper_writer, RenderTotalAmountLine(Translate("total", "Total"), GetString("Ecom:Order.Price"), true, outputType)); 9102 9103 9104 #line default 9105 #line hidden 9106 9107 #line 3223 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9108 9109 9110 if (outputType != CartOutputType.Email) 9111 { 9112 9113 9114 #line default 9115 #line hidden 9116 9117 #line 3227 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9118 WriteTo(__razor_helper_writer, RenderOrderAmountsDisclaimer()); 9119 9120 9121 #line default 9122 #line hidden 9123 9124 #line 3227 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9125 9126 9127 9128 #line default 9129 #line hidden 9130 WriteLiteralTo(__razor_helper_writer, " "); 9131 9132 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 9133 9134 WriteLiteralTo(__razor_helper_writer, " "); 9135 9136 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 9137 9138 9139 #line 3230 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9140 } 9141 9142 9143 #line default 9144 #line hidden 9145 }); 9146 9147 #line 3231 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9148 } 9149 #line default 9150 #line hidden 9151 9152 9153 #line 3233 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9154 public RazorEngine.Templating.TemplateWriter RenderTotalAmountLine(string label, string value, bool isBold = false, CartOutputType outputType = CartOutputType.ReadOnly) 9155 { 9156 #line default 9157 #line hidden 9158 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9159 9160 #line 3234 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9161 9162 var isPdfRequest = Sanitize.Parameter("print").IsNotNullOrEmpty(); 9163 if (outputType == CartOutputType.Email) 9164 { 9165 9166 9167 #line default 9168 #line hidden 9169 WriteLiteralTo(__razor_helper_writer, " <tr"); 9170 9171 WriteLiteralTo(__razor_helper_writer, " align=\"left\""); 9172 9173 WriteLiteralTo(__razor_helper_writer, ">\r\n <td>\r\n"); 9174 9175 WriteLiteralTo(__razor_helper_writer, " "); 9176 9177 9178 #line 3240 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9179 WriteTo(__razor_helper_writer, RenderValue(label, isBold)); 9180 9181 9182 #line default 9183 #line hidden 9184 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n <td>\r\n &nbsp;\r\n " + 9185 " </td>\r\n <td"); 9186 9187 WriteLiteralTo(__razor_helper_writer, " class=\"noPadding\""); 9188 9189 WriteLiteralTo(__razor_helper_writer, " style=\"padding-right: 90px; text-align: right;\""); 9190 9191 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9192 9193 WriteLiteralTo(__razor_helper_writer, " "); 9194 9195 9196 #line 3246 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9197 WriteTo(__razor_helper_writer, RenderValue(value, isBold)); 9198 9199 9200 #line default 9201 #line hidden 9202 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n </tr>\r\n"); 9203 9204 9205 #line 3249 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9206 } 9207 else 9208 { 9209 9210 9211 #line default 9212 #line hidden 9213 WriteLiteralTo(__razor_helper_writer, " <div"); 9214 9215 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-6 col-sm-7 noPadding clearLeft\""); 9216 9217 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9218 9219 WriteLiteralTo(__razor_helper_writer, " "); 9220 9221 9222 #line 3253 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9223 WriteTo(__razor_helper_writer, RenderValue(label, isBold)); 9224 9225 9226 #line default 9227 #line hidden 9228 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 9229 9230 9231 #line 3255 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9232 if (!isPdfRequest) 9233 { 9234 9235 9236 #line default 9237 #line hidden 9238 WriteLiteralTo(__razor_helper_writer, " <div"); 9239 9240 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-6 col-sm-5 price pull-right text-right\""); 9241 9242 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9243 9244 WriteLiteralTo(__razor_helper_writer, " "); 9245 9246 9247 #line 3258 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9248 WriteTo(__razor_helper_writer, RenderValue(value, isBold)); 9249 9250 9251 #line default 9252 #line hidden 9253 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 9254 9255 9256 #line 3260 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9257 } 9258 else 9259 { 9260 9261 9262 #line default 9263 #line hidden 9264 WriteLiteralTo(__razor_helper_writer, " <div"); 9265 9266 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-6 col-sm-4 ml-5 price pull-right noPadding text-right\""); 9267 9268 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9269 9270 WriteLiteralTo(__razor_helper_writer, " "); 9271 9272 9273 #line 3264 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9274 WriteTo(__razor_helper_writer, RenderValue(value, isBold)); 9275 9276 9277 #line default 9278 #line hidden 9279 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 9280 9281 9282 #line 3266 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9283 } 9284 9285 } 9286 9287 9288 #line default 9289 #line hidden 9290 }); 9291 9292 #line 3269 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9293 } 9294 #line default 9295 #line hidden 9296 9297 9298 #line 3271 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9299 public RazorEngine.Templating.TemplateWriter RenderValue(string value, bool isBold = false) 9300 { 9301 #line default 9302 #line hidden 9303 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9304 9305 #line 3272 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9306 9307 if (isBold) 9308 { 9309 9310 9311 #line default 9312 #line hidden 9313 WriteLiteralTo(__razor_helper_writer, " <strong>"); 9314 9315 9316 #line 3275 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9317 WriteTo(__razor_helper_writer, value); 9318 9319 9320 #line default 9321 #line hidden 9322 WriteLiteralTo(__razor_helper_writer, "</strong>\r\n"); 9323 9324 9325 #line 3276 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9326 } 9327 else 9328 { 9329 9330 9331 #line default 9332 #line hidden 9333 9334 #line 3279 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9335 WriteTo(__razor_helper_writer, value); 9336 9337 9338 #line default 9339 #line hidden 9340 9341 #line 3279 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9342 9343 } 9344 9345 9346 #line default 9347 #line hidden 9348 }); 9349 9350 #line 3281 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9351 } 9352 #line default 9353 #line hidden 9354 9355 9356 #line 3283 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9357 public RazorEngine.Templating.TemplateWriter RenderCartSummary() 9358 { 9359 #line default 9360 #line hidden 9361 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 9362 9363 #line 3284 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9364 9365 var orderlines = GetLoop("OrderLines"); 9366 //var subtotal = orderlines.Where(t => t.GetInteger("Ecom:Order:OrderLine.Type") == (int) OrderLineType.Product || t.GetInteger("Ecom:Order:OrderLine.Type") == (int) OrderLineType.GiftCard).Sum(a => a.GetDouble("Ecom:Order:OrderLine.TotalPriceWithProductDiscounts.Price")); 9367 var orderDiscount = orderlines.Where(t => t.GetInteger("Ecom:Order:OrderLine.Type") == (int) OrderLineType.Discount).Sum(s => s.GetDouble("Ecom:Order:olPrice.Price")); 9368 var areAddessesTheSame = AreAddressesTheSame(); 9369 var orderlineDiscount = GetDouble("Ecom:Order.TotalDiscount.PriceWithoutVAT.Value").ToString(); 9370 var totalOrderlineDiscount = GetString("Ecom:Order.OrderLines.TotalDiscount"); 9371 var shippingFeeForCalculation = GetDouble("Ecom:Order.ShippingFee.PriceWithVAT.Value"); 9372 var discountForCalculation = GetDouble("Ecom:Order.TotalDiscount.PriceWithVAT.Value"); 9373 var totalPriceForCalculation = GetDouble("Ecom:Order.Price.PriceWithoutVAT.Value"); 9374 var subtotal = totalPriceForCalculation - discountForCalculation - shippingFeeForCalculation; 9375 9376 9377 #line default 9378 #line hidden 9379 WriteLiteralTo(__razor_helper_writer, " <h2"); 9380 9381 WriteLiteralTo(__razor_helper_writer, " data-cartid=\""); 9382 9383 9384 #line 3295 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9385 WriteTo(__razor_helper_writer, GetString("Ecom:Order.ID")); 9386 9387 9388 #line default 9389 #line hidden 9390 WriteLiteralTo(__razor_helper_writer, "\""); 9391 9392 WriteLiteralTo(__razor_helper_writer, ">"); 9393 9394 9395 #line 3295 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9396 WriteTo(__razor_helper_writer, Translate("orderSummary", "Order Summary")); 9397 9398 9399 #line default 9400 #line hidden 9401 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n"); 9402 9403 9404 #line 3296 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9405 9406 if (orderlines.Any()) 9407 { 9408 9409 9410 #line default 9411 #line hidden 9412 WriteLiteralTo(__razor_helper_writer, " <dl>\r\n \r\n"); 9413 9414 9415 #line 3301 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9416 9417 9418 #line default 9419 #line hidden 9420 9421 #line 3301 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9422 if (GetString("Ecom:Order.Customer.FirstName").IsNotNullOrEmpty() || GetString("Ecom:Order.Customer.Name").IsNotNullOrEmpty()) 9423 { 9424 9425 9426 #line default 9427 #line hidden 9428 WriteLiteralTo(__razor_helper_writer, " <dt"); 9429 9430 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 rightTitle borderBottom\""); 9431 9432 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9433 9434 9435 #line 3304 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9436 9437 9438 #line default 9439 #line hidden 9440 9441 #line 3304 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9442 if (!User.IsExtranetUserLoggedIn()) 9443 { 9444 9445 9446 #line default 9447 #line hidden 9448 9449 #line 3306 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9450 WriteTo(__razor_helper_writer, Translate("Address", "Address")); 9451 9452 9453 #line default 9454 #line hidden 9455 9456 #line 3306 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9457 9458 } 9459 else 9460 { 9461 9462 9463 #line default 9464 #line hidden 9465 9466 #line 3310 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9467 WriteTo(__razor_helper_writer, areAddessesTheSame ? Translate("billingShippingAddress", "Billing & Shipping Address") : Translate("billingAddress", "Billing Address")); 9468 9469 9470 #line default 9471 #line hidden 9472 9473 #line 3310 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9474 9475 } 9476 9477 #line default 9478 #line hidden 9479 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n"); 9480 9481 WriteLiteralTo(__razor_helper_writer, " <dd"); 9482 9483 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12\""); 9484 9485 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9486 9487 9488 #line 3314 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9489 9490 9491 #line default 9492 #line hidden 9493 9494 #line 3314 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9495 9496 var customerCity = GetString("UserManagement:User.City"); 9497 var customerZip = GetString("UserManagement:User.Zip"); 9498 var customerCC = GetString("UserManagement:User.Country"); 9499 var customerCountry = GetString("UserManagement:User.Country"); 9500 var customerRegion = GetString("UserManagement:User.Region").IsNotNullOrEmpty() ? GetString("UserManagement:User.Region") : GetString("UserManagement:User.State"); 9501 9502 9503 #line default 9504 #line hidden 9505 WriteLiteralTo(__razor_helper_writer, "\r\n"); 9506 9507 9508 #line 3321 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9509 9510 9511 #line default 9512 #line hidden 9513 9514 #line 3321 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9515 if (GetBoolean("UserManagement:User.UserAddresses.EmptyList")) 9516 { 9517 customerCity = GetString("Ecom:Order.Customer.City"); 9518 customerZip = GetString("Ecom:Order.Customer.Zip"); 9519 customerCC = GetString("Ecom:Order.Customer.Country.Code"); 9520 customerCountry = GetString("Ecom:Order.Customer.Country"); 9521 customerRegion = GetString("Ecom:Order.Customer.Region"); 9522 9523 9524 9525 9526 #line default 9527 #line hidden 9528 9529 #line 3330 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9530 WriteTo(__razor_helper_writer, GetString("Ecom:Order.Customer.Company")); 9531 9532 9533 #line default 9534 #line hidden 9535 9536 #line 3330 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9537 9538 9539 9540 #line default 9541 #line hidden 9542 WriteLiteralTo(__razor_helper_writer, " <br/>\r\n"); 9543 9544 9545 #line 3332 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9546 9547 9548 #line default 9549 #line hidden 9550 9551 #line 3332 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9552 WriteTo(__razor_helper_writer, GetString("Ecom:Order.Customer.Address")); 9553 9554 9555 #line default 9556 #line hidden 9557 WriteLiteralTo(__razor_helper_writer, "<br/>\r\n"); 9558 9559 9560 #line 3333 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9561 9562 } 9563 else 9564 { 9565 9566 9567 #line default 9568 #line hidden 9569 9570 #line 3337 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9571 WriteTo(__razor_helper_writer, GetString("UserManagement:User.Company")); 9572 9573 9574 #line default 9575 #line hidden 9576 9577 #line 3337 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9578 9579 9580 9581 #line default 9582 #line hidden 9583 WriteLiteralTo(__razor_helper_writer, " <br/>\r\n"); 9584 9585 9586 #line 3339 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9587 9588 9589 #line default 9590 #line hidden 9591 9592 #line 3339 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9593 WriteTo(__razor_helper_writer, GetString("UserManagement:User.Address")); 9594 9595 9596 #line default 9597 #line hidden 9598 WriteLiteralTo(__razor_helper_writer, "<br/>\r\n"); 9599 9600 9601 #line 3340 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9602 } 9603 9604 #line default 9605 #line hidden 9606 WriteLiteralTo(__razor_helper_writer, "\r\n"); 9607 9608 9609 #line 3341 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9610 9611 9612 #line default 9613 #line hidden 9614 9615 #line 3341 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9616 if (customerCity.IsNotNullOrEmpty()) 9617 { 9618 9619 9620 #line default 9621 #line hidden 9622 9623 #line 3343 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9624 WriteTo(__razor_helper_writer, string.Format(" {0}{1}", customerCity, ",")); 9625 9626 9627 #line default 9628 #line hidden 9629 9630 #line 3343 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9631 ; 9632 } 9633 9634 #line default 9635 #line hidden 9636 WriteLiteralTo(__razor_helper_writer, "\r\n"); 9637 9638 9639 #line 3345 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9640 9641 9642 #line default 9643 #line hidden 9644 9645 #line 3345 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9646 if (customerRegion.IsNotNullOrEmpty()) 9647 { 9648 /*Creepy virgula*/ 9649 int index1 = customerRegion.IndexOf(','); 9650 if (index1 != -1) 9651 { 9652 customerRegion = customerRegion.Remove(index1, 1); 9653 } 9654 9655 9656 #line default 9657 #line hidden 9658 9659 #line 3353 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9660 WriteTo(__razor_helper_writer, string.Format(" {0}{1}", customerRegion, ",")); 9661 9662 9663 #line default 9664 #line hidden 9665 9666 #line 3353 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9667 ; 9668 } 9669 9670 #line default 9671 #line hidden 9672 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 9673 9674 9675 #line 3356 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9676 9677 9678 #line default 9679 #line hidden 9680 9681 #line 3356 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9682 if (customerZip.IsNotNullOrEmpty()) 9683 { 9684 9685 9686 #line default 9687 #line hidden 9688 9689 #line 3358 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9690 WriteTo(__razor_helper_writer, string.Format(" {0}{1}", customerZip, "<br/>")); 9691 9692 9693 #line default 9694 #line hidden 9695 9696 #line 3358 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9697 ; 9698 } 9699 9700 #line default 9701 #line hidden 9702 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 9703 9704 9705 #line 3361 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9706 9707 9708 #line default 9709 #line hidden 9710 9711 #line 3361 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9712 if (customerCC.IsNotNullOrEmpty() && customerCC.Length ==2) 9713 { 9714 9715 9716 #line default 9717 #line hidden 9718 9719 #line 3363 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9720 WriteTo(__razor_helper_writer, Services.Countries.GetCountry(customerCC).Name); 9721 9722 9723 #line default 9724 #line hidden 9725 9726 #line 3363 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9727 9728 } 9729 else 9730 { 9731 9732 9733 #line default 9734 #line hidden 9735 9736 #line 3367 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9737 WriteTo(__razor_helper_writer, customerCountry); 9738 9739 9740 #line default 9741 #line hidden 9742 9743 #line 3367 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9744 9745 } 9746 9747 #line default 9748 #line hidden 9749 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 9750 9751 9752 #line 3370 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9753 if (!areAddessesTheSame && GetString("Ecom:Order.Delivery.Name").IsNotNullOrEmpty()) 9754 { 9755 9756 9757 #line default 9758 #line hidden 9759 WriteLiteralTo(__razor_helper_writer, " <dt"); 9760 9761 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 rightTitle\""); 9762 9763 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9764 9765 WriteLiteralTo(__razor_helper_writer, " "); 9766 9767 9768 #line 3373 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9769 WriteTo(__razor_helper_writer, Translate("shippingAddress", "Shipping Address")); 9770 9771 9772 #line default 9773 #line hidden 9774 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n"); 9775 9776 WriteLiteralTo(__razor_helper_writer, " <dd"); 9777 9778 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12\""); 9779 9780 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9781 9782 WriteLiteralTo(__razor_helper_writer, " "); 9783 9784 9785 #line 3376 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9786 WriteTo(__razor_helper_writer, GetString("Ecom:Order.Delivery.Name")); 9787 9788 9789 #line default 9790 #line hidden 9791 WriteLiteralTo(__razor_helper_writer, "<br/>\r\n"); 9792 9793 9794 #line 3377 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9795 9796 9797 #line default 9798 #line hidden 9799 9800 #line 3377 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9801 9802 var deliveryRegion = GetString("Ecom:Order.Delivery.Region"); 9803 9804 if (deliveryRegion.IsNotNullOrEmpty()) 9805 { 9806 /*Creepy virgula*/ 9807 int index1 = deliveryRegion.IndexOf(','); 9808 if (index1 != -1) 9809 { 9810 deliveryRegion = deliveryRegion.Remove(index1, 1); 9811 } 9812 } 9813 9814 9815 #line default 9816 #line hidden 9817 WriteLiteralTo(__razor_helper_writer, "\r\n"); 9818 9819 WriteLiteralTo(__razor_helper_writer, " "); 9820 9821 9822 #line 3390 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9823 WriteTo(__razor_helper_writer, GetAddressFormatted( 9824 GetString("Ecom:Order.Delivery.Address"), 9825 GetString("Ecom:Order.Delivery.Address2"), 9826 GetString("Ecom:Order.Delivery.City"), 9827 deliveryRegion, 9828 GetString("Ecom:Order.Delivery.Zip"), 9829 GetString("Ecom:Order.Delivery.Country.Name").IsNullOrEmpty() && GetString("Ecom:Order.Delivery.Country.Code").IsNotNullOrEmpty() ? Dynamicweb.Ecommerce.Services.Countries.GetCountry(GetString("Ecom:Order.Delivery.Country.Code")).Name : GetString("Ecom:Order.Delivery.Country.Name"), 9830 false, 9831 true, 9832 true, 9833 "<br/>" 9834 )); 9835 9836 9837 #line default 9838 #line hidden 9839 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 9840 9841 9842 #line 3403 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9843 } 9844 } 9845 9846 #line default 9847 #line hidden 9848 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 9849 9850 WriteLiteralTo(__razor_helper_writer, " "); 9851 9852 9853 #line 3406 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9854 WriteTo(__razor_helper_writer, RenderCartSummaryLine(Translate("paymentMethod", "Payment Method"), GetString("Ecom:Order.PaymentMethod"), string.Empty, "paymentMethodName", false, true)); 9855 9856 9857 #line default 9858 #line hidden 9859 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n <dt"); 9860 9861 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 borderBottom orderSummaryDeta\""); 9862 9863 WriteLiteralTo(__razor_helper_writer, ">"); 9864 9865 9866 #line 3408 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9867 WriteTo(__razor_helper_writer, Translate("orderDetails", "Order Details")); 9868 9869 9870 #line default 9871 #line hidden 9872 WriteLiteralTo(__razor_helper_writer, "</dt>\r\n <dd"); 9873 9874 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 osProducts\""); 9875 9876 WriteLiteralTo(__razor_helper_writer, ">\r\n <ul>\r\n"); 9877 9878 9879 #line 3411 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9880 9881 9882 #line default 9883 #line hidden 9884 9885 #line 3411 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9886 foreach (var orderline in orderlines) 9887 { 9888 var variantText = orderline.GetString("Ecom:Order:OrderLine.ProductVariantText"); 9889 var orderLineType = (OrderLineType) orderline.GetInteger("Ecom:Order:OrderLine.Type"); 9890 9891 if (orderLineType == OrderLineType.Product || 9892 orderLineType == OrderLineType.GiftCard || 9893 orderLineType == OrderLineType.Fixed || 9894 orderLineType == OrderLineType.PointProduct || 9895 orderLineType == OrderLineType.Discount && orderline.GetBoolean("Ecom:Order:OrderLine.Price.IsZero") || 9896 orderLineType == OrderLineType.ProductDiscount && orderline.GetBoolean("Ecom:Order:OrderLine.Price.IsZero")) 9897 { 9898 9899 9900 #line default 9901 #line hidden 9902 WriteLiteralTo(__razor_helper_writer, " <li"); 9903 9904 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPadding\""); 9905 9906 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 9907 9908 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12 noPaddingLeft\""); 9909 9910 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 9911 9912 WriteLiteralTo(__razor_helper_writer, " "); 9913 9914 9915 #line 3425 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9916 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.ProductName")); 9917 9918 9919 #line default 9920 #line hidden 9921 WriteLiteralTo(__razor_helper_writer, "\r\n"); 9922 9923 9924 #line 3426 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9925 9926 9927 #line default 9928 #line hidden 9929 9930 #line 3426 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9931 if (variantText.IsNotNullOrEmpty()) 9932 { 9933 9934 9935 #line default 9936 #line hidden 9937 WriteLiteralTo(__razor_helper_writer, " <br/>\r\n"); 9938 9939 WriteLiteralTo(__razor_helper_writer, " <small>"); 9940 9941 9942 #line 3429 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9943 WriteTo(__razor_helper_writer, variantText); 9944 9945 9946 #line default 9947 #line hidden 9948 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 9949 9950 9951 #line 3430 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9952 } 9953 9954 #line default 9955 #line hidden 9956 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n " + 9957 " <div>\r\n <small"); 9958 9959 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-8 noPaddingLeft\""); 9960 9961 WriteLiteralTo(__razor_helper_writer, ">"); 9962 9963 9964 #line 3433 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9965 WriteTo(__razor_helper_writer, Translate("smallQuantity", "Qty")); 9966 9967 9968 #line default 9969 #line hidden 9970 WriteLiteralTo(__razor_helper_writer, ": "); 9971 9972 9973 #line 3433 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9974 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.Quantity")); 9975 9976 9977 #line default 9978 #line hidden 9979 WriteLiteralTo(__razor_helper_writer, "</small>\r\n <span"); 9980 9981 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-4 text-right noPadding\""); 9982 9983 WriteLiteralTo(__razor_helper_writer, ">"); 9984 9985 9986 #line 3434 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9987 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.Price")); 9988 9989 9990 #line default 9991 #line hidden 9992 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </div>\r\n " + 9993 " </li>\r\n"); 9994 9995 9996 #line 3437 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 9997 } 9998 } 9999 10000 #line default 10001 #line hidden 10002 WriteLiteralTo(__razor_helper_writer, "\r\n </ul>\r\n </dd>\r\n \r\n " + 10003 " "); 10004 10005 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 10006 10007 WriteLiteralTo(__razor_helper_writer, " "); 10008 10009 10010 #line 3452 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10011 WriteTo(__razor_helper_writer, RenderCartSummaryLine(Translate("subTotal", "Subtotal"), Dynamicweb.Ecommerce.Common.Context.Currency.Format(subtotal, true), "orderSummarySubtotal", string.Empty, true)); 10012 10013 10014 #line default 10015 #line hidden 10016 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 10017 10018 WriteLiteralTo(__razor_helper_writer, " "); 10019 10020 10021 #line 3454 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10022 WriteTo(__razor_helper_writer, RenderCartSummaryLine(GetString("Ecom:Order.ShippingMethod"), GetString("Ecom:Order.ShippingFee.PriceWithoutVATFormatted"), "orderSummaryShippingName", "orderSummaryShippingPrice", true, true)); 10023 10024 10025 #line default 10026 #line hidden 10027 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n "); 10028 10029 WriteLiteralTo(__razor_helper_writer, "\r\n"); 10030 10031 10032 #line 3460 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10033 10034 10035 #line default 10036 #line hidden 10037 10038 #line 3460 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10039 if ( orderlineDiscount != "0") 10040 { 10041 10042 10043 #line default 10044 #line hidden 10045 10046 #line 3462 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10047 WriteTo(__razor_helper_writer, RenderCartSummaryLine(Translate("Discounts", "Discounts"), totalOrderlineDiscount, "orderSummaryOrderSavings")); 10048 10049 10050 #line default 10051 #line hidden 10052 10053 #line 3462 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10054 10055 10056 } 10057 10058 #line default 10059 #line hidden 10060 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 10061 10062 10063 #line 3466 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10064 10065 10066 #line default 10067 #line hidden 10068 10069 #line 3466 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10070 if (GetString("Ecom:Order.Taxes.Total.Price") != "0.00") 10071 { 10072 10073 10074 #line default 10075 #line hidden 10076 10077 #line 3468 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10078 WriteTo(__razor_helper_writer, RenderCartSummaryLine(Translate("taxes", "Taxes"), GetString("Ecom:Order.Taxes.Total"), "orderSummaryTaxes")); 10079 10080 10081 #line default 10082 #line hidden 10083 10084 #line 3468 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10085 10086 } 10087 10088 #line default 10089 #line hidden 10090 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 10091 10092 WriteLiteralTo(__razor_helper_writer, " "); 10093 10094 10095 #line 3471 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10096 WriteTo(__razor_helper_writer, RenderCartSummaryLine(Translate("total", "Total"), GetString("Ecom:Order.OrderLines.Total.PriceWithoutVAT"), "", "orderSummaryTotal", true)); 10097 10098 10099 #line default 10100 #line hidden 10101 WriteLiteralTo(__razor_helper_writer, "\r\n </dl>\r\n"); 10102 10103 WriteLiteralTo(__razor_helper_writer, " <div"); 10104 10105 WriteLiteralTo(__razor_helper_writer, " class=\"row\""); 10106 10107 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 10108 10109 WriteLiteralTo(__razor_helper_writer, " class=\"col-xs-12\""); 10110 10111 WriteLiteralTo(__razor_helper_writer, " style=\"text-align: justify;\""); 10112 10113 WriteLiteralTo(__razor_helper_writer, ">\r\n <small>\r\n"); 10114 10115 WriteLiteralTo(__razor_helper_writer, " "); 10116 10117 10118 #line 3476 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10119 WriteTo(__razor_helper_writer, Translate("OrderSummaryText", "*Shipping fees are estimates, final fees will be applied upon Quote confirmation. You are responsible for the payment of any customs fees, duties and/or taxes")); 10120 10121 10122 #line default 10123 #line hidden 10124 WriteLiteralTo(__razor_helper_writer, "\r\n </small>\r\n </div>\r\n </div>\r\n"); 10125 10126 10127 #line 3480 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10128 10129 10130 #line default 10131 #line hidden 10132 10133 #line 3480 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10134 10135 10136 10137 #line default 10138 #line hidden 10139 10140 #line 3493 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10141 10142 } 10143 10144 10145 #line default 10146 #line hidden 10147 }); 10148 10149 #line 3495 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10150 } 10151 #line default 10152 #line hidden 10153 10154 10155 #line 3497 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10156 public RazorEngine.Templating.TemplateWriter RenderCartSummaryLine(string label, string value, string labelId = "", string valueId = "", bool isBold = false, bool hasValidation = false) 10157 { 10158 #line default 10159 #line hidden 10160 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10161 10162 #line 3498 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10163 10164 var classToHide = hasValidation && (label.IsNullOrEmpty() || value.IsNullOrEmpty()) ? "hidden" : ""; 10165 10166 10167 10168 #line default 10169 #line hidden 10170 WriteLiteralTo(__razor_helper_writer, " <dt"); 10171 10172 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 151354), Tuple.Create("\"", 151367) 10173 10174 #line 3501 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10175 , Tuple.Create(Tuple.Create("", 151359), Tuple.Create<System.Object, System.Int32>(labelId 10176 10177 #line default 10178 #line hidden 10179 , 151359), false) 10180 ); 10181 10182 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 151368), Tuple.Create("\"", 151397) 10183 , Tuple.Create(Tuple.Create("", 151376), Tuple.Create("col-xs-8", 151376), true) 10184 10185 #line 3501 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10186 , Tuple.Create(Tuple.Create(" ", 151384), Tuple.Create<System.Object, System.Int32>(classToHide 10187 10188 #line default 10189 #line hidden 10190 , 151385), false) 10191 ); 10192 10193 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10194 10195 10196 #line 3502 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10197 10198 10199 #line default 10200 #line hidden 10201 10202 #line 3502 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10203 if (isBold) 10204 { 10205 10206 10207 #line default 10208 #line hidden 10209 WriteLiteralTo(__razor_helper_writer, " "); 10210 10211 WriteLiteralTo(__razor_helper_writer, " <strong>\r\n"); 10212 10213 10214 #line 3505 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10215 } 10216 10217 #line default 10218 #line hidden 10219 WriteLiteralTo(__razor_helper_writer, "\r\n"); 10220 10221 WriteLiteralTo(__razor_helper_writer, " "); 10222 10223 10224 #line 3506 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10225 WriteTo(__razor_helper_writer, label); 10226 10227 10228 #line default 10229 #line hidden 10230 WriteLiteralTo(__razor_helper_writer, "\r\n"); 10231 10232 10233 #line 3507 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10234 10235 10236 #line default 10237 #line hidden 10238 10239 #line 3507 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10240 if (isBold) 10241 { 10242 10243 10244 #line default 10245 #line hidden 10246 WriteLiteralTo(__razor_helper_writer, " "); 10247 10248 WriteLiteralTo(__razor_helper_writer, " </strong>\r\n"); 10249 10250 10251 #line 3510 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10252 } 10253 10254 #line default 10255 #line hidden 10256 WriteLiteralTo(__razor_helper_writer, "\r\n </dt>\r\n"); 10257 10258 WriteLiteralTo(__razor_helper_writer, " <dd"); 10259 10260 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 151618), Tuple.Create("\"", 151631) 10261 10262 #line 3512 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10263 , Tuple.Create(Tuple.Create("", 151623), Tuple.Create<System.Object, System.Int32>(valueId 10264 10265 #line default 10266 #line hidden 10267 , 151623), false) 10268 ); 10269 10270 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 151632), Tuple.Create("\"", 151672) 10271 , Tuple.Create(Tuple.Create("", 151640), Tuple.Create("col-xs-4", 151640), true) 10272 , Tuple.Create(Tuple.Create(" ", 151648), Tuple.Create("text-right", 151649), true) 10273 10274 #line 3512 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10275 , Tuple.Create(Tuple.Create(" ", 151659), Tuple.Create<System.Object, System.Int32>(classToHide 10276 10277 #line default 10278 #line hidden 10279 , 151660), false) 10280 ); 10281 10282 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10283 10284 10285 #line 3513 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10286 10287 10288 #line default 10289 #line hidden 10290 10291 #line 3513 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10292 if (isBold) 10293 { 10294 10295 10296 #line default 10297 #line hidden 10298 WriteLiteralTo(__razor_helper_writer, " "); 10299 10300 WriteLiteralTo(__razor_helper_writer, " <strong>\r\n"); 10301 10302 10303 #line 3516 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10304 } 10305 10306 #line default 10307 #line hidden 10308 WriteLiteralTo(__razor_helper_writer, "\r\n"); 10309 10310 WriteLiteralTo(__razor_helper_writer, " "); 10311 10312 10313 #line 3517 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10314 WriteTo(__razor_helper_writer, value); 10315 10316 10317 #line default 10318 #line hidden 10319 WriteLiteralTo(__razor_helper_writer, "\r\n"); 10320 10321 10322 #line 3518 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10323 10324 10325 #line default 10326 #line hidden 10327 10328 #line 3518 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10329 if (isBold) 10330 { 10331 10332 10333 #line default 10334 #line hidden 10335 WriteLiteralTo(__razor_helper_writer, " "); 10336 10337 WriteLiteralTo(__razor_helper_writer, " </strong>\r\n"); 10338 10339 10340 #line 3521 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10341 } 10342 10343 #line default 10344 #line hidden 10345 WriteLiteralTo(__razor_helper_writer, "\r\n </dd>\r\n"); 10346 10347 10348 #line 3523 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10349 10350 10351 #line default 10352 #line hidden 10353 }); 10354 10355 #line 3523 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10356 } 10357 #line default 10358 #line hidden 10359 10360 10361 #line 3525 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10362 public RazorEngine.Templating.TemplateWriter RenderOrderAmountsDisclaimer() 10363 { 10364 #line default 10365 #line hidden 10366 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10367 10368 #line 3526 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10369 10370 10371 10372 #line default 10373 #line hidden 10374 10375 #line 3527 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10376 10377 10378 10379 #line default 10380 #line hidden 10381 10382 #line 3540 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10383 10384 10385 10386 #line default 10387 #line hidden 10388 }); 10389 10390 #line 3541 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10391 } 10392 #line default 10393 #line hidden 10394 10395 10396 #line 3543 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10397 public RazorEngine.Templating.TemplateWriter RenderVoucherField() 10398 { 10399 #line default 10400 #line hidden 10401 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10402 10403 #line 3544 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10404 10405 var voucherCode = GetString("Ecom:Order.Customer.VoucherCode"); 10406 var voucherCodeErrorMessage = GetString("Ecom:Cart.ValidationError.EcomOrderVoucherCode.ErrorMessage"); 10407 10408 10409 10410 #line default 10411 #line hidden 10412 WriteLiteralTo(__razor_helper_writer, " <h2>"); 10413 10414 10415 #line 3548 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10416 WriteTo(__razor_helper_writer, Translate("voucherCode", "Voucher Code")); 10417 10418 10419 #line default 10420 #line hidden 10421 WriteLiteralTo(__razor_helper_writer, "</h2>\r\n"); 10422 10423 WriteLiteralTo(__razor_helper_writer, " <div"); 10424 10425 WriteLiteralTo(__razor_helper_writer, " id=\"promoCodeContainer\""); 10426 10427 WriteLiteralTo(__razor_helper_writer, " class=\"DMForms col-xs-12 noPadding\""); 10428 10429 WriteLiteralTo(__razor_helper_writer, " data-error=\""); 10430 10431 10432 #line 3549 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10433 WriteTo(__razor_helper_writer, voucherCodeErrorMessage); 10434 10435 10436 #line default 10437 #line hidden 10438 WriteLiteralTo(__razor_helper_writer, "\""); 10439 10440 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10441 10442 10443 #line 3550 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10444 10445 10446 #line default 10447 #line hidden 10448 10449 #line 3550 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10450 if (voucherCode.IsNullOrEmpty() || voucherCodeErrorMessage.IsNotNullOrEmpty()) 10451 { 10452 10453 10454 #line default 10455 #line hidden 10456 10457 #line 3552 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10458 WriteTo(__razor_helper_writer, RenderInputField(new FieldSettings {Label = Translate("enterAVoucherCode", "Enter a Voucher Code"), SystemName = "EcomOrderVoucherCode", Value = GetString("Ecom:Order.Customer.VoucherCode"), IncludeWrapper = true})); 10459 10460 10461 #line default 10462 #line hidden 10463 10464 #line 3552 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10465 10466 10467 10468 #line default 10469 #line hidden 10470 10471 #line 3553 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10472 WriteTo(__razor_helper_writer, RenderBootstrapButton(BootstrapButtonSettings.CreateButton(Translate("apply", "Apply"), string.Empty, "btn-default submitVoucher"))); 10473 10474 10475 #line default 10476 #line hidden 10477 10478 #line 3553 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10479 10480 } 10481 else 10482 { 10483 10484 10485 #line default 10486 #line hidden 10487 WriteLiteralTo(__razor_helper_writer, " <div"); 10488 10489 WriteLiteralTo(__razor_helper_writer, " class=\"promoCodeApplied col-xs-12\""); 10490 10491 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10492 10493 WriteLiteralTo(__razor_helper_writer, " "); 10494 10495 10496 #line 3558 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10497 WriteTo(__razor_helper_writer, Translate("promoCode", "Promo Code")); 10498 10499 10500 #line default 10501 #line hidden 10502 WriteLiteralTo(__razor_helper_writer, ": <span>"); 10503 10504 10505 #line 3558 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10506 WriteTo(__razor_helper_writer, voucherCode); 10507 10508 10509 #line default 10510 #line hidden 10511 WriteLiteralTo(__razor_helper_writer, "</span>\r\n <a"); 10512 10513 WriteLiteralTo(__razor_helper_writer, " class=\"removeVoucher\""); 10514 10515 WriteLiteralTo(__razor_helper_writer, " href=\"javascript:void(0)\""); 10516 10517 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 10518 10519 WriteLiteralTo(__razor_helper_writer, " "); 10520 10521 10522 #line 3560 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10523 WriteTo(__razor_helper_writer, RenderIcon("fa-times", Translate("remove", "Remove"))); 10524 10525 10526 #line default 10527 #line hidden 10528 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n </div>\r\n"); 10529 10530 10531 #line 3563 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10532 } 10533 10534 #line default 10535 #line hidden 10536 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 10537 10538 10539 #line 3565 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10540 10541 10542 #line default 10543 #line hidden 10544 }); 10545 10546 #line 3565 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10547 } 10548 #line default 10549 #line hidden 10550 10551 10552 #line 3568 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10553 public RazorEngine.Templating.TemplateWriter RenderRegionsCustom(List<LoopItem> countries) 10554 { 10555 #line default 10556 #line hidden 10557 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10558 10559 #line 3569 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10560 10561 var locations = new Dictionary<string, dynamic> 10562 { 10563 {"locations", new Dictionary<string, dynamic>()} 10564 }; 10565 10566 locations["locations"].Add("Countries", new List<dynamic>()); 10567 10568 foreach (var ct in countries) 10569 { 10570 var regionsList = ct.GetLoop("Regions"); 10571 var countryDict = new Dictionary<string, dynamic>(); 10572 var countryKey = new Dictionary<string, dynamic> 10573 { 10574 {"id", ct.GetString("Country.Code2")}, {"regions", new List<dynamic>()} 10575 }; 10576 10577 10578 foreach (var region in regionsList.OrderBy(s => s.GetString("Region.Name"))) 10579 { 10580 var regionsDict = new Dictionary<string, string> 10581 { 10582 {"name", region.GetString("Ecom:Region.Name")}, 10583 {"code", region.GetString("Ecom:Region.RegionCode")} 10584 }; 10585 10586 countryKey["regions"].Add(regionsDict); 10587 } 10588 countryDict.Add("country", countryKey); 10589 locations["locations"]["Countries"].Add(countryDict); 10590 } 10591 var productJson = new JavaScriptSerializer().Serialize(locations); 10592 10593 10594 #line default 10595 #line hidden 10596 10597 #line 3601 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10598 WriteTo(__razor_helper_writer, productJson); 10599 10600 10601 #line default 10602 #line hidden 10603 10604 #line 3601 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10605 10606 10607 10608 #line default 10609 #line hidden 10610 }); 10611 10612 #line 3602 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10613 } 10614 #line default 10615 #line hidden 10616 10617 10618 #line 3607 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10619 public RazorEngine.Templating.TemplateWriter RenderRegions(List<LoopItem> countries) 10620 { 10621 #line default 10622 #line hidden 10623 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10624 10625 #line 3608 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10626 10627 var locations = new Dictionary<string, dynamic> 10628 { 10629 {"locations", new Dictionary<string, dynamic>()} 10630 }; 10631 10632 locations["locations"].Add("Countries", new List<dynamic>()); 10633 10634 foreach (var ct in countries) 10635 { 10636 var regionsList = ct.GetLoop("Regions"); 10637 var countryDict = new Dictionary<string, dynamic>(); 10638 var countryKey = new Dictionary<string, dynamic> 10639 { 10640 {"id", ct.GetString("Ecom:Country.Code2")}, {"regions", new List<dynamic>()} 10641 }; 10642 10643 10644 foreach (var region in regionsList.OrderBy(s => s.GetString("Ecom:Region.Name"))) 10645 { 10646 var regionsDict = new Dictionary<string, string> 10647 { 10648 {"name", region.GetString("Ecom:Region.Name")}, 10649 {"code", region.GetString("Ecom:Region.RegionCode")} 10650 }; 10651 10652 countryKey["regions"].Add(regionsDict); 10653 } 10654 countryDict.Add("country", countryKey); 10655 locations["locations"]["Countries"].Add(countryDict); 10656 } 10657 var productJson = new JavaScriptSerializer().Serialize(locations); 10658 10659 10660 #line default 10661 #line hidden 10662 10663 #line 3640 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10664 WriteTo(__razor_helper_writer, productJson); 10665 10666 10667 #line default 10668 #line hidden 10669 10670 #line 3640 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10671 10672 10673 10674 #line default 10675 #line hidden 10676 }); 10677 10678 #line 3641 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10679 } 10680 #line default 10681 #line hidden 10682 10683 10684 #line 3643 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10685 public RazorEngine.Templating.TemplateWriter RenderCheckoutGoogleTag(List<LoopItem> orderlines,string eventName) 10686 { 10687 #line default 10688 #line hidden 10689 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 10690 10691 #line 3644 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10692 10693 var voucherCode = GetString("Ecom:Order.Customer.VoucherCode"); 10694 var coupon = voucherCode.IsNotNullOrEmpty() ? string.Concat(",\"coupon\": \"",GetString("Ecom:Order.Customer.VoucherCode"),"\"") : ""; 10695 10696 if ((Pageview.Area.Item["GoogleAnalytics"] ?? "").ToString().IsNotNullOrEmpty() && orderlines.Any()) 10697 { 10698 var objectChar = "{"; 10699 10700 10701 #line default 10702 #line hidden 10703 WriteLiteralTo(__razor_helper_writer, " "); 10704 10705 WriteLiteralTo(__razor_helper_writer, "\r\n gtag(\'event\', \'"); 10706 10707 10708 #line 3652 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10709 WriteTo(__razor_helper_writer, eventName); 10710 10711 10712 #line default 10713 #line hidden 10714 WriteLiteralTo(__razor_helper_writer, "\', {\r\n"); 10715 10716 10717 #line 3653 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10718 10719 10720 #line default 10721 #line hidden 10722 10723 #line 3653 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10724 if (eventName == "purchase") 10725 { 10726 10727 10728 #line default 10729 #line hidden 10730 WriteLiteralTo(__razor_helper_writer, " "); 10731 10732 WriteLiteralTo(__razor_helper_writer, "\r\n \"value\": "); 10733 10734 10735 #line 3656 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10736 WriteTo(__razor_helper_writer, GetDouble("Ecom:Order.Price.Price")); 10737 10738 10739 #line default 10740 #line hidden 10741 WriteLiteralTo(__razor_helper_writer, ",\r\n \"currency\": \""); 10742 10743 10744 #line 3657 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10745 WriteTo(__razor_helper_writer, Dynamicweb.Ecommerce.Common.Context.Currency.Code); 10746 10747 10748 #line default 10749 #line hidden 10750 WriteLiteralTo(__razor_helper_writer, "\",\r\n \"tax\": "); 10751 10752 10753 #line 3658 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10754 WriteTo(__razor_helper_writer, GetDouble("Ecom:Order.Taxes.Total")); 10755 10756 10757 #line default 10758 #line hidden 10759 WriteLiteralTo(__razor_helper_writer, ",\r\n \"shipping\": "); 10760 10761 10762 #line 3659 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10763 WriteTo(__razor_helper_writer, GetDouble("Ecom:Order.ShippingFee.Price")); 10764 10765 10766 #line default 10767 #line hidden 10768 WriteLiteralTo(__razor_helper_writer, ",\r\n "); 10769 10770 WriteLiteralTo(__razor_helper_writer, "\r\n"); 10771 10772 10773 #line 3661 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10774 } 10775 10776 #line default 10777 #line hidden 10778 WriteLiteralTo(__razor_helper_writer, " \r\n \"items\": [\r\n"); 10779 10780 10781 #line 3663 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10782 10783 10784 #line default 10785 #line hidden 10786 10787 #line 3663 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10788 foreach (var orderline in orderlines.Where(ol => ol.GetInteger("Ecom:Order:OrderLine.Type") == (int) OrderLineType.Product)) 10789 { 10790 10791 10792 #line default 10793 #line hidden 10794 WriteLiteralTo(__razor_helper_writer, " "); 10795 10796 WriteLiteralTo(__razor_helper_writer, "\r\n"); 10797 10798 WriteLiteralTo(__razor_helper_writer, " "); 10799 10800 10801 #line 3666 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10802 WriteTo(__razor_helper_writer, objectChar); 10803 10804 10805 #line default 10806 #line hidden 10807 WriteLiteralTo(__razor_helper_writer, "\r\n \"id\": \""); 10808 10809 10810 #line 3667 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10811 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.ProductID")); 10812 10813 10814 #line default 10815 #line hidden 10816 WriteLiteralTo(__razor_helper_writer, "\",\r\n \"name\": \""); 10817 10818 10819 #line 3668 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10820 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.ProductName")); 10821 10822 10823 #line default 10824 #line hidden 10825 WriteLiteralTo(__razor_helper_writer, "\",\r\n \"variant\": \""); 10826 10827 10828 #line 3669 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10829 WriteTo(__razor_helper_writer, orderline.GetString("Ecom:Order:OrderLine.ProductVariantText")); 10830 10831 10832 #line default 10833 #line hidden 10834 WriteLiteralTo(__razor_helper_writer, "\",\r\n \"quantity\": "); 10835 10836 10837 #line 3670 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10838 WriteTo(__razor_helper_writer, orderline.GetInteger("Ecom:Order:OrderLine.Quantity")); 10839 10840 10841 #line default 10842 #line hidden 10843 WriteLiteralTo(__razor_helper_writer, ",\r\n \"price\": \'"); 10844 10845 10846 #line 3671 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10847 WriteTo(__razor_helper_writer, orderline.GetDouble("Ecom:Order:OrderLine.TotalPriceWithProductDiscounts.Price")); 10848 10849 10850 #line default 10851 #line hidden 10852 WriteLiteralTo(__razor_helper_writer, "\'\r\n }\r\n "); 10853 10854 WriteLiteralTo(__razor_helper_writer, "\r\n"); 10855 10856 10857 #line 3674 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10858 objectChar = ",{"; 10859 } 10860 10861 #line default 10862 #line hidden 10863 WriteLiteralTo(__razor_helper_writer, "\r\n ]\r\n"); 10864 10865 WriteLiteralTo(__razor_helper_writer, " "); 10866 10867 10868 #line 3677 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10869 WriteTo(__razor_helper_writer, coupon); 10870 10871 10872 #line default 10873 #line hidden 10874 WriteLiteralTo(__razor_helper_writer, "\r\n });\r\n "); 10875 10876 WriteLiteralTo(__razor_helper_writer, "\r\n"); 10877 10878 10879 #line 3680 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10880 } 10881 10882 10883 #line default 10884 #line hidden 10885 }); 10886 10887 #line 3681 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10888 } 10889 #line default 10890 #line hidden 10891 10892 10893 public RazorEngine_7f76848898f849febc506c49d318c8e6() { 10894 } 10895 10896 public override void Execute() { 10897 10898 #line 368 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10899 10900 10901 10902 #line default 10903 #line hidden 10904 10905 #line 369 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10906 10907 10908 10909 #line default 10910 #line hidden 10911 10912 #line 428 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10913 10914 10915 10916 10917 #line default 10918 #line hidden 10919 10920 #line 471 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10921 10922 10923 10924 10925 #line default 10926 #line hidden 10927 10928 #line 500 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10929 10930 10931 10932 10933 #line default 10934 #line hidden 10935 10936 #line 553 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10937 10938 10939 10940 10941 #line default 10942 #line hidden 10943 10944 #line 589 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10945 10946 10947 10948 10949 #line default 10950 #line hidden 10951 10952 #line 617 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10953 10954 10955 10956 10957 #line default 10958 #line hidden 10959 10960 #line 677 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10961 10962 10963 10964 10965 #line default 10966 #line hidden 10967 10968 #line 717 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10969 10970 10971 10972 10973 10974 #line default 10975 #line hidden 10976 10977 #line 720 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10978 10979 10980 10981 #line default 10982 #line hidden 10983 10984 #line 736 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10985 10986 10987 10988 10989 #line default 10990 #line hidden 10991 10992 #line 746 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 10993 10994 10995 10996 10997 #line default 10998 #line hidden 10999 11000 #line 753 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11001 11002 11003 11004 11005 11006 #line default 11007 #line hidden 11008 11009 #line 756 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11010 11011 11012 11013 #line default 11014 #line hidden 11015 11016 #line 780 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11017 11018 11019 11020 11021 #line default 11022 #line hidden 11023 11024 #line 800 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11025 11026 11027 11028 11029 #line default 11030 #line hidden 11031 11032 #line 810 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11033 11034 11035 11036 11037 #line default 11038 #line hidden 11039 11040 #line 835 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11041 11042 11043 11044 11045 #line default 11046 #line hidden 11047 11048 #line 856 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11049 11050 11051 11052 11053 #line default 11054 #line hidden 11055 11056 #line 861 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11057 11058 11059 11060 11061 #line default 11062 #line hidden 11063 11064 #line 866 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11065 11066 11067 11068 11069 #line default 11070 #line hidden 11071 11072 #line 940 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11073 11074 11075 11076 11077 11078 #line default 11079 #line hidden 11080 11081 #line 943 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11082 11083 11084 11085 #line default 11086 #line hidden 11087 11088 #line 1031 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11089 11090 11091 11092 11093 #line default 11094 #line hidden 11095 11096 #line 1043 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11097 11098 11099 11100 11101 #line default 11102 #line hidden 11103 11104 #line 1081 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11105 11106 11107 11108 #line default 11109 #line hidden 11110 WriteLiteral("\r\n"); 11111 11112 WriteLiteral(" \r\n"); 11113 11114 WriteLiteral(" \r\n"); 11115 11116 WriteLiteral(" "); 11117 11118 WriteLiteral("\r\n"); 11119 11120 WriteLiteral("\r\n"); 11121 11122 WriteLiteral("\r\n"); 11123 11124 WriteLiteral("\r\n"); 11125 11126 WriteLiteral("\r\n"); 11127 11128 11129 #line 1295 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11130 11131 11132 11133 #line default 11134 #line hidden 11135 11136 #line 1296 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11137 11138 11139 11140 #line default 11141 #line hidden 11142 11143 #line 1320 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11144 11145 11146 11147 11148 #line default 11149 #line hidden 11150 11151 #line 1343 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11152 11153 11154 11155 11156 #line default 11157 #line hidden 11158 11159 #line 1362 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11160 11161 11162 11163 11164 #line default 11165 #line hidden 11166 11167 #line 1375 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11168 11169 11170 11171 11172 11173 #line default 11174 #line hidden 11175 11176 #line 1378 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11177 11178 11179 11180 #line default 11181 #line hidden 11182 11183 #line 1386 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11184 11185 11186 11187 11188 #line default 11189 #line hidden 11190 11191 #line 1397 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11192 11193 11194 11195 11196 11197 #line default 11198 #line hidden 11199 11200 #line 1400 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11201 11202 11203 11204 #line default 11205 #line hidden 11206 11207 #line 1433 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11208 11209 11210 11211 11212 #line default 11213 #line hidden 11214 11215 #line 1470 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11216 11217 11218 11219 11220 #line default 11221 #line hidden 11222 11223 #line 1485 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11224 11225 11226 11227 11228 #line default 11229 #line hidden 11230 11231 #line 1552 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11232 11233 11234 11235 11236 #line default 11237 #line hidden 11238 11239 #line 1585 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11240 11241 11242 11243 11244 #line default 11245 #line hidden 11246 11247 #line 1609 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11248 11249 11250 11251 11252 #line default 11253 #line hidden 11254 11255 #line 1617 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11256 11257 11258 11259 11260 #line default 11261 #line hidden 11262 11263 #line 1642 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11264 11265 11266 11267 11268 #line default 11269 #line hidden 11270 11271 #line 1683 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11272 11273 11274 11275 11276 #line default 11277 #line hidden 11278 11279 #line 1700 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11280 11281 11282 11283 11284 #line default 11285 #line hidden 11286 11287 #line 1767 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11288 11289 11290 11291 #line default 11292 #line hidden 11293 WriteLiteral("\r\n"); 11294 11295 WriteLiteral("\r\n\r\n\r\n"); 11296 11297 WriteLiteral("\r\n\r\n"); 11298 11299 WriteLiteral("\r\n"); 11300 11301 WriteLiteral("\r\n"); 11302 11303 WriteLiteral("\r\n"); 11304 11305 WriteLiteral("\r\n"); 11306 11307 11308 #line 2797 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11309 11310 11311 11312 11313 11314 #line default 11315 #line hidden 11316 11317 #line 2805 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11318 11319 11320 11321 11322 #line default 11323 #line hidden 11324 11325 #line 2817 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11326 11327 11328 11329 11330 11331 #line default 11332 #line hidden 11333 11334 #line 2833 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11335 11336 11337 11338 #line default 11339 #line hidden 11340 11341 #line 2871 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11342 11343 11344 11345 11346 #line default 11347 #line hidden 11348 11349 #line 2941 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 #line default 11361 #line hidden 11362 11363 #line 3091 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11364 11365 11366 11367 11368 11369 11370 11371 11372 #line default 11373 #line hidden 11374 11375 #line 3166 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11376 11377 11378 11379 11380 #line default 11381 #line hidden 11382 11383 #line 3172 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11384 11385 11386 11387 11388 #line default 11389 #line hidden 11390 11391 #line 3231 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11392 11393 11394 11395 11396 #line default 11397 #line hidden 11398 11399 #line 3269 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11400 11401 11402 11403 11404 #line default 11405 #line hidden 11406 11407 #line 3281 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11408 11409 11410 11411 11412 #line default 11413 #line hidden 11414 11415 #line 3495 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11416 11417 11418 11419 11420 #line default 11421 #line hidden 11422 11423 #line 3523 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11424 11425 11426 11427 11428 #line default 11429 #line hidden 11430 11431 #line 3541 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11432 11433 11434 11435 11436 #line default 11437 #line hidden 11438 11439 #line 3565 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11440 11441 11442 11443 11444 11445 #line default 11446 #line hidden 11447 11448 #line 3602 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11449 11450 11451 11452 11453 11454 11455 11456 #line default 11457 #line hidden 11458 11459 #line 3641 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11460 11461 11462 11463 11464 #line default 11465 #line hidden 11466 11467 #line 3681 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11468 11469 11470 11471 #line default 11472 #line hidden 11473 WriteLiteral("\r\n"); 11474 11475 11476 #line 3683 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11477 11478 var userIsLoggedIn = Dynamicweb.Security.UserManagement.User.IsExtranetUserLoggedIn(); 11479 var buttonText = userIsLoggedIn ? Translate("updateProfile", "Update profile") : Translate("createAccount", "Create account"); 11480 var urlEdit = GetString("UserManagement:User.EditUrl"); 11481 var editLogin = urlEdit + "&ActionType=Login"; 11482 var errorMessages = GetLoop("FormValidationErrors"); 11483 var countriesLoop = GetLoop("UserManagement.CountryList"); 11484 string template; 11485 11486 if (Sanitize.Parameter("Action").IsNullOrEmpty()) 11487 { 11488 template = "CreateUser"; 11489 } 11490 else if (Sanitize.Parameter("Action") == "Edit" && Sanitize.Parameter("ActionType") != "Login") 11491 { 11492 template = "EditUser"; 11493 } 11494 else if (Sanitize.Parameter("Action") == "Edit" && Sanitize.Parameter("ActionType") == "Login") 11495 { 11496 template = "EditLoginInformation"; 11497 } 11498 else 11499 { 11500 template = "CreateUser"; 11501 } 11502 11503 11504 #line default 11505 #line hidden 11506 WriteLiteral("\r\n\r\n"); 11507 11508 11509 #line 3710 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11510 if (errorMessages.Any(m => m.GetString("UserManagement:User.FormValidationError.FieldName").ToString() == "UserManagement_Form_UserName")) 11511 { 11512 11513 11514 #line default 11515 #line hidden 11516 WriteLiteral(" <div"); 11517 11518 WriteLiteral(" id=\"formValidations\""); 11519 11520 WriteLiteral(" class=\"hidden\""); 11521 11522 WriteLiteral(">\r\n <span"); 11523 11524 WriteLiteral(" id=\"userNameTaken\""); 11525 11526 WriteLiteral(">"); 11527 11528 11529 #line 3713 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11530 Write(errorMessages.Where(m => m.GetString("UserManagement:User.FormValidationError.FieldName").ToString() == "UserManagement_Form_UserName").ToString()); 11531 11532 11533 #line default 11534 #line hidden 11535 WriteLiteral("</span>\r\n </div>\r\n"); 11536 11537 11538 #line 3715 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11539 } 11540 11541 11542 #line default 11543 #line hidden 11544 WriteLiteral("\r\n"); 11545 11546 11547 #line 3717 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11548 Write(GetString("UserManagement:User.FormStart").Replace("<form", "<form class=\"userRelatedForms createAccountForm DMForms col-xs-12\"")); 11549 11550 11551 #line default 11552 #line hidden 11553 WriteLiteral("\r\n\r\n"); 11554 11555 11556 #line 3719 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11557 if (template == "CreateUser" || template == "EditUser") 11558 { 11559 var usernameAppend = template == "CreateUser" ? Translate("thisWillBeYourUsername", "This will be your username") : "<a href=\"" + editLogin + "\">" + Translate("editLogin", "Edit login information") + "</a>"; 11560 var usernameControl = template == "CreateUser" ? GetString("UserManagement:User.Email.Input").Replace("type=\"text\"", "type=\"email\"") : GetString("UserManagement:User.Email.Input").Replace("<input ", "<input disabled ").Replace("type=\"text\"", "type=\"email\""); 11561 11562 11563 11564 #line default 11565 #line hidden 11566 11567 #line 3724 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11568 Write(RenderInputField(FieldSettings.CreateHiddenField("UserManagement_Form_EmailAllowed_ApplyValue", "AllowEmail", "UserManagement_Form_EmailAllowed_ApplyValue"))); 11569 11570 11571 #line default 11572 #line hidden 11573 11574 #line 3724 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11575 11576 11577 11578 #line default 11579 #line hidden 11580 11581 #line 3725 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11582 Write(RenderInputField(FieldSettings.CreateHiddenField("UserManagement_Form_UserName", GetString("UserManagement:User.UserName"), "UserManagement_Form_UserName"))); 11583 11584 11585 #line default 11586 #line hidden 11587 11588 #line 3725 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11589 11590 11591 11592 #line default 11593 #line hidden 11594 11595 #line 3726 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11596 11597 11598 11599 #line default 11600 #line hidden 11601 11602 #line 3727 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11603 Write(RenderInputField(new FieldSettings {Label = Translate("Name", "Name"), Id = "UserManagement_Form_Name", Control = GetString("UserManagement:User.Name.Input"), IsRequired = true, IncludeWrapper = true})); 11604 11605 11606 #line default 11607 #line hidden 11608 11609 #line 3727 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11610 11611 11612 11613 #line default 11614 #line hidden 11615 11616 #line 3728 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11617 11618 11619 11620 #line default 11621 #line hidden 11622 11623 #line 3729 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11624 Write(RenderInputField(new FieldSettings {Type = FieldType.Email, Label = Translate("email", "Email"), Id = "UserManagement_Form_Email", Control = usernameControl, Append = usernameAppend, IncludeWrapper = true, WrapperCssClass = "checkEmail", IsRequired = true})); 11625 11626 11627 #line default 11628 #line hidden 11629 11630 #line 3729 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11631 11632 11633 if (!userIsLoggedIn) 11634 { 11635 11636 11637 #line default 11638 #line hidden 11639 11640 #line 3733 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11641 Write(RenderUserPasswordWithConfirmationFields()); 11642 11643 11644 #line default 11645 #line hidden 11646 11647 #line 3733 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11648 11649 } 11650 11651 11652 #line default 11653 #line hidden 11654 11655 #line 3735 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11656 Write(RenderInputField(new FieldSettings {Label = Translate("company", "Company"), Id = "UserManagement_Form_Company", Control = GetString("UserManagement:User.Company.Input"), IncludeWrapper = true})); 11657 11658 11659 #line default 11660 #line hidden 11661 11662 #line 3735 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11663 11664 11665 11666 #line default 11667 #line hidden 11668 11669 #line 3736 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11670 Write(RenderAddressFieldsCustom()); 11671 11672 11673 #line default 11674 #line hidden 11675 11676 #line 3736 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11677 11678 11679 11680 #line default 11681 #line hidden 11682 11683 #line 3737 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11684 Write(RenderUserCurrencySelector()); 11685 11686 11687 #line default 11688 #line hidden 11689 11690 #line 3737 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11691 11692 11693 11694 #line default 11695 #line hidden 11696 11697 #line 3738 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11698 Write(RenderInputField(new FieldSettings {Label = Translate("phone", "Phone"), Id = "UserManagement_Form_Phone", Control = GetString("UserManagement:User.Phone.Input"), CssClass = "checkPhone", IsRequired = true, IncludeWrapper = true})); 11699 11700 11701 #line default 11702 #line hidden 11703 11704 #line 3738 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11705 11706 11707 if (template == "CreateUser") 11708 { 11709 11710 11711 #line default 11712 #line hidden 11713 11714 #line 3742 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11715 Write(RenderCheckboxField(new FieldSettings {Label = Translate("subscribeToOurNewsletter", "Subscribe to our newsletter"), Id = "UserManagement_Form_EmailAllowed", SystemName = "UserManagement_Form_EmailAllowed", IncludeWrapper = true})); 11716 11717 11718 #line default 11719 #line hidden 11720 11721 #line 3742 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11722 11723 } 11724 } 11725 else 11726 { 11727 11728 11729 #line default 11730 #line hidden 11731 11732 #line 3747 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11733 Write(RenderInputField(new FieldSettings {Label = Translate("usernameEmail", "Username / Email"), Control = GetString("UserManagement:User.UserName.Input").Replace("<input ", "<input disabled "), IncludeWrapper = true})); 11734 11735 11736 #line default 11737 #line hidden 11738 11739 #line 3747 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11740 11741 11742 11743 #line default 11744 #line hidden 11745 11746 #line 3748 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11747 Write(RenderInputField(new FieldSettings {Type = FieldType.Password, Label = Translate("oldPassword", "Old Password"), Id = "UserManagement_Form_OldPassword", Control = GetString("UserManagement:User.OldPassword.Input"), IsRequired = true, IncludeWrapper = true})); 11748 11749 11750 #line default 11751 #line hidden 11752 11753 #line 3748 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11754 11755 11756 11757 #line default 11758 #line hidden 11759 11760 #line 3749 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11761 Write(RenderUserPasswordWithConfirmationFields()); 11762 11763 11764 #line default 11765 #line hidden 11766 11767 #line 3749 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11768 11769 } 11770 11771 11772 #line default 11773 #line hidden 11774 WriteLiteral("\r\n"); 11775 11776 11777 #line 3752 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11778 foreach (var group in GetLoop("SelectableGroups")) 11779 { 11780 11781 11782 #line default 11783 #line hidden 11784 11785 #line 3754 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11786 Write(RenderCheckboxField(new FieldSettings {Control = group.GetString("UserManagement:User.SelectableGroup.Input").Replace("<input ", "<input checked class=\"hidden\" ")})); 11787 11788 11789 #line default 11790 #line hidden 11791 11792 #line 3754 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11793 11794 } 11795 11796 11797 #line default 11798 #line hidden 11799 WriteLiteral("\r\n<div"); 11800 11801 WriteLiteral(" class=\"formButtonsWithReset\""); 11802 11803 WriteLiteral(">\r\n"); 11804 11805 WriteLiteral(" "); 11806 11807 11808 #line 3758 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11809 Write(RenderBootstrapButton(BootstrapButtonSettings.CreateButton(Translate("cancel", "Cancel"), "javascript:history.back();", "btn-bg2"))); 11810 11811 11812 #line default 11813 #line hidden 11814 WriteLiteral("\r\n"); 11815 11816 WriteLiteral(" "); 11817 11818 11819 #line 3759 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11820 Write(RenderButtonField(FieldSettings.CreateSubmitField(buttonText))); 11821 11822 11823 #line default 11824 #line hidden 11825 WriteLiteral("\r\n</div>\r\n"); 11826 11827 11828 #line 3761 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11829 Write(GetString("UserManagement:User.FormEnd")); 11830 11831 11832 #line default 11833 #line hidden 11834 WriteLiteral("\r\n\r\n"); 11835 11836 11837 #line 3763 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11838 Write(SnippetStart("jsOnLoad")); 11839 11840 11841 #line default 11842 #line hidden 11843 WriteLiteral("\r\n\r\n"); 11844 11845 11846 #line 3765 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11847 11848 var alertErrorMessages = GetString("UserManagement:User.UserName.Input.Error"); 11849 if (errorMessages.Any(m => m.GetString("UserManagement:User.FormValidationError.FieldName").ToString() != "UserManagement_Form_UserName")) 11850 { 11851 alertErrorMessages += errorMessages.Where(m => m.GetString("UserManagement:User.FormValidationError.FieldName").ToString() != "UserManagement_Form_UserName").Aggregate(alertErrorMessages, (current, validationError) => current + validationError.GetString("UserManagement:User.FormValidationError.Message")); 11852 } 11853 11854 11855 #line default 11856 #line hidden 11857 WriteLiteral("\r\n\r\nonLoadCreateUser({\r\nstr_country : \'"); 11858 11859 11860 #line 3774 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11861 Write(GetString("UserManagement:User.Country")); 11862 11863 11864 #line default 11865 #line hidden 11866 WriteLiteral("\',\r\nstr_state : \'"); 11867 11868 11869 #line 3775 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11870 Write(GetString("UserManagement:User.State")); 11871 11872 11873 #line default 11874 #line hidden 11875 WriteLiteral("\',\r\nregions : \'"); 11876 11877 11878 #line 3776 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11879 Write(RenderRegionsCustom(countriesLoop)); 11880 11881 11882 #line default 11883 #line hidden 11884 WriteLiteral("\',\r\nerrorMessage : \'"); 11885 11886 11887 #line 3777 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11888 Write(alertErrorMessages); 11889 11890 11891 #line default 11892 #line hidden 11893 WriteLiteral("\',\r\ncheckIfEmailExistsPage: \'"); 11894 11895 11896 #line 3778 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11897 Write(Dynamicweb.Frontend.SearchEngineFriendlyURLs.GetFriendlyUrl(GetPageIdByNavigationTag("CheckIfEmailExists"))); 11898 11899 11900 #line default 11901 #line hidden 11902 WriteLiteral("\'\r\n});\r\n"); 11903 11904 11905 #line 3780 "c:\Domains\Sites\qaredesign-drhoneydew.dw-demo.com\Files\Templates\Designs\VisionSpring\UserManagement\CreateProfile\CreateUserAccount.cshtml" 11906 Write(SnippetEnd("jsOnLoad")); 11907 11908 11909 #line default 11910 #line hidden 11911 } 11912 } 11913 } 11914

1 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 2 @using Dynamicweb.Rendering 3 @using System.Linq 4 @using Dna.Frontend.Forms 5 @using Dna.Frontend.UI 6 @using Dna.Validation 7 @using Dynamicweb.Core 8 @using Dynamicweb.Forms 9 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 10 @using System 11 @using Dynamicweb.Rendering 12 @using System.Collections.Generic 13 @using System.Linq 14 @using System.Runtime.InteropServices 15 @using Dna.Frontend.Forms 16 @using Dna.Frontend.UI 17 @using Dna.UrlServices 18 @using Dynamicweb.Content 19 @using Dynamicweb.Core 20 @using Lucene.Net.Util 21 @inherits RazorTemplateBase<RazorTemplateModel<Template>> 22 @using Dynamicweb.Rendering 23 @using System 24 @using System.Collections.Generic 25 @using System.Collections.Specialized 26 @using System.IO 27 @using System.Linq 28 @using System.Web 29 @using Dna.Frontend.UI 30 @using Dna.UrlServices 31 @using Dna.Validation 32 @using Dynamicweb.Core 33 @functions{ 34 35 #region Css functions 36 37 public static string GetPalletColorNumber(int number = 0) 38 { 39 switch (number) 40 { 41 case 1: 42 return "#666666"; 43 case 2: 44 return "#333333"; 45 default: 46 return "#ffffff"; 47 } 48 } 49 50 public static string GetFontFamilyNumber(int number = 0) 51 { 52 switch (number) 53 { 54 case 1: 55 return "font-family: Arial, sans-serif;"; 56 default: 57 return "font-family: Helvetica, Arial, sans-serif;"; 58 } 59 } 60 61 public static string GetFontSize(int fontSize = 0) 62 { 63 return fontSize >= 0 ? string.Concat("font-size: ", fontSize, "px;") : "font-size: 14px"; 64 } 65 66 #endregion Css functions 67 68 #region Icon functions 69 70 public static string GetIcon(string cssPartialClass, string label = "", string position = "") 71 { 72 var icon = "<i class='fa " + cssPartialClass + "'></i>"; 73 var spacing = string.Empty; 74 75 if (!label.IsNullOrEmpty()) 76 { 77 spacing = "<text>&nbsp;</text>"; 78 } 79 80 if (cssPartialClass.IsNullOrEmpty()) return label; 81 if (position == IconPosition.Left.ToString() || position.IsNullOrEmpty()) 82 { 83 return icon + spacing + label; 84 } 85 return label + spacing + icon; 86 } 87 88 #endregion Icon functions 89 90 #region Url functions 91 92 public string GetCustomerCenterSortUrl(string field, string listType = "Order") 93 { 94 var paragraphId = Pageview.CurrentParagraph.ID.ToString(); 95 var sortDirectionParameter = "CCSort" + listType + paragraphId; 96 var sortFieldParameter = "CC" + listType + "ByField" + paragraphId; 97 var sortDirection = Sanitize.Parameter(sortDirectionParameter) == "Desc" || Sanitize.Parameter(sortFieldParameter) == field ? "Desc" : "Asc"; 98 99 if (field.IsNotNullOrEmpty()) 100 { 101 return "/Default.aspx?ID=" + Pageview.Page.ID + "&" + sortFieldParameter + "=" + field + "&" + sortDirectionParameter + "=" + sortDirection; 102 } 103 104 return string.Empty; 105 } 106 107 public string GetSortFieldParameter(string key, string field = "", string listType = "Order") 108 { 109 var paragraphId = Pageview.CurrentParagraph.ID.ToString(); 110 if (key.IsNullOrEmpty()) throw new NotSupportedException("'key' is a required field"); 111 112 switch (key) 113 { 114 case "name": 115 var parameter = "CC" + listType + "ByField" + paragraphId; 116 return Sanitize.Parameter(parameter); 117 case "value": 118 if (field.IsNullOrEmpty()) return "asc"; 119 var sortDirectionParameter = "CCSort" + listType + paragraphId; 120 var sortFieldParameter = "CC" + listType + "ByField" + paragraphId; 121 return Sanitize.Parameter(sortDirectionParameter) == "Desc" || Sanitize.Parameter(sortFieldParameter) == field ? "Desc" : "Asc"; 122 default: 123 throw new NotSupportedException(string.Format("The key '{0}' in not supported", key)); 124 } 125 } 126 127 #endregion Url functions 128 129 #region Address functions 130 131 public string GetAddressFormatted(string address, string address2, string city, string zip, string region, string country, bool getRegionName = false, bool getCountryName = false, bool addLineBreakBetweenAddressAndCity = false, string splitBetweenRegionAndCountry = " ") 132 { 133 var formattedAddress = address; 134 135 if (address2.IsNotNullOrEmpty()) 136 { 137 formattedAddress += " " + address2; 138 } 139 if (addLineBreakBetweenAddressAndCity && (city + region + country).IsNotNullOrEmpty()) 140 { 141 formattedAddress += "<br/>"; 142 } 143 if (city.IsNotNullOrEmpty()) 144 { 145 formattedAddress += " " + city + ", "; 146 } 147 if (zip.IsNotNullOrEmpty()) 148 { 149 formattedAddress += zip; 150 } 151 if (region.IsNotNullOrEmpty()) 152 { 153 int index1 = region.IndexOf(','); 154 if (index1 != -1) 155 { 156 region = region.Remove(index1, 1); 157 } 158 if (getRegionName && country.IsNotNullOrEmpty()) 159 { 160 var regionName = Dynamicweb.Ecommerce.Services.Countries.GetRegions(country).First(c => c.RegionCode == region).Name; 161 region = regionName.IsNotNullOrEmpty() ? regionName : region; 162 } 163 formattedAddress += " " + region; 164 } 165 166 if (country.IsNullOrEmpty()) 167 { 168 return formattedAddress; 169 } 170 171 formattedAddress += splitBetweenRegionAndCountry.IsNotNullOrEmpty() ? splitBetweenRegionAndCountry : " "; 172 if (getCountryName && country.IsNotNullOrEmpty()) 173 { 174 var countryName = Dynamicweb.Ecommerce.Services.Countries.GetCountry(country) != null ? Dynamicweb.Ecommerce.Services.Countries.GetCountry(country).Name : country; 175 country = countryName.IsNotNullOrEmpty() ? countryName : country; 176 } 177 formattedAddress += country; 178 179 return formattedAddress; 180 } 181 182 #endregion Address functions 183 184 #region Generic functions 185 186 private static int FormatInteger(object value) 187 { 188 int num; 189 if (value == null) 190 { 191 value = string.Empty; 192 } 193 return int.TryParse(value.ToString(), out num) ? num : 0; 194 } 195 196 public static string GetAttributes(Dictionary<string, string> attributes) 197 { 198 if (attributes == null || !attributes.Any()) 199 { 200 return string.Empty; 201 } 202 203 var attributesConcat = attributes.Aggregate(string.Empty, (current, attribute) => current + GetAttribute(attribute.Key, attribute.Value)); 204 205 return attributesConcat; 206 } 207 208 public static string GetAttribute(string attributeName, string attributeValue) 209 { 210 if (attributeValue.IsNullOrEmpty()) return string.Empty; 211 return " " + attributeName + "=\"" + attributeValue + "\""; 212 } 213 214 #endregion Generic functions 215 216 #region Files functions 217 218 const string ImagesListTitleKey = "title"; 219 const string ImagesListImageKey = "image"; 220 221 public List<Dictionary<string, string>> GetFilesInFolder(string defaultImage, string searchPattern, bool addDefaultImage = true) 222 { 223 var imagesList = new List<Dictionary<string, string>>(); 224 var mapPath = HttpContext.Current.Server.MapPath(defaultImage); 225 var folderServerPath = Path.GetDirectoryName(mapPath); 226 227 if (!Directory.Exists(folderServerPath)) return imagesList; 228 229 // Get Images from folder 230 const string temp = @"\"; 231 const string metafield = "title"; 232 var metadata = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(defaultImage); 233 var title = metadata != null && metadata.GetValue(metafield).IsNullOrEmpty() ? metadata.GetValue(metafield) : GetString("Ecom:Product.Name"); 234 var folderWebPath = defaultImage.Contains("/") ? defaultImage.Substring(0, defaultImage.LastIndexOf("/")) : defaultImage; 235 236 var dctImage = new Dictionary<string, string>(); 237 238 if (addDefaultImage && File.Exists(mapPath)) 239 { 240 dctImage.Add(ImagesListTitleKey, title); 241 dctImage.Add(ImagesListImageKey, defaultImage); 242 imagesList.Add(dctImage); 243 } 244 245 foreach (var file in Directory.GetFiles(folderServerPath, searchPattern)) 246 { 247 dctImage = new Dictionary<string, string>(); 248 var image = folderWebPath + "/" + file.Substring(file.LastIndexOf(temp, StringComparison.Ordinal) + 1, file.Length - file.LastIndexOf(temp, StringComparison.Ordinal) - 1); 249 metadata = Dynamicweb.Content.Files.Metadata.EditorFactory.GetMetadataForFile(image); 250 title = metadata != null && metadata.GetValue(metafield).IsNullOrEmpty() ? metadata.GetValue(metafield) : GetString("Ecom:Product.Name"); 251 252 dctImage.Add(ImagesListTitleKey, title); 253 dctImage.Add(ImagesListImageKey, image); 254 imagesList.Add(dctImage); 255 } 256 257 return imagesList; 258 } 259 260 #endregion Files functions 261 }@inherits RazorTemplateBase<RazorTemplateModel<Template>> 262 @using System 263 @using Dynamicweb.Rendering 264 @using System.Collections.Generic 265 @using System.Linq 266 @using System.Text.RegularExpressions 267 @using Dna.Frontend 268 @using Dna.Frontend.Forms 269 @using Dna.Frontend.UI 270 @using Dynamicweb.Core 271 @using Dynamicweb.Forms 272 @functions 273 { 274 275 #region Form Field functions 276 277 public string GetWrapperStart(bool includeWrapper, FieldType fieldType, string htmlElement, bool isRequired = false, string fieldClass = "") 278 { 279 if (!includeWrapper || htmlElement.IsNullOrEmpty()) return string.Empty; 280 var cssClass = new List<string> {fieldType.ToString().ToLower(), fieldClass}; 281 if (isRequired) 282 { 283 cssClass.Add("mandatory"); 284 } 285 return "<" + htmlElement + " class='" + string.Join(" ", cssClass.ToArray()) + "'>"; 286 } 287 288 public string GetWrapperEnd(bool includeWrapper, string htmlElement) 289 { 290 return !includeWrapper ? string.Empty : "</" + htmlElement + ">"; 291 } 292 293 public string GetControlWithRequiredClass(bool isRequired, string control) 294 { 295 if (!isRequired) return control; 296 var regex = new Regex(Regex.Escape(" ")); 297 return regex.Replace(control, " required class=\"mandatory\" ", 1); 298 } 299 300 public static string GetAttributes(FieldSettings settings, bool returnFieldType = true) 301 { 302 var attributes = string.Empty; 303 if (returnFieldType) 304 { 305 var fieldType = string.Empty; 306 switch (settings.Type) 307 { 308 case FieldType.Select: 309 break; 310 case FieldType.Checkboxlist: 311 fieldType = FieldType.Checkbox.ToString().ToLower(); 312 break; 313 case FieldType.DatetimeLocal: 314 fieldType = "datetime-local"; 315 break; 316 default: 317 fieldType = settings.Type.ToString().ToLower(); 318 break; 319 } 320 if (!settings.Attributes.ContainsKey("type")) 321 { 322 attributes += GetAttribute("type", fieldType); 323 } 324 } 325 attributes += GetAttribute("class", settings.CssClass); 326 attributes += GetAttribute("id", settings.Id); 327 attributes += GetAttribute("name", settings.SystemName); 328 attributes += GetAttribute("value", settings.Value); 329 if (settings.Type == FieldType.Email || settings.Type == FieldType.Password || settings.Type == FieldType.Search || settings.Type == FieldType.Tel || settings.Type == FieldType.Text || settings.Type == FieldType.Url) 330 { 331 // Only works wit these types 332 attributes += GetAttribute("placeholder", settings.Placeholder); 333 } 334 if (settings.Type != FieldType.Checkboxlist) 335 { 336 attributes += GetAttribute("required", settings.IsRequired); 337 } 338 attributes += GetAttributes(settings.Attributes); 339 return attributes; 340 } 341 342 public static string GetAttributes(FieldOption optionSettings) 343 { 344 var attributes = string.Empty; 345 attributes += GetAttribute("name", optionSettings.SystemName); 346 attributes += GetAttribute("value", optionSettings.Value); 347 attributes += GetAttributes(optionSettings.Attributes); 348 return attributes; 349 } 350 351 public static string GetAttribute(string attributeName, bool attributeValue) 352 { 353 if (!attributeValue) return string.Empty; 354 return " " + attributeName + "=\"" + attributeName + "\""; 355 } 356 357 #endregion 358 359 const string HighlightedCountriesSplit = "----------------"; 360 361 internal readonly List<string> HighlightedCountries = new List<string> 362 { 363 "US", 364 HighlightedCountriesSplit 365 }; 366 367 } 368 @{ 369 @* Form field helpers *@ 370 @helper RenderField(FieldSettings settings) 371 { 372 switch (settings.Type) 373 { 374 case FieldType.Button: 375 case FieldType.Reset: 376 case FieldType.Submit: 377 @RenderButtonField(settings) 378 break; 379 case FieldType.Checkbox: 380 @RenderCheckboxField(settings) 381 break; 382 case FieldType.Image: 383 @RenderImageField(settings) 384 break; 385 case FieldType.Checkboxlist: 386 case FieldType.Radio: 387 @RenderRadioOrCheckboxListField(settings) 388 break; 389 case FieldType.Select: 390 @RenderSelectField(settings) 391 break; 392 case FieldType.Color: 393 case FieldType.Date: 394 case FieldType.DatetimeLocal: 395 case FieldType.Email: 396 case FieldType.File: 397 case FieldType.Hidden: 398 case FieldType.Password: 399 case FieldType.Month: 400 case FieldType.Number: 401 case FieldType.Range: 402 case FieldType.Search: 403 case FieldType.Tel: 404 case FieldType.Text: 405 case FieldType.Time: 406 case FieldType.Url: 407 case FieldType.Week: 408 @RenderInputField(settings) 409 break; 410 case FieldType.Textarea: 411 @RenderTextareaField(settings) 412 break; 413 case FieldType.Textstring: 414 @RenderTextStringField(settings) 415 break; 416 case FieldType.Divider: 417 @RenderDividerField(settings) 418 break; 419 case FieldType.Datetime: 420 @RenderDateTimeField(settings) 421 break; 422 case FieldType.Unknown: 423 @:<div style="color: #f00">Undefined FieldType: <strong>@settings.Type</strong></div> 424 break; 425 default: 426 throw new NotSupportedException(string.Format("Unsupported Field Type: {0}.", settings.Type.ToString())); 427 } 428 } 429 430 @helper RenderCheckboxField(FieldSettings settings) 431 { 432 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 433 { 434 settings.Assert(FieldType.Checkbox); 435 436 @RenderFieldHeader(settings, false) 437 438 if (settings.Label.IsNotNullOrEmpty()) 439 { 440 var possibleClasses = new List<string> {settings.Type.ToString().ToLower(), settings.LabelCssClass}; 441 var cssClass = string.Join(" ", possibleClasses.Where(s => s.IsNotNullOrEmpty())); 442 443 @( "<" + "label class=" + cssClass + " " + GetAttribute("for", settings.Id) + ">") 444 if (settings.Control.IsNotNullOrEmpty()) 445 { 446 @settings.Control 447 } 448 else 449 { 450 @RenderHtmlField("input", settings) 451 } 452 <span> 453 @settings.Label 454 </span> 455 @( "<" + "/label" + ">") 456 } 457 else 458 { 459 if (settings.Control.IsNotNullOrEmpty()) 460 { 461 @settings.Control 462 } 463 else 464 { 465 @RenderHtmlField("input", settings) 466 } 467 } 468 469 @RenderFieldFooter(settings) 470 } 471 } 472 473 @helper RenderTextareaField(FieldSettings settings) 474 { 475 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 476 { 477 settings.Assert(FieldType.Textarea); 478 479 @RenderFieldHeader(settings) 480 481 if (settings.Control.IsNotNullOrEmpty()) 482 { 483 @GetControlWithRequiredClass(settings.IsRequired, settings.Control) 484 } 485 else 486 { 487 if (!settings.Attributes.ContainsKey("rows")) 488 { 489 settings.Attributes.Add("rows", "6"); 490 } 491 if (!settings.Attributes.ContainsKey("cols")) 492 { 493 settings.Attributes.Add("cols", "50"); 494 } 495 @RenderHtmlField("textarea", settings, false) 496 } 497 498 @RenderFieldFooter(settings) 499 } 500 } 501 502 @helper RenderRadioOrCheckboxListField(FieldSettings settings) 503 { 504 if (settings.LoopOptions.Any() || settings.FieldOptionsList.Any() || settings.Control.IsNotNullOrEmpty()) 505 { 506 var optionCount = 0; 507 508 settings.Assert(FieldType.Radio); 509 510 @RenderFieldHeader(settings) 511 512 if (settings.LoopOptions.Any()) 513 { 514 settings.CssClass = settings.Type.ToString().ToLower(); 515 foreach (var option in settings.LoopOptions) 516 { 517 optionCount++; 518 settings.Id = settings.SystemName + optionCount; 519 <label class="@settings.CssClass" for="@settings.Id"> 520 @RenderHtmlField("input", settings) 521 <span>@option.GetString(settings.LabelLoopTag)</span> 522 </label> 523 } 524 } 525 else if (settings.FieldOptionsList.Any()) 526 { 527 foreach (var option in settings.FieldOptionsList) 528 { 529 optionCount++; 530 option.Id = option.SystemName + optionCount; 531 option.CssClass = settings.Type.ToString().ToLower(); 532 533 <label class="@option.CssClass" for="@option.Id"> 534 @if (settings.Type == FieldType.Checkboxlist) 535 { 536 @RenderHtmlField("input", option, FieldType.Checkbox); 537 } 538 else 539 { 540 @RenderHtmlField("input", option, settings.Type) 541 } 542 <span>@option.Label</span> 543 </label> 544 } 545 } 546 else if (settings.Control.IsNotNullOrEmpty()) 547 { 548 @settings.Control 549 } 550 551 @RenderFieldFooter(settings) 552 } 553 } 554 555 @helper RenderInputField(FieldSettings settings) 556 { 557 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 558 { 559 settings.Assert(FieldType.Text); 560 561 @RenderFieldHeader(settings) 562 563 if (settings.Control.IsNotNullOrEmpty()) 564 { 565 var type = settings.Type.ToString().ToLower(); 566 if (settings.Type == FieldType.DatetimeLocal) 567 { 568 type = "datetime-local"; 569 } 570 571 settings.Control = settings.Control.Replace("type=\"text\"", "type=\"" + type + "\""); 572 if (settings.Type == FieldType.Password) 573 { 574 settings.Control = settings.Control.Replace("input ", "input autocomplete=\"off\" "); 575 } 576 @GetControlWithRequiredClass(settings.IsRequired, settings.Control) 577 } 578 else 579 { 580 if (settings.Type == FieldType.Password && !settings.Attributes.ContainsKey("autocomplete")) 581 { 582 settings.Attributes.Add("autocomplete", "off"); 583 } 584 @RenderHtmlField("input", settings) 585 } 586 587 @RenderFieldFooter(settings) 588 } 589 } 590 591 @helper RenderDateTimeField(FieldSettings settings) 592 { 593 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 594 { 595 settings.Assert(FieldType.Datetime); 596 settings.Attributes = new Dictionary<string, string> 597 { 598 {"placeholder", "&#xf073;"} 599 }; 600 601 @RenderFieldHeader(settings) 602 603 if (settings.Control.IsNotNullOrEmpty()) 604 { 605 var type = settings.Type.ToString().ToLower(); 606 607 settings.Control = settings.Control.Replace("type=\"text\"", "type=\"" + type + "\""); 608 @GetControlWithRequiredClass(settings.IsRequired, settings.Control) 609 } 610 else 611 { 612 @RenderHtmlField("input", settings) 613 } 614 615 @RenderFieldFooter(settings) 616 } 617 } 618 619 @helper RenderSelectField(FieldSettings settings) 620 { 621 const int limit = 10; 622 623 settings.Assert(FieldType.Select); 624 625 if (settings.CssClass.ToLower().Contains("country")) 626 { 627 @RenderCountriesDropdownField(settings, true, settings.CssClass.ToLower().Contains("highlights")) 628 } 629 else 630 { 631 if (settings.SystemName.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty() || settings.FieldOptionsList.Any() || settings.ValuesList.Any()) 632 { 633 @RenderFieldHeader(settings) 634 635 var optionsCount = 0; 636 if (settings.Control.IsNotNullOrEmpty()) 637 { 638 optionsCount = Regex.Matches(settings.Control, "option ").Count; 639 640 if (optionsCount > limit) 641 { 642 settings.Control = settings.Control.Replace("select ", "select data-live-search=\"true\" "); 643 } 644 @GetControlWithRequiredClass(settings.IsRequired, settings.Control) 645 } 646 else 647 { 648 optionsCount = settings.FieldOptionsList.Count + settings.ValuesList.Count; 649 650 if (!settings.Attributes.ContainsKey("multiple") && !settings.Attributes.ContainsKey("data-live-search") && optionsCount > limit) 651 { 652 settings.Attributes.Add("data-live-search", "true"); 653 } 654 @RenderHtmlField("select", settings) 655 656 if (settings.FirstHardcodedOptionLabel.IsNotNullOrEmpty()) 657 { 658 @RenderOption(FieldOption.CreateOption(settings.FirstHardcodedOptionLabel, settings.FirstHardcodedOptionValue, settings.IsFirstHardcodedOptionSelected)) 659 } 660 661 foreach (var option in settings.FieldOptionsList) 662 { 663 @RenderOption(option) 664 } 665 foreach (var option in settings.ValuesList) 666 { 667 @RenderOption(FieldOption.CreateOption(option, option)) 668 } 669 670 @* The <select> is started in the RenderHtmlField *@ 671 @:</select> 672 } 673 674 @RenderFieldFooter(settings) 675 } 676 } 677 } 678 679 @helper RenderButtonField(FieldSettings settings) 680 { 681 settings.Assert(FieldType.Button); 682 683 @RenderFieldHeader(settings, false) 684 685 if (settings.Control.IsNotNullOrEmpty()) 686 { 687 var controlOutput = settings.Control; 688 switch (settings.Type) 689 { 690 case FieldType.Submit: 691 controlOutput = controlOutput.Replace("input ", "input class='btn btn-default'"); 692 break; 693 case FieldType.Reset: 694 controlOutput = controlOutput.Replace("input ", "input class='btn btn-bg2'"); 695 break; 696 default: 697 throw new NotSupportedException(string.Format("Unsupported Field Type: {0}.", settings.Type.ToString())); 698 } 699 @controlOutput 700 } 701 else 702 { 703 settings.CssClass = settings.CssClass.IsNullOrEmpty() ? "btn btn-default" : "btn " + settings.CssClass; 704 if (settings.Type == FieldType.Button) 705 { 706 @RenderHtmlField("button", settings) 707 @settings.Label 708 @:</button> 709 } 710 else 711 { 712 @RenderHtmlField("input", settings) 713 } 714 } 715 716 @RenderFieldFooter(settings) 717 } 718 719 720 @* Forms for Editors field types in enum FieldType *@ 721 @helper RenderTextStringField(FieldSettings settings) 722 { 723 settings.Assert(FieldType.Textstring); 724 725 if (settings.Description.IsNotNullOrEmpty() || settings.Control.IsNotNullOrEmpty()) 726 { 727 if (settings.Control.IsNotNullOrEmpty()) 728 { 729 @settings.Control 730 } 731 else 732 { 733 <p class="help-block">@settings.Description</p> 734 } 735 } 736 } 737 738 @helper RenderImageField(FieldSettings settings) 739 { 740 settings.Assert(FieldType.Image); 741 742 if (settings.Control.IsNotNullOrEmpty()) 743 { 744 @settings.Control 745 } 746 } 747 748 @helper RenderDividerField(FieldSettings settings) 749 { 750 settings.Assert(FieldType.Divider); 751 752 <hr class="divider" /> 753 } 754 755 756 @* Form field helper extras *@ 757 @helper RenderHtmlField(string htmlElement, FieldSettings settings, bool returnFieldType = true) 758 { 759 if (settings.IsChecked && !settings.Attributes.ContainsKey("checked")) 760 { 761 settings.Attributes.Add("checked", "checked"); 762 } 763 764 // NOTE: Include files do not process html elements properly. The fix is to split '<' char from the html element 765 switch (htmlElement) 766 { 767 case "textarea": 768 @( "<" + htmlElement + GetAttributes(settings, false) + "></" + htmlElement + ">") 769 break; 770 case "select": 771 @( "<" + htmlElement + GetAttributes(settings, false) + ">") 772 break; 773 case "button": 774 @( "<" + htmlElement + GetAttributes(settings) + ">") 775 break; 776 default: 777 @( "<" + htmlElement + GetAttributes(settings, returnFieldType) + "/>") 778 break; 779 } 780 } 781 782 @helper RenderHtmlField(string htmlElement, FieldOption optionSettings, FieldType type = FieldType.Radio) 783 { 784 var attributes = GetAttribute("type", type.ToString().ToLower()); 785 attributes += GetAttribute("value", optionSettings.Value); 786 attributes += GetAttribute("name", optionSettings.SystemName); 787 attributes += optionSettings.Id.IsNotNullOrEmpty() ? GetAttribute("id", optionSettings.Id) : ""; 788 attributes += GetAttributes(optionSettings.Attributes); 789 790 if (optionSettings.IsSelected) 791 { 792 attributes += GetAttribute("checked", "checked"); 793 } 794 if (optionSettings.IsDisabled) 795 { 796 attributes += GetAttribute("disabled", "disabled"); 797 } 798 799 @( "<" + htmlElement + attributes + ">") 800 } 801 802 @helper RenderOption(FieldOption optionSettings) 803 { 804 var selected = optionSettings.IsSelected ? " selected" : string.Empty; 805 var disabled = optionSettings.IsDisabled ? " disabled" : string.Empty; 806 var readOnly = optionSettings.IsReadOnly ? " readonly" : string.Empty; 807 var attributes = GetAttributes(optionSettings); 808 809 @( string.Concat("<", "option ", attributes, selected, disabled, readOnly, ">", optionSettings.Label, "</", "option", ">")) 810 } 811 812 @helper RenderFieldHeader(FieldSettings settings, bool renderLabel = true) 813 { 814 @GetWrapperStart(settings.IncludeWrapper, settings.Type, settings.WrapperElement, settings.IsRequired, settings.WrapperCssClass) 815 if (settings.Label.IsNotNullOrEmpty() && renderLabel) 816 { 817 if (settings.Type == FieldType.Checkboxlist || settings.Type == FieldType.Radio) 818 { 819 <label class="form-label @settings.LabelCssClass">@settings.Label</label> 820 } 821 else 822 { 823 <label for="@settings.SystemName" class="form-label @settings.LabelCssClass">@settings.Label</label> 824 } 825 826 } 827 if (settings.Prepend.IsNotNullOrEmpty()) 828 { 829 <div class="fieldPrepend input-group-addon">@settings.Prepend</div> 830 } 831 if (settings.IncludeFieldWrapper) 832 { 833 @:<div class="fieldContainer hidden"> 834 } 835 } 836 837 @helper RenderFieldFooter(FieldSettings settings) 838 { 839 if (settings.Icon.IsNotNullOrEmpty()) 840 { 841 @RenderIcon(settings.Icon, settings.Tooltip, IconPosition.Left, true) 842 } 843 if (settings.Append.IsNotNullOrEmpty()) 844 { 845 <div class="fieldAppend input-group-addon">@settings.Append</div> 846 } 847 if (settings.Description.IsNotNullOrEmpty()) 848 { 849 <p class="help-block">@settings.Description</p> 850 } 851 if (settings.IncludeFieldWrapper) 852 { 853 @:</div> 854 } 855 @GetWrapperEnd(settings.IncludeWrapper, settings.WrapperElement) 856 } 857 858 @helper RenderQuantityField(int productStock, int selectedQuantity = 1, int productType = 0) 859 { 860 @RenderQuantityField(productStock, selectedQuantity, string.Empty, 10, false, false, productType) 861 } 862 863 @helper RenderQuantityField(int productStock, int selectedQuantity = 1, bool variantGroupsExistList = false) 864 { 865 @RenderQuantityField(productStock, selectedQuantity, string.Empty, 10, false, variantGroupsExistList) 866 } 867 868 @helper RenderQuantityField(int productStock, int selectedQuantity = 1, string fieldSystemName = "", int limit = 10, bool isCheckout = true, bool variantGroupsExistList = false, int productType = 0, string productId = "" , string variantText = "") 869 { 870 var isQuantityTextHidden = selectedQuantity < 10 && productStock > 0 || !isCheckout ? " hidden" : string.Empty; 871 var isSelectDisabled = productStock <= 0 && !isCheckout; 872 var quantityTextFieldSettings = new FieldSettings 873 { 874 Value = selectedQuantity.ToString(), 875 SystemName = fieldSystemName.IsNullOrEmpty() ? "quantity" : fieldSystemName, 876 Id = (fieldSystemName.IsNullOrEmpty() ? "quantity_" : fieldSystemName) + productId, 877 Attributes = new Dictionary<string, string> 878 { 879 {"maxlength", "5"}, 880 {"data-productStock", productStock.ToString()}, 881 {"data-outofstock", Translate("outOfStock", "Out of stock")}, 882 {"data-product-id" , productId}, 883 {"data-variant-text" , variantText}, 884 {"data-stocktranslate", Translate("currentStock", "The current stock is")} 885 } 886 }; 887 888 if (productType != 1 && productType != 3) 889 { 890 quantityTextFieldSettings.Type = FieldType.Number; 891 quantityTextFieldSettings.Label = Translate("qty", "Qty"); 892 quantityTextFieldSettings.CssClass = "col-xs-4 col-sm-7 quantityInput" + isQuantityTextHidden; 893 quantityTextFieldSettings.LabelCssClass = productStock > 0 ? "" : "hidden"; 894 895 <fieldset class="quantity-container pull-left"> 896 @if (isCheckout) 897 { 898 <div class="@isQuantityTextHidden quantityPriceContainer"> 899 @RenderInputField(quantityTextFieldSettings) 900 @RenderBootstrapButton(new BootstrapButtonSettings {IconCssClass = "fa-refresh", CssClass = "submitQuantity btnCart-blue", ButtonType = BootstrapButtonSettings.BootstrapButtonType.Button}) 901 </div> 902 } 903 else 904 { 905 @RenderInputField(quantityTextFieldSettings) 906 } 907 908 @if (selectedQuantity < limit) 909 { 910 var quantityOptionLimit = productStock <= 0 ? 10 : productStock < limit ? productStock : limit; 911 var quantityFieldSettings = new FieldSettings 912 { 913 Type = FieldType.Select, 914 SystemName = "quantitySelect", 915 Id = "quantitySelect" + productId 916 }; 917 if (isSelectDisabled) 918 { 919 quantityFieldSettings.Attributes.Add("disabled", "disabled"); 920 } 921 922 for (var num = 1; num < quantityOptionLimit; num++) 923 { 924 quantityFieldSettings.FieldOptionsList.Add(new FieldOption {Label = num.ToString(), Value = num.ToString(), IsSelected = selectedQuantity == num}); 925 } 926 if (productStock >= limit || variantGroupsExistList) 927 { 928 var limitPlus = limit + "+"; 929 quantityFieldSettings.FieldOptionsList.Add(new FieldOption {Label = limitPlus, Value = limitPlus}); 930 } 931 @RenderSelectField(quantityFieldSettings) 932 } 933 </fieldset> 934 } 935 else 936 { 937 quantityTextFieldSettings.Type = FieldType.Hidden; 938 @RenderInputField(quantityTextFieldSettings) 939 } 940 } 941 942 943 @* Countries and Regions helpers *@ 944 @helper RenderCountriesDropdownField(FieldSettings settings, bool renderJsVariables = true, bool renderHighlightOptions = true) 945 { 946 947