Find your local dealer

Are you looking for a sofa bed, we recommend you to visit your local store
to find out what comfort that suits your needs. 

Error executing template "Designs/innovationliving/QueryPublisher/espresso-dealersearch.cshtml"MaxMind.GeoIP2.Exceptions.InvalidRequestException: You do not have sufficient funds to use this service.at MaxMind.GeoIP2.WebServiceClient.HandleResponse[T](Response response)at MaxMind.GeoIP2.WebServiceClient.Execute[T](String type, IPAddress ipAddress)at MaxMind.GeoIP2.WebServiceClient.Country(String ipAddress)at Co3.Dw9.Redirect.Dw.Repositories.RedirectRepository.GetRedirectResponse() in C:\Data\Development\git\co3-espresso-v4-addons\Co3.Redirect\Co3.Redirect\Repositories\RedirectRepository.cs:line 45at Co3.Dw9.Redirect.Dw.Services.RedirectService.GetRedirectInfo() in C:\Data\Development\git\co3-espresso-v4-addons\Co3.Redirect\Co3.Redirect\Services\RedirectService.cs:line 55at CompiledRazorTemplates.Dynamic.RazorEngine_ff2fa721e71c455aa577dac16b378881.Execute() in D:\Sites\innovationliving.com\files\Templates\Designs\innovationliving\QueryPublisher\espresso-dealersearch.cshtml:line 13at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)at Dynamicweb.Rendering.Template.RenderRazorTemplate()
1 @inherits Co3.Espresso.Website.TemplateBases.Paragraphs.ParagraphBase 2 @using System.Globalization 3 @using System.Web 4 @using Co3.Dw9.Redirect.Dw.Models 5 @using Co3.Dw9.Redirect.Dw.Services 6 @using Co3.Espresso.Base.Extensions 7 @using Co3.Espresso.Website.Models.XML 8 @using Co3.Espresso.Website.Services 9 @using Dynamicweb.Frontend 10 11 12 @{ 13 MaxmindRedirectResponse redirectResponse = RedirectService.Instance.GetRedirectInfo() as MaxmindRedirectResponse; 14 string googleMapsApiKey = Espresso.Page.Area.Item.GetValue< string >( "GoogleMapsAPIkey" ) ?? string.Empty; 15 string unitSystem = Espresso.Page.Area.Item.GetValue< string >( "UnitSystem" ) ?? string.Empty; 16 string distanceUnit = unitSystem == "imperial" ? Translate( "Dealersearch - Distance unit imperial - Text", "mi" ) : Translate( "Dealersearch - Distance unit metric - Text", "km" ); 17 string testCountryCode = HttpContext.Current.Request.QueryString[ "testc" ]; 18 19 string groupParameterName = "groupId"; 20 string countryParameterName = "countryCode"; 21 string typeParameterName = "type"; 22 23 string groupId = string.Empty; 24 25 List< string > countryCodes = new List< string >(); 26 string countryCodeDefault = string.Empty; 27 28 29 Dictionary< string, Territory > countriesOfTheWorld = TranslationService.Instance.GetCountries(); 30 31 List< LoopItem > typeFacetOptionsLoop = new List< LoopItem >(); 32 33 foreach ( LoopItem p in GetLoop( "Parameters" ) ) 34 { 35 string parameterName = p.GetString( "Name" ); 36 if ( parameterName == groupParameterName ) 37 { 38 int[] parameterValue = p.GetValue( "Value" ) as int[] ?? new int[0]; 39 groupId = string.Join( ",", parameterValue ); 40 } 41 } 42 foreach ( LoopItem fg in GetLoop( "FacetGroups" ) ) 43 { 44 foreach ( LoopItem f in fg.GetLoop( "Facets" ) ) 45 { 46 if ( f.GetString( "Facet.QueryParameter" ) == countryParameterName ) 47 { 48 foreach ( LoopItem fo in f.GetLoop( "FacetOptions" ) ) 49 { 50 string facetOptionValue = fo.GetString( "FacetOption.Value" ); 51 if ( !string.IsNullOrEmpty( facetOptionValue ) && countriesOfTheWorld.ContainsKey( facetOptionValue ) ) 52 { 53 countryCodes.Add( facetOptionValue ); 54 } 55 } 56 } 57 else if ( f.GetString( "Facet.QueryParameter" ) == typeParameterName ) 58 { 59 List<string> sortOrder = new List<string> { "Premium","Black","Retail", "Online" }; 60 typeFacetOptionsLoop = f.GetLoop( "FacetOptions" ).OrderBy(fo => sortOrder.IndexOf(fo.GetString("FacetOption.Name"))).ToList(); 61 } 62 } 63 } 64 65 string ipCountryCode = string.Empty; 66 bool isLimitedToUS = false; 67 68 if ( string.IsNullOrEmpty( countryCodeDefault ) ) 69 { 70 string areaCountryCode = new RegionInfo( Espresso.Page.Area.CultureInfo.LCID ).TwoLetterISORegionName; 71 ipCountryCode = redirectResponse != null ? redirectResponse.CountryIsoCode : string.Empty; 72 73 if ( areaCountryCode == "US" ) 74 { 75 isLimitedToUS = true; 76 countryCodeDefault = areaCountryCode; 77 } 78 else if ( countryCodes.Contains( ipCountryCode ) ) 79 { 80 countryCodeDefault = ipCountryCode; 81 } 82 else if ( countryCodes.Contains( areaCountryCode ) ) 83 { 84 countryCodeDefault = areaCountryCode; 85 } 86 else if ( countryCodes.Contains( Espresso.Page.Area.EcomCountryCode ) ) 87 { 88 countryCodeDefault = Espresso.Page.Area.EcomCountryCode; 89 } 90 else if ( countryCodes.Any() ) 91 { 92 countryCodeDefault = countryCodes.First(); 93 } 94 95 if ( !string.IsNullOrEmpty( testCountryCode ) ) 96 { 97 countryCodeDefault = testCountryCode; 98 } 99 }100 }101102 <div class="col-12 js-e-dealersearch" data-google-maps-api-key="@googleMapsApiKey" data-ip-country-code="@ipCountryCode" data-unit-system="@unitSystem">103 <div class="no-gutters row">104 <div class="col-12 col-md-4">105 <div class="d-flex e-dealersearch-sidebar flex-column">106 <div class="e-dealersearch-header">107 <form action="" class="e-dealersearch-form e-form-labels-bold js-e-dealersearch-form pl-2 pr-2 pt-2 small">108 <input type="hidden" name="groupId" value="@groupId">109110 <div class="e-dealersearch-input-group mb-1">111 <div class="align-items-center no-gutters row">112 @if ( typeFacetOptionsLoop.Count > 0 )113 {114 <div class="col-12 font-weight-bold mb-1">115116 <label class="custom-checkbox custom-control">117 <input checked class="custom-control-input js-e-dealersearch-type" name="type" type="radio" value="">118 <span class="custom-control-indicator"></span>119 <span class="custom-control-description">@Translate( "Dealersearch - Facet option - All dealers - Label", "Show all" )</span>120 </label>121122 @foreach ( LoopItem fo in typeFacetOptionsLoop )123 {124 string facetOptionLabelTranslationKey = string.Format( "Dealersearch - Facet option - {0} - Label", fo.GetString( "FacetOption.Value" ) );125 string facetOptionLabelTranslationDefaultValue = fo.GetString( "FacetOption.Label" );126 string facetOptionDescriptionTranslationKey = string.Format( "Dealersearch - Facet option - {0} - Description", fo.GetString( "FacetOption.Value" ) );127 string facetOptionDescriptionTranslationDefaultValue = string.Empty;128 string facetOptionDescription = Translate( facetOptionDescriptionTranslationKey, facetOptionDescriptionTranslationDefaultValue );129 string iconPath = string.Format( "/files/templates/designs/innovationliving/_assets/img/googlemaps/marker-{0}.png", fo.GetString( "FacetOption.Name" ) );130 <label class="custom-checkbox custom-control custom-dealersearch-type-container">131 <input class="custom-control-input js-e-dealersearch-type" name="@typeParameterName" type="radio" value="@fo.GetString( "FacetOption.Value" )">132 <span class="custom-control-indicator"></span>133 <img src="@iconPath" class="custom-dealer-type-icon" alt="" />134 <span class="custom-control-description">135 @Translate( facetOptionLabelTranslationKey, facetOptionLabelTranslationDefaultValue )136 @if ( !string.IsNullOrEmpty( facetOptionDescription ) )137 {138 <i class="material-icons material-icons-large ml-2 p-0 text-muted" data-toggle="popover" data-trigger="hover" data-content="@HttpUtility.HtmlAttributeEncode( facetOptionDescription )">info</i>139 }140 </span>141 </label>142 }143 </div>144 }145 @if ( countryCodes.Count > 1 )146 {147 <div class="col-12 mb-1">148 <label class="form-control-label">@Translate( "Dealersearch - Country selector - Label", "Country" )</label>149 <select class="custom-select js-e-dealersearch-country w-100" name="countryCode">150 @* <option value="">@Translate( "Dealersearch - All countries option - Label", "All" )</option> *@151 @foreach ( string countryCode in countryCodes.OrderBy( cc => countriesOfTheWorld[ cc ].Name ) )152 {153 bool includeCountry = true;154 if ( isLimitedToUS )155 {156 string[] countriesToInclude = {"US","CA"};157 includeCountry = countriesToInclude.Contains( countriesOfTheWorld[ countryCode ].Code);158 }159160 if ( includeCountry )161 {162 if ( countryCode == countryCodeDefault )163 {164 <option value="@countriesOfTheWorld[ countryCode ].Code" selected>@countriesOfTheWorld[ countryCode ].Name</option>165 }166 else167 {168 <option value="@countriesOfTheWorld[ countryCode ].Code">@countriesOfTheWorld[ countryCode ].Name</option>169 }170 }171 }172 </select>173 </div>174 }175 else if ( countryCodes.Count == 1 )176 {177 <input class="js-e-dealersearch-country" type="hidden" name="countryCode" value="@countriesOfTheWorld[ countryCodeDefault ].Code">178 }179 else180 {181 <h1>countryCodes is empty</h1>182 }183184 <div class="js-dealersearch-states-container">185 <script id="js-e-handlebars-tmpl-dealersearch-states" type="text/x-handlebars-template">186 {{#if states.length}}187 <div class="col-12 mb-1">188 <label class="form-control-label">@Translate( "Dealersearch - State selector - Label", "State" )</label>189 <select class="custom-select js-e-dealersearch-state w-100" name="state">190 <option value="">@Translate( "Dealersearch - All states option - Label", "All" )</option>191 {{#each states}}192 <option value="{{Value.0.state}}" {{#if Value.0.selected}}selected{{/if}}>{{Value.0.state}}</option>193 {{/each}}194 </select>195 </div>196 {{/if}}197198 </script>199 </div>200201 <div class="col-12 mb-1">202 <label class="form-control-label" for="">@Translate( "Dealersearch - Search field - Label", "Street, city or postal code" )</label>203 <input autocomplete="off" class="e-dealersearch-input form-control js-e-dealersearch-address-input" name="address" placeholder="" type="text">204 <p class="e-dealersearch-input-placeholder js-e-dealersearch-address-input-placeholder m-0">205 <i class="material-icons mr-1">my_location</i>@Translate( "Dealersearch - Your location - Text", "My location" )</p>206 </div>207 <div class="col-4 mb-1">208 <button class="btn btn-block btn-primary js-e-dealersearch-reset px-0" type="reset">@Translate("eCom Productlist Filter - Group Reset - Button")</button>209 </div>210 <div class="col-8 mb-1 pl-2">211 <button class="btn btn-block btn-primary js-e-dealersearch-submit px-0" type="button">@Translate( "Dealersearch - Seacrh - Button", "Search" )</button>212 </div>213 <script id="js-e-handlebars-tmpl-typeahead-pending" type="text/x-handlebars-template">214 <div class="js-e-dealersearch-geolocate js-e-dealersearch-suggestions-item e-dealersearch-suggestions-item-geolocation dropdown-item tt-selectable"><i class="material-icons material-icons-large mr-1">my_location</i>@Translate( "Dealersearch - Your location - Text", "My location" )</div>215 </script>216 <script id="js-e-handlebars-tmpl-typeahead-footer" type="text/x-handlebars-template">217 {{#if suggestions.length}}218 <div class="dropdown-divider"></div>219 {{/if}}220 <div class="js-e-dealersearch-geolocate js-e-dealersearch-suggestions-item e-dealersearch-suggestions-item-geolocation dropdown-item tt-selectable"><i class="material-icons material-icons-large mr-1">my_location</i>@Translate( "Dealersearch - Your location - Text", "My location" )</div>221 </script>222 </div>223 </div>224 </form>225 </div>226 <div class="e-dealersearch-main">227 <div class="e-dealersearch-list is-empty js-e-dealersearch-list pt-2 small">228 <script id="js-e-handlebars-tmpl-marker-list" type="text/x-handlebars-template">229 <div class="mb-1 mr-2 pb-1 ml-2 d-md-none">230 <p class="mb-0">231 <a href="#" class="js-e-dealersearch-show-map arrow-down">Show map</a>232 </p>233 </div>234235 {{#each markers}}{{#with data}}236 <div class="mb-1 mr-2 pb-1 ml-2 js-e-dealersearch-list-item e-dealersearch-list-item" data-id="{{id}}">237 <div class="row no-gutters align-items-baseline">238 <div class="col-1">239 <img src="/files/templates/designs/innovationliving/_assets/img/googlemaps/{{markerIconFile}}" alt="" class="w-50" />240 </div>241 <div class="col-8 col-sm-8 col-md-6 col-lg-7 col-xl-7">242 <div class="e-dealersearch-list-item-address small line-height-sm">243 <h3 class="mb-0">{{name}}</h3>244 <p class="mb-0">{{address}}</p>245 <p class="mb-0">{{zip}} {{city}}</p>246 {{#if phone}}<p class="mb-0 d-none d-md-block"><a href="tel:{{{phone}}}">{{phone}}</a></p>{{/if}}247 </div>248 </div>249 <div class="col-3 col-sm-3 col-md-5 col-lg-4 col-xl-4 text-right">250 <div class="row">251 <div class="col-6 text-center">252 {{#if website}}253 <a href="{{{website}}}" target="_blank" class="e-dealersearch-list-item-icon text-decoration-none text-link">254 {{#if isOnline}}255 <span class="material-icons material-icons-2x px-0 d-block">shopping_basket</span>256 <span>Online</span>257 {{else}}258 <span class="material-icons material-icons-2x px-0 d-block">language</span>259 <span>Web</span>260 {{/if}}261 </a>262 {{else}}263 &nbsp;264 {{/if}}265 </div>266 <div class="col-6 text-center">267 <a href="https://www.google.dk/maps/dir/''/{{address}},{{zip}} {{city}}/" target="_blank" class="e-dealersearch-list-item-icon text-decoration-none text-link">268 <i class="material-icons material-icons-2x px-0 d-block">near_me</i>269 <span>{{#if distanceToAddress}}{{distanceToAddressFormatted}}&nbsp;@distanceUnit{{else}}@Translate( "Dealersearch - Get directions - Link", "Directions" ){{/if}}</span>270 </a>271 </div>272 </div>273 </div>274 </div>275 </div>276 {{/with}}{{/each}}277278 {{#each onlineUsers}}279 <div class="mb-1 mr-2 pb-1 ml-2 {{#if lat}}js-e-dealersearch-list-item{{/if}} e-dealersearch-list-item js-il-online-dealer" data-id="{{id}}">280 <div class="row no-gutters align-items-baseline">281 <div class="col-1">282 <img src="/files/templates/designs/innovationliving/_assets/img/googlemaps/{{markerIconFile}}" alt="" class="w-50" />283 </div>284 <div class="col-8 col-sm-8 col-md-6 col-lg-7 col-xl-7">285 <div class="e-dealersearch-list-item-address small line-height-sm">286 <h3 class="mb-0">{{name}}</h3>287 <p class="mb-0">{{address}}</p>288 <p class="mb-0">{{zip}} {{city}}</p>289 {{#if phone}}<p class="mb-0 d-none d-md-block"><a href="tel:{{{phone}}}">{{phone}}</a></p>{{/if}}290 </div>291 </div>292 <div class="col-3 col-sm-3 col-md-5 col-lg-4 col-xl-4 text-right">293 <div class="row">294 <div class="col-6 text-center">295 {{#if website}}296 <a href="{{{website}}}" target="_blank" class="e-dealersearch-list-item-icon text-decoration-none text-link">297 <span class="material-icons material-icons-2x px-0 d-block">shopping_basket</span>298 <span>Online</span>299 </a>300 {{else}}301 &nbsp;302 {{/if}}303 </div>304 <div class="col-6 text-center">305 {{#if address}}306 <a href="https://www.google.dk/maps/dir/''/{{address}},{{zip}} {{city}}/" target="_blank" class="e-dealersearch-list-item-icon text-decoration-none text-link">307 <i class="material-icons material-icons-2x px-0 d-block">near_me</i>308 <span>{{#if distanceToAddress}}{{distanceToAddressFormatted}}&nbsp;@distanceUnit{{else}}@Translate( "Dealersearch - Get directions - Link", "Directions" ){{/if}}</span>309 </a>310 {{else}}311 &nbsp;312 {{/if}}313 </div>314315 @*<div class="col-6 text-center">&nbsp;</div>*@316 </div>317 </div>318 </div>319 </div>320 {{/each}}321322 </script>323 </div>324 </div>325 </div>326 </div>327328 <div class="col-12 col-md-8">329 <div class="e-dealersearch-googlemap-container js-e-dealersearch-googlemap-container">330 <div class="e-dealersearch-googlemap js-e-dealersearch-googlemap">331 <script id="js-e-handlebars-tmpl-googlemap-infowindow" type="text/x-handlebars-template">332 <div class="small my-1 e-dealersearch-googlemap-infowindow">333 <h3 class="mb-0">{{name}}</h3>334 <p class="mb-0">{{address}}</p>335 <p class="mb-0">{{zip}} {{city}}</p>336 <p class="mb-0"><a href="tel:{{{phone}}}">{{phone}}</a></p>337 <p class="mb-0"><a href="mailto:{{{mail}}}">{{mail}}</a></p>338 <p class="mt-2 mb-0">339 <a href="https://www.google.dk/maps/dir/''/{{address}},{{zip}} {{city}}/" target="_blank" class="e-dealersearch-list-item-icon h2 text-decoration-none">@Translate( "Dealersearch - Get directions - Link", "Directions" )</a></p>340 {{#if website}}<p class="mt-2 mb-0"><a href="{{{website}}}" target="_blank" class="bg-dark btn d-inline-block px-2 text-light">@Translate( "Dealersearch - Buy online - Link", "Buy online" ).ToUpper()</a></p>{{/if}}341 </div>342 </script>343 </div>344 </div>345 </div>346 </div>347 </div>348

BECOME A DEALER

Do you want to become an Innovation Living dealer?

Thanks for your interest in becoming an Innovation Living dealer. Please use the contact link below to send us your contact information and we will get bck to you as soon as possible. 

BECOME A DEALER

keyboard_arrow_up
Error executing template "Designs/innovationliving/_partials/redirect.cshtml"MaxMind.GeoIP2.Exceptions.InvalidRequestException: You do not have sufficient funds to use this service.at MaxMind.GeoIP2.WebServiceClient.HandleResponse[T](Response response)at MaxMind.GeoIP2.WebServiceClient.Execute[T](String type, IPAddress ipAddress)at MaxMind.GeoIP2.WebServiceClient.Country(String ipAddress)at Co3.Dw9.Redirect.Dw.Repositories.RedirectRepository.GetRedirectResponse() in C:\Data\Development\git\co3-espresso-v4-addons\Co3.Redirect\Co3.Redirect\Repositories\RedirectRepository.cs:line 45at Co3.Dw9.Redirect.Dw.Services.RedirectService.GetRedirectInfo() in C:\Data\Development\git\co3-espresso-v4-addons\Co3.Redirect\Co3.Redirect\Services\RedirectService.cs:line 55at CompiledRazorTemplates.Dynamic.RazorEngine_c645641b7cfa41e39de1815bbf99e05a.Execute() in D:\Sites\innovationliving.com\files\Templates\Designs\innovationliving\_partials\redirect.cshtml:line 14at RazorEngine.Templating.TemplateBase.RazorEngine.Templating.ITemplate.Run(ExecuteContext context, TextWriter reader)at RazorEngine.Templating.RazorEngineService.RunCompile(ITemplateKey key, TextWriter writer, Type modelType, Object model, DynamicViewBag viewBag)at RazorEngine.Templating.RazorEngineServiceExtensions.<>c__DisplayClass16_0.b__0(TextWriter writer)at RazorEngine.Templating.RazorEngineServiceExtensions.WithWriter(Action`1 withWriter)at Dynamicweb.Rendering.Template.RenderRazorTemplate()
1 @inherits Dynamicweb.Rendering.RazorTemplateBase<Dynamicweb.Rendering.RazorTemplateModel<Dynamicweb.Rendering.Template>> 2 @using Co3.Dw9.Redirect.Dw.Models 3 @using Co3.Dw9.Redirect.Dw.Services 4 @using Dynamicweb.Configuration 5 @using Dynamicweb.Rendering 6 @using System.IO 7 @using System.Web 8 @using Co3.Espresso.Website.Services 9 @using Dynamicweb.Content 10 @using Dynamicweb.Frontend 11 @using Dynamicweb.Rendering.Translation 12 13 @{ 14 IRedirectResponse redirectInfo = RedirectService.Instance.GetRedirectInfo(); 15 Dynamicweb.Content.AreaService areaService = new Dynamicweb.Content.AreaService(); 16 IList<Area> areas = areaService.GetAreas(); 17 18 @* 19 int areaId = PageView.Current().Area.ID; 20 bool isStagingMode = (areaId == 22 || areaId == 23); 21 if (isStagingMode == false) 22 { 23 areas = areas.Where(a => a.ID != 22 && a.ID != 23).ToList(); 24 } 25 *@ 26 27 if (redirectInfo != null && redirectInfo.SuggestRedirect) 28 { 29 string redirectConsentExpirationTimeInDays = SystemConfiguration.Instance.GetValue("/Globalsettings/Co3.Espresso/GeoRedirect/CookieExpireTimeInDays"); 30 string linkToSuggestedArea = redirectInfo.CurrentArea.DomainLock; 31 string redirectMessage = Translate("Redirect Intro - Text", "You are about to visit our <strong>{{CurrentWebsite}}</strong>.<br/>Would you prefer to visit a website that's more suitable for your location, please select from the options below:", redirectInfo.SuggestedArea.CultureInfo.Name); 32 string currentLanguageTranslationKey = string.Format("Redirect message - Lang - {0}", redirectInfo.CurrentLanguageName.ToLower()); 33 string currentLanguageTranslation = Translate(currentLanguageTranslationKey, redirectInfo.CurrentLanguageName.ToLower(), redirectInfo.CurrentArea.CultureInfo.Name); 34 string fallbackArea = "www.innovationliving.com"; 35 36 redirectMessage = redirectMessage.Replace("{{CurrentWebsite}}", currentLanguageTranslation); 37 38 <div class="fade modal il-redirect-modal js-il-redirect-modal" id="js-e-redirect-msg" data-redirect-consent-expiration="@redirectConsentExpirationTimeInDays" data-dismiss="modal" data-redirect-base-url="@linkToSuggestedArea"> 39 <div class="modal-dialog"> 40 <div class="modal-content"> 41 <div class="modal-header"> 42 <h4 class="modal-title small"> 43 &nbsp; 44 </h4> 45 <button class="close" data-dismiss="modal" type="button"> 46 <i class="material-icons">close</i> 47 </button> 48 </div> 49 <div class="modal-body py-0 text-center"> 50 <h2>@Translate("Redirect message - Heading", "Welcome", redirectInfo.SuggestedArea.CultureInfo.Name)</h2> 51 <p class="lead"> 52 @Raw(redirectMessage) 53 </p> 54 <div class="rediect-flags pb-4"> 55 @foreach (Area area in areas) 56 { 57 if (area.Item != null) 58 { 59 bool includeArea = area.Item["IncludeInGeoredirect"] != null ? bool.Parse(area.Item["IncludeInGeoredirect"].ToString()) : false; 60 if (includeArea) 61 { 62 string urlName = area.Culture.Split('-')[0]; 63 bool isCurrentSite = redirectInfo.CurrentArea.DomainLock == area.DomainLock; 64 65 string flagId = string.Format("redirectInput_{0}", area.ID); 66 string imagePath = string.Format("/Files/Templates/Designs/innovationliving/_assets/img/flags/{0}.svg", urlName); 67 string checkedFlag = string.Empty; 68 string areaDomain = !string.IsNullOrEmpty(area.DomainLock) ? area.DomainLock : fallbackArea; 69 70 <div class="d-inline rediect-flag-input-container"> 71 <input class="js-rediect-flag-input" type="radio" data-current-site="@isCurrentSite" id="@flagId" name="redirectInput" data-domain="//@areaDomain" value="@urlName" @(checkedFlag)/> 72 <label for="@flagId"> 73 @*<img src="@imagePath" />*@ 74 <div class="bg-quaternary px-3 py-1"> 75 <strong>@area.Item["RedirectAreaName"].ToString()</strong> 76 </div> 77 </label> 78 </div> 79 } 80 } 81 } 82 </div> 83 </div> 84 85 <div class="border-top-0 m-0 p-0 modal-footer text-center d-none"> 86 <a class="btn btn-sm js-il-redirect-submit mx-auto">@Translate("Redirect message - Accept - Button", "Yes, take me there", redirectInfo.SuggestedArea.CultureInfo.Name)</a> 87 </div> 88 89 <div class="border-top-0 modal-footer mb-3 text-center d-none"> 90 <a class="btn btn-primary mx-auto" data-dismiss="modal">@Translate("Redirect message - Close - Button", "STAY ON CURRENT SITE", redirectInfo.SuggestedArea.CultureInfo.Name)</a> 91 </div> 92 </div> 93 </div> 94 </div> 95 } 96 }