DESCOPERĂ PRODUSELE INOVATIVE ȘI MATERIALELE EXCLUSIVISTE

prezentare generală

Construită din pasiune pentru textile, design interior, performanță și calitate, Deco Center (membră a grupulului Mendola Investment Group, din care fac parte lanțul de retail Nobila Casa, compania de transport Unitrans, compania de investiții și facilități logistice Proinvest, compania Roseco și lanțul de magazine La Majole) este compania care aduce țesăturile de perdele și draperii la viață prin brandul de referință Mendola Fabrics și le comercializează ca domeniu principal de activitate.

 

Suntem cel mai mare distribuitor național de perdele și draperii. Prin atenția noastră către ultimele trenduri internaționale în materie de amenajări interioare, servicii și tehnologii, am dezvoltat o rețea de 500+ de parteneri, atât în România cât și în 28 de țări în principal din Europa, dar și din Australia, SUA, Orientul Mijlociu, Africa, Caraibe. Parteneriatele noastre cu rețelele DYI, magazinele de bricolaj și magazinele specializate sunt bazate pe continuitate, profesionalism și un raport favorabil dintre preț și calitate.

 

Cu o experiență de peste 21 de ani pe piața locală și internațională, garantăm succesul unei afaceri prin sortimentul rafinat de perdele și draperii, cât și de galerii, șine sau accesorii care să completeze decorul ferestrelor.

 

Mendola Fabrics este brandul de referință, prin care dorim să setăm trenduri și să inspirăm. Cu un sortiment de peste 800 de modele metraje și peste 400 modele perdele gata cusute (ready-made), țesăturile Mendola Fabrics combină designuri contemporane, palete cromatice bogate și modele care stârnesc imaginația, reflectând atenția noastră către design interior. Toate modelele sunt atent selecționate și concepute pentru a asigura un nivel de calitate înalt și a menține un nivel optim al stocurilor.

4000 m2 - spațiu de depozitare

Export în 28 țări

75.000 ml de materiale și 18.000 de produse Ready-Made expediate/lună

8.1 mil euro – totalul vânzărilor în 2021

500+ clienți activi în România și Europa

800+ puncte de livrare

1 Showroom dedicat partenerilor și 1 magazin de prezentare în Cluj-Napoca

19 magazine Nobila Casa în lanțul de retail deținut de mendola Investment Group

Echipa de vânzări are susținerea a 120+ angajați

75.000 ml de materiale/lună

4000 m2 - spațiu de depozitare

28 de țări

800+ puncte de livrare

500+ clienți activi

18.000 de produse Ready-Made                                                                           

120+ angajați

19 magazine

1 magazin de prezentare

Facilități

New column
New column
New column
New column
New column

Prin brandul de referință Mendola Fabrics, Deco Center dă viață textilelor ca unul dintre cei mai importanți distribuitori de țesături pentru perdele și draperii

Error compiling template "/Designs/Wizaris/Grid/Pages/RowTemplates/1-2SplitRow.cshtml"
Line 129: 'GridColumnViewModel.ParagraphId' is obsolete: 'Please use Paragraph instead'
Line 129: 'Services' is an ambiguous reference between 'Dynamicweb.Content.Services' and 'Dynamicweb.Services'
Line 129: 'GridColumnViewModel.ParagraphId' is obsolete: 'Please use Paragraph instead'
Line 163: 'GridColumnViewModel.ParagraphId' is obsolete: 'Please use Paragraph instead'
Line 208: 'GridColumnViewModel.ParagraphId' is obsolete: 'Please use Paragraph instead'
Line 217: 'GridColumnViewModel.ParagraphId' is obsolete: 'Please use Paragraph instead'
Line 226: 'GridColumnViewModel.ParagraphId' is obsolete: 'Please use Paragraph instead'
Line 235: 'GridColumnViewModel.ParagraphId' is obsolete: 'Please use Paragraph instead'

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 using System; 13 14 #line 70 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 15 using System.Collections.Generic; 16 17 #line default 18 #line hidden 19 20 #line 2052 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 21 using System.Linq; 22 23 #line default 24 #line hidden 25 26 #line 8 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 27 using Dynamicweb.Frontend; 28 29 #line default 30 #line hidden 31 32 #line 9 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 33 using Dynamicweb.Content; 34 35 #line default 36 #line hidden 37 38 #line 10 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 39 using Dynamicweb.Content.Items; 40 41 #line default 42 #line hidden 43 44 #line 11 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 45 using Dynamicweb; 46 47 #line default 48 #line hidden 49 50 #line 69 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 51 using System.Text.RegularExpressions; 52 53 #line default 54 #line hidden 55 56 #line 1784 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 57 using System.Reflection; 58 59 #line default 60 #line hidden 61 62 #line 72 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 63 using System.Web; 64 65 #line default 66 #line hidden 67 68 #line 73 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 69 using System.Web.UI.HtmlControls; 70 71 #line default 72 #line hidden 73 74 #line 2033 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 75 using Dynamicweb.Rapido.Blocks.Components; 76 77 #line default 78 #line hidden 79 80 #line 75 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 81 using Dynamicweb.Rapido.Blocks.Components.Articles; 82 83 #line default 84 #line hidden 85 86 #line 76 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 87 using Dynamicweb.Rapido.Blocks.Components.Documentation; 88 89 #line default 90 #line hidden 91 92 #line 669 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 93 using Dynamicweb.Rapido.Blocks; 94 95 #line default 96 #line hidden 97 98 #line 2053 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 99 using Dynamicweb.Rapido.Blocks.Components.General; 100 101 #line default 102 #line hidden 103 104 #line 227 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 105 using System.IO; 106 107 #line default 108 #line hidden 109 110 #line 2034 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 111 using Dynamicweb.Core; 112 113 #line default 114 #line hidden 115 116 117 public class RazorEngine_f9dcba9fbdbe4c65a7d8cdc3d8ee0751 : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.GridRowViewModel> { 118 119 #line hidden 120 121 #line 13 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 122 public RazorEngine.Templating.TemplateWriter RenderColumn(GridColumnViewModel column) { 123 #line default 124 #line hidden 125 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 126 127 #line 13 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 128 129 Paragraph paragraph = column.ParagraphId > 0 ? Services.Paragraphs.GetParagraph(column.ParagraphId) : null; 130 var colorService = new ColorSwatchService(); 131 132 //All paragraph settings may come from e.g. column.Item.GetITem("Common").GetItem("BackgroundColor") instead 133 134 if (paragraph != null) { 135 if (paragraph.Item != null) { 136 string backgroundColor = paragraph.Item["BackgroundColor"] != null ? paragraph.Item["BackgroundColor"].ToString() : ""; 137 string customCSSClass = paragraph.Item["Custom_Class"] != null ? paragraph.Item["Custom_Class"].ToString() : ""; 138 backgroundColor = !backgroundColor.Contains("#") ? colorService.GetHexColor(Pageview.AreaID, backgroundColor) : backgroundColor; 139 string textColor = paragraph.Item["TextColor"] != null ? paragraph.Item["TextColor"].ToString() : ""; 140 textColor = !textColor.Contains("#") ? colorService.GetHexColor(Pageview.AreaID, textColor) : textColor; 141 string styles = "background-color: " + backgroundColor + "; color: " + textColor; 142 143 string horizontalAlign = paragraph.Item["HorizontalAlignment"] != null ? "u-align-" + paragraph.Item["HorizontalAlignment"].ToString().ToLower() : ""; 144 string horizontalAlignContent = paragraph.Item["HorizontalAlignmentContent"] != null ? "u-align-content-" + paragraph.Item["HorizontalAlignmentContent"].ToString().ToLower() : ""; 145 string verticalAlign = paragraph.Item["VerticalAlignment"] != null ? "u-align-self-" + paragraph.Item["VerticalAlignment"].ToString().ToLower() : ""; 146 string alignmentCssClasses = horizontalAlign + " " + horizontalAlignContent + " " + verticalAlign; 147 148 string itemBodyCssClass = paragraph.Item["MoveBodyInside"] != null ? "u-full-width" : "content-row__item__body"; 149 itemBodyCssClass += paragraph.Item["MoveBodyInside"] == null && paragraph.Item["Padding"] != null ? " padding-size-" + paragraph.Item["Padding"].ToString().ToLower() : ""; 150 itemBodyCssClass += paragraph.Item["MoveBodyInside"] == null && paragraph.Item["PaddingPosition"] != null ? " padding-position-" + paragraph.Item["PaddingPosition"].ToString().ToLower() : ""; 151 152 153 154 #line default 155 #line hidden 156 WriteLiteralTo(__razor_helper_writer, " <div"); 157 158 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 2679), Tuple.Create("\"", 2768) 159 , Tuple.Create(Tuple.Create("", 2687), Tuple.Create("content-row__item", 2687), true) 160 , Tuple.Create(Tuple.Create(" ", 2704), Tuple.Create("rowItemContent-", 2705), true) 161 162 #line 37 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 163 , Tuple.Create(Tuple.Create("", 2720), Tuple.Create<System.Object, System.Int32>(column.ParagraphId 164 165 #line default 166 #line hidden 167 , 2720), false) 168 , Tuple.Create(Tuple.Create(" ", 2739), Tuple.Create("h-100", 2740), true) 169 , Tuple.Create(Tuple.Create(" ", 2745), Tuple.Create("dw-mod", 2746), true) 170 171 #line 37 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 172 , Tuple.Create(Tuple.Create(" ", 2752), Tuple.Create<System.Object, System.Int32>(customCSSClass 173 174 #line default 175 #line hidden 176 , 2753), false) 177 ); 178 179 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 2769), Tuple.Create("\"", 2784) 180 181 #line 37 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 182 , Tuple.Create(Tuple.Create("", 2777), Tuple.Create<System.Object, System.Int32>(styles 183 184 #line default 185 #line hidden 186 , 2777), false) 187 ); 188 189 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 190 191 192 #line 38 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 193 194 195 #line default 196 #line hidden 197 198 #line 38 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 199 if (!string.IsNullOrEmpty(textColor)) { 200 201 202 #line default 203 #line hidden 204 WriteLiteralTo(__razor_helper_writer, " <style>\r\n .rowItemContent-"); 205 206 207 #line 40 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 208 WriteTo(__razor_helper_writer, column.ParagraphId); 209 210 211 #line default 212 #line hidden 213 WriteLiteralTo(__razor_helper_writer, " p, .rowItemContent-"); 214 215 216 #line 40 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 217 WriteTo(__razor_helper_writer, column.ParagraphId); 218 219 220 #line default 221 #line hidden 222 WriteLiteralTo(__razor_helper_writer, " h1, .rowItemContent-"); 223 224 225 #line 40 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 226 WriteTo(__razor_helper_writer, column.ParagraphId); 227 228 229 #line default 230 #line hidden 231 WriteLiteralTo(__razor_helper_writer, " h2, .rowItemContent-"); 232 233 234 #line 40 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 235 WriteTo(__razor_helper_writer, column.ParagraphId); 236 237 238 #line default 239 #line hidden 240 WriteLiteralTo(__razor_helper_writer, " h3 {\r\n color: "); 241 242 243 #line 41 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 244 WriteTo(__razor_helper_writer, textColor); 245 246 247 #line default 248 #line hidden 249 WriteLiteralTo(__razor_helper_writer, ";\r\n }\r\n </style>\r\n"); 250 251 252 #line 44 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 253 } 254 255 256 #line default 257 #line hidden 258 WriteLiteralTo(__razor_helper_writer, " <div"); 259 260 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 3206), Tuple.Create("\"", 3275) 261 262 #line 45 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 263 , Tuple.Create(Tuple.Create("", 3214), Tuple.Create<System.Object, System.Int32>(itemBodyCssClass 264 265 #line default 266 #line hidden 267 , 3214), false) 268 269 #line 45 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 270 , Tuple.Create(Tuple.Create(" ", 3231), Tuple.Create<System.Object, System.Int32>(alignmentCssClasses 271 272 #line default 273 #line hidden 274 , 3232), false) 275 , Tuple.Create(Tuple.Create(" ", 3252), Tuple.Create("dw-mod", 3253), true) 276 , Tuple.Create(Tuple.Create(" ", 3259), Tuple.Create("h-100", 3260), true) 277 , Tuple.Create(Tuple.Create(" ", 3265), Tuple.Create("flex-wrap", 3266), true) 278 ); 279 280 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 281 282 WriteLiteralTo(__razor_helper_writer, " "); 283 284 285 #line 46 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 286 WriteTo(__razor_helper_writer, column.Output()); 287 288 289 #line default 290 #line hidden 291 WriteLiteralTo(__razor_helper_writer, " \r\n </div>\r\n </div> \r\n"); 292 293 294 #line 49 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 295 } else { 296 297 } 298 } else { 299 300 301 #line default 302 #line hidden 303 304 #line 53 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 305 WriteTo(__razor_helper_writer, RenderPlaceholderForTheContentBuilder(column)); 306 307 308 #line default 309 #line hidden 310 311 #line 53 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 312 313 } 314 315 316 #line default 317 #line hidden 318 }); 319 320 #line 55 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 321 } 322 #line default 323 #line hidden 324 325 326 #line 57 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 327 public RazorEngine.Templating.TemplateWriter RenderPlaceholderForTheContentBuilder(GridColumnViewModel column) { 328 #line default 329 #line hidden 330 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 331 332 #line 57 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 333 334 //For the content builder - Empty columns 335 336 337 338 #line default 339 #line hidden 340 WriteLiteralTo(__razor_helper_writer, " <div"); 341 342 WriteLiteralTo(__razor_helper_writer, " class=\"content-row__item dw-mod\""); 343 344 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 345 346 WriteLiteralTo(__razor_helper_writer, " class=\"content-row__item__body dw-mod\""); 347 348 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 349 350 WriteLiteralTo(__razor_helper_writer, " "); 351 352 353 #line 62 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 354 WriteTo(__razor_helper_writer, column.Output()); 355 356 357 #line default 358 #line hidden 359 WriteLiteralTo(__razor_helper_writer, " \r\n </div>\r\n </div> \r\n"); 360 361 362 #line 65 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 363 364 365 #line default 366 #line hidden 367 }); 368 369 #line 65 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 370 } 371 #line default 372 #line hidden 373 374 375 #line 82 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 376 public RazorEngine.Templating.TemplateWriter RenderBlockList(List<Block> blocks) 377 { 378 #line default 379 #line hidden 380 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 381 382 #line 83 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 383 384 bool debug = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("debug")) ? Convert.ToBoolean(HttpContext.Current.Request.QueryString.Get("debug")) : false; 385 blocks = blocks.OrderBy(item => item.SortId).ToList(); 386 387 foreach (Block item in blocks) 388 { 389 if (debug) { 390 391 392 #line default 393 #line hidden 394 WriteLiteralTo(__razor_helper_writer, " <!-- Block START: "); 395 396 397 #line 90 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 398 WriteTo(__razor_helper_writer, item.Id); 399 400 401 #line default 402 #line hidden 403 WriteLiteralTo(__razor_helper_writer, " -->\r\n"); 404 405 406 #line 91 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 407 } 408 409 if (item.Design == null) 410 { 411 412 413 #line default 414 #line hidden 415 416 #line 95 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 417 WriteTo(__razor_helper_writer, RenderBlock(item)); 418 419 420 #line default 421 #line hidden 422 423 #line 95 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 424 425 } 426 else if (item.Design.RenderType == RenderType.None) { 427 string cssClass = item.Design.CssClass != null ? item.Design.CssClass : ""; 428 429 430 431 #line default 432 #line hidden 433 WriteLiteralTo(__razor_helper_writer, " <div"); 434 435 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 4863), Tuple.Create("\"", 4887) 436 437 #line 100 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 438 , Tuple.Create(Tuple.Create("", 4871), Tuple.Create<System.Object, System.Int32>(cssClass 439 440 #line default 441 #line hidden 442 , 4871), false) 443 , Tuple.Create(Tuple.Create(" ", 4880), Tuple.Create("dw-mod", 4881), true) 444 ); 445 446 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 447 448 WriteLiteralTo(__razor_helper_writer, " "); 449 450 451 #line 101 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 452 WriteTo(__razor_helper_writer, RenderBlock(item)); 453 454 455 #line default 456 #line hidden 457 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 458 459 460 #line 103 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 461 } 462 else if (item.Design.RenderType != RenderType.Hide) 463 { 464 string cssClass = item.Design.CssClass != null ? item.Design.CssClass : ""; 465 466 if (!item.SkipRenderBlocksList) { 467 if (item.Design.RenderType == RenderType.Row) 468 { 469 470 471 #line default 472 #line hidden 473 WriteLiteralTo(__razor_helper_writer, " <div"); 474 475 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 5273), Tuple.Create("\"", 5328) 476 , Tuple.Create(Tuple.Create("", 5281), Tuple.Create("grid", 5281), true) 477 , Tuple.Create(Tuple.Create(" ", 5285), Tuple.Create("grid--align-content-start", 5286), true) 478 479 #line 111 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 480 , Tuple.Create(Tuple.Create(" ", 5311), Tuple.Create<System.Object, System.Int32>(cssClass 481 482 #line default 483 #line hidden 484 , 5312), false) 485 , Tuple.Create(Tuple.Create(" ", 5321), Tuple.Create("dw-mod", 5322), true) 486 ); 487 488 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 5329), Tuple.Create("\"", 5349) 489 , Tuple.Create(Tuple.Create("", 5334), Tuple.Create("Block__", 5334), true) 490 491 #line 111 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 492 , Tuple.Create(Tuple.Create("", 5341), Tuple.Create<System.Object, System.Int32>(item.Id 493 494 #line default 495 #line hidden 496 , 5341), false) 497 ); 498 499 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 500 501 WriteLiteralTo(__razor_helper_writer, " "); 502 503 504 #line 112 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 505 WriteTo(__razor_helper_writer, RenderBlock(item)); 506 507 508 #line default 509 #line hidden 510 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 511 512 513 #line 114 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 514 } 515 516 if (item.Design.RenderType == RenderType.Column) 517 { 518 string hidePadding = item.Design.HidePadding ? "u-no-padding" : ""; 519 string size = item.Design.Size ?? "12"; 520 size = Regex.IsMatch(size, @"\d") ? "md-" + item.Design.Size : item.Design.Size; 521 522 523 524 #line default 525 #line hidden 526 WriteLiteralTo(__razor_helper_writer, " <div"); 527 528 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 5809), Tuple.Create("\"", 5931) 529 , Tuple.Create(Tuple.Create("", 5817), Tuple.Create("col-", 5817), true) 530 531 #line 122 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 532 , Tuple.Create(Tuple.Create("", 5821), Tuple.Create<System.Object, System.Int32>(item.Design.Size 533 534 #line default 535 #line hidden 536 , 5821), false) 537 , Tuple.Create(Tuple.Create(" ", 5838), Tuple.Create("grid__col-md-", 5839), true) 538 539 #line 122 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 540 , Tuple.Create(Tuple.Create("", 5852), Tuple.Create<System.Object, System.Int32>(item.Design.Size 541 542 #line default 543 #line hidden 544 , 5852), false) 545 , Tuple.Create(Tuple.Create(" ", 5869), Tuple.Create("grid__col-sm-12", 5870), true) 546 , Tuple.Create(Tuple.Create(" ", 5885), Tuple.Create("grid__col-xs-12", 5886), true) 547 548 #line 122 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 549 , Tuple.Create(Tuple.Create(" ", 5901), Tuple.Create<System.Object, System.Int32>(hidePadding 550 551 #line default 552 #line hidden 553 , 5902), false) 554 555 #line 122 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 556 , Tuple.Create(Tuple.Create(" ", 5914), Tuple.Create<System.Object, System.Int32>(cssClass 557 558 #line default 559 #line hidden 560 , 5915), false) 561 , Tuple.Create(Tuple.Create(" ", 5924), Tuple.Create("dw-mod", 5925), true) 562 ); 563 564 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 5932), Tuple.Create("\"", 5952) 565 , Tuple.Create(Tuple.Create("", 5937), Tuple.Create("Block__", 5937), true) 566 567 #line 122 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 568 , Tuple.Create(Tuple.Create("", 5944), Tuple.Create<System.Object, System.Int32>(item.Id 569 570 #line default 571 #line hidden 572 , 5944), false) 573 ); 574 575 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 576 577 WriteLiteralTo(__razor_helper_writer, " "); 578 579 580 #line 123 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 581 WriteTo(__razor_helper_writer, RenderBlock(item)); 582 583 584 #line default 585 #line hidden 586 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 587 588 589 #line 125 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 590 } 591 592 if (item.Design.RenderType == RenderType.Table) 593 { 594 595 596 #line default 597 #line hidden 598 WriteLiteralTo(__razor_helper_writer, " <table"); 599 600 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 6159), Tuple.Create("\"", 6189) 601 , Tuple.Create(Tuple.Create("", 6167), Tuple.Create("table", 6167), true) 602 603 #line 129 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 604 , Tuple.Create(Tuple.Create(" ", 6172), Tuple.Create<System.Object, System.Int32>(cssClass 605 606 #line default 607 #line hidden 608 , 6173), false) 609 , Tuple.Create(Tuple.Create(" ", 6182), Tuple.Create("dw-mod", 6183), true) 610 ); 611 612 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 6190), Tuple.Create("\"", 6210) 613 , Tuple.Create(Tuple.Create("", 6195), Tuple.Create("Block__", 6195), true) 614 615 #line 129 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 616 , Tuple.Create(Tuple.Create("", 6202), Tuple.Create<System.Object, System.Int32>(item.Id 617 618 #line default 619 #line hidden 620 , 6202), false) 621 ); 622 623 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 624 625 WriteLiteralTo(__razor_helper_writer, " "); 626 627 628 #line 130 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 629 WriteTo(__razor_helper_writer, RenderBlock(item)); 630 631 632 #line default 633 #line hidden 634 WriteLiteralTo(__razor_helper_writer, "\r\n </table>\r\n"); 635 636 637 #line 132 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 638 } 639 640 if (item.Design.RenderType == RenderType.TableRow) 641 { 642 643 644 #line default 645 #line hidden 646 WriteLiteralTo(__razor_helper_writer, " <tr"); 647 648 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 6419), Tuple.Create("\"", 6443) 649 650 #line 136 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 651 , Tuple.Create(Tuple.Create("", 6427), Tuple.Create<System.Object, System.Int32>(cssClass 652 653 #line default 654 #line hidden 655 , 6427), false) 656 , Tuple.Create(Tuple.Create(" ", 6436), Tuple.Create("dw-mod", 6437), true) 657 ); 658 659 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 6444), Tuple.Create("\"", 6464) 660 , Tuple.Create(Tuple.Create("", 6449), Tuple.Create("Block__", 6449), true) 661 662 #line 136 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 663 , Tuple.Create(Tuple.Create("", 6456), Tuple.Create<System.Object, System.Int32>(item.Id 664 665 #line default 666 #line hidden 667 , 6456), false) 668 ); 669 670 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 671 672 WriteLiteralTo(__razor_helper_writer, " "); 673 674 675 #line 137 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 676 WriteTo(__razor_helper_writer, RenderBlock(item)); 677 678 679 #line default 680 #line hidden 681 WriteLiteralTo(__razor_helper_writer, "\r\n </tr>\r\n"); 682 683 684 #line 139 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 685 } 686 687 if (item.Design.RenderType == RenderType.TableColumn) 688 { 689 690 691 #line default 692 #line hidden 693 WriteLiteralTo(__razor_helper_writer, " <td"); 694 695 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 6673), Tuple.Create("\"", 6697) 696 697 #line 143 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 698 , Tuple.Create(Tuple.Create("", 6681), Tuple.Create<System.Object, System.Int32>(cssClass 699 700 #line default 701 #line hidden 702 , 6681), false) 703 , Tuple.Create(Tuple.Create(" ", 6690), Tuple.Create("dw-mod", 6691), true) 704 ); 705 706 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 6698), Tuple.Create("\"", 6718) 707 , Tuple.Create(Tuple.Create("", 6703), Tuple.Create("Block__", 6703), true) 708 709 #line 143 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 710 , Tuple.Create(Tuple.Create("", 6710), Tuple.Create<System.Object, System.Int32>(item.Id 711 712 #line default 713 #line hidden 714 , 6710), false) 715 ); 716 717 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 718 719 WriteLiteralTo(__razor_helper_writer, " "); 720 721 722 #line 144 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 723 WriteTo(__razor_helper_writer, RenderBlock(item)); 724 725 726 #line default 727 #line hidden 728 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n"); 729 730 731 #line 146 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 732 } 733 734 if (item.Design.RenderType == RenderType.CardHeader) 735 { 736 737 738 #line default 739 #line hidden 740 WriteLiteralTo(__razor_helper_writer, " <div"); 741 742 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 6927), Tuple.Create("\"", 6963) 743 , Tuple.Create(Tuple.Create("", 6935), Tuple.Create("card-header", 6935), true) 744 745 #line 150 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 746 , Tuple.Create(Tuple.Create(" ", 6946), Tuple.Create<System.Object, System.Int32>(cssClass 747 748 #line default 749 #line hidden 750 , 6947), false) 751 , Tuple.Create(Tuple.Create(" ", 6956), Tuple.Create("dw-mod", 6957), true) 752 ); 753 754 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 755 756 WriteLiteralTo(__razor_helper_writer, " "); 757 758 759 #line 151 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 760 WriteTo(__razor_helper_writer, RenderBlock(item)); 761 762 763 #line default 764 #line hidden 765 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 766 767 768 #line 153 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 769 } 770 771 if (item.Design.RenderType == RenderType.CardBody) 772 { 773 774 775 #line default 776 #line hidden 777 WriteLiteralTo(__razor_helper_writer, " <div"); 778 779 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 7171), Tuple.Create("\"", 7200) 780 , Tuple.Create(Tuple.Create("", 7179), Tuple.Create("card", 7179), true) 781 782 #line 157 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 783 , Tuple.Create(Tuple.Create(" ", 7183), Tuple.Create<System.Object, System.Int32>(cssClass 784 785 #line default 786 #line hidden 787 , 7184), false) 788 , Tuple.Create(Tuple.Create(" ", 7193), Tuple.Create("dw-mod", 7194), true) 789 ); 790 791 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 792 793 WriteLiteralTo(__razor_helper_writer, " "); 794 795 796 #line 158 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 797 WriteTo(__razor_helper_writer, RenderBlock(item)); 798 799 800 #line default 801 #line hidden 802 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 803 804 805 #line 160 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 806 } 807 808 if (item.Design.RenderType == RenderType.CardFooter) 809 { 810 811 812 #line default 813 #line hidden 814 WriteLiteralTo(__razor_helper_writer, " <div"); 815 816 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 7410), Tuple.Create("\"", 7446) 817 , Tuple.Create(Tuple.Create("", 7418), Tuple.Create("card-footer", 7418), true) 818 819 #line 164 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 820 , Tuple.Create(Tuple.Create(" ", 7429), Tuple.Create<System.Object, System.Int32>(cssClass 821 822 #line default 823 #line hidden 824 , 7430), false) 825 , Tuple.Create(Tuple.Create(" ", 7439), Tuple.Create("dw-mod", 7440), true) 826 ); 827 828 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 829 830 WriteLiteralTo(__razor_helper_writer, " "); 831 832 833 #line 165 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 834 WriteTo(__razor_helper_writer, RenderBlock(item)); 835 836 837 #line default 838 #line hidden 839 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 840 841 842 #line 167 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 843 } 844 } 845 else 846 { 847 848 849 #line default 850 #line hidden 851 852 #line 171 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 853 WriteTo(__razor_helper_writer, RenderBlock(item)); 854 855 856 #line default 857 #line hidden 858 859 #line 171 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 860 861 } 862 } 863 864 if (debug) { 865 866 867 #line default 868 #line hidden 869 WriteLiteralTo(__razor_helper_writer, " <!-- Block END: "); 870 871 872 #line 176 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 873 WriteTo(__razor_helper_writer, item.Id); 874 875 876 #line default 877 #line hidden 878 WriteLiteralTo(__razor_helper_writer, " -->\r\n"); 879 880 881 #line 177 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 882 } 883 } 884 885 886 #line default 887 #line hidden 888 }); 889 890 #line 179 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 891 } 892 #line default 893 #line hidden 894 895 896 #line 181 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 897 public RazorEngine.Templating.TemplateWriter RenderBlock(Block item) 898 { 899 #line default 900 #line hidden 901 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 902 903 #line 182 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 904 905 bool debug = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("debug")) ? Convert.ToBoolean(HttpContext.Current.Request.QueryString.Get("debug")) : false; 906 907 if (item.Template != null) 908 { 909 910 911 #line default 912 #line hidden 913 914 #line 187 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 915 WriteTo(__razor_helper_writer, BlocksPage.RenderTemplate(item.Template)); 916 917 918 #line default 919 #line hidden 920 921 #line 187 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 922 923 } 924 925 if (item.Component != null) 926 { 927 string customSufix = "Custom"; 928 string methodName = item.Component.HelperName; 929 930 ComponentBase[] methodParameters = new ComponentBase[1]; 931 methodParameters[0] = item.Component; 932 Type methodType = this.GetType(); 933 934 MethodInfo customMethod = methodType.GetMethod(methodName + customSufix); 935 MethodInfo generalMethod = methodType.GetMethod(methodName); 936 937 try { 938 if (debug) { 939 940 941 #line default 942 #line hidden 943 WriteLiteralTo(__razor_helper_writer, " <!-- Component: "); 944 945 946 #line 204 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 947 WriteTo(__razor_helper_writer, methodName.Replace("Render", "")); 948 949 950 #line default 951 #line hidden 952 WriteLiteralTo(__razor_helper_writer, " -->\r\n"); 953 954 955 #line 205 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 956 } 957 958 959 #line default 960 #line hidden 961 962 #line 206 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 963 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 964 965 966 #line default 967 #line hidden 968 969 #line 206 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 970 ; 971 } catch { 972 try { 973 974 975 #line default 976 #line hidden 977 978 #line 209 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 979 WriteTo(__razor_helper_writer, generalMethod.Invoke(this, methodParameters).ToString()); 980 981 982 #line default 983 #line hidden 984 985 #line 209 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 986 ; 987 } catch(Exception ex) { 988 throw new Exception(item.Component.GetType().Name + " method '" + methodName +"' could not be invoked", ex); 989 } 990 } 991 } 992 993 if (item.BlocksList.Count > 0 && !item.SkipRenderBlocksList) 994 { 995 996 997 #line default 998 #line hidden 999 1000 #line 218 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1001 WriteTo(__razor_helper_writer, RenderBlockList(item.BlocksList)); 1002 1003 1004 #line default 1005 #line hidden 1006 1007 #line 218 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1008 1009 } 1010 1011 1012 #line default 1013 #line hidden 1014 }); 1015 1016 #line 220 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1017 } 1018 #line default 1019 #line hidden 1020 1021 1022 #line 235 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1023 public RazorEngine.Templating.TemplateWriter Render(ComponentBase component) 1024 { 1025 #line default 1026 #line hidden 1027 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1028 1029 #line 236 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1030 1031 if (component != null) 1032 { 1033 1034 1035 #line default 1036 #line hidden 1037 1038 #line 239 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1039 WriteTo(__razor_helper_writer, component.Render(this)); 1040 1041 1042 #line default 1043 #line hidden 1044 1045 #line 239 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1046 1047 } 1048 1049 1050 #line default 1051 #line hidden 1052 }); 1053 1054 #line 241 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1055 } 1056 #line default 1057 #line hidden 1058 1059 1060 #line 250 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1061 public RazorEngine.Templating.TemplateWriter RenderIcon(Icon settings) 1062 { 1063 #line default 1064 #line hidden 1065 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1066 1067 #line 251 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1068 1069 if (settings != null) 1070 { 1071 string color = settings.Color != null ? "style=\"color: " + settings.Color + "\"" : ""; 1072 1073 if (settings.Name != null) 1074 { 1075 if (string.IsNullOrEmpty(settings.Label)) 1076 { 1077 1078 1079 #line default 1080 #line hidden 1081 WriteLiteralTo(__razor_helper_writer, " <i"); 1082 1083 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 10024), Tuple.Create("\"", 10082) 1084 1085 #line 260 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1086 , Tuple.Create(Tuple.Create("", 10032), Tuple.Create<System.Object, System.Int32>(settings.Prefix 1087 1088 #line default 1089 #line hidden 1090 , 10032), false) 1091 1092 #line 260 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1093 , Tuple.Create(Tuple.Create(" ", 10048), Tuple.Create<System.Object, System.Int32>(settings.Name 1094 1095 #line default 1096 #line hidden 1097 , 10049), false) 1098 1099 #line 260 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1100 , Tuple.Create(Tuple.Create(" ", 10063), Tuple.Create<System.Object, System.Int32>(settings.CssClass 1101 1102 #line default 1103 #line hidden 1104 , 10064), false) 1105 ); 1106 1107 WriteLiteralTo(__razor_helper_writer, " "); 1108 1109 1110 #line 260 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1111 WriteTo(__razor_helper_writer, color); 1112 1113 1114 #line default 1115 #line hidden 1116 WriteLiteralTo(__razor_helper_writer, "></i>\r\n"); 1117 1118 1119 #line 261 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1120 } 1121 else 1122 { 1123 if (settings.LabelPosition == IconLabelPosition.Before) 1124 { 1125 1126 1127 #line default 1128 #line hidden 1129 WriteLiteralTo(__razor_helper_writer, " <div"); 1130 1131 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 10261), Tuple.Create("\"", 10321) 1132 , Tuple.Create(Tuple.Create("", 10269), Tuple.Create("u-flex", 10269), true) 1133 , Tuple.Create(Tuple.Create(" ", 10275), Tuple.Create("u-flex--align-items-center", 10276), true) 1134 1135 #line 266 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1136 , Tuple.Create(Tuple.Create(" ", 10302), Tuple.Create<System.Object, System.Int32>(settings.CssClass 1137 1138 #line default 1139 #line hidden 1140 , 10303), false) 1141 ); 1142 1143 WriteLiteralTo(__razor_helper_writer, ">"); 1144 1145 1146 #line 266 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1147 WriteTo(__razor_helper_writer, settings.Label); 1148 1149 1150 #line default 1151 #line hidden 1152 WriteLiteralTo(__razor_helper_writer, " <i"); 1153 1154 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 10341), Tuple.Create("\"", 10394) 1155 1156 #line 266 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1157 , Tuple.Create(Tuple.Create("", 10349), Tuple.Create<System.Object, System.Int32>(settings.Prefix 1158 1159 #line default 1160 #line hidden 1161 , 10349), false) 1162 1163 #line 266 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1164 , Tuple.Create(Tuple.Create(" ", 10365), Tuple.Create<System.Object, System.Int32>(settings.Name 1165 1166 #line default 1167 #line hidden 1168 , 10366), false) 1169 , Tuple.Create(Tuple.Create(" ", 10380), Tuple.Create("u-margin-left", 10381), true) 1170 ); 1171 1172 WriteLiteralTo(__razor_helper_writer, " "); 1173 1174 1175 #line 266 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1176 WriteTo(__razor_helper_writer, color); 1177 1178 1179 #line default 1180 #line hidden 1181 WriteLiteralTo(__razor_helper_writer, "></i></div>\r\n"); 1182 1183 1184 #line 267 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1185 } 1186 else 1187 { 1188 1189 1190 #line default 1191 #line hidden 1192 WriteLiteralTo(__razor_helper_writer, " <div"); 1193 1194 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 10499), Tuple.Create("\"", 10559) 1195 , Tuple.Create(Tuple.Create("", 10507), Tuple.Create("u-flex", 10507), true) 1196 , Tuple.Create(Tuple.Create(" ", 10513), Tuple.Create("u-flex--align-items-center", 10514), true) 1197 1198 #line 270 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1199 , Tuple.Create(Tuple.Create(" ", 10540), Tuple.Create<System.Object, System.Int32>(settings.CssClass 1200 1201 #line default 1202 #line hidden 1203 , 10541), false) 1204 ); 1205 1206 WriteLiteralTo(__razor_helper_writer, "><i"); 1207 1208 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 10563), Tuple.Create("\"", 10629) 1209 1210 #line 270 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1211 , Tuple.Create(Tuple.Create("", 10571), Tuple.Create<System.Object, System.Int32>(settings.Prefix 1212 1213 #line default 1214 #line hidden 1215 , 10571), false) 1216 1217 #line 270 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1218 , Tuple.Create(Tuple.Create(" ", 10587), Tuple.Create<System.Object, System.Int32>(settings.Name 1219 1220 #line default 1221 #line hidden 1222 , 10588), false) 1223 , Tuple.Create(Tuple.Create(" ", 10602), Tuple.Create("u-margin-right--lg", 10603), true) 1224 , Tuple.Create(Tuple.Create(" ", 10621), Tuple.Create("u-w20px", 10622), true) 1225 ); 1226 1227 WriteLiteralTo(__razor_helper_writer, " "); 1228 1229 1230 #line 270 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1231 WriteTo(__razor_helper_writer, color); 1232 1233 1234 #line default 1235 #line hidden 1236 WriteLiteralTo(__razor_helper_writer, "></i>"); 1237 1238 1239 #line 270 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1240 WriteTo(__razor_helper_writer, settings.Label); 1241 1242 1243 #line default 1244 #line hidden 1245 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 1246 1247 1248 #line 271 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1249 } 1250 } 1251 } 1252 else if (!string.IsNullOrEmpty(settings.Label)) 1253 { 1254 1255 1256 #line default 1257 #line hidden 1258 1259 #line 276 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1260 WriteTo(__razor_helper_writer, settings.Label); 1261 1262 1263 #line default 1264 #line hidden 1265 1266 #line 276 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1267 1268 } 1269 } 1270 1271 1272 #line default 1273 #line hidden 1274 }); 1275 1276 #line 279 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1277 } 1278 #line default 1279 #line hidden 1280 1281 1282 #line 287 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1283 public RazorEngine.Templating.TemplateWriter RenderButton(Button settings) 1284 { 1285 #line default 1286 #line hidden 1287 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1288 1289 #line 288 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1290 1291 if (settings != null && (!string.IsNullOrEmpty(settings.Title) || settings.Icon != null)) 1292 { 1293 Dictionary<string, string> attributes = new Dictionary<string, string>(); 1294 List<string> classList = settings.CssClass != null ? settings.CssClass.Split(' ').ToList() : new List<string>(); 1295 if (settings.Disabled) { 1296 attributes.Add("disabled", "true"); 1297 classList.Add("disabled"); 1298 } 1299 1300 if (!string.IsNullOrEmpty(settings.ConfirmText) || !string.IsNullOrEmpty(settings.ConfirmTitle)) 1301 { 1302 settings.Id = !string.IsNullOrEmpty(settings.Id) ? settings.Id : Guid.NewGuid().ToString("N"); 1303 1304 1305 #line default 1306 #line hidden 1307 1308 #line 301 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1309 WriteTo(__razor_helper_writer, RenderConfirmDialog(settings)); 1310 1311 1312 #line default 1313 #line hidden 1314 1315 #line 301 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1316 ; 1317 settings.OnClick = "document.getElementById('" + settings.Id + "ModalTrigger').checked = true"; 1318 } 1319 1320 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 1321 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 1322 if (!string.IsNullOrEmpty(settings.AltText)) 1323 { 1324 attributes.Add("title", settings.AltText); 1325 } 1326 else if (!string.IsNullOrEmpty(settings.Title)) 1327 { 1328 attributes.Add("title", settings.Title); 1329 } 1330 1331 var onClickEvents = new List<string>(); 1332 if (!string.IsNullOrEmpty(settings.OnClick)) 1333 { 1334 onClickEvents.Add(settings.OnClick); 1335 } 1336 if (!string.IsNullOrEmpty(settings.Href)) 1337 { 1338 onClickEvents.Add("location.href='" + settings.Href + "'"); 1339 } 1340 if (onClickEvents.Count > 0) 1341 { 1342 attributes.Add("onClick", string.Join(";", onClickEvents)); 1343 } 1344 1345 if (settings.ButtonLayout != ButtonLayout.None) 1346 { 1347 classList.Add("btn"); 1348 string btnLayout = Enum.GetName(typeof(ButtonLayout), settings.ButtonLayout).ToLower(); 1349 if (btnLayout == "linkclean") 1350 { 1351 btnLayout = "link-clean"; //fix 1352 } 1353 classList.Add("btn-fill--" + btnLayout); 1354 } 1355 1356 if (settings.Icon == null) 1357 { 1358 settings.Icon = new Icon(); 1359 } 1360 1361 settings.Icon.CssClass += Enum.GetName(typeof(ButtonLayout), settings.ButtonLayout).ToLower() != "linkclean" ? " u-flex--align-center" : ""; 1362 settings.Icon.Label = settings.Title; 1363 1364 attributes.Add("type", Enum.GetName(typeof(ButtonType), settings.ButtonType).ToLower()); 1365 1366 1367 1368 #line default 1369 #line hidden 1370 WriteLiteralTo(__razor_helper_writer, " <button"); 1371 1372 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 13449), Tuple.Create("\"", 13492) 1373 1374 #line 351 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1375 , Tuple.Create(Tuple.Create("", 13457), Tuple.Create<System.Object, System.Int32>(string.Join(" ", classList) 1376 1377 #line default 1378 #line hidden 1379 , 13457), false) 1380 , Tuple.Create(Tuple.Create(" ", 13485), Tuple.Create("dw-mod", 13486), true) 1381 ); 1382 1383 WriteLiteralTo(__razor_helper_writer, " "); 1384 1385 1386 #line 351 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1387 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes)); 1388 1389 1390 #line default 1391 #line hidden 1392 WriteLiteralTo(__razor_helper_writer, " "); 1393 1394 1395 #line 351 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1396 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 1397 1398 1399 #line default 1400 #line hidden 1401 WriteLiteralTo(__razor_helper_writer, ">"); 1402 1403 1404 #line 351 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1405 WriteTo(__razor_helper_writer, Render(settings.Icon)); 1406 1407 1408 #line default 1409 #line hidden 1410 WriteLiteralTo(__razor_helper_writer, "</button>\r\n"); 1411 1412 1413 #line 352 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1414 } 1415 1416 1417 #line default 1418 #line hidden 1419 }); 1420 1421 #line 353 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1422 } 1423 #line default 1424 #line hidden 1425 1426 1427 #line 355 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1428 public RazorEngine.Templating.TemplateWriter RenderConfirmDialog(Button settings) 1429 { 1430 #line default 1431 #line hidden 1432 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1433 1434 #line 356 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1435 1436 Modal confirmDialog = new Modal { 1437 Id = settings.Id, 1438 Width = ModalWidth.Sm, 1439 Heading = new Heading 1440 { 1441 Level = 2, 1442 Title = settings.ConfirmTitle 1443 }, 1444 BodyText = settings.ConfirmText 1445 }; 1446 1447 confirmDialog.AddAction(new Button { Title = Translate("Cancel"), ButtonLayout = ButtonLayout.Secondary, OnClick = "document.getElementById('" + settings.Id + "ModalTrigger').checked = false"}); 1448 confirmDialog.AddAction(new Button { Title = Translate("OK"), ButtonLayout = ButtonLayout.Primary, OnClick = "document.getElementById('" + settings.Id + "ModalTrigger').checked = false;" + settings.OnClick }); 1449 1450 1451 1452 #line default 1453 #line hidden 1454 1455 #line 371 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1456 WriteTo(__razor_helper_writer, Render(confirmDialog)); 1457 1458 1459 #line default 1460 #line hidden 1461 1462 #line 371 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1463 1464 1465 1466 #line default 1467 #line hidden 1468 }); 1469 1470 #line 372 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1471 } 1472 #line default 1473 #line hidden 1474 1475 1476 #line 377 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1477 public RazorEngine.Templating.TemplateWriter RenderDashboard(Dashboard settings) 1478 { 1479 #line default 1480 #line hidden 1481 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1482 1483 #line 378 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1484 1485 var widgets = settings.GetWidgets(); 1486 1487 if (!string.IsNullOrEmpty(settings.WidgetsBaseBackgroundColor)) 1488 { 1489 //set bg color for them 1490 1491 System.Drawing.Color color = System.Drawing.ColorTranslator.FromHtml(settings.WidgetsBaseBackgroundColor); 1492 int r = Convert.ToInt16(color.R); 1493 int g = Convert.ToInt16(color.G); 1494 int b = Convert.ToInt16(color.B); 1495 1496 var count = widgets.Length; 1497 var max = Math.Max(r, Math.Max(g, b)); 1498 double step = 255.0 / (max * count); 1499 var i = 0; 1500 foreach (var widget in widgets) 1501 { 1502 i++; 1503 1504 var shade = "rgb(" + Converter.ToString(r * step * i).Replace(",", ".") + ", " + Converter.ToString(g * step * i).Replace(",", ".") + ", " + Converter.ToString(b * step * i).Replace(",", ".") + ")"; 1505 widget.BackgroundColor = shade; 1506 } 1507 } 1508 1509 1510 1511 #line default 1512 #line hidden 1513 WriteLiteralTo(__razor_helper_writer, " <div"); 1514 1515 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 15488), Tuple.Create("\"", 15531) 1516 , Tuple.Create(Tuple.Create("", 15496), Tuple.Create("dashboard", 15496), true) 1517 1518 #line 403 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1519 , Tuple.Create(Tuple.Create(" ", 15505), Tuple.Create<System.Object, System.Int32>(settings.CssClass 1520 1521 #line default 1522 #line hidden 1523 , 15506), false) 1524 , Tuple.Create(Tuple.Create(" ", 15524), Tuple.Create("dw-mod", 15525), true) 1525 ); 1526 1527 WriteLiteralTo(__razor_helper_writer, " "); 1528 1529 1530 #line 403 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1531 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 1532 1533 1534 #line default 1535 #line hidden 1536 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1537 1538 1539 #line 404 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1540 1541 1542 #line default 1543 #line hidden 1544 1545 #line 404 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1546 foreach (var widget in widgets) 1547 { 1548 1549 1550 #line default 1551 #line hidden 1552 WriteLiteralTo(__razor_helper_writer, " <div"); 1553 1554 WriteLiteralTo(__razor_helper_writer, " class=\"dashboard__widget\""); 1555 1556 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1557 1558 WriteLiteralTo(__razor_helper_writer, " "); 1559 1560 1561 #line 407 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1562 WriteTo(__razor_helper_writer, Render(widget)); 1563 1564 1565 #line default 1566 #line hidden 1567 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 1568 1569 1570 #line 409 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1571 } 1572 1573 1574 #line default 1575 #line hidden 1576 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 1577 1578 1579 #line 411 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1580 1581 1582 #line default 1583 #line hidden 1584 }); 1585 1586 #line 411 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1587 } 1588 #line default 1589 #line hidden 1590 1591 1592 #line 415 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1593 public RazorEngine.Templating.TemplateWriter RenderDashboardWidgetLink(DashboardWidgetLink settings) 1594 { 1595 #line default 1596 #line hidden 1597 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1598 1599 #line 416 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1600 1601 if (!string.IsNullOrEmpty(settings.Link)) 1602 { 1603 var backgroundStyles = ""; 1604 if (!string.IsNullOrEmpty(settings.BackgroundColor)) 1605 { 1606 backgroundStyles = "style=\"background-color:" + settings.BackgroundColor + "\""; 1607 } 1608 1609 1610 1611 #line default 1612 #line hidden 1613 WriteLiteralTo(__razor_helper_writer, " <a"); 1614 1615 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 16217), Tuple.Create("\"", 16238) 1616 1617 #line 425 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1618 , Tuple.Create(Tuple.Create("", 16224), Tuple.Create<System.Object, System.Int32>(settings.Link 1619 1620 #line default 1621 #line hidden 1622 , 16224), false) 1623 ); 1624 1625 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 16239), Tuple.Create("\"", 16292) 1626 , Tuple.Create(Tuple.Create("", 16247), Tuple.Create("widget", 16247), true) 1627 , Tuple.Create(Tuple.Create(" ", 16253), Tuple.Create("widget--link", 16254), true) 1628 1629 #line 425 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1630 , Tuple.Create(Tuple.Create(" ", 16266), Tuple.Create<System.Object, System.Int32>(settings.CssClass 1631 1632 #line default 1633 #line hidden 1634 , 16267), false) 1635 , Tuple.Create(Tuple.Create(" ", 16285), Tuple.Create("dw-mod", 16286), true) 1636 ); 1637 1638 WriteLiteralTo(__razor_helper_writer, " "); 1639 1640 1641 #line 425 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1642 WriteTo(__razor_helper_writer, backgroundStyles); 1643 1644 1645 #line default 1646 #line hidden 1647 WriteLiteralTo(__razor_helper_writer, " title=\""); 1648 1649 1650 #line 425 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1651 WriteTo(__razor_helper_writer, settings.Title); 1652 1653 1654 #line default 1655 #line hidden 1656 WriteLiteralTo(__razor_helper_writer, "\" "); 1657 1658 1659 #line 425 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1660 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 1661 1662 1663 #line default 1664 #line hidden 1665 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 1666 1667 WriteLiteralTo(__razor_helper_writer, " class=\"u-center-middle u-color-light\""); 1668 1669 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1670 1671 1672 #line 427 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1673 1674 1675 #line default 1676 #line hidden 1677 1678 #line 427 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1679 if (settings.Icon != null) 1680 { 1681 settings.Icon.CssClass += "widget__icon"; 1682 1683 1684 #line default 1685 #line hidden 1686 1687 #line 430 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1688 WriteTo(__razor_helper_writer, Render(settings.Icon)); 1689 1690 1691 #line default 1692 #line hidden 1693 1694 #line 430 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1695 1696 } 1697 1698 1699 #line default 1700 #line hidden 1701 WriteLiteralTo(__razor_helper_writer, " <div"); 1702 1703 WriteLiteralTo(__razor_helper_writer, " class=\"widget__title\""); 1704 1705 WriteLiteralTo(__razor_helper_writer, ">"); 1706 1707 1708 #line 432 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1709 WriteTo(__razor_helper_writer, settings.Title); 1710 1711 1712 #line default 1713 #line hidden 1714 WriteLiteralTo(__razor_helper_writer, "</div>\r\n </div>\r\n </a>\r\n"); 1715 1716 1717 #line 435 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1718 } 1719 1720 1721 #line default 1722 #line hidden 1723 }); 1724 1725 #line 436 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1726 } 1727 #line default 1728 #line hidden 1729 1730 1731 #line 440 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1732 public RazorEngine.Templating.TemplateWriter RenderDashboardWidgetCounter(DashboardWidgetCounter settings) 1733 { 1734 #line default 1735 #line hidden 1736 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1737 1738 #line 441 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1739 1740 var backgroundStyles = ""; 1741 if (!string.IsNullOrEmpty(settings.BackgroundColor)) 1742 { 1743 backgroundStyles = "style='background-color:" + settings.BackgroundColor + "'"; 1744 } 1745 1746 1747 1748 #line default 1749 #line hidden 1750 WriteLiteralTo(__razor_helper_writer, " <div"); 1751 1752 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 17128), Tuple.Create("\"", 17168) 1753 , Tuple.Create(Tuple.Create("", 17136), Tuple.Create("widget", 17136), true) 1754 1755 #line 448 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1756 , Tuple.Create(Tuple.Create(" ", 17142), Tuple.Create<System.Object, System.Int32>(settings.CssClass 1757 1758 #line default 1759 #line hidden 1760 , 17143), false) 1761 , Tuple.Create(Tuple.Create(" ", 17161), Tuple.Create("dw-mod", 17162), true) 1762 ); 1763 1764 WriteLiteralTo(__razor_helper_writer, " "); 1765 1766 1767 #line 448 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1768 WriteTo(__razor_helper_writer, backgroundStyles); 1769 1770 1771 #line default 1772 #line hidden 1773 WriteLiteralTo(__razor_helper_writer, " "); 1774 1775 1776 #line 448 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1777 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 1778 1779 1780 #line default 1781 #line hidden 1782 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 1783 1784 WriteLiteralTo(__razor_helper_writer, " class=\"u-center-middle u-color-light\""); 1785 1786 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 1787 1788 1789 #line 450 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1790 1791 1792 #line default 1793 #line hidden 1794 1795 #line 450 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1796 if (settings.Icon != null) 1797 { 1798 settings.Icon.CssClass += "widget__icon"; 1799 1800 1801 #line default 1802 #line hidden 1803 1804 #line 453 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1805 WriteTo(__razor_helper_writer, Render(settings.Icon)); 1806 1807 1808 #line default 1809 #line hidden 1810 1811 #line 453 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1812 1813 } 1814 1815 1816 #line default 1817 #line hidden 1818 WriteLiteralTo(__razor_helper_writer, " <div"); 1819 1820 WriteLiteralTo(__razor_helper_writer, " class=\"widget__counter\""); 1821 1822 WriteLiteralTo(__razor_helper_writer, ">"); 1823 1824 1825 #line 455 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1826 WriteTo(__razor_helper_writer, settings.Count); 1827 1828 1829 #line default 1830 #line hidden 1831 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <div"); 1832 1833 WriteLiteralTo(__razor_helper_writer, " class=\"widget__title\""); 1834 1835 WriteLiteralTo(__razor_helper_writer, ">"); 1836 1837 1838 #line 456 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1839 WriteTo(__razor_helper_writer, settings.Title); 1840 1841 1842 #line default 1843 #line hidden 1844 WriteLiteralTo(__razor_helper_writer, "</div>\r\n </div>\r\n </div>\r\n"); 1845 1846 1847 #line 459 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1848 1849 1850 #line default 1851 #line hidden 1852 }); 1853 1854 #line 459 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1855 } 1856 #line default 1857 #line hidden 1858 1859 1860 #line 467 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1861 public RazorEngine.Templating.TemplateWriter RenderLink(Link settings) 1862 { 1863 #line default 1864 #line hidden 1865 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1866 1867 #line 468 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1868 1869 if (settings != null && !string.IsNullOrEmpty(settings.Href) && (!string.IsNullOrEmpty(settings.Title) || settings.Icon != null)) 1870 { 1871 Dictionary<string, string> attributes = new Dictionary<string, string>(); 1872 List<string> classList = settings.CssClass != null ? settings.CssClass.Split(' ').ToList() : new List<string>(); 1873 if (settings.Disabled) 1874 { 1875 attributes.Add("disabled", "true"); 1876 classList.Add("disabled"); 1877 } 1878 1879 if (!string.IsNullOrEmpty(settings.AltText)) 1880 { 1881 attributes.Add("title", settings.AltText); 1882 } 1883 else if (!string.IsNullOrEmpty(settings.Title)) 1884 { 1885 attributes.Add("title", settings.Title); 1886 } 1887 1888 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 1889 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 1890 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onClick", settings.OnClick); } 1891 attributes.Add("href", settings.Href); 1892 1893 if (settings.ButtonLayout != ButtonLayout.None) 1894 { 1895 classList.Add("btn"); 1896 string btnLayout = Enum.GetName(typeof(ButtonLayout), settings.ButtonLayout).ToLower(); 1897 if (btnLayout == "linkclean") 1898 { 1899 btnLayout = "link-clean"; //fix 1900 } 1901 classList.Add("btn--" + btnLayout); 1902 } 1903 1904 if (settings.Icon == null) 1905 { 1906 settings.Icon = new Icon(); 1907 } 1908 settings.Icon.Label = settings.Title; 1909 1910 if (settings.Target == LinkTargetType.Blank && settings.Rel == LinkRelType.None) 1911 { 1912 settings.Rel = LinkRelType.Noopener; 1913 } 1914 if (settings.Target != LinkTargetType.None) 1915 { 1916 attributes.Add("target", "_" + Enum.GetName(typeof(LinkTargetType), settings.Target).ToLower()); 1917 } 1918 if (settings.Download) 1919 { 1920 attributes.Add("download", "true"); 1921 } 1922 if (settings.Rel != LinkRelType.None) 1923 { 1924 attributes.Add("rel", Enum.GetName(typeof(LinkRelType), settings.Rel).ToLower()); 1925 } 1926 1927 1928 1929 #line default 1930 #line hidden 1931 WriteLiteralTo(__razor_helper_writer, " <a"); 1932 1933 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 20133), Tuple.Create("\"", 20176) 1934 1935 #line 527 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1936 , Tuple.Create(Tuple.Create("", 20141), Tuple.Create<System.Object, System.Int32>(string.Join(" ", classList) 1937 1938 #line default 1939 #line hidden 1940 , 20141), false) 1941 , Tuple.Create(Tuple.Create(" ", 20169), Tuple.Create("dw-mod", 20170), true) 1942 ); 1943 1944 WriteLiteralTo(__razor_helper_writer, " "); 1945 1946 1947 #line 527 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1948 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes)); 1949 1950 1951 #line default 1952 #line hidden 1953 WriteLiteralTo(__razor_helper_writer, " "); 1954 1955 1956 #line 527 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1957 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 1958 1959 1960 #line default 1961 #line hidden 1962 WriteLiteralTo(__razor_helper_writer, ">"); 1963 1964 1965 #line 527 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1966 WriteTo(__razor_helper_writer, Render(settings.Icon)); 1967 1968 1969 #line default 1970 #line hidden 1971 WriteLiteralTo(__razor_helper_writer, "</a>\r\n"); 1972 1973 1974 #line 528 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1975 } 1976 1977 1978 #line default 1979 #line hidden 1980 }); 1981 1982 #line 529 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1983 } 1984 #line default 1985 #line hidden 1986 1987 1988 #line 538 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1989 public RazorEngine.Templating.TemplateWriter RenderRating(Rating settings) 1990 { 1991 #line default 1992 #line hidden 1993 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1994 1995 #line 539 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1996 1997 if (settings.Score > 0) 1998 { 1999 int rating = settings.Score; 2000 string iconType = "fa-star"; 2001 2002 switch (settings.Type.ToString()) { 2003 case "Stars": 2004 iconType = "fa-star"; 2005 break; 2006 case "Hearts": 2007 iconType = "fa-heart"; 2008 break; 2009 case "Lemons": 2010 iconType = "fa-lemon"; 2011 break; 2012 case "Bombs": 2013 iconType = "fa-bomb"; 2014 break; 2015 } 2016 2017 2018 2019 #line default 2020 #line hidden 2021 WriteLiteralTo(__razor_helper_writer, " <div"); 2022 2023 WriteLiteralTo(__razor_helper_writer, " class=\"u-ta-right\""); 2024 2025 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2026 2027 2028 #line 561 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2029 2030 2031 #line default 2032 #line hidden 2033 2034 #line 561 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2035 for (int i = 0; i < settings.OutOf; i++) 2036 { 2037 2038 2039 #line default 2040 #line hidden 2041 WriteLiteralTo(__razor_helper_writer, " <i"); 2042 2043 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 21196), Tuple.Create("\"", 21243) 2044 2045 #line 563 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2046 , Tuple.Create(Tuple.Create("", 21204), Tuple.Create<System.Object, System.Int32>(rating > i ? "fas" : "far" 2047 2048 #line default 2049 #line hidden 2050 , 21204), false) 2051 2052 #line 563 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2053 , Tuple.Create(Tuple.Create(" ", 21233), Tuple.Create<System.Object, System.Int32>(iconType 2054 2055 #line default 2056 #line hidden 2057 , 21234), false) 2058 ); 2059 2060 WriteLiteralTo(__razor_helper_writer, "></i>\r\n"); 2061 2062 2063 #line 564 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2064 } 2065 2066 2067 #line default 2068 #line hidden 2069 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 2070 2071 2072 #line 566 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2073 } 2074 2075 2076 #line default 2077 #line hidden 2078 }); 2079 2080 #line 567 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2081 } 2082 #line default 2083 #line hidden 2084 2085 2086 #line 575 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2087 public RazorEngine.Templating.TemplateWriter RenderSelectFieldOption(SelectFieldOption settings) 2088 { 2089 #line default 2090 #line hidden 2091 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2092 2093 #line 576 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2094 2095 Dictionary<string, string> attributes = new Dictionary<string, string>(); 2096 if (settings.Checked) { attributes.Add("selected", "true"); } 2097 if (settings.Disabled) { attributes.Add("disabled", "true"); } 2098 if (settings.Value != null) { attributes.Add("value", settings.Value); } 2099 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 2100 2101 2102 2103 #line default 2104 #line hidden 2105 WriteLiteralTo(__razor_helper_writer, " <option "); 2106 2107 2108 #line 583 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2109 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes)); 2110 2111 2112 #line default 2113 #line hidden 2114 WriteLiteralTo(__razor_helper_writer, " "); 2115 2116 2117 #line 583 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2118 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 2119 2120 2121 #line default 2122 #line hidden 2123 WriteLiteralTo(__razor_helper_writer, ">"); 2124 2125 2126 #line 583 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2127 WriteTo(__razor_helper_writer, settings.Label); 2128 2129 2130 #line default 2131 #line hidden 2132 WriteLiteralTo(__razor_helper_writer, "</option>\r\n"); 2133 2134 2135 #line 584 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2136 2137 2138 #line default 2139 #line hidden 2140 }); 2141 2142 #line 584 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2143 } 2144 #line default 2145 #line hidden 2146 2147 2148 #line 592 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2149 public RazorEngine.Templating.TemplateWriter RenderNavigation(Navigation settings) { 2150 #line default 2151 #line hidden 2152 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2153 2154 #line 592 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2155 2156 2157 2158 #line default 2159 #line hidden 2160 2161 #line 593 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2162 WriteTo(__razor_helper_writer, RenderNavigation(new 2163 { 2164 id = settings.Id, 2165 cssclass = settings.CssClass, 2166 startLevel = settings.StartLevel, 2167 endlevel = settings.EndLevel, 2168 expandmode = settings.Expandmode, 2169 sitemapmode = settings.SitemapMode, 2170 template = settings.Template 2171 })); 2172 2173 2174 #line default 2175 #line hidden 2176 2177 #line 602 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2178 2179 2180 2181 #line default 2182 #line hidden 2183 }); 2184 2185 #line 603 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2186 } 2187 #line default 2188 #line hidden 2189 2190 2191 #line 610 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2192 public RazorEngine.Templating.TemplateWriter RenderBreadcrumbNavigation(BreadcrumbNavigation settings) { 2193 #line default 2194 #line hidden 2195 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2196 2197 #line 610 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2198 2199 settings.Id = String.IsNullOrEmpty(settings.Id) ? "breadcrumb" : settings.Id; 2200 settings.Template = String.IsNullOrEmpty(settings.Template) ? "Breadcrumb.xslt" : settings.Template; 2201 settings.StartLevel = settings.StartLevel == 0 ? 1 : settings.StartLevel; 2202 settings.EndLevel = settings.EndLevel == 10 ? 1 : settings.EndLevel; 2203 settings.Expandmode = String.IsNullOrEmpty(settings.Expandmode) ? "all" : settings.Expandmode; 2204 settings.SitemapMode = false; 2205 2206 2207 2208 #line default 2209 #line hidden 2210 2211 #line 618 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2212 WriteTo(__razor_helper_writer, RenderNavigation(settings)); 2213 2214 2215 #line default 2216 #line hidden 2217 2218 #line 618 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2219 2220 2221 2222 #line default 2223 #line hidden 2224 }); 2225 2226 #line 619 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2227 } 2228 #line default 2229 #line hidden 2230 2231 2232 #line 626 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2233 public RazorEngine.Templating.TemplateWriter RenderLeftNavigation(LeftNavigation settings) { 2234 #line default 2235 #line hidden 2236 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2237 2238 #line 626 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2239 2240 settings.Id = String.IsNullOrEmpty(settings.Id) ? "breadcrumb" : settings.Id; 2241 settings.Template = String.IsNullOrEmpty(settings.Template) ? "Breadcrumb.xslt" : settings.Template; 2242 settings.StartLevel = settings.StartLevel == 0 ? 1 : settings.StartLevel; 2243 settings.EndLevel = settings.EndLevel == 10 ? 1 : settings.EndLevel; 2244 settings.Expandmode = String.IsNullOrEmpty(settings.Expandmode) ? "all" : settings.Expandmode; 2245 2246 2247 2248 #line default 2249 #line hidden 2250 WriteLiteralTo(__razor_helper_writer, " <div"); 2251 2252 WriteLiteralTo(__razor_helper_writer, " class=\"grid__cell\""); 2253 2254 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2255 2256 WriteLiteralTo(__razor_helper_writer, " "); 2257 2258 2259 #line 634 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2260 WriteTo(__razor_helper_writer, RenderNavigation(settings)); 2261 2262 2263 #line default 2264 #line hidden 2265 WriteLiteralTo(__razor_helper_writer, " \r\n </div> \r\n"); 2266 2267 2268 #line 636 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2269 2270 2271 #line default 2272 #line hidden 2273 }); 2274 2275 #line 636 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2276 } 2277 #line default 2278 #line hidden 2279 2280 2281 #line 643 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2282 public RazorEngine.Templating.TemplateWriter RenderHeading(Heading settings) 2283 { 2284 #line default 2285 #line hidden 2286 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2287 2288 #line 644 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2289 2290 if (settings != null && !string.IsNullOrEmpty(settings.Title)) 2291 { 2292 string color = settings.Color != null ? "style=\"color: " + settings.Color + "\"" : ""; 2293 string tagName = settings.Level != 0 ? "h" + settings.Level.ToString() : "div"; 2294 2295 2296 2297 #line default 2298 #line hidden 2299 2300 #line 650 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2301 WriteTo(__razor_helper_writer, "<" + tagName + " class=\"" + settings.CssClass + " dw-mod\" " + color + ">"); 2302 2303 2304 #line default 2305 #line hidden 2306 2307 #line 650 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2308 2309 if (!string.IsNullOrEmpty(settings.Link)) 2310 { 2311 2312 2313 #line default 2314 #line hidden 2315 2316 #line 653 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2317 WriteTo(__razor_helper_writer, Render(new Link { Href = settings.Link, Icon = settings.Icon, Title = settings.Title, ButtonLayout = ButtonLayout.None })); 2318 2319 2320 #line default 2321 #line hidden 2322 2323 #line 653 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2324 2325 } 2326 else 2327 { 2328 if (settings.Icon == null) 2329 { 2330 settings.Icon = new Icon(); 2331 } 2332 settings.Icon.Label = settings.Title; 2333 2334 2335 #line default 2336 #line hidden 2337 2338 #line 662 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2339 WriteTo(__razor_helper_writer, Render(settings.Icon)); 2340 2341 2342 #line default 2343 #line hidden 2344 2345 #line 662 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2346 2347 } 2348 2349 2350 #line default 2351 #line hidden 2352 2353 #line 664 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2354 WriteTo(__razor_helper_writer, "</" + tagName + ">"); 2355 2356 2357 #line default 2358 #line hidden 2359 2360 #line 664 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2361 ; 2362 } 2363 2364 2365 #line default 2366 #line hidden 2367 }); 2368 2369 #line 666 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2370 } 2371 #line default 2372 #line hidden 2373 2374 2375 #line 674 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2376 public RazorEngine.Templating.TemplateWriter RenderImage(Image settings) 2377 { 2378 #line default 2379 #line hidden 2380 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2381 2382 #line 675 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2383 2384 if (settings.FilterPrimary != ImageFilter.None || settings.FilterSecondary != ImageFilter.None) 2385 { 2386 Dictionary<string, string> optionalAttributes = new Dictionary<string, string>(); 2387 if (!string.IsNullOrEmpty(settings.FilterColor)) { optionalAttributes.Add("style", "background-color: " + settings.FilterColor); } 2388 2389 if (settings.Caption != null) 2390 { 2391 2392 2393 #line default 2394 #line hidden 2395 WriteLiteralTo(__razor_helper_writer, " "); 2396 2397 WriteLiteralTo(__razor_helper_writer, "<div>\r\n"); 2398 2399 2400 #line 684 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2401 } 2402 2403 var primaryFilterClass = settings.FilterPrimary.ToString().ToLower(); 2404 var secondaryFilterClass = settings.FilterSecondary.ToString().ToLower(); 2405 2406 2407 2408 #line default 2409 #line hidden 2410 WriteLiteralTo(__razor_helper_writer, " <div"); 2411 2412 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 25821), Tuple.Create("\"", 25902) 2413 , Tuple.Create(Tuple.Create("", 25829), Tuple.Create("image-filter", 25829), true) 2414 , Tuple.Create(Tuple.Create(" ", 25841), Tuple.Create("image-filter--", 25842), true) 2415 2416 #line 689 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2417 , Tuple.Create(Tuple.Create("", 25856), Tuple.Create<System.Object, System.Int32>(primaryFilterClass 2418 2419 #line default 2420 #line hidden 2421 , 25856), false) 2422 , Tuple.Create(Tuple.Create(" ", 25875), Tuple.Create("u-position-relative", 25876), true) 2423 , Tuple.Create(Tuple.Create(" ", 25895), Tuple.Create("dw-mod", 25896), true) 2424 ); 2425 2426 WriteLiteralTo(__razor_helper_writer, " "); 2427 2428 2429 #line 689 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2430 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(optionalAttributes)); 2431 2432 2433 #line default 2434 #line hidden 2435 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 2436 2437 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 25974), Tuple.Create("\"", 26037) 2438 , Tuple.Create(Tuple.Create("", 25982), Tuple.Create("image-filter", 25982), true) 2439 , Tuple.Create(Tuple.Create(" ", 25994), Tuple.Create("image-filter--", 25995), true) 2440 2441 #line 690 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2442 , Tuple.Create(Tuple.Create("", 26009), Tuple.Create<System.Object, System.Int32>(secondaryFilterClass 2443 2444 #line default 2445 #line hidden 2446 , 26009), false) 2447 , Tuple.Create(Tuple.Create(" ", 26030), Tuple.Create("dw-mod", 26031), true) 2448 ); 2449 2450 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2451 2452 2453 #line 691 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2454 2455 2456 #line default 2457 #line hidden 2458 2459 #line 691 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2460 if (settings.Link != null) 2461 { 2462 2463 2464 #line default 2465 #line hidden 2466 WriteLiteralTo(__razor_helper_writer, " <a"); 2467 2468 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 26127), Tuple.Create("\"", 26148) 2469 2470 #line 693 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2471 , Tuple.Create(Tuple.Create("", 26134), Tuple.Create<System.Object, System.Int32>(settings.Link 2472 2473 #line default 2474 #line hidden 2475 , 26134), false) 2476 ); 2477 2478 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2479 2480 WriteLiteralTo(__razor_helper_writer, " "); 2481 2482 2483 #line 694 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2484 WriteTo(__razor_helper_writer, RenderTheImage(settings)); 2485 2486 2487 #line default 2488 #line hidden 2489 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n"); 2490 2491 2492 #line 696 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2493 } 2494 else 2495 { 2496 2497 2498 #line default 2499 #line hidden 2500 2501 #line 699 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2502 WriteTo(__razor_helper_writer, RenderTheImage(settings)); 2503 2504 2505 #line default 2506 #line hidden 2507 2508 #line 699 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2509 2510 } 2511 2512 2513 #line default 2514 #line hidden 2515 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n"); 2516 2517 2518 #line 703 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2519 2520 if (settings.Caption != null) 2521 { 2522 2523 2524 #line default 2525 #line hidden 2526 WriteLiteralTo(__razor_helper_writer, " <span"); 2527 2528 WriteLiteralTo(__razor_helper_writer, " class=\"image-caption dw-mod\""); 2529 2530 WriteLiteralTo(__razor_helper_writer, ">"); 2531 2532 2533 #line 706 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2534 WriteTo(__razor_helper_writer, settings.Caption); 2535 2536 2537 #line default 2538 #line hidden 2539 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 2540 2541 WriteLiteralTo(__razor_helper_writer, " "); 2542 2543 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 2544 2545 2546 #line 708 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2547 } 2548 } 2549 else 2550 { 2551 if (settings.Caption != null) 2552 { 2553 2554 2555 #line default 2556 #line hidden 2557 WriteLiteralTo(__razor_helper_writer, " "); 2558 2559 WriteLiteralTo(__razor_helper_writer, "<div>\r\n"); 2560 2561 2562 #line 715 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2563 } 2564 if (!string.IsNullOrEmpty(settings.Link)) 2565 { 2566 2567 2568 #line default 2569 #line hidden 2570 WriteLiteralTo(__razor_helper_writer, " <a"); 2571 2572 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 26732), Tuple.Create("\"", 26753) 2573 2574 #line 718 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2575 , Tuple.Create(Tuple.Create("", 26739), Tuple.Create<System.Object, System.Int32>(settings.Link 2576 2577 #line default 2578 #line hidden 2579 , 26739), false) 2580 ); 2581 2582 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 2583 2584 WriteLiteralTo(__razor_helper_writer, " "); 2585 2586 2587 #line 719 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2588 WriteTo(__razor_helper_writer, RenderTheImage(settings)); 2589 2590 2591 #line default 2592 #line hidden 2593 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n"); 2594 2595 2596 #line 721 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2597 } 2598 else 2599 { 2600 2601 2602 #line default 2603 #line hidden 2604 2605 #line 724 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2606 WriteTo(__razor_helper_writer, RenderTheImage(settings)); 2607 2608 2609 #line default 2610 #line hidden 2611 2612 #line 724 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2613 2614 } 2615 2616 if (settings.Caption != null) 2617 { 2618 2619 2620 #line default 2621 #line hidden 2622 WriteLiteralTo(__razor_helper_writer, " <span"); 2623 2624 WriteLiteralTo(__razor_helper_writer, " class=\"image-caption dw-mod\""); 2625 2626 WriteLiteralTo(__razor_helper_writer, ">"); 2627 2628 2629 #line 729 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2630 WriteTo(__razor_helper_writer, settings.Caption); 2631 2632 2633 #line default 2634 #line hidden 2635 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 2636 2637 WriteLiteralTo(__razor_helper_writer, " "); 2638 2639 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 2640 2641 2642 #line 731 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2643 } 2644 } 2645 2646 2647 #line default 2648 #line hidden 2649 }); 2650 2651 #line 733 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2652 } 2653 #line default 2654 #line hidden 2655 2656 2657 #line 735 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2658 public RazorEngine.Templating.TemplateWriter RenderTheImage(Image settings) 2659 { 2660 #line default 2661 #line hidden 2662 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2663 2664 #line 736 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2665 2666 if (settings != null) 2667 { 2668 string alternativeImage = !string.IsNullOrEmpty(Pageview.AreaSettings.GetItem("Settings").GetString("AlternativeImage")) ? Pageview.AreaSettings.GetItem("Settings").GetFile("AlternativeImage").PathUrlEncoded : "/Images/missing_image.jpg"; 2669 string placeholderImage = "/Files/Images/placeholder.gif"; 2670 string imageEngine = "/Admin/Public/GetImage.ashx?"; 2671 2672 string imageStyle = ""; 2673 2674 switch (settings.Style) 2675 { 2676 case ImageStyle.Ball: 2677 imageStyle = "grid__cell-img--ball"; 2678 break; 2679 2680 case ImageStyle.Triangle: 2681 imageStyle = "grid__cell-img--triangle"; 2682 break; 2683 } 2684 2685 if (settings.Style == ImageStyle.Ball || settings.Style == ImageStyle.Circle || settings.Style == ImageStyle.Triangle) 2686 { 2687 settings.ImageDefault.Crop = settings.ImageDefault.Crop == 5 ? settings.ImageDefault.Crop = 0 : settings.ImageDefault.Crop; 2688 2689 if (settings.ImageDefault != null) 2690 { 2691 settings.ImageDefault.Height = settings.ImageDefault.Width; 2692 } 2693 if (settings.ImageMedium != null) 2694 { 2695 settings.ImageMedium.Height = settings.ImageMedium.Width; 2696 } 2697 if (settings.ImageSmall != null) 2698 { 2699 settings.ImageSmall.Height = settings.ImageSmall.Width; 2700 } 2701 } 2702 2703 string defaultImage = imageEngine; 2704 string imageSmall = ""; 2705 string imageMedium = ""; 2706 2707 if (settings.DisableImageEngine) 2708 { 2709 defaultImage = settings.Path; 2710 } 2711 else 2712 { 2713 if (settings.ImageDefault != null) 2714 { 2715 defaultImage += Dynamicweb.Rapido.Services.Images.GetImagePathFromSettings(settings.ImageDefault); 2716 2717 if (settings.Path.GetType() != typeof(string)) 2718 { 2719 defaultImage += settings.Path != null ? "Image=" + settings.Path.PathUrlEncoded : ""; 2720 defaultImage += settings.Path != null ? "&" + settings.Path.GetFocalPointParameters() : ""; 2721 } 2722 else 2723 { 2724 defaultImage += settings.Path != null ? "Image=" + settings.Path : ""; 2725 } 2726 2727 defaultImage += "&AlternativeImage=" + alternativeImage; 2728 } 2729 2730 if (settings.ImageSmall != null) 2731 { 2732 imageSmall = "data-src-small=\"" + imageEngine; 2733 imageSmall += Dynamicweb.Rapido.Services.Images.GetImagePathFromSettings(settings.ImageSmall); 2734 2735 if (settings.Path.GetType() != typeof(string)) 2736 { 2737 imageSmall += settings.Path != null ? "Image=" + settings.Path.PathUrlEncoded : ""; 2738 imageSmall += settings.Path != null ? "&" + settings.Path.GetFocalPointParameters() : ""; 2739 } 2740 else 2741 { 2742 imageSmall += settings.Path != null ? "Image=" + settings.Path : ""; 2743 } 2744 2745 imageSmall += "&alternativeImage=" + alternativeImage; 2746 2747 imageSmall += "\""; 2748 } 2749 2750 if (settings.ImageMedium != null) 2751 { 2752 imageMedium = "data-src-medium=\"" + imageEngine; 2753 imageMedium += Dynamicweb.Rapido.Services.Images.GetImagePathFromSettings(settings.ImageMedium); 2754 2755 if (settings.Path.GetType() != typeof(string)) 2756 { 2757 imageMedium += settings.Path != null ? "Image=" + settings.Path.PathUrlEncoded : ""; 2758 imageMedium += settings.Path != null ? "&" + settings.Path.GetFocalPointParameters() : ""; 2759 } 2760 else 2761 { 2762 imageMedium += settings.Path != null ? "Image=" + settings.Path : ""; 2763 } 2764 2765 imageMedium += "&alternativeImage=" + alternativeImage; 2766 2767 imageMedium += "\""; 2768 } 2769 } 2770 2771 Dictionary<string, string> optionalAttributes = new Dictionary<string, string>(); 2772 if (!string.IsNullOrEmpty(settings.OnClick)) { optionalAttributes.Add("onclick", settings.OnClick); } 2773 if (!string.IsNullOrEmpty(settings.Title)) 2774 { 2775 optionalAttributes.Add("alt", settings.Title); 2776 optionalAttributes.Add("title", settings.Title); 2777 } 2778 2779 if (settings.DisableLazyLoad) 2780 { 2781 2782 2783 #line default 2784 #line hidden 2785 WriteLiteralTo(__razor_helper_writer, " <img"); 2786 2787 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 31645), Tuple.Create("\"", 31662) 2788 2789 #line 852 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2790 , Tuple.Create(Tuple.Create("", 31650), Tuple.Create<System.Object, System.Int32>(settings.Id 2791 2792 #line default 2793 #line hidden 2794 , 31650), false) 2795 ); 2796 2797 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 31663), Tuple.Create("\"", 31708) 2798 2799 #line 852 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2800 , Tuple.Create(Tuple.Create("", 31671), Tuple.Create<System.Object, System.Int32>(imageStyle 2801 2802 #line default 2803 #line hidden 2804 , 31671), false) 2805 2806 #line 852 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2807 , Tuple.Create(Tuple.Create(" ", 31682), Tuple.Create<System.Object, System.Int32>(settings.CssClass 2808 2809 #line default 2810 #line hidden 2811 , 31683), false) 2812 , Tuple.Create(Tuple.Create(" ", 31701), Tuple.Create("dw-mod", 31702), true) 2813 ); 2814 2815 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 31709), Tuple.Create("\"", 31728) 2816 2817 #line 852 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2818 , Tuple.Create(Tuple.Create("", 31715), Tuple.Create<System.Object, System.Int32>(defaultImage 2819 2820 #line default 2821 #line hidden 2822 , 31715), false) 2823 ); 2824 2825 WriteLiteralTo(__razor_helper_writer, " "); 2826 2827 2828 #line 852 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2829 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(optionalAttributes)); 2830 2831 2832 #line default 2833 #line hidden 2834 WriteLiteralTo(__razor_helper_writer, " "); 2835 2836 2837 #line 852 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2838 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 2839 2840 2841 #line default 2842 #line hidden 2843 WriteLiteralTo(__razor_helper_writer, " />\r\n"); 2844 2845 2846 #line 853 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2847 } 2848 else 2849 { 2850 2851 2852 #line default 2853 #line hidden 2854 WriteLiteralTo(__razor_helper_writer, " <img"); 2855 2856 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 31914), Tuple.Create("\"", 31931) 2857 2858 #line 856 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2859 , Tuple.Create(Tuple.Create("", 31919), Tuple.Create<System.Object, System.Int32>(settings.Id 2860 2861 #line default 2862 #line hidden 2863 , 31919), false) 2864 ); 2865 2866 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 31932), Tuple.Create("\"", 31986) 2867 , Tuple.Create(Tuple.Create("", 31940), Tuple.Create("lazyload", 31940), true) 2868 2869 #line 856 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2870 , Tuple.Create(Tuple.Create(" ", 31948), Tuple.Create<System.Object, System.Int32>(imageStyle 2871 2872 #line default 2873 #line hidden 2874 , 31949), false) 2875 2876 #line 856 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2877 , Tuple.Create(Tuple.Create(" ", 31960), Tuple.Create<System.Object, System.Int32>(settings.CssClass 2878 2879 #line default 2880 #line hidden 2881 , 31961), false) 2882 , Tuple.Create(Tuple.Create(" ", 31979), Tuple.Create("dw-mod", 31980), true) 2883 ); 2884 2885 WriteAttributeTo(__razor_helper_writer, "src", Tuple.Create(" src=\"", 31987), Tuple.Create("\"", 32010) 2886 2887 #line 856 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2888 , Tuple.Create(Tuple.Create("", 31993), Tuple.Create<System.Object, System.Int32>(placeholderImage 2889 2890 #line default 2891 #line hidden 2892 , 31993), false) 2893 ); 2894 2895 WriteLiteralTo(__razor_helper_writer, " data-src=\""); 2896 2897 2898 #line 856 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2899 WriteTo(__razor_helper_writer, defaultImage); 2900 2901 2902 #line default 2903 #line hidden 2904 WriteLiteralTo(__razor_helper_writer, "\""); 2905 2906 WriteLiteralTo(__razor_helper_writer, " "); 2907 2908 2909 #line 856 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2910 WriteTo(__razor_helper_writer, imageSmall); 2911 2912 2913 #line default 2914 #line hidden 2915 WriteLiteralTo(__razor_helper_writer, " "); 2916 2917 2918 #line 856 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2919 WriteTo(__razor_helper_writer, imageMedium); 2920 2921 2922 #line default 2923 #line hidden 2924 WriteLiteralTo(__razor_helper_writer, " "); 2925 2926 2927 #line 856 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2928 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(optionalAttributes)); 2929 2930 2931 #line default 2932 #line hidden 2933 WriteLiteralTo(__razor_helper_writer, " "); 2934 2935 2936 #line 856 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2937 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 2938 2939 2940 #line default 2941 #line hidden 2942 WriteLiteralTo(__razor_helper_writer, " />\r\n"); 2943 2944 2945 #line 857 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2946 } 2947 } 2948 2949 2950 #line default 2951 #line hidden 2952 }); 2953 2954 #line 859 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2955 } 2956 #line default 2957 #line hidden 2958 2959 2960 #line 866 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2961 public RazorEngine.Templating.TemplateWriter RenderFileField(FileField settings) 2962 { 2963 #line default 2964 #line hidden 2965 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 2966 2967 #line 867 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 2968 2969 var attributes = new Dictionary<string, string>(); 2970 if (string.IsNullOrEmpty(settings.Id)) 2971 { 2972 settings.Id = Guid.NewGuid().ToString("N"); 2973 } 2974 2975 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 2976 if (settings.Disabled) { attributes.Add("disabled", "true"); } 2977 if (settings.Required) { attributes.Add("required", "true"); } 2978 if (settings.Multiple) { attributes.Add("multiple", "true"); } 2979 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 2980 if (string.IsNullOrEmpty(settings.ChooseFileText)) 2981 { 2982 settings.ChooseFileText = Translate("Choose file"); 2983 } 2984 if (string.IsNullOrEmpty(settings.NoFilesChosenText)) 2985 { 2986 settings.NoFilesChosenText = Translate("No files chosen..."); 2987 } 2988 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 2989 2990 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 2991 2992 string setValueToFakeInput = "FileUpload.setValueToFakeInput(this)"; 2993 attributes.Add("onchange", setValueToFakeInput + (!string.IsNullOrEmpty(settings.OnChange) ? settings.OnChange : "")); 2994 2995 attributes.Add("type", "file"); 2996 if (settings.Value != null) { attributes.Add("value", settings.Value); } 2997 settings.CssClass = "u-full-width " + settings.CssClass; 2998 2999 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 3000 3001 3002 3003 #line default 3004 #line hidden 3005 WriteLiteralTo(__razor_helper_writer, " <div"); 3006 3007 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 33995), Tuple.Create("\"", 34066) 3008 , Tuple.Create(Tuple.Create("", 34003), Tuple.Create("form__field-group", 34003), true) 3009 , Tuple.Create(Tuple.Create(" ", 34020), Tuple.Create("u-full-width", 34021), true) 3010 3011 #line 900 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3012 , Tuple.Create(Tuple.Create(" ", 34033), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 3013 3014 #line default 3015 #line hidden 3016 , 34034), false) 3017 , Tuple.Create(Tuple.Create(" ", 34059), Tuple.Create("dw-mod", 34060), true) 3018 ); 3019 3020 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3021 3022 3023 #line 901 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3024 3025 3026 #line default 3027 #line hidden 3028 3029 #line 901 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3030 if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 3031 { 3032 3033 3034 #line default 3035 #line hidden 3036 WriteLiteralTo(__razor_helper_writer, " <div"); 3037 3038 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width\""); 3039 3040 WriteLiteralTo(__razor_helper_writer, "> \r\n"); 3041 3042 3043 #line 904 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3044 3045 3046 #line default 3047 #line hidden 3048 3049 #line 904 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3050 if (!string.IsNullOrEmpty(settings.Label)) { 3051 3052 #line default 3053 #line hidden 3054 WriteLiteralTo(__razor_helper_writer, " <label"); 3055 3056 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 34269), Tuple.Create("\"", 34287) 3057 3058 #line 904 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3059 , Tuple.Create(Tuple.Create("", 34275), Tuple.Create<System.Object, System.Int32>(settings.Id 3060 3061 #line default 3062 #line hidden 3063 , 34275), false) 3064 ); 3065 3066 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\""); 3067 3068 WriteLiteralTo(__razor_helper_writer, ">"); 3069 3070 3071 #line 904 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3072 WriteTo(__razor_helper_writer, settings.Label); 3073 3074 3075 #line default 3076 #line hidden 3077 WriteLiteralTo(__razor_helper_writer, "</label> "); 3078 3079 3080 #line 904 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3081 } 3082 3083 3084 #line default 3085 #line hidden 3086 WriteLiteralTo(__razor_helper_writer, " "); 3087 3088 3089 #line 905 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3090 if (settings.Link != null) { 3091 3092 3093 #line default 3094 #line hidden 3095 WriteLiteralTo(__razor_helper_writer, " <div"); 3096 3097 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right\""); 3098 3099 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3100 3101 3102 #line 907 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3103 3104 3105 #line default 3106 #line hidden 3107 3108 #line 907 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3109 settings.Link.ButtonLayout = ButtonLayout.LinkClean; 3110 3111 #line default 3112 #line hidden 3113 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3114 3115 WriteLiteralTo(__razor_helper_writer, " "); 3116 3117 3118 #line 908 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3119 WriteTo(__razor_helper_writer, RenderLink(settings.Link)); 3120 3121 3122 #line default 3123 #line hidden 3124 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 3125 3126 3127 #line 910 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3128 } 3129 3130 3131 #line default 3132 #line hidden 3133 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 3134 3135 3136 #line 912 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3137 3138 } 3139 3140 3141 #line default 3142 #line hidden 3143 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3144 3145 3146 #line 915 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3147 3148 3149 #line default 3150 #line hidden 3151 3152 #line 915 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3153 if (!string.IsNullOrEmpty(settings.HelpText)) 3154 { 3155 3156 3157 #line default 3158 #line hidden 3159 WriteLiteralTo(__razor_helper_writer, " <small"); 3160 3161 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 3162 3163 WriteLiteralTo(__razor_helper_writer, ">"); 3164 3165 3166 #line 917 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3167 WriteTo(__razor_helper_writer, settings.HelpText); 3168 3169 3170 #line default 3171 #line hidden 3172 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 3173 3174 3175 #line 918 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3176 } 3177 3178 3179 #line default 3180 #line hidden 3181 WriteLiteralTo(__razor_helper_writer, "\r\n <div"); 3182 3183 WriteLiteralTo(__razor_helper_writer, " class=\"form__field-combi file-input u-no-margin dw-mod\""); 3184 3185 WriteLiteralTo(__razor_helper_writer, ">\r\n <input "); 3186 3187 3188 #line 921 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3189 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 3190 3191 3192 #line default 3193 #line hidden 3194 WriteLiteralTo(__razor_helper_writer, " class=\"file-input__real-input\" data-no-files-text=\""); 3195 3196 3197 #line 921 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3198 WriteTo(__razor_helper_writer, settings.NoFilesChosenText); 3199 3200 3201 #line default 3202 #line hidden 3203 WriteLiteralTo(__razor_helper_writer, "\" data-many-files-text=\""); 3204 3205 3206 #line 921 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3207 WriteTo(__razor_helper_writer, Translate("files")); 3208 3209 3210 #line default 3211 #line hidden 3212 WriteLiteralTo(__razor_helper_writer, "\" />\r\n <label"); 3213 3214 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 35098), Tuple.Create("\"", 35116) 3215 3216 #line 922 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3217 , Tuple.Create(Tuple.Create("", 35104), Tuple.Create<System.Object, System.Int32>(settings.Id 3218 3219 #line default 3220 #line hidden 3221 , 35104), false) 3222 ); 3223 3224 WriteLiteralTo(__razor_helper_writer, " class=\"file-input__btn btn--secondary btn dw-mod\""); 3225 3226 WriteLiteralTo(__razor_helper_writer, ">"); 3227 3228 3229 #line 922 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3230 WriteTo(__razor_helper_writer, settings.ChooseFileText); 3231 3232 3233 #line default 3234 #line hidden 3235 WriteLiteralTo(__razor_helper_writer, "</label>\r\n <label"); 3236 3237 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 35220), Tuple.Create("\"", 35238) 3238 3239 #line 923 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3240 , Tuple.Create(Tuple.Create("", 35226), Tuple.Create<System.Object, System.Int32>(settings.Id 3241 3242 #line default 3243 #line hidden 3244 , 35226), false) 3245 ); 3246 3247 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 35239), Tuple.Create("\"", 35309) 3248 3249 #line 923 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3250 , Tuple.Create(Tuple.Create("", 35247), Tuple.Create<System.Object, System.Int32>(settings.CssClass 3251 3252 #line default 3253 #line hidden 3254 , 35247), false) 3255 , Tuple.Create(Tuple.Create(" ", 35265), Tuple.Create("file-input__fake-input", 35266), true) 3256 , Tuple.Create(Tuple.Create(" ", 35288), Tuple.Create("js-fake-input", 35289), true) 3257 , Tuple.Create(Tuple.Create(" ", 35302), Tuple.Create("dw-mod", 35303), true) 3258 ); 3259 3260 WriteLiteralTo(__razor_helper_writer, ">"); 3261 3262 3263 #line 923 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3264 WriteTo(__razor_helper_writer, settings.NoFilesChosenText); 3265 3266 3267 #line default 3268 #line hidden 3269 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 3270 3271 3272 #line 924 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3273 3274 3275 #line default 3276 #line hidden 3277 3278 #line 924 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3279 if (settings.UploadButton != null) 3280 { 3281 settings.UploadButton.CssClass += " btn--condensed u-no-margin"; 3282 3283 3284 #line default 3285 #line hidden 3286 3287 #line 927 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3288 WriteTo(__razor_helper_writer, RenderButton(settings.UploadButton)); 3289 3290 3291 #line default 3292 #line hidden 3293 3294 #line 927 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3295 3296 } 3297 3298 3299 #line default 3300 #line hidden 3301 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 3302 3303 WriteLiteralTo(__razor_helper_writer, " "); 3304 3305 3306 #line 930 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3307 WriteTo(__razor_helper_writer, RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage })); 3308 3309 3310 #line default 3311 #line hidden 3312 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 3313 3314 3315 #line 932 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3316 3317 3318 #line default 3319 #line hidden 3320 }); 3321 3322 #line 932 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3323 } 3324 #line default 3325 #line hidden 3326 3327 3328 #line 941 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3329 public RazorEngine.Templating.TemplateWriter RenderDateTimeField(DateTimeField settings) 3330 { 3331 #line default 3332 #line hidden 3333 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3334 3335 #line 942 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3336 3337 if (string.IsNullOrEmpty(settings.Id)) 3338 { 3339 settings.Id = Guid.NewGuid().ToString("N"); 3340 } 3341 3342 var textField = new TextField { 3343 Name = settings.Name, 3344 Id = settings.Id, 3345 Label = settings.Label, 3346 HelpText = settings.HelpText, 3347 Value = settings.Value, 3348 Disabled = settings.Disabled, 3349 Required = settings.Required, 3350 ErrorMessage = settings.ErrorMessage, 3351 CssClass = settings.CssClass, 3352 WrapperCssClass = settings.WrapperCssClass, 3353 OnChange = settings.OnChange, 3354 OnClick = settings.OnClick, 3355 Link = settings.Link, 3356 ExtraAttributes = settings.ExtraAttributes, 3357 // 3358 Placeholder = settings.Placeholder 3359 }; 3360 3361 3362 3363 #line default 3364 #line hidden 3365 3366 #line 967 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3367 WriteTo(__razor_helper_writer, Render(textField)); 3368 3369 3370 #line default 3371 #line hidden 3372 3373 #line 967 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3374 3375 3376 List<string> jsAttributes = new List<string>(); 3377 3378 jsAttributes.Add("mode: '" + Enum.GetName(typeof(DateTimeFieldMode), settings.Mode).ToLower() + "'"); 3379 3380 if (!string.IsNullOrEmpty(settings.DateFormat)) 3381 { 3382 jsAttributes.Add("dateFormat: '" + settings.DateFormat + "'"); 3383 } 3384 if (!string.IsNullOrEmpty(settings.MinDate)) 3385 { 3386 jsAttributes.Add("minDate: '" + settings.MinDate + "'"); 3387 } 3388 if (!string.IsNullOrEmpty(settings.MaxDate)) 3389 { 3390 jsAttributes.Add("maxDate: '" + settings.MaxDate + "'"); 3391 } 3392 if (settings.IsInline) 3393 { 3394 jsAttributes.Add("inline: " + Converter.ToString(settings.IsInline).ToLower()); 3395 } 3396 if (settings.EnableTime) 3397 { 3398 jsAttributes.Add("enableTime: " + Converter.ToString(settings.EnableTime).ToLower()); 3399 } 3400 if (settings.EnableWeekNumbers) 3401 { 3402 jsAttributes.Add("weekNumbers: " + Converter.ToString(settings.EnableWeekNumbers).ToLower()); 3403 } 3404 3405 jsAttributes.AddRange(settings.GetFlatPickrOptions().Select(x => x.Key + ": " + x.Value)); 3406 3407 3408 3409 #line default 3410 #line hidden 3411 WriteLiteralTo(__razor_helper_writer, " <script>\r\n document.addEventListener(\"DOMContentLoaded\", function () {" + 3412 "\r\n flatpickr(\"#"); 3413 3414 3415 #line 1002 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3416 WriteTo(__razor_helper_writer, textField.Id); 3417 3418 3419 #line default 3420 #line hidden 3421 WriteLiteralTo(__razor_helper_writer, "\", {\r\n"); 3422 3423 WriteLiteralTo(__razor_helper_writer, " "); 3424 3425 3426 #line 1003 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3427 WriteTo(__razor_helper_writer, string.Join(",", jsAttributes)); 3428 3429 3430 #line default 3431 #line hidden 3432 WriteLiteralTo(__razor_helper_writer, "\r\n });\r\n });\r\n </script>\r\n"); 3433 3434 3435 #line 1007 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3436 3437 3438 #line default 3439 #line hidden 3440 }); 3441 3442 #line 1007 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3443 } 3444 #line default 3445 #line hidden 3446 3447 3448 #line 1014 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3449 public RazorEngine.Templating.TemplateWriter RenderTextField(TextField settings) 3450 { 3451 #line default 3452 #line hidden 3453 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3454 3455 #line 1015 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3456 3457 var attributes = new Dictionary<string, string>(); 3458 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 3459 { 3460 settings.Id = Guid.NewGuid().ToString("N"); 3461 } 3462 3463 /*base settings*/ 3464 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 3465 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 3466 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 3467 if (settings.Disabled) { attributes.Add("disabled", "true"); } 3468 if (settings.Required) { attributes.Add("required", "true"); } 3469 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 3470 /*end*/ 3471 3472 if (!string.IsNullOrEmpty(settings.OnKeyUp)) { attributes.Add("onkeyup", settings.OnKeyUp); } 3473 if (!string.IsNullOrEmpty(settings.OnInput)) { attributes.Add("oninput", settings.OnInput); } 3474 if (!string.IsNullOrEmpty(settings.OnFocus)) { attributes.Add("onfocus", settings.OnFocus); } 3475 if (settings.ReadOnly) { attributes.Add("readonly", "true"); } 3476 if (settings.MaxLength != 0) { attributes.Add("maxlength", settings.MaxLength.ToString()); } 3477 if (!string.IsNullOrEmpty(settings.Placeholder)) { attributes.Add("placeholder", settings.Placeholder); } 3478 attributes.Add("type", Enum.GetName(typeof(TextFieldType), settings.Type).ToLower()); 3479 if (settings.Type == TextFieldType.Password) { attributes.Add("autocomplete", "off"); }; 3480 if (settings.Value != null) { attributes.Add("value", settings.Value); } 3481 3482 settings.CssClass = "u-full-width " + settings.CssClass; 3483 3484 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 3485 3486 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 3487 3488 string noMargin = "u-no-margin"; 3489 if (!settings.ReadOnly) { 3490 noMargin = ""; 3491 } 3492 3493 3494 3495 #line default 3496 #line hidden 3497 WriteLiteralTo(__razor_helper_writer, " <div"); 3498 3499 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 40279), Tuple.Create("\"", 40360) 3500 , Tuple.Create(Tuple.Create("", 40287), Tuple.Create("form__field-group", 40287), true) 3501 , Tuple.Create(Tuple.Create(" ", 40304), Tuple.Create("u-full-width", 40305), true) 3502 3503 #line 1052 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3504 , Tuple.Create(Tuple.Create(" ", 40317), Tuple.Create<System.Object, System.Int32>(noMargin 3505 3506 #line default 3507 #line hidden 3508 , 40318), false) 3509 3510 #line 1052 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3511 , Tuple.Create(Tuple.Create(" ", 40327), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 3512 3513 #line default 3514 #line hidden 3515 , 40328), false) 3516 , Tuple.Create(Tuple.Create(" ", 40353), Tuple.Create("dw-mod", 40354), true) 3517 ); 3518 3519 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3520 3521 3522 #line 1053 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3523 3524 3525 #line default 3526 #line hidden 3527 3528 #line 1053 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3529 if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 3530 { 3531 3532 3533 #line default 3534 #line hidden 3535 WriteLiteralTo(__razor_helper_writer, " <div"); 3536 3537 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width\""); 3538 3539 WriteLiteralTo(__razor_helper_writer, "> \r\n"); 3540 3541 3542 #line 1056 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3543 3544 3545 #line default 3546 #line hidden 3547 3548 #line 1056 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3549 if (!string.IsNullOrEmpty(settings.Label)) { 3550 3551 #line default 3552 #line hidden 3553 WriteLiteralTo(__razor_helper_writer, " <label"); 3554 3555 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 40563), Tuple.Create("\"", 40581) 3556 3557 #line 1056 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3558 , Tuple.Create(Tuple.Create("", 40569), Tuple.Create<System.Object, System.Int32>(settings.Id 3559 3560 #line default 3561 #line hidden 3562 , 40569), false) 3563 ); 3564 3565 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\""); 3566 3567 WriteLiteralTo(__razor_helper_writer, ">"); 3568 3569 3570 #line 1056 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3571 WriteTo(__razor_helper_writer, settings.Label); 3572 3573 3574 #line default 3575 #line hidden 3576 WriteLiteralTo(__razor_helper_writer, "</label> "); 3577 3578 3579 #line 1056 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3580 } 3581 3582 3583 #line default 3584 #line hidden 3585 WriteLiteralTo(__razor_helper_writer, " "); 3586 3587 3588 #line 1057 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3589 if (settings.Link != null) { 3590 settings.Link.ButtonLayout = ButtonLayout.LinkClean; 3591 3592 3593 3594 #line default 3595 #line hidden 3596 WriteLiteralTo(__razor_helper_writer, " <div"); 3597 3598 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right\""); 3599 3600 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3601 3602 WriteLiteralTo(__razor_helper_writer, " "); 3603 3604 3605 #line 1061 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3606 WriteTo(__razor_helper_writer, Render(settings.Link)); 3607 3608 3609 #line default 3610 #line hidden 3611 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 3612 3613 3614 #line 1063 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3615 } 3616 3617 3618 #line default 3619 #line hidden 3620 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 3621 3622 3623 #line 1065 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3624 3625 } 3626 3627 3628 #line default 3629 #line hidden 3630 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3631 3632 3633 #line 1068 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3634 3635 3636 #line default 3637 #line hidden 3638 3639 #line 1068 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3640 if (!string.IsNullOrEmpty(settings.HelpText)) 3641 { 3642 3643 3644 #line default 3645 #line hidden 3646 WriteLiteralTo(__razor_helper_writer, " <small"); 3647 3648 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 3649 3650 WriteLiteralTo(__razor_helper_writer, ">"); 3651 3652 3653 #line 1070 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3654 WriteTo(__razor_helper_writer, settings.HelpText); 3655 3656 3657 #line default 3658 #line hidden 3659 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 3660 3661 3662 #line 1071 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3663 } 3664 3665 3666 #line default 3667 #line hidden 3668 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3669 3670 3671 #line 1073 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3672 3673 3674 #line default 3675 #line hidden 3676 3677 #line 1073 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3678 if (settings.ActionButton != null) 3679 { 3680 settings.ActionButton.CssClass += " btn--condensed u-no-margin"; 3681 3682 3683 #line default 3684 #line hidden 3685 WriteLiteralTo(__razor_helper_writer, " <div"); 3686 3687 WriteLiteralTo(__razor_helper_writer, " class=\"form__field-combi u-no-margin dw-mod\""); 3688 3689 WriteLiteralTo(__razor_helper_writer, ">\r\n <input "); 3690 3691 3692 #line 1077 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3693 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 3694 3695 3696 #line default 3697 #line hidden 3698 WriteLiteralTo(__razor_helper_writer, " class=\""); 3699 3700 3701 #line 1077 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3702 WriteTo(__razor_helper_writer, settings.CssClass); 3703 3704 3705 #line default 3706 #line hidden 3707 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n"); 3708 3709 WriteLiteralTo(__razor_helper_writer, " "); 3710 3711 3712 #line 1078 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3713 WriteTo(__razor_helper_writer, Render(settings.ActionButton)); 3714 3715 3716 #line default 3717 #line hidden 3718 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 3719 3720 3721 #line 1080 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3722 } 3723 else 3724 { 3725 3726 3727 #line default 3728 #line hidden 3729 WriteLiteralTo(__razor_helper_writer, " <input "); 3730 3731 3732 #line 1083 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3733 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 3734 3735 3736 #line default 3737 #line hidden 3738 WriteLiteralTo(__razor_helper_writer, " class=\""); 3739 3740 3741 #line 1083 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3742 WriteTo(__razor_helper_writer, settings.CssClass); 3743 3744 3745 #line default 3746 #line hidden 3747 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n"); 3748 3749 3750 #line 1084 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3751 } 3752 3753 3754 #line default 3755 #line hidden 3756 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3757 3758 WriteLiteralTo(__razor_helper_writer, " "); 3759 3760 3761 #line 1086 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3762 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage })); 3763 3764 3765 #line default 3766 #line hidden 3767 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 3768 3769 3770 #line 1088 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3771 3772 3773 #line default 3774 #line hidden 3775 }); 3776 3777 #line 1088 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3778 } 3779 #line default 3780 #line hidden 3781 3782 3783 #line 1095 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3784 public RazorEngine.Templating.TemplateWriter RenderNumberField(NumberField settings) 3785 { 3786 #line default 3787 #line hidden 3788 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 3789 3790 #line 1096 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3791 3792 var attributes = new Dictionary<string, string>(); 3793 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 3794 { 3795 settings.Id = Guid.NewGuid().ToString("N"); 3796 } 3797 3798 /*base settings*/ 3799 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 3800 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 3801 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 3802 if (settings.Disabled) { attributes.Add("disabled", "true"); } 3803 if (settings.Required) { attributes.Add("required", "true"); } 3804 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 3805 /*end*/ 3806 3807 if (!string.IsNullOrEmpty(settings.OnKeyUp)) { attributes.Add("onkeyup", settings.OnKeyUp); } 3808 if (!string.IsNullOrEmpty(settings.OnInput)) { attributes.Add("oninput", settings.OnInput); } 3809 if (!string.IsNullOrEmpty(settings.OnFocus)) { attributes.Add("onfocus", settings.OnFocus); } 3810 if (settings.ReadOnly) { attributes.Add("readonly", "true"); } 3811 if (settings.Max != null) { attributes.Add("max", settings.Max.ToString()); } 3812 if (settings.Min != null) { attributes.Add("min", settings.Min.ToString()); } 3813 if (settings.Step != 0) { attributes.Add("step", settings.Step.ToString()); } 3814 if (settings.Value != null && !string.IsNullOrEmpty(settings.Value.ToString())) { attributes.Add("value", settings.Value.ToString()); } 3815 attributes.Add("type", "number"); 3816 3817 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 3818 3819 3820 3821 #line default 3822 #line hidden 3823 WriteLiteralTo(__razor_helper_writer, " <div"); 3824 3825 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 43623), Tuple.Create("\"", 43694) 3826 , Tuple.Create(Tuple.Create("", 43631), Tuple.Create("form__field-group", 43631), true) 3827 , Tuple.Create(Tuple.Create(" ", 43648), Tuple.Create("u-full-width", 43649), true) 3828 3829 #line 1124 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3830 , Tuple.Create(Tuple.Create(" ", 43661), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 3831 3832 #line default 3833 #line hidden 3834 , 43662), false) 3835 , Tuple.Create(Tuple.Create(" ", 43687), Tuple.Create("dw-mod", 43688), true) 3836 ); 3837 3838 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3839 3840 3841 #line 1125 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3842 3843 3844 #line default 3845 #line hidden 3846 3847 #line 1125 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3848 if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 3849 { 3850 3851 3852 #line default 3853 #line hidden 3854 WriteLiteralTo(__razor_helper_writer, " <div"); 3855 3856 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width\""); 3857 3858 WriteLiteralTo(__razor_helper_writer, "> \r\n"); 3859 3860 3861 #line 1128 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3862 3863 3864 #line default 3865 #line hidden 3866 3867 #line 1128 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3868 if (!string.IsNullOrEmpty(settings.Label)) { 3869 3870 #line default 3871 #line hidden 3872 WriteLiteralTo(__razor_helper_writer, " <label"); 3873 3874 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 43897), Tuple.Create("\"", 43915) 3875 3876 #line 1128 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3877 , Tuple.Create(Tuple.Create("", 43903), Tuple.Create<System.Object, System.Int32>(settings.Id 3878 3879 #line default 3880 #line hidden 3881 , 43903), false) 3882 ); 3883 3884 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\""); 3885 3886 WriteLiteralTo(__razor_helper_writer, ">"); 3887 3888 3889 #line 1128 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3890 WriteTo(__razor_helper_writer, settings.Label); 3891 3892 3893 #line default 3894 #line hidden 3895 WriteLiteralTo(__razor_helper_writer, "</label> "); 3896 3897 3898 #line 1128 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3899 } 3900 3901 3902 #line default 3903 #line hidden 3904 WriteLiteralTo(__razor_helper_writer, " "); 3905 3906 3907 #line 1129 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3908 if (settings.Link != null) { 3909 3910 3911 #line default 3912 #line hidden 3913 WriteLiteralTo(__razor_helper_writer, " <div"); 3914 3915 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right\""); 3916 3917 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 3918 3919 3920 #line 1131 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3921 3922 3923 #line default 3924 #line hidden 3925 3926 #line 1131 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3927 settings.Link.ButtonLayout = ButtonLayout.LinkClean; 3928 3929 #line default 3930 #line hidden 3931 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3932 3933 WriteLiteralTo(__razor_helper_writer, " "); 3934 3935 3936 #line 1132 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3937 WriteTo(__razor_helper_writer, RenderLink(settings.Link)); 3938 3939 3940 #line default 3941 #line hidden 3942 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 3943 3944 3945 #line 1134 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3946 } 3947 3948 3949 #line default 3950 #line hidden 3951 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 3952 3953 3954 #line 1136 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3955 3956 } 3957 3958 3959 #line default 3960 #line hidden 3961 WriteLiteralTo(__razor_helper_writer, "\r\n"); 3962 3963 3964 #line 1139 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3965 3966 3967 #line default 3968 #line hidden 3969 3970 #line 1139 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3971 if (!string.IsNullOrEmpty(settings.HelpText)) 3972 { 3973 3974 3975 #line default 3976 #line hidden 3977 WriteLiteralTo(__razor_helper_writer, " <small"); 3978 3979 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 3980 3981 WriteLiteralTo(__razor_helper_writer, ">"); 3982 3983 3984 #line 1141 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3985 WriteTo(__razor_helper_writer, settings.HelpText); 3986 3987 3988 #line default 3989 #line hidden 3990 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 3991 3992 3993 #line 1142 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 3994 } 3995 3996 3997 #line default 3998 #line hidden 3999 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4000 4001 4002 #line 1144 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4003 4004 4005 #line default 4006 #line hidden 4007 4008 #line 1144 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4009 if (settings.ActionButton != null) 4010 { 4011 settings.ActionButton.CssClass += " btn--condensed u-no-margin"; 4012 4013 4014 #line default 4015 #line hidden 4016 WriteLiteralTo(__razor_helper_writer, " <div"); 4017 4018 WriteLiteralTo(__razor_helper_writer, " class=\"form__field-combi u-no-margin dw-mod\""); 4019 4020 WriteLiteralTo(__razor_helper_writer, ">\r\n <input "); 4021 4022 4023 #line 1148 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4024 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 4025 4026 4027 #line default 4028 #line hidden 4029 WriteLiteralTo(__razor_helper_writer, " class=\""); 4030 4031 4032 #line 1148 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4033 WriteTo(__razor_helper_writer, settings.CssClass); 4034 4035 4036 #line default 4037 #line hidden 4038 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n"); 4039 4040 WriteLiteralTo(__razor_helper_writer, " "); 4041 4042 4043 #line 1149 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4044 WriteTo(__razor_helper_writer, RenderButton(settings.ActionButton)); 4045 4046 4047 #line default 4048 #line hidden 4049 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 4050 4051 4052 #line 1151 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4053 } 4054 else 4055 { 4056 4057 4058 #line default 4059 #line hidden 4060 WriteLiteralTo(__razor_helper_writer, " <div"); 4061 4062 WriteLiteralTo(__razor_helper_writer, " class=\"form__field-combi u-no-margin dw-mod\""); 4063 4064 WriteLiteralTo(__razor_helper_writer, ">\r\n <input "); 4065 4066 4067 #line 1155 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4068 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 4069 4070 4071 #line default 4072 #line hidden 4073 WriteLiteralTo(__razor_helper_writer, " class=\""); 4074 4075 4076 #line 1155 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4077 WriteTo(__razor_helper_writer, settings.CssClass); 4078 4079 4080 #line default 4081 #line hidden 4082 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n </div>\r\n"); 4083 4084 4085 #line 1157 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4086 } 4087 4088 4089 #line default 4090 #line hidden 4091 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4092 4093 WriteLiteralTo(__razor_helper_writer, " "); 4094 4095 4096 #line 1159 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4097 WriteTo(__razor_helper_writer, RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage })); 4098 4099 4100 #line default 4101 #line hidden 4102 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 4103 4104 4105 #line 1161 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4106 4107 4108 #line default 4109 #line hidden 4110 }); 4111 4112 #line 1161 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4113 } 4114 #line default 4115 #line hidden 4116 4117 4118 #line 1169 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4119 public RazorEngine.Templating.TemplateWriter RenderTextareaField(TextareaField settings) 4120 { 4121 #line default 4122 #line hidden 4123 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4124 4125 #line 1170 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4126 4127 Dictionary<string, string> attributes = new Dictionary<string, string>(); 4128 string id = settings.Id; 4129 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(id)) 4130 { 4131 id = Guid.NewGuid().ToString("N"); 4132 } 4133 4134 if (!string.IsNullOrEmpty(id)) { attributes.Add("id", id); } 4135 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 4136 if (!string.IsNullOrEmpty(settings.OnKeyUp)) { attributes.Add("onkeyup", settings.OnKeyUp); } 4137 if (!string.IsNullOrEmpty(settings.OnInput)) { attributes.Add("oninput", settings.OnInput); } 4138 if (!string.IsNullOrEmpty(settings.OnFocus)) { attributes.Add("onfocus", settings.OnFocus); } 4139 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 4140 if (!string.IsNullOrEmpty(settings.Placeholder)) { attributes.Add("placeholder", settings.Placeholder); } 4141 if (settings.Disabled) { attributes.Add("disabled", "true"); } 4142 if (settings.Required) { attributes.Add("required", "true"); } 4143 if (settings.ReadOnly) { attributes.Add("readonly", "true"); } 4144 if (settings.MaxLength != 0) { attributes.Add("maxlength", settings.MaxLength.ToString()); } 4145 if (settings.Rows != 0) { attributes.Add("rows", settings.Rows.ToString()); } 4146 attributes.Add("name", settings.Name); 4147 4148 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 4149 4150 4151 4152 #line default 4153 #line hidden 4154 WriteLiteralTo(__razor_helper_writer, " <div"); 4155 4156 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 46887), Tuple.Create("\"", 46945) 4157 , Tuple.Create(Tuple.Create("", 46895), Tuple.Create("form__field-group", 46895), true) 4158 4159 #line 1194 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4160 , Tuple.Create(Tuple.Create(" ", 46912), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 4161 4162 #line default 4163 #line hidden 4164 , 46913), false) 4165 , Tuple.Create(Tuple.Create(" ", 46938), Tuple.Create("dw-mod", 46939), true) 4166 ); 4167 4168 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4169 4170 4171 #line 1195 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4172 4173 4174 #line default 4175 #line hidden 4176 4177 #line 1195 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4178 if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 4179 { 4180 4181 4182 #line default 4183 #line hidden 4184 WriteLiteralTo(__razor_helper_writer, " <div"); 4185 4186 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width\""); 4187 4188 WriteLiteralTo(__razor_helper_writer, "> \r\n"); 4189 4190 4191 #line 1198 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4192 4193 4194 #line default 4195 #line hidden 4196 4197 #line 1198 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4198 if (!string.IsNullOrEmpty(settings.Label)) { 4199 4200 #line default 4201 #line hidden 4202 WriteLiteralTo(__razor_helper_writer, " <label"); 4203 4204 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 47148), Tuple.Create("\"", 47166) 4205 4206 #line 1198 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4207 , Tuple.Create(Tuple.Create("", 47154), Tuple.Create<System.Object, System.Int32>(settings.Id 4208 4209 #line default 4210 #line hidden 4211 , 47154), false) 4212 ); 4213 4214 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\""); 4215 4216 WriteLiteralTo(__razor_helper_writer, ">"); 4217 4218 4219 #line 1198 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4220 WriteTo(__razor_helper_writer, settings.Label); 4221 4222 4223 #line default 4224 #line hidden 4225 WriteLiteralTo(__razor_helper_writer, "</label> "); 4226 4227 4228 #line 1198 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4229 } 4230 4231 4232 #line default 4233 #line hidden 4234 WriteLiteralTo(__razor_helper_writer, " "); 4235 4236 4237 #line 1199 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4238 if (settings.Link != null) { 4239 4240 4241 #line default 4242 #line hidden 4243 WriteLiteralTo(__razor_helper_writer, " <div"); 4244 4245 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right\""); 4246 4247 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4248 4249 4250 #line 1201 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4251 4252 4253 #line default 4254 #line hidden 4255 4256 #line 1201 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4257 settings.Link.ButtonLayout = ButtonLayout.LinkClean; 4258 4259 #line default 4260 #line hidden 4261 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4262 4263 WriteLiteralTo(__razor_helper_writer, " "); 4264 4265 4266 #line 1202 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4267 WriteTo(__razor_helper_writer, Render(settings.Link)); 4268 4269 4270 #line default 4271 #line hidden 4272 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 4273 4274 4275 #line 1204 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4276 } 4277 4278 4279 #line default 4280 #line hidden 4281 WriteLiteralTo(__razor_helper_writer, " </div> \r\n"); 4282 4283 4284 #line 1206 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4285 } 4286 4287 4288 #line default 4289 #line hidden 4290 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4291 4292 4293 #line 1208 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4294 4295 4296 #line default 4297 #line hidden 4298 4299 #line 1208 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4300 if (!string.IsNullOrEmpty(settings.HelpText)) 4301 { 4302 4303 4304 #line default 4305 #line hidden 4306 WriteLiteralTo(__razor_helper_writer, " <small"); 4307 4308 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 4309 4310 WriteLiteralTo(__razor_helper_writer, ">"); 4311 4312 4313 #line 1210 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4314 WriteTo(__razor_helper_writer, settings.HelpText); 4315 4316 4317 #line default 4318 #line hidden 4319 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 4320 4321 4322 #line 1211 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4323 } 4324 4325 4326 #line default 4327 #line hidden 4328 WriteLiteralTo(__razor_helper_writer, "\r\n <textarea"); 4329 4330 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 47692), Tuple.Create("\"", 47738) 4331 , Tuple.Create(Tuple.Create("", 47700), Tuple.Create("u-full-width", 47700), true) 4332 4333 #line 1213 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4334 , Tuple.Create(Tuple.Create(" ", 47712), Tuple.Create<System.Object, System.Int32>(settings.CssClass 4335 4336 #line default 4337 #line hidden 4338 , 47713), false) 4339 , Tuple.Create(Tuple.Create(" ", 47731), Tuple.Create("dw-mod", 47732), true) 4340 ); 4341 4342 WriteLiteralTo(__razor_helper_writer, " "); 4343 4344 4345 #line 1213 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4346 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes)); 4347 4348 4349 #line default 4350 #line hidden 4351 WriteLiteralTo(__razor_helper_writer, " "); 4352 4353 4354 #line 1213 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4355 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 4356 4357 4358 #line default 4359 #line hidden 4360 WriteLiteralTo(__razor_helper_writer, ">"); 4361 4362 4363 #line 1213 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4364 WriteTo(__razor_helper_writer, settings.Value); 4365 4366 4367 #line default 4368 #line hidden 4369 WriteLiteralTo(__razor_helper_writer, "</textarea>\r\n\r\n"); 4370 4371 WriteLiteralTo(__razor_helper_writer, " "); 4372 4373 4374 #line 1215 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4375 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage })); 4376 4377 4378 #line default 4379 #line hidden 4380 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 4381 4382 4383 #line 1217 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4384 4385 4386 #line default 4387 #line hidden 4388 }); 4389 4390 #line 1217 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4391 } 4392 #line default 4393 #line hidden 4394 4395 4396 #line 1225 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4397 public RazorEngine.Templating.TemplateWriter RenderHiddenField(HiddenField settings) { 4398 #line default 4399 #line hidden 4400 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4401 4402 #line 1225 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4403 4404 var attributes = new Dictionary<string, string>(); 4405 attributes.Add("type", "hidden"); 4406 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 4407 if (settings.Value != null) { attributes.Add("value", settings.Value); } 4408 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 4409 4410 4411 4412 #line default 4413 #line hidden 4414 WriteLiteralTo(__razor_helper_writer, " <input "); 4415 4416 4417 #line 1232 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4418 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes)); 4419 4420 4421 #line default 4422 #line hidden 4423 WriteLiteralTo(__razor_helper_writer, " "); 4424 4425 4426 #line 1232 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4427 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 4428 4429 4430 #line default 4431 #line hidden 4432 WriteLiteralTo(__razor_helper_writer, "/>\r\n"); 4433 4434 4435 #line 1233 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4436 4437 4438 #line default 4439 #line hidden 4440 }); 4441 4442 #line 1233 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4443 } 4444 #line default 4445 #line hidden 4446 4447 4448 #line 1240 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4449 public RazorEngine.Templating.TemplateWriter RenderCheckboxField(CheckboxField settings) 4450 { 4451 #line default 4452 #line hidden 4453 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4454 4455 #line 1241 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4456 4457 var attributes = new Dictionary<string, string>(); 4458 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 4459 { 4460 settings.Id = Guid.NewGuid().ToString("N"); 4461 } 4462 4463 /*base settings*/ 4464 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 4465 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 4466 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 4467 if (settings.Disabled) { attributes.Add("disabled", "true"); } 4468 if (settings.Required) { attributes.Add("required", "true"); } 4469 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 4470 /*end*/ 4471 4472 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 4473 4474 attributes.Add("type", "checkbox"); 4475 if (settings.Checked) { attributes.Add("checked", "true"); } 4476 settings.CssClass = "form__control " + settings.CssClass; 4477 if (settings.Value != null) { attributes.Add("value", settings.Value); } 4478 4479 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 4480 4481 4482 4483 #line default 4484 #line hidden 4485 WriteLiteralTo(__razor_helper_writer, " <div"); 4486 4487 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 50134), Tuple.Create("\"", 50192) 4488 , Tuple.Create(Tuple.Create("", 50142), Tuple.Create("form__field-group", 50142), true) 4489 4490 #line 1266 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4491 , Tuple.Create(Tuple.Create(" ", 50159), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 4492 4493 #line default 4494 #line hidden 4495 , 50160), false) 4496 , Tuple.Create(Tuple.Create(" ", 50185), Tuple.Create("dw-mod", 50186), true) 4497 ); 4498 4499 WriteLiteralTo(__razor_helper_writer, ">\r\n <input "); 4500 4501 4502 #line 1267 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4503 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 4504 4505 4506 #line default 4507 #line hidden 4508 WriteLiteralTo(__razor_helper_writer, " class=\""); 4509 4510 4511 #line 1267 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4512 WriteTo(__razor_helper_writer, settings.CssClass); 4513 4514 4515 #line default 4516 #line hidden 4517 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n"); 4518 4519 4520 #line 1268 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4521 4522 4523 #line default 4524 #line hidden 4525 4526 #line 1268 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4527 if (!string.IsNullOrEmpty(settings.Label)) 4528 { 4529 4530 4531 #line default 4532 #line hidden 4533 WriteLiteralTo(__razor_helper_writer, " <label"); 4534 4535 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 50381), Tuple.Create("\"", 50399) 4536 4537 #line 1270 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4538 , Tuple.Create(Tuple.Create("", 50387), Tuple.Create<System.Object, System.Int32>(settings.Id 4539 4540 #line default 4541 #line hidden 4542 , 50387), false) 4543 ); 4544 4545 WriteLiteralTo(__razor_helper_writer, " class=\"dw-mod\""); 4546 4547 WriteLiteralTo(__razor_helper_writer, ">"); 4548 4549 4550 #line 1270 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4551 WriteTo(__razor_helper_writer, settings.Label); 4552 4553 4554 #line default 4555 #line hidden 4556 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 4557 4558 4559 #line 1271 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4560 } 4561 4562 4563 #line default 4564 #line hidden 4565 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4566 4567 4568 #line 1273 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4569 4570 4571 #line default 4572 #line hidden 4573 4574 #line 1273 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4575 if (settings.Link != null) { 4576 4577 4578 #line default 4579 #line hidden 4580 WriteLiteralTo(__razor_helper_writer, " <span>\r\n"); 4581 4582 4583 #line 1275 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4584 4585 4586 #line default 4587 #line hidden 4588 4589 #line 1275 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4590 settings.Link.ButtonLayout = ButtonLayout.LinkClean; 4591 4592 #line default 4593 #line hidden 4594 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4595 4596 WriteLiteralTo(__razor_helper_writer, " "); 4597 4598 4599 #line 1276 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4600 WriteTo(__razor_helper_writer, RenderLink(settings.Link)); 4601 4602 4603 #line default 4604 #line hidden 4605 WriteLiteralTo(__razor_helper_writer, "\r\n </span>\r\n"); 4606 4607 4608 #line 1278 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4609 } 4610 4611 4612 #line default 4613 #line hidden 4614 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4615 4616 4617 #line 1280 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4618 4619 4620 #line default 4621 #line hidden 4622 4623 #line 1280 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4624 if (!string.IsNullOrEmpty(settings.HelpText)) 4625 { 4626 4627 4628 #line default 4629 #line hidden 4630 WriteLiteralTo(__razor_helper_writer, " <small"); 4631 4632 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text checkbox-help dw-mod\""); 4633 4634 WriteLiteralTo(__razor_helper_writer, ">"); 4635 4636 4637 #line 1282 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4638 WriteTo(__razor_helper_writer, settings.HelpText); 4639 4640 4641 #line default 4642 #line hidden 4643 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 4644 4645 4646 #line 1283 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4647 } 4648 4649 4650 #line default 4651 #line hidden 4652 WriteLiteralTo(__razor_helper_writer, " "); 4653 4654 4655 #line 1284 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4656 WriteTo(__razor_helper_writer, RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage })); 4657 4658 4659 #line default 4660 #line hidden 4661 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 4662 4663 4664 #line 1286 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4665 4666 4667 #line default 4668 #line hidden 4669 }); 4670 4671 #line 1286 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4672 } 4673 #line default 4674 #line hidden 4675 4676 4677 #line 1294 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4678 public RazorEngine.Templating.TemplateWriter RenderCheckboxListField(CheckboxListField settings) 4679 { 4680 #line default 4681 #line hidden 4682 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4683 4684 #line 1295 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4685 4686 4687 4688 #line default 4689 #line hidden 4690 WriteLiteralTo(__razor_helper_writer, " <div"); 4691 4692 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 51165), Tuple.Create("\"", 51239) 4693 , Tuple.Create(Tuple.Create("", 51173), Tuple.Create("form__field-group", 51173), true) 4694 4695 #line 1296 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4696 , Tuple.Create(Tuple.Create(" ", 51190), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 4697 4698 #line default 4699 #line hidden 4700 , 51191), false) 4701 , Tuple.Create(Tuple.Create(" ", 51216), Tuple.Create("u-margin-bottom", 51217), true) 4702 , Tuple.Create(Tuple.Create(" ", 51232), Tuple.Create("dw-mod", 51233), true) 4703 ); 4704 4705 WriteLiteralTo(__razor_helper_writer, " "); 4706 4707 4708 #line 1296 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4709 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 4710 4711 4712 #line default 4713 #line hidden 4714 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4715 4716 4717 #line 1297 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4718 4719 4720 #line default 4721 #line hidden 4722 4723 #line 1297 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4724 if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 4725 { 4726 4727 4728 #line default 4729 #line hidden 4730 WriteLiteralTo(__razor_helper_writer, " <div"); 4731 4732 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width\""); 4733 4734 WriteLiteralTo(__razor_helper_writer, "> \r\n"); 4735 4736 4737 #line 1300 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4738 4739 4740 #line default 4741 #line hidden 4742 4743 #line 1300 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4744 if (!string.IsNullOrEmpty(settings.Label)) { 4745 4746 #line default 4747 #line hidden 4748 WriteLiteralTo(__razor_helper_writer, " <label"); 4749 4750 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 51500), Tuple.Create("\"", 51518) 4751 4752 #line 1300 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4753 , Tuple.Create(Tuple.Create("", 51506), Tuple.Create<System.Object, System.Int32>(settings.Id 4754 4755 #line default 4756 #line hidden 4757 , 51506), false) 4758 ); 4759 4760 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\""); 4761 4762 WriteLiteralTo(__razor_helper_writer, ">"); 4763 4764 4765 #line 1300 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4766 WriteTo(__razor_helper_writer, settings.Label); 4767 4768 4769 #line default 4770 #line hidden 4771 WriteLiteralTo(__razor_helper_writer, "</label> "); 4772 4773 4774 #line 1300 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4775 } 4776 4777 4778 #line default 4779 #line hidden 4780 WriteLiteralTo(__razor_helper_writer, " "); 4781 4782 4783 #line 1301 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4784 if (settings.Link != null) { 4785 4786 4787 #line default 4788 #line hidden 4789 WriteLiteralTo(__razor_helper_writer, " <div"); 4790 4791 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right\""); 4792 4793 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4794 4795 4796 #line 1303 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4797 4798 4799 #line default 4800 #line hidden 4801 4802 #line 1303 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4803 settings.Link.ButtonLayout = ButtonLayout.LinkClean; 4804 4805 #line default 4806 #line hidden 4807 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4808 4809 WriteLiteralTo(__razor_helper_writer, " "); 4810 4811 4812 #line 1304 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4813 WriteTo(__razor_helper_writer, RenderLink(settings.Link)); 4814 4815 4816 #line default 4817 #line hidden 4818 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 4819 4820 4821 #line 1306 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4822 } 4823 4824 4825 #line default 4826 #line hidden 4827 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 4828 4829 4830 #line 1308 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4831 4832 } 4833 4834 4835 #line default 4836 #line hidden 4837 WriteLiteralTo(__razor_helper_writer, "\r\n <div"); 4838 4839 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\""); 4840 4841 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 4842 4843 4844 #line 1312 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4845 4846 4847 #line default 4848 #line hidden 4849 4850 #line 1312 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4851 if (!string.IsNullOrEmpty(settings.HelpText)) 4852 { 4853 4854 4855 #line default 4856 #line hidden 4857 WriteLiteralTo(__razor_helper_writer, " <small"); 4858 4859 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 4860 4861 WriteLiteralTo(__razor_helper_writer, ">"); 4862 4863 4864 #line 1314 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4865 WriteTo(__razor_helper_writer, settings.HelpText); 4866 4867 4868 #line default 4869 #line hidden 4870 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 4871 4872 4873 #line 1315 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4874 } 4875 4876 4877 #line default 4878 #line hidden 4879 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4880 4881 4882 #line 1317 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4883 4884 4885 #line default 4886 #line hidden 4887 4888 #line 1317 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4889 foreach (var item in settings.Options) 4890 { 4891 if (settings.Required) 4892 { 4893 item.Required = true; 4894 } 4895 if (settings.Disabled) 4896 { 4897 item.Disabled = true; 4898 } 4899 if (!string.IsNullOrEmpty(settings.Name)) 4900 { 4901 item.Name = settings.Name; 4902 } 4903 if (!string.IsNullOrEmpty(settings.CssClass)) 4904 { 4905 item.CssClass += settings.CssClass; 4906 } 4907 4908 /* value is not supported */ 4909 4910 if (!string.IsNullOrEmpty(settings.OnClick)) 4911 { 4912 item.OnClick += settings.OnClick; 4913 } 4914 if (!string.IsNullOrEmpty(settings.OnChange)) 4915 { 4916 item.OnChange += settings.OnChange; 4917 } 4918 4919 4920 #line default 4921 #line hidden 4922 4923 #line 1346 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4924 WriteTo(__razor_helper_writer, Render(item)); 4925 4926 4927 #line default 4928 #line hidden 4929 4930 #line 1346 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4931 4932 } 4933 4934 4935 #line default 4936 #line hidden 4937 WriteLiteralTo(__razor_helper_writer, "\r\n"); 4938 4939 WriteLiteralTo(__razor_helper_writer, " "); 4940 4941 4942 #line 1349 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4943 WriteTo(__razor_helper_writer, RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage })); 4944 4945 4946 #line default 4947 #line hidden 4948 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n \r\n </div>\r\n"); 4949 4950 4951 #line 1353 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4952 4953 4954 #line default 4955 #line hidden 4956 }); 4957 4958 #line 1353 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4959 } 4960 #line default 4961 #line hidden 4962 4963 4964 #line 1358 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4965 public RazorEngine.Templating.TemplateWriter RenderSearch(Search settings) 4966 { 4967 #line default 4968 #line hidden 4969 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 4970 4971 #line 1359 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 4972 4973 var searchValue = HttpContext.Current.Request.QueryString.Get(settings.SearchParameter) ?? ""; 4974 var groupValue = HttpContext.Current.Request.QueryString.Get(settings.GroupsParameter) ?? ""; 4975 4976 if (string.IsNullOrEmpty(settings.Id)) 4977 { 4978 settings.Id = Guid.NewGuid().ToString("N"); 4979 } 4980 4981 var resultAttributes = new Dictionary<string, string>(); 4982 4983 if (settings.PageSize != 0) 4984 { 4985 resultAttributes.Add("data-page-size", settings.PageSize.ToString()); 4986 } 4987 if (!string.IsNullOrEmpty(settings.GroupItemsFeedUrl)) 4988 { 4989 resultAttributes.Add("data-groups-feed-url", settings.GroupItemsFeedUrl); 4990 if (!string.IsNullOrEmpty(groupValue)) 4991 { 4992 resultAttributes.Add("data-selected-group", groupValue); 4993 } 4994 if (!string.IsNullOrEmpty(settings.GroupsParameter)) 4995 { 4996 resultAttributes.Add("data-groups-parameter", settings.GroupsParameter); 4997 } 4998 } 4999 resultAttributes.Add("data-force-init", "true"); 5000 if (settings.GoToFirstSearchResultOnEnter) 5001 { 5002 resultAttributes.Add("data-go-to-first-search-result-on-enter", settings.GoToFirstSearchResultOnEnter.ToString().ToLower()); 5003 } 5004 if (!string.IsNullOrEmpty(settings.SearchParameter)) 5005 { 5006 resultAttributes.Add("data-search-parameter", settings.SearchParameter); 5007 } 5008 resultAttributes.Add("data-search-feed-url", settings.SearchData.SearchFeedUrl); 5009 resultAttributes.Add("data-results-template-id", settings.SearchData.ResultsTemplateId); 5010 5011 if (settings.SecondSearchData != null) 5012 { 5013 resultAttributes.Add("data-second-search-feed-url", settings.SecondSearchData.SearchFeedUrl); 5014 resultAttributes.Add("data-second-results-template-id", settings.SecondSearchData.ResultsTemplateId); 5015 } 5016 if (!string.IsNullOrEmpty(settings.ResultsPageUrl)) 5017 { 5018 resultAttributes.Add("data-results-page-url", settings.ResultsPageUrl); 5019 } 5020 5021 resultAttributes = resultAttributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 5022 5023 string searchFieldCss = (settings.SearchButton == null) ? "search--with-icon" : ""; 5024 5025 5026 5027 #line default 5028 #line hidden 5029 WriteLiteralTo(__razor_helper_writer, " <div"); 5030 5031 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 55606), Tuple.Create("\"", 55684) 5032 , Tuple.Create(Tuple.Create("", 55614), Tuple.Create("search", 55614), true) 5033 5034 #line 1412 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5035 , Tuple.Create(Tuple.Create(" ", 55620), Tuple.Create<System.Object, System.Int32>(settings.CssClass 5036 5037 #line default 5038 #line hidden 5039 , 55621), false) 5040 5041 #line 1412 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5042 , Tuple.Create(Tuple.Create(" ", 55639), Tuple.Create<System.Object, System.Int32>(searchFieldCss 5043 5044 #line default 5045 #line hidden 5046 , 55640), false) 5047 , Tuple.Create(Tuple.Create(" ", 55655), Tuple.Create("js-search-data-source", 55656), true) 5048 , Tuple.Create(Tuple.Create(" ", 55677), Tuple.Create("dw-mod", 55678), true) 5049 ); 5050 5051 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 55685), Tuple.Create("\"", 55702) 5052 5053 #line 1412 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5054 , Tuple.Create(Tuple.Create("", 55690), Tuple.Create<System.Object, System.Int32>(settings.Id 5055 5056 #line default 5057 #line hidden 5058 , 55690), false) 5059 ); 5060 5061 WriteLiteralTo(__razor_helper_writer, " "); 5062 5063 5064 #line 1412 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5065 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 5066 5067 5068 #line default 5069 #line hidden 5070 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5071 5072 5073 #line 1413 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5074 5075 5076 #line default 5077 #line hidden 5078 5079 #line 1413 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5080 if (!string.IsNullOrEmpty(settings.GroupItemsFeedUrl)) 5081 { 5082 5083 5084 #line default 5085 #line hidden 5086 WriteLiteralTo(__razor_helper_writer, " <button"); 5087 5088 WriteLiteralTo(__razor_helper_writer, " type=\"button\""); 5089 5090 WriteLiteralTo(__razor_helper_writer, " class=\"search__groups-btn dw-mod js-search-groups-btn\""); 5091 5092 WriteLiteralTo(__razor_helper_writer, ">"); 5093 5094 5095 #line 1415 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5096 WriteTo(__razor_helper_writer, Translate("All")); 5097 5098 5099 #line default 5100 #line hidden 5101 WriteLiteralTo(__razor_helper_writer, "</button>\r\n"); 5102 5103 WriteLiteralTo(__razor_helper_writer, " <ul"); 5104 5105 WriteLiteralTo(__razor_helper_writer, " class=\"dropdown dropdown--absolute-position dw-mod search__groups-results js-sea" + 5106 "rch-groups-list\""); 5107 5108 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n"); 5109 5110 5111 #line 1417 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5112 } 5113 5114 5115 #line default 5116 #line hidden 5117 WriteLiteralTo(__razor_helper_writer, "\r\n <input"); 5118 5119 WriteLiteralTo(__razor_helper_writer, " type=\"text\""); 5120 5121 WriteLiteralTo(__razor_helper_writer, " class=\"search__field dw-mod js-search-field\""); 5122 5123 WriteAttributeTo(__razor_helper_writer, "placeholder", Tuple.Create(" placeholder=\"", 56153), Tuple.Create("\"", 56188) 5124 5125 #line 1419 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5126 , Tuple.Create(Tuple.Create("", 56167), Tuple.Create<System.Object, System.Int32>(settings.Placeholder 5127 5128 #line default 5129 #line hidden 5130 , 56167), false) 5131 ); 5132 5133 WriteAttributeTo(__razor_helper_writer, "value", Tuple.Create(" value=\"", 56189), Tuple.Create("\"", 56209) 5134 5135 #line 1419 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5136 , Tuple.Create(Tuple.Create("", 56197), Tuple.Create<System.Object, System.Int32>(searchValue 5137 5138 #line default 5139 #line hidden 5140 , 56197), false) 5141 ); 5142 5143 WriteLiteralTo(__razor_helper_writer, ">\r\n \r\n <div"); 5144 5145 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 56235), Tuple.Create("\"", 56392) 5146 , Tuple.Create(Tuple.Create("", 56243), Tuple.Create("dropdown", 56243), true) 5147 , Tuple.Create(Tuple.Create(" ", 56251), Tuple.Create("dropdown--absolute-position", 56252), true) 5148 , Tuple.Create(Tuple.Create(" ", 56279), Tuple.Create("search__results", 56280), true) 5149 , Tuple.Create(Tuple.Create(" ", 56295), Tuple.Create("dw-mod", 56296), true) 5150 , Tuple.Create(Tuple.Create(" ", 56302), Tuple.Create("js-search-results", 56303), true) 5151 5152 #line 1421 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5153 , Tuple.Create(Tuple.Create(" ", 56320), Tuple.Create<System.Object, System.Int32>(settings.SecondSearchData != null ? "search__results--combined" : "" 5154 5155 #line default 5156 #line hidden 5157 , 56321), false) 5158 ); 5159 5160 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5161 5162 5163 #line 1422 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5164 5165 5166 #line default 5167 #line hidden 5168 5169 #line 1422 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5170 if (settings.SecondSearchData != null) 5171 { 5172 5173 5174 #line default 5175 #line hidden 5176 WriteLiteralTo(__razor_helper_writer, " <div"); 5177 5178 WriteLiteralTo(__razor_helper_writer, " class=\"search__column search__column--products dw-mod\""); 5179 5180 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 5181 5182 WriteLiteralTo(__razor_helper_writer, " class=\"search__column-header dw-mod\""); 5183 5184 WriteLiteralTo(__razor_helper_writer, ">"); 5185 5186 5187 #line 1425 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5188 WriteTo(__razor_helper_writer, Translate("Products")); 5189 5190 5191 #line default 5192 #line hidden 5193 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <ul"); 5194 5195 WriteLiteralTo(__razor_helper_writer, " class=\"search__results-list dw-mod js-search-results-list\""); 5196 5197 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 56716), Tuple.Create("\"", 56747) 5198 5199 #line 1426 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5200 , Tuple.Create(Tuple.Create("", 56721), Tuple.Create<System.Object, System.Int32>(settings.Id 5201 5202 #line default 5203 #line hidden 5204 , 56721), false) 5205 , Tuple.Create(Tuple.Create("", 56735), Tuple.Create("_ResultsList", 56735), true) 5206 ); 5207 5208 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n"); 5209 5210 5211 #line 1427 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5212 5213 5214 #line default 5215 #line hidden 5216 5217 #line 1427 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5218 if (!string.IsNullOrEmpty(settings.SearchData.ResultsPageUrl)) 5219 { 5220 5221 5222 #line default 5223 #line hidden 5224 5225 #line 1429 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5226 WriteTo(__razor_helper_writer, Render(new Link { 5227 Title = Translate("View all"), 5228 CssClass = "js-view-all-button u-margin", 5229 Href = settings.SearchData.ResultsPageUrl 5230 })); 5231 5232 5233 #line default 5234 #line hidden 5235 5236 #line 1433 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5237 ; 5238 } 5239 5240 5241 #line default 5242 #line hidden 5243 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 5244 5245 WriteLiteralTo(__razor_helper_writer, " <div"); 5246 5247 WriteLiteralTo(__razor_helper_writer, " class=\"search__column search__column--pages dw-mod\""); 5248 5249 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 5250 5251 WriteLiteralTo(__razor_helper_writer, " class=\"search__column-header\""); 5252 5253 WriteLiteralTo(__razor_helper_writer, ">"); 5254 5255 5256 #line 1437 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5257 WriteTo(__razor_helper_writer, Translate("Pages")); 5258 5259 5260 #line default 5261 #line hidden 5262 WriteLiteralTo(__razor_helper_writer, "</div>\r\n <ul"); 5263 5264 WriteLiteralTo(__razor_helper_writer, " class=\"search__results-list dw-mod js-search-results-second-list\""); 5265 5266 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 57432), Tuple.Create("\"", 57469) 5267 5268 #line 1438 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5269 , Tuple.Create(Tuple.Create("", 57437), Tuple.Create<System.Object, System.Int32>(settings.Id 5270 5271 #line default 5272 #line hidden 5273 , 57437), false) 5274 , Tuple.Create(Tuple.Create("", 57451), Tuple.Create("_SecondResultsList", 57451), true) 5275 ); 5276 5277 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n"); 5278 5279 5280 #line 1439 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5281 5282 5283 #line default 5284 #line hidden 5285 5286 #line 1439 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5287 if (!string.IsNullOrEmpty(settings.SecondSearchData.ResultsPageUrl)) 5288 { 5289 5290 5291 #line default 5292 #line hidden 5293 5294 #line 1441 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5295 WriteTo(__razor_helper_writer, Render(new Link 5296 { 5297 Title = Translate("View all"), 5298 CssClass = "js-view-all-button u-margin", 5299 Href = settings.SecondSearchData.ResultsPageUrl 5300 })); 5301 5302 5303 #line default 5304 #line hidden 5305 5306 #line 1446 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5307 ; 5308 } 5309 5310 5311 #line default 5312 #line hidden 5313 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 5314 5315 5316 #line 1449 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5317 } 5318 else 5319 { 5320 5321 5322 #line default 5323 #line hidden 5324 WriteLiteralTo(__razor_helper_writer, " <div"); 5325 5326 WriteLiteralTo(__razor_helper_writer, " class=\"search__column search__column--only dw-mod\""); 5327 5328 WriteLiteralTo(__razor_helper_writer, ">\r\n <ul"); 5329 5330 WriteLiteralTo(__razor_helper_writer, " class=\"search__results-list dw-mod js-search-results-list\""); 5331 5332 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 58149), Tuple.Create("\"", 58180) 5333 5334 #line 1453 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5335 , Tuple.Create(Tuple.Create("", 58154), Tuple.Create<System.Object, System.Int32>(settings.Id 5336 5337 #line default 5338 #line hidden 5339 , 58154), false) 5340 , Tuple.Create(Tuple.Create("", 58168), Tuple.Create("_ResultsList", 58168), true) 5341 ); 5342 5343 WriteLiteralTo(__razor_helper_writer, "></ul>\r\n"); 5344 5345 5346 #line 1454 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5347 5348 5349 #line default 5350 #line hidden 5351 5352 #line 1454 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5353 if (!string.IsNullOrEmpty(settings.SearchData.ResultsPageUrl)) 5354 { 5355 5356 5357 #line default 5358 #line hidden 5359 5360 #line 1456 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5361 WriteTo(__razor_helper_writer, Render(new Link { 5362 Title = Translate("View all"), 5363 CssClass = "js-view-all-button u-margin", 5364 Href = settings.SearchData.ResultsPageUrl 5365 })); 5366 5367 5368 #line default 5369 #line hidden 5370 5371 #line 1460 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5372 ; 5373 } 5374 5375 5376 #line default 5377 #line hidden 5378 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 5379 5380 5381 #line 1463 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5382 } 5383 5384 5385 #line default 5386 #line hidden 5387 WriteLiteralTo(__razor_helper_writer, " </div>\r\n\r\n"); 5388 5389 5390 #line 1466 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5391 5392 5393 #line default 5394 #line hidden 5395 5396 #line 1466 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5397 if (settings.SearchButton != null) 5398 { 5399 settings.SearchButton.CssClass += " search__btn js-search-btn"; 5400 if (settings.RenderDefaultSearchIcon) 5401 { 5402 settings.SearchButton.Icon = new Icon { Name = Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SearchIcon").SelectedValue }; 5403 } 5404 5405 5406 #line default 5407 #line hidden 5408 5409 #line 1473 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5410 WriteTo(__razor_helper_writer, Render(settings.SearchButton)); 5411 5412 5413 #line default 5414 #line hidden 5415 5416 #line 1473 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5417 ; 5418 } 5419 5420 5421 #line default 5422 #line hidden 5423 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 5424 5425 5426 #line 1476 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5427 5428 5429 #line default 5430 #line hidden 5431 }); 5432 5433 #line 1476 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5434 } 5435 #line default 5436 #line hidden 5437 5438 5439 #line 1484 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5440 public RazorEngine.Templating.TemplateWriter RenderSelectField(SelectField settings) 5441 { 5442 #line default 5443 #line hidden 5444 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5445 5446 #line 1485 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5447 5448 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 5449 { 5450 settings.Id = Guid.NewGuid().ToString("N"); 5451 } 5452 5453 5454 5455 #line default 5456 #line hidden 5457 WriteLiteralTo(__razor_helper_writer, " <div"); 5458 5459 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 59456), Tuple.Create("\"", 59527) 5460 , Tuple.Create(Tuple.Create("", 59464), Tuple.Create("form__field-group", 59464), true) 5461 , Tuple.Create(Tuple.Create(" ", 59481), Tuple.Create("u-full-width", 59482), true) 5462 5463 #line 1491 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5464 , Tuple.Create(Tuple.Create(" ", 59494), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 5465 5466 #line default 5467 #line hidden 5468 , 59495), false) 5469 , Tuple.Create(Tuple.Create(" ", 59520), Tuple.Create("dw-mod", 59521), true) 5470 ); 5471 5472 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5473 5474 5475 #line 1492 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5476 5477 5478 #line default 5479 #line hidden 5480 5481 #line 1492 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5482 if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 5483 { 5484 5485 5486 #line default 5487 #line hidden 5488 WriteLiteralTo(__razor_helper_writer, " <div"); 5489 5490 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width\""); 5491 5492 WriteLiteralTo(__razor_helper_writer, "> \r\n"); 5493 5494 5495 #line 1495 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5496 5497 5498 #line default 5499 #line hidden 5500 5501 #line 1495 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5502 if (!string.IsNullOrEmpty(settings.Label)) { 5503 5504 #line default 5505 #line hidden 5506 WriteLiteralTo(__razor_helper_writer, " <label"); 5507 5508 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 59730), Tuple.Create("\"", 59748) 5509 5510 #line 1495 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5511 , Tuple.Create(Tuple.Create("", 59736), Tuple.Create<System.Object, System.Int32>(settings.Id 5512 5513 #line default 5514 #line hidden 5515 , 59736), false) 5516 ); 5517 5518 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--left\""); 5519 5520 WriteLiteralTo(__razor_helper_writer, ">"); 5521 5522 5523 #line 1495 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5524 WriteTo(__razor_helper_writer, settings.Label); 5525 5526 5527 #line default 5528 #line hidden 5529 WriteLiteralTo(__razor_helper_writer, "</label> "); 5530 5531 5532 #line 1495 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5533 } 5534 5535 5536 #line default 5537 #line hidden 5538 WriteLiteralTo(__razor_helper_writer, " "); 5539 5540 5541 #line 1496 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5542 if (settings.Link != null) { 5543 5544 5545 #line default 5546 #line hidden 5547 WriteLiteralTo(__razor_helper_writer, " <div"); 5548 5549 WriteLiteralTo(__razor_helper_writer, " class=\"u-pull--right\""); 5550 5551 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5552 5553 5554 #line 1498 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5555 5556 5557 #line default 5558 #line hidden 5559 5560 #line 1498 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5561 settings.Link.ButtonLayout = ButtonLayout.LinkClean; 5562 5563 #line default 5564 #line hidden 5565 WriteLiteralTo(__razor_helper_writer, "\r\n"); 5566 5567 WriteLiteralTo(__razor_helper_writer, " "); 5568 5569 5570 #line 1499 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5571 WriteTo(__razor_helper_writer, Render(settings.Link)); 5572 5573 5574 #line default 5575 #line hidden 5576 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 5577 5578 5579 #line 1501 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5580 } 5581 5582 5583 #line default 5584 #line hidden 5585 WriteLiteralTo(__razor_helper_writer, " </div> \r\n"); 5586 5587 5588 #line 1503 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5589 } 5590 5591 5592 #line default 5593 #line hidden 5594 WriteLiteralTo(__razor_helper_writer, "\r\n"); 5595 5596 5597 #line 1505 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5598 5599 5600 #line default 5601 #line hidden 5602 5603 #line 1505 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5604 if (!string.IsNullOrEmpty(settings.HelpText)) 5605 { 5606 5607 5608 #line default 5609 #line hidden 5610 WriteLiteralTo(__razor_helper_writer, " <small"); 5611 5612 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 5613 5614 WriteLiteralTo(__razor_helper_writer, ">"); 5615 5616 5617 #line 1507 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5618 WriteTo(__razor_helper_writer, settings.HelpText); 5619 5620 5621 #line default 5622 #line hidden 5623 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 5624 5625 5626 #line 1508 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5627 } 5628 5629 5630 #line default 5631 #line hidden 5632 WriteLiteralTo(__razor_helper_writer, "\r\n"); 5633 5634 5635 #line 1510 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5636 5637 5638 #line default 5639 #line hidden 5640 5641 #line 1510 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5642 if (settings.ActionButton != null) 5643 { 5644 settings.ActionButton.CssClass += " btn--condensed u-no-margin"; 5645 5646 5647 #line default 5648 #line hidden 5649 WriteLiteralTo(__razor_helper_writer, " <div"); 5650 5651 WriteLiteralTo(__razor_helper_writer, " class=\"form__field-combi u-no-margin dw-mod\""); 5652 5653 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 5654 5655 WriteLiteralTo(__razor_helper_writer, " "); 5656 5657 5658 #line 1514 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5659 WriteTo(__razor_helper_writer, RenderSelectBase(settings)); 5660 5661 5662 #line default 5663 #line hidden 5664 WriteLiteralTo(__razor_helper_writer, "\r\n"); 5665 5666 WriteLiteralTo(__razor_helper_writer, " "); 5667 5668 5669 #line 1515 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5670 WriteTo(__razor_helper_writer, Render(settings.ActionButton)); 5671 5672 5673 #line default 5674 #line hidden 5675 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 5676 5677 5678 #line 1517 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5679 } 5680 else 5681 { 5682 5683 5684 #line default 5685 #line hidden 5686 5687 #line 1520 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5688 WriteTo(__razor_helper_writer, RenderSelectBase(settings)); 5689 5690 5691 #line default 5692 #line hidden 5693 5694 #line 1520 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5695 5696 } 5697 5698 5699 #line default 5700 #line hidden 5701 WriteLiteralTo(__razor_helper_writer, "\r\n"); 5702 5703 WriteLiteralTo(__razor_helper_writer, " "); 5704 5705 5706 #line 1523 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5707 WriteTo(__razor_helper_writer, Render(new NotificationMessage { Message = settings.ErrorMessage })); 5708 5709 5710 #line default 5711 #line hidden 5712 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 5713 5714 5715 #line 1525 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5716 5717 5718 #line default 5719 #line hidden 5720 }); 5721 5722 #line 1525 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5723 } 5724 #line default 5725 #line hidden 5726 5727 5728 #line 1527 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5729 public RazorEngine.Templating.TemplateWriter RenderSelectBase(SelectField settings) 5730 { 5731 #line default 5732 #line hidden 5733 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5734 5735 #line 1528 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5736 5737 var attributes = new Dictionary<string, string>(); 5738 5739 /*base settings*/ 5740 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 5741 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 5742 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 5743 if (settings.Disabled) { attributes.Add("disabled", "true"); } 5744 if (settings.Required) { attributes.Add("required", "true"); } 5745 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 5746 /*end*/ 5747 5748 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 5749 5750 5751 5752 #line default 5753 #line hidden 5754 WriteLiteralTo(__razor_helper_writer, " <select "); 5755 5756 5757 #line 1542 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5758 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 5759 5760 5761 #line default 5762 #line hidden 5763 WriteLiteralTo(__razor_helper_writer, " class=\"u-full-width "); 5764 5765 5766 #line 1542 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5767 WriteTo(__razor_helper_writer, settings.CssClass); 5768 5769 5770 #line default 5771 #line hidden 5772 WriteLiteralTo(__razor_helper_writer, " dw-mod\">\r\n"); 5773 5774 5775 #line 1543 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5776 5777 5778 #line default 5779 #line hidden 5780 5781 #line 1543 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5782 if (settings.Default != null) 5783 { 5784 5785 5786 #line default 5787 #line hidden 5788 5789 #line 1545 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5790 WriteTo(__razor_helper_writer, Render(settings.Default)); 5791 5792 5793 #line default 5794 #line hidden 5795 5796 #line 1545 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5797 5798 } 5799 5800 5801 #line default 5802 #line hidden 5803 WriteLiteralTo(__razor_helper_writer, "\r\n"); 5804 5805 5806 #line 1548 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5807 5808 5809 #line default 5810 #line hidden 5811 5812 #line 1548 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5813 foreach (var item in settings.Options) 5814 { 5815 if (settings.Value != null) { 5816 item.Checked = item.Value == settings.Value; 5817 } 5818 5819 5820 #line default 5821 #line hidden 5822 5823 #line 1553 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5824 WriteTo(__razor_helper_writer, Render(item)); 5825 5826 5827 #line default 5828 #line hidden 5829 5830 #line 1553 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5831 5832 } 5833 5834 5835 #line default 5836 #line hidden 5837 WriteLiteralTo(__razor_helper_writer, " </select>\r\n"); 5838 5839 5840 #line 1556 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5841 5842 5843 #line default 5844 #line hidden 5845 }); 5846 5847 #line 1556 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5848 } 5849 #line default 5850 #line hidden 5851 5852 5853 #line 1563 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5854 public RazorEngine.Templating.TemplateWriter RenderRadioButtonField(RadioButtonField settings) 5855 { 5856 #line default 5857 #line hidden 5858 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 5859 5860 #line 1564 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5861 5862 var attributes = new Dictionary<string, string>(); 5863 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 5864 { 5865 settings.Id = Guid.NewGuid().ToString("N"); 5866 } 5867 5868 /*base settings*/ 5869 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 5870 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 5871 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 5872 if (settings.Disabled) { attributes.Add("disabled", "true"); } 5873 if (settings.Required) { attributes.Add("required", "true"); } 5874 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 5875 /*end*/ 5876 5877 attributes.Add("type", "radio"); 5878 if (settings.Checked) { attributes.Add("checked", "true"); } 5879 settings.CssClass = "form__control " + settings.CssClass; 5880 if (settings.Value != null) { attributes.Add("value", settings.Value); } 5881 5882 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 5883 5884 5885 5886 #line default 5887 #line hidden 5888 WriteLiteralTo(__razor_helper_writer, " <div"); 5889 5890 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 63369), Tuple.Create("\"", 63427) 5891 , Tuple.Create(Tuple.Create("", 63377), Tuple.Create("form__field-group", 63377), true) 5892 5893 #line 1587 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5894 , Tuple.Create(Tuple.Create(" ", 63394), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 5895 5896 #line default 5897 #line hidden 5898 , 63395), false) 5899 , Tuple.Create(Tuple.Create(" ", 63420), Tuple.Create("dw-mod", 63421), true) 5900 ); 5901 5902 WriteLiteralTo(__razor_helper_writer, ">\r\n <input "); 5903 5904 5905 #line 1588 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5906 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 5907 5908 5909 #line default 5910 #line hidden 5911 WriteLiteralTo(__razor_helper_writer, " class=\""); 5912 5913 5914 #line 1588 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5915 WriteTo(__razor_helper_writer, settings.CssClass); 5916 5917 5918 #line default 5919 #line hidden 5920 WriteLiteralTo(__razor_helper_writer, " dw-mod\" />\r\n"); 5921 5922 5923 #line 1589 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5924 5925 5926 #line default 5927 #line hidden 5928 5929 #line 1589 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5930 if (!string.IsNullOrEmpty(settings.Label)) 5931 { 5932 5933 5934 #line default 5935 #line hidden 5936 WriteLiteralTo(__razor_helper_writer, " <label"); 5937 5938 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 63616), Tuple.Create("\"", 63634) 5939 5940 #line 1591 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5941 , Tuple.Create(Tuple.Create("", 63622), Tuple.Create<System.Object, System.Int32>(settings.Id 5942 5943 #line default 5944 #line hidden 5945 , 63622), false) 5946 ); 5947 5948 WriteLiteralTo(__razor_helper_writer, " class=\"dw-mod\""); 5949 5950 WriteLiteralTo(__razor_helper_writer, ">"); 5951 5952 5953 #line 1591 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5954 WriteTo(__razor_helper_writer, settings.Label); 5955 5956 5957 #line default 5958 #line hidden 5959 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 5960 5961 5962 #line 1592 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5963 } 5964 5965 5966 #line default 5967 #line hidden 5968 WriteLiteralTo(__razor_helper_writer, " "); 5969 5970 5971 #line 1593 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5972 if (!string.IsNullOrEmpty(settings.HelpText)) 5973 { 5974 5975 5976 #line default 5977 #line hidden 5978 WriteLiteralTo(__razor_helper_writer, " <small"); 5979 5980 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 5981 5982 WriteLiteralTo(__razor_helper_writer, ">"); 5983 5984 5985 #line 1595 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5986 WriteTo(__razor_helper_writer, settings.HelpText); 5987 5988 5989 #line default 5990 #line hidden 5991 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 5992 5993 5994 #line 1596 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 5995 } 5996 5997 5998 #line default 5999 #line hidden 6000 WriteLiteralTo(__razor_helper_writer, " "); 6001 6002 6003 #line 1597 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6004 WriteTo(__razor_helper_writer, RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage })); 6005 6006 6007 #line default 6008 #line hidden 6009 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 6010 6011 6012 #line 1599 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6013 6014 6015 #line default 6016 #line hidden 6017 }); 6018 6019 #line 1599 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6020 } 6021 #line default 6022 #line hidden 6023 6024 6025 #line 1607 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6026 public RazorEngine.Templating.TemplateWriter RenderRadioButtonListField(RadioButtonListField settings) 6027 { 6028 #line default 6029 #line hidden 6030 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6031 6032 #line 1608 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6033 6034 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 6035 6036 6037 6038 #line default 6039 #line hidden 6040 WriteLiteralTo(__razor_helper_writer, " <div"); 6041 6042 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 64309), Tuple.Create("\"", 64383) 6043 , Tuple.Create(Tuple.Create("", 64317), Tuple.Create("form__field-group", 64317), true) 6044 6045 #line 1611 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6046 , Tuple.Create(Tuple.Create(" ", 64334), Tuple.Create<System.Object, System.Int32>(settings.WrapperCssClass 6047 6048 #line default 6049 #line hidden 6050 , 64335), false) 6051 , Tuple.Create(Tuple.Create(" ", 64360), Tuple.Create("u-margin-bottom", 64361), true) 6052 , Tuple.Create(Tuple.Create(" ", 64376), Tuple.Create("dw-mod", 64377), true) 6053 ); 6054 6055 WriteLiteralTo(__razor_helper_writer, " "); 6056 6057 6058 #line 1611 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6059 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 6060 6061 6062 #line default 6063 #line hidden 6064 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6065 6066 6067 #line 1612 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6068 6069 6070 #line default 6071 #line hidden 6072 6073 #line 1612 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6074 if (!string.IsNullOrEmpty(settings.Label)) 6075 { 6076 6077 6078 #line default 6079 #line hidden 6080 WriteLiteralTo(__razor_helper_writer, " <label>"); 6081 6082 6083 #line 1614 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6084 WriteTo(__razor_helper_writer, settings.Label); 6085 6086 6087 #line default 6088 #line hidden 6089 WriteLiteralTo(__razor_helper_writer, "</label>\r\n"); 6090 6091 6092 #line 1615 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6093 } 6094 6095 6096 #line default 6097 #line hidden 6098 WriteLiteralTo(__razor_helper_writer, " "); 6099 6100 6101 #line 1616 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6102 if (!string.IsNullOrEmpty(settings.HelpText)) 6103 { 6104 6105 6106 #line default 6107 #line hidden 6108 WriteLiteralTo(__razor_helper_writer, " <small"); 6109 6110 WriteLiteralTo(__razor_helper_writer, " class=\"form__help-text\""); 6111 6112 WriteLiteralTo(__razor_helper_writer, ">"); 6113 6114 6115 #line 1618 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6116 WriteTo(__razor_helper_writer, settings.HelpText); 6117 6118 6119 #line default 6120 #line hidden 6121 WriteLiteralTo(__razor_helper_writer, "</small>\r\n"); 6122 6123 6124 #line 1619 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6125 } 6126 6127 6128 #line default 6129 #line hidden 6130 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6131 6132 6133 #line 1621 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6134 6135 6136 #line default 6137 #line hidden 6138 6139 #line 1621 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6140 foreach (var item in settings.Options) 6141 { 6142 if (settings.Required) 6143 { 6144 item.Required = true; 6145 } 6146 if (settings.Disabled) 6147 { 6148 item.Disabled = true; 6149 } 6150 if (!string.IsNullOrEmpty(settings.Name)) 6151 { 6152 item.Name = settings.Name; 6153 } 6154 if (settings.Value != null && settings.Value == item.Value) 6155 { 6156 item.Checked = true; 6157 } 6158 if (!string.IsNullOrEmpty(settings.OnClick)) 6159 { 6160 item.OnClick += settings.OnClick; 6161 } 6162 if (!string.IsNullOrEmpty(settings.OnChange)) 6163 { 6164 item.OnChange += settings.OnChange; 6165 } 6166 if (!string.IsNullOrEmpty(settings.CssClass)) 6167 { 6168 item.CssClass += settings.CssClass; 6169 } 6170 6171 6172 #line default 6173 #line hidden 6174 6175 #line 1651 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6176 WriteTo(__razor_helper_writer, Render(item)); 6177 6178 6179 #line default 6180 #line hidden 6181 6182 #line 1651 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6183 6184 } 6185 6186 6187 #line default 6188 #line hidden 6189 WriteLiteralTo(__razor_helper_writer, "\r\n"); 6190 6191 WriteLiteralTo(__razor_helper_writer, " "); 6192 6193 6194 #line 1654 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6195 WriteTo(__razor_helper_writer, RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage })); 6196 6197 6198 #line default 6199 #line hidden 6200 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 6201 6202 6203 #line 1656 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6204 6205 6206 #line default 6207 #line hidden 6208 }); 6209 6210 #line 1656 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6211 } 6212 #line default 6213 #line hidden 6214 6215 6216 #line 1664 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6217 public RazorEngine.Templating.TemplateWriter RenderNotificationMessage(NotificationMessage settings) 6218 { 6219 #line default 6220 #line hidden 6221 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6222 6223 #line 1665 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6224 6225 if (!string.IsNullOrEmpty(settings.Message)) 6226 { 6227 var attributes = new Dictionary<string, string>(); 6228 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 6229 6230 string messageTypeClass = Enum.GetName(typeof(NotificationMessageType), settings.MessageType).ToLower(); 6231 string messageLayoutClass = Enum.GetName(typeof(NotificationMessageLayout), settings.MessageLayout).ToLower(); 6232 string minHeightClass = settings.Icon != null ? "u-min-h70px" : ""; 6233 6234 6235 6236 #line default 6237 #line hidden 6238 WriteLiteralTo(__razor_helper_writer, " <div"); 6239 6240 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 66575), Tuple.Create("\"", 66738) 6241 , Tuple.Create(Tuple.Create("", 66583), Tuple.Create("notification-message-", 66583), true) 6242 6243 #line 1675 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6244 , Tuple.Create(Tuple.Create("", 66604), Tuple.Create<System.Object, System.Int32>(messageTypeClass 6245 6246 #line default 6247 #line hidden 6248 , 66604), false) 6249 , Tuple.Create(Tuple.Create(" ", 66621), Tuple.Create("notification-message-", 66622), true) 6250 6251 #line 1675 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6252 , Tuple.Create(Tuple.Create("", 66643), Tuple.Create<System.Object, System.Int32>(messageLayoutClass 6253 6254 #line default 6255 #line hidden 6256 , 66643), false) 6257 6258 #line 1675 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6259 , Tuple.Create(Tuple.Create(" ", 66662), Tuple.Create<System.Object, System.Int32>(messageLayoutClass 6260 6261 #line default 6262 #line hidden 6263 , 66663), false) 6264 6265 #line 1675 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6266 , Tuple.Create(Tuple.Create(" ", 66682), Tuple.Create<System.Object, System.Int32>(minHeightClass 6267 6268 #line default 6269 #line hidden 6270 , 66683), false) 6271 6272 #line 1675 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6273 , Tuple.Create(Tuple.Create(" ", 66698), Tuple.Create<System.Object, System.Int32>(settings.CssClass 6274 6275 #line default 6276 #line hidden 6277 , 66699), false) 6278 , Tuple.Create(Tuple.Create(" ", 66717), Tuple.Create("u-full-width", 66718), true) 6279 , Tuple.Create(Tuple.Create(" ", 66730), Tuple.Create("dw-mod", 66732), true) 6280 ); 6281 6282 WriteLiteralTo(__razor_helper_writer, " "); 6283 6284 6285 #line 1675 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6286 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(attributes)); 6287 6288 6289 #line default 6290 #line hidden 6291 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6292 6293 6294 #line 1676 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6295 6296 6297 #line default 6298 #line hidden 6299 6300 #line 1676 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6301 if (settings.Icon != null) { 6302 settings.Icon.Label = !string.IsNullOrEmpty(settings.Icon.Label) ? settings.Message + settings.Icon.Label : settings.Message; 6303 6304 6305 #line default 6306 #line hidden 6307 6308 #line 1678 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6309 WriteTo(__razor_helper_writer, Render(settings.Icon)); 6310 6311 6312 #line default 6313 #line hidden 6314 6315 #line 1678 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6316 6317 } else { 6318 6319 6320 #line default 6321 #line hidden 6322 6323 #line 1680 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6324 WriteTo(__razor_helper_writer, settings.Message); 6325 6326 6327 #line default 6328 #line hidden 6329 6330 #line 1680 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6331 6332 } 6333 6334 6335 #line default 6336 #line hidden 6337 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 6338 6339 6340 #line 1683 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6341 } 6342 6343 6344 #line default 6345 #line hidden 6346 }); 6347 6348 #line 1684 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6349 } 6350 #line default 6351 #line hidden 6352 6353 6354 #line 1690 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6355 public RazorEngine.Templating.TemplateWriter RenderHandlebarsRoot(HandlebarsRoot settings) { 6356 #line default 6357 #line hidden 6358 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6359 6360 #line 1690 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6361 6362 string preRender = !String.IsNullOrEmpty(settings.PreRenderScriptTemplate) ? "data-pre-render-template=\"" + settings.PreRenderScriptTemplate + "\"" : ""; 6363 6364 6365 6366 #line default 6367 #line hidden 6368 WriteLiteralTo(__razor_helper_writer, " <div"); 6369 6370 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 67412), Tuple.Create("\"", 67464) 6371 6372 #line 1693 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6373 , Tuple.Create(Tuple.Create("", 67420), Tuple.Create<System.Object, System.Int32>(settings.CssClass 6374 6375 #line default 6376 #line hidden 6377 , 67420), false) 6378 , Tuple.Create(Tuple.Create(" ", 67438), Tuple.Create("dw-mod", 67439), true) 6379 , Tuple.Create(Tuple.Create(" ", 67445), Tuple.Create("js-handlebars-root", 67446), true) 6380 ); 6381 6382 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 67465), Tuple.Create("\"", 67482) 6383 6384 #line 1693 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6385 , Tuple.Create(Tuple.Create("", 67470), Tuple.Create<System.Object, System.Int32>(settings.Id 6386 6387 #line default 6388 #line hidden 6389 , 67470), false) 6390 ); 6391 6392 WriteLiteralTo(__razor_helper_writer, " data-template=\""); 6393 6394 6395 #line 1693 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6396 WriteTo(__razor_helper_writer, settings.ScriptTemplate); 6397 6398 6399 #line default 6400 #line hidden 6401 WriteLiteralTo(__razor_helper_writer, "\""); 6402 6403 WriteLiteralTo(__razor_helper_writer, " data-json-feed=\""); 6404 6405 6406 #line 1693 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6407 WriteTo(__razor_helper_writer, settings.FeedUrl); 6408 6409 6410 #line default 6411 #line hidden 6412 WriteLiteralTo(__razor_helper_writer, "\""); 6413 6414 WriteLiteralTo(__razor_helper_writer, " data-init-onload=\""); 6415 6416 6417 #line 1693 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6418 WriteTo(__razor_helper_writer, settings.InitOnLoad.ToString()); 6419 6420 6421 #line default 6422 #line hidden 6423 WriteLiteralTo(__razor_helper_writer, "\""); 6424 6425 WriteLiteralTo(__razor_helper_writer, " data-preloader=\""); 6426 6427 6428 #line 1693 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6429 WriteTo(__razor_helper_writer, settings.Preloader); 6430 6431 6432 #line default 6433 #line hidden 6434 WriteLiteralTo(__razor_helper_writer, "\""); 6435 6436 WriteLiteralTo(__razor_helper_writer, " "); 6437 6438 6439 #line 1693 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6440 WriteTo(__razor_helper_writer, preRender); 6441 6442 6443 #line default 6444 #line hidden 6445 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6446 6447 6448 #line 1694 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6449 6450 6451 #line default 6452 #line hidden 6453 6454 #line 1694 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6455 if (settings.SubBlocks != null) { 6456 6457 6458 #line default 6459 #line hidden 6460 6461 #line 1695 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6462 WriteTo(__razor_helper_writer, RenderBlockList(settings.SubBlocks)); 6463 6464 6465 #line default 6466 #line hidden 6467 6468 #line 1695 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6469 6470 } 6471 6472 6473 #line default 6474 #line hidden 6475 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 6476 6477 6478 #line 1698 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6479 6480 6481 #line default 6482 #line hidden 6483 }); 6484 6485 #line 1698 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6486 } 6487 #line default 6488 #line hidden 6489 6490 6491 #line 1707 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6492 public RazorEngine.Templating.TemplateWriter RenderStickersCollection(StickersCollection settings) 6493 { 6494 #line default 6495 #line hidden 6496 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6497 6498 #line 1708 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6499 6500 6501 6502 #line default 6503 #line hidden 6504 6505 #line 1719 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6506 6507 6508 6509 #line default 6510 #line hidden 6511 }); 6512 6513 #line 1720 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6514 } 6515 #line default 6516 #line hidden 6517 6518 6519 #line 1727 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6520 public RazorEngine.Templating.TemplateWriter RenderForm(Form settings) { 6521 #line default 6522 #line hidden 6523 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6524 6525 #line 1727 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6526 6527 if (settings != null) 6528 { 6529 Dictionary<string, string> optionalAttributes = new Dictionary<string, string>(); 6530 if (!string.IsNullOrEmpty(settings.Action)) { optionalAttributes.Add("action", settings.Action); }; 6531 if (!string.IsNullOrEmpty(settings.Name)) { optionalAttributes.Add("name", settings.Name); }; 6532 if (!string.IsNullOrEmpty(settings.OnSubmit)) { optionalAttributes.Add("onsubmit", settings.OnSubmit); }; 6533 var enctypes = new Dictionary<string, string> 6534 { 6535 { "multipart", "multipart/form-data" }, 6536 { "text", "text/plain" }, 6537 { "application", "application/x-www-form-urlencoded" } 6538 }; 6539 if (settings.Enctype != FormEnctype.none) { optionalAttributes.Add("enctype", enctypes[Enum.GetName(typeof(FormEnctype), settings.Enctype).ToLower()]); }; 6540 optionalAttributes.Add("method", settings.Method.ToString()); 6541 6542 if (!string.IsNullOrEmpty(settings.FormStartMarkup)) 6543 { 6544 6545 6546 #line default 6547 #line hidden 6548 6549 #line 1745 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6550 WriteTo(__razor_helper_writer, settings.FormStartMarkup); 6551 6552 6553 #line default 6554 #line hidden 6555 6556 #line 1745 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6557 6558 } 6559 else 6560 { 6561 6562 6563 #line default 6564 #line hidden 6565 WriteLiteralTo(__razor_helper_writer, " "); 6566 6567 WriteLiteralTo(__razor_helper_writer, "<form class=\""); 6568 6569 6570 #line 1749 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6571 WriteTo(__razor_helper_writer, settings.CssClass); 6572 6573 6574 #line default 6575 #line hidden 6576 WriteLiteralTo(__razor_helper_writer, " u-no-margin dw-mod\" "); 6577 6578 6579 #line 1749 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6580 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(optionalAttributes)); 6581 6582 6583 #line default 6584 #line hidden 6585 WriteLiteralTo(__razor_helper_writer, " "); 6586 6587 6588 #line 1749 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6589 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(settings.ExtraAttributes)); 6590 6591 6592 #line default 6593 #line hidden 6594 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6595 6596 6597 #line 1750 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6598 } 6599 6600 foreach (var field in settings.GetFields()) 6601 { 6602 6603 6604 #line default 6605 #line hidden 6606 6607 #line 1754 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6608 WriteTo(__razor_helper_writer, Render(field)); 6609 6610 6611 #line default 6612 #line hidden 6613 6614 #line 1754 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6615 6616 } 6617 6618 6619 6620 #line default 6621 #line hidden 6622 WriteLiteralTo(__razor_helper_writer, " "); 6623 6624 WriteLiteralTo(__razor_helper_writer, "</form>\r\n"); 6625 6626 6627 #line 1758 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6628 } 6629 6630 6631 #line default 6632 #line hidden 6633 }); 6634 6635 #line 1759 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6636 } 6637 #line default 6638 #line hidden 6639 6640 6641 #line 1767 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6642 public RazorEngine.Templating.TemplateWriter RenderText(Text settings) 6643 { 6644 #line default 6645 #line hidden 6646 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6647 6648 #line 1768 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6649 6650 6651 6652 #line default 6653 #line hidden 6654 6655 #line 1769 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6656 WriteTo(__razor_helper_writer, settings.Content); 6657 6658 6659 #line default 6660 #line hidden 6661 6662 #line 1769 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6663 6664 6665 6666 #line default 6667 #line hidden 6668 }); 6669 6670 #line 1770 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6671 } 6672 #line default 6673 #line hidden 6674 6675 6676 #line 1778 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6677 public RazorEngine.Templating.TemplateWriter RenderContentModule(ContentModule settings) { 6678 #line default 6679 #line hidden 6680 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6681 6682 #line 1778 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6683 6684 if (!string.IsNullOrEmpty(settings.Content)) 6685 { 6686 6687 6688 #line default 6689 #line hidden 6690 6691 #line 1781 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6692 WriteTo(__razor_helper_writer, settings.Content); 6693 6694 6695 #line default 6696 #line hidden 6697 6698 #line 1781 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6699 6700 } 6701 6702 6703 #line default 6704 #line hidden 6705 }); 6706 6707 #line 1783 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6708 } 6709 #line default 6710 #line hidden 6711 6712 6713 #line 1791 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6714 public RazorEngine.Templating.TemplateWriter RenderModal(Modal settings) { 6715 #line default 6716 #line hidden 6717 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 6718 6719 #line 1791 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6720 6721 if (settings != null) 6722 { 6723 string modalId = !string.IsNullOrEmpty(settings.Id) ? settings.Id : Guid.NewGuid().ToString("N"); 6724 6725 string onchange = !string.IsNullOrEmpty(settings.OnClose) ? "onchange=\"if(!this.checked){" + settings.OnClose + "}\"" : ""; 6726 6727 6728 6729 #line default 6730 #line hidden 6731 WriteLiteralTo(__razor_helper_writer, " <input"); 6732 6733 WriteLiteralTo(__razor_helper_writer, " type=\"checkbox\""); 6734 6735 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 71018), Tuple.Create("\"", 71045) 6736 6737 #line 1798 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6738 , Tuple.Create(Tuple.Create("", 71023), Tuple.Create<System.Object, System.Int32>(modalId 6739 6740 #line default 6741 #line hidden 6742 , 71023), false) 6743 , Tuple.Create(Tuple.Create("", 71033), Tuple.Create("ModalTrigger", 71033), true) 6744 ); 6745 6746 WriteLiteralTo(__razor_helper_writer, " class=\"modal-trigger\""); 6747 6748 WriteLiteralTo(__razor_helper_writer, " "); 6749 6750 6751 #line 1798 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6752 WriteTo(__razor_helper_writer, onchange); 6753 6754 6755 #line default 6756 #line hidden 6757 WriteLiteralTo(__razor_helper_writer, " />\r\n"); 6758 6759 6760 #line 1799 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6761 6762 6763 6764 #line default 6765 #line hidden 6766 WriteLiteralTo(__razor_helper_writer, " <div"); 6767 6768 WriteLiteralTo(__razor_helper_writer, " class=\"modal-container\""); 6769 6770 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6771 6772 6773 #line 1801 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6774 6775 6776 #line default 6777 #line hidden 6778 6779 #line 1801 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6780 if (!settings.DisableDarkOverlay) 6781 { 6782 6783 6784 #line default 6785 #line hidden 6786 WriteLiteralTo(__razor_helper_writer, " <label"); 6787 6788 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 71209), Tuple.Create("\"", 71237) 6789 6790 #line 1803 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6791 , Tuple.Create(Tuple.Create("", 71215), Tuple.Create<System.Object, System.Int32>(modalId 6792 6793 #line default 6794 #line hidden 6795 , 71215), false) 6796 , Tuple.Create(Tuple.Create("", 71225), Tuple.Create("ModalTrigger", 71225), true) 6797 ); 6798 6799 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 71238), Tuple.Create("\"", 71265) 6800 6801 #line 1803 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6802 , Tuple.Create(Tuple.Create("", 71243), Tuple.Create<System.Object, System.Int32>(modalId 6803 6804 #line default 6805 #line hidden 6806 , 71243), false) 6807 , Tuple.Create(Tuple.Create("", 71253), Tuple.Create("ModalOverlay", 71253), true) 6808 ); 6809 6810 WriteLiteralTo(__razor_helper_writer, " class=\"modal-overlay\""); 6811 6812 WriteLiteralTo(__razor_helper_writer, "></label>\r\n"); 6813 6814 6815 #line 1804 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6816 } 6817 6818 6819 #line default 6820 #line hidden 6821 WriteLiteralTo(__razor_helper_writer, " <div"); 6822 6823 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 71330), Tuple.Create("\"", 71439) 6824 , Tuple.Create(Tuple.Create("", 71338), Tuple.Create("modal", 71338), true) 6825 , Tuple.Create(Tuple.Create(" ", 71343), Tuple.Create("modal--", 71344), true) 6826 6827 #line 1805 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6828 , Tuple.Create(Tuple.Create("", 71351), Tuple.Create<System.Object, System.Int32>(settings.Width.ToString().ToLower() 6829 6830 #line default 6831 #line hidden 6832 , 71351), false) 6833 , Tuple.Create(Tuple.Create(" ", 71387), Tuple.Create("modal-height--", 71388), true) 6834 6835 #line 1805 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6836 , Tuple.Create(Tuple.Create("", 71402), Tuple.Create<System.Object, System.Int32>(settings.Height.ToString().ToLower() 6837 6838 #line default 6839 #line hidden 6840 , 71402), false) 6841 ); 6842 6843 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 71440), Tuple.Create("\"", 71460) 6844 6845 #line 1805 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6846 , Tuple.Create(Tuple.Create("", 71445), Tuple.Create<System.Object, System.Int32>(modalId 6847 6848 #line default 6849 #line hidden 6850 , 71445), false) 6851 , Tuple.Create(Tuple.Create("", 71455), Tuple.Create("Modal", 71455), true) 6852 ); 6853 6854 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6855 6856 6857 #line 1806 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6858 6859 6860 #line default 6861 #line hidden 6862 6863 #line 1806 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6864 if (settings.Heading != null) 6865 { 6866 if (!string.IsNullOrEmpty(settings.Heading.Title)) 6867 { 6868 6869 6870 #line default 6871 #line hidden 6872 WriteLiteralTo(__razor_helper_writer, " <div"); 6873 6874 WriteLiteralTo(__razor_helper_writer, " class=\"modal__header\""); 6875 6876 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6877 6878 WriteLiteralTo(__razor_helper_writer, " "); 6879 6880 6881 #line 1811 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6882 WriteTo(__razor_helper_writer, Render(settings.Heading)); 6883 6884 6885 #line default 6886 #line hidden 6887 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 6888 6889 6890 #line 1813 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6891 } 6892 } 6893 6894 6895 #line default 6896 #line hidden 6897 WriteLiteralTo(__razor_helper_writer, " <div"); 6898 6899 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 71828), Tuple.Create("\"", 71923) 6900 , Tuple.Create(Tuple.Create("", 71836), Tuple.Create("modal__body", 71836), true) 6901 6902 #line 1815 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6903 , Tuple.Create(Tuple.Create(" ", 71847), Tuple.Create<System.Object, System.Int32>(settings.Width.ToString().ToLower() == "full" ? "modal__body--full" : "" 6904 6905 #line default 6906 #line hidden 6907 , 71848), false) 6908 ); 6909 6910 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6911 6912 6913 #line 1816 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6914 6915 6916 #line default 6917 #line hidden 6918 6919 #line 1816 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6920 if (!string.IsNullOrEmpty(settings.BodyText)) 6921 { 6922 6923 6924 #line default 6925 #line hidden 6926 6927 #line 1818 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6928 WriteTo(__razor_helper_writer, settings.BodyText); 6929 6930 6931 #line default 6932 #line hidden 6933 6934 #line 1818 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6935 6936 } 6937 6938 6939 #line default 6940 #line hidden 6941 WriteLiteralTo(__razor_helper_writer, " "); 6942 6943 6944 #line 1820 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6945 if (settings.BodyTemplate != null) 6946 { 6947 6948 6949 #line default 6950 #line hidden 6951 6952 #line 1822 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6953 WriteTo(__razor_helper_writer, settings.BodyTemplate); 6954 6955 6956 #line default 6957 #line hidden 6958 6959 #line 1822 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6960 6961 } 6962 6963 6964 #line default 6965 #line hidden 6966 WriteLiteralTo(__razor_helper_writer, " "); 6967 6968 6969 #line 1824 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6970 6971 var actions = settings.GetActions(); 6972 6973 6974 #line default 6975 #line hidden 6976 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 6977 6978 6979 #line 1828 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6980 6981 6982 #line default 6983 #line hidden 6984 6985 #line 1828 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 6986 if (actions.Length > 0) 6987 { 6988 6989 6990 #line default 6991 #line hidden 6992 WriteLiteralTo(__razor_helper_writer, " <div"); 6993 6994 WriteLiteralTo(__razor_helper_writer, " class=\"modal__footer\""); 6995 6996 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 6997 6998 6999 #line 1831 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7000 7001 7002 #line default 7003 #line hidden 7004 7005 #line 1831 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7006 foreach (var action in actions) 7007 { 7008 if (Pageview.Device.ToString() != "Mobile") { 7009 action.CssClass += " u-no-margin"; 7010 } else { 7011 action.CssClass += " u-full-width u-margin-bottom"; 7012 } 7013 7014 7015 7016 #line default 7017 #line hidden 7018 7019 #line 1839 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7020 WriteTo(__razor_helper_writer, Render(action)); 7021 7022 7023 #line default 7024 #line hidden 7025 7026 #line 1839 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7027 7028 } 7029 7030 7031 #line default 7032 #line hidden 7033 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 7034 7035 7036 #line 1842 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7037 } 7038 7039 7040 #line default 7041 #line hidden 7042 WriteLiteralTo(__razor_helper_writer, " <label"); 7043 7044 WriteLiteralTo(__razor_helper_writer, " class=\"modal__close-btn\""); 7045 7046 WriteAttributeTo(__razor_helper_writer, "for", Tuple.Create(" for=\"", 73029), Tuple.Create("\"", 73057) 7047 7048 #line 1843 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7049 , Tuple.Create(Tuple.Create("", 73035), Tuple.Create<System.Object, System.Int32>(modalId 7050 7051 #line default 7052 #line hidden 7053 , 73035), false) 7054 , Tuple.Create(Tuple.Create("", 73045), Tuple.Create("ModalTrigger", 73045), true) 7055 ); 7056 7057 WriteLiteralTo(__razor_helper_writer, "></label>\r\n </div>\r\n </div>\r\n"); 7058 7059 7060 #line 1846 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7061 } 7062 7063 7064 #line default 7065 #line hidden 7066 }); 7067 7068 #line 1847 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7069 } 7070 #line default 7071 #line hidden 7072 7073 7074 #line 1852 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7075 public RazorEngine.Templating.TemplateWriter RenderMediaListItem(MediaListItem settings) 7076 { 7077 #line default 7078 #line hidden 7079 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7080 7081 #line 1853 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7082 7083 7084 7085 #line default 7086 #line hidden 7087 WriteLiteralTo(__razor_helper_writer, " <div"); 7088 7089 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 73253), Tuple.Create("\"", 73302) 7090 , Tuple.Create(Tuple.Create("", 73261), Tuple.Create("media-list-item", 73261), true) 7091 7092 #line 1854 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7093 , Tuple.Create(Tuple.Create(" ", 73276), Tuple.Create<System.Object, System.Int32>(settings.CssClass 7094 7095 #line default 7096 #line hidden 7097 , 73277), false) 7098 , Tuple.Create(Tuple.Create(" ", 73295), Tuple.Create("dw-mod", 73296), true) 7099 ); 7100 7101 WriteLiteralTo(__razor_helper_writer, " "); 7102 7103 7104 #line 1854 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7105 WriteTo(__razor_helper_writer, !string.IsNullOrEmpty(settings.Id) ? "id=\"" + settings.Id + "\"" : ""); 7106 7107 7108 #line default 7109 #line hidden 7110 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7111 7112 7113 #line 1855 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7114 7115 7116 #line default 7117 #line hidden 7118 7119 #line 1855 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7120 if (!string.IsNullOrEmpty(settings.Label)) 7121 { 7122 if (!string.IsNullOrEmpty(settings.Link)) 7123 { 7124 7125 7126 #line default 7127 #line hidden 7128 7129 #line 1859 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7130 WriteTo(__razor_helper_writer, Render(new Link 7131 { 7132 Href = settings.Link, 7133 CssClass = "media-list-item__sticker dw-mod", 7134 ButtonLayout = ButtonLayout.None, 7135 Title = settings.Label, 7136 OnClick = !string.IsNullOrEmpty(settings.OnClick) ? settings.OnClick : "" 7137 })); 7138 7139 7140 #line default 7141 #line hidden 7142 7143 #line 1866 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7144 7145 } 7146 else if (!string.IsNullOrEmpty(settings.OnClick)) 7147 { 7148 7149 7150 #line default 7151 #line hidden 7152 WriteLiteralTo(__razor_helper_writer, " <span"); 7153 7154 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__sticker dw-mod\""); 7155 7156 WriteAttributeTo(__razor_helper_writer, "onclick", Tuple.Create(" onclick=\"", 74046), Tuple.Create("\"", 74075) 7157 7158 #line 1870 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7159 , Tuple.Create(Tuple.Create("", 74056), Tuple.Create<System.Object, System.Int32>(settings.OnClick 7160 7161 #line default 7162 #line hidden 7163 , 74056), false) 7164 ); 7165 7166 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 7167 7168 WriteLiteralTo(__razor_helper_writer, " class=\"u-uppercase\""); 7169 7170 WriteLiteralTo(__razor_helper_writer, ">"); 7171 7172 7173 #line 1871 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7174 WriteTo(__razor_helper_writer, settings.Label); 7175 7176 7177 #line default 7178 #line hidden 7179 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </span>\r\n"); 7180 7181 7182 #line 1873 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7183 } 7184 else 7185 { 7186 7187 7188 #line default 7189 #line hidden 7190 WriteLiteralTo(__razor_helper_writer, " <span"); 7191 7192 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__sticker media-list-item__sticker--no-link dw-mod\""); 7193 7194 WriteLiteralTo(__razor_helper_writer, ">\r\n <span"); 7195 7196 WriteLiteralTo(__razor_helper_writer, " class=\"u-uppercase\""); 7197 7198 WriteLiteralTo(__razor_helper_writer, ">"); 7199 7200 7201 #line 1877 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7202 WriteTo(__razor_helper_writer, settings.Label); 7203 7204 7205 #line default 7206 #line hidden 7207 WriteLiteralTo(__razor_helper_writer, "</span>\r\n </span>\r\n"); 7208 7209 7210 #line 1879 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7211 } 7212 } 7213 7214 7215 #line default 7216 #line hidden 7217 WriteLiteralTo(__razor_helper_writer, " <div"); 7218 7219 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__wrap\""); 7220 7221 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 7222 7223 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__info dw-mod\""); 7224 7225 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 7226 7227 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__header dw-mod\""); 7228 7229 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7230 7231 7232 #line 1884 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7233 7234 7235 #line default 7236 #line hidden 7237 7238 #line 1884 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7239 if (!string.IsNullOrEmpty(settings.Title)) 7240 { 7241 if (!string.IsNullOrEmpty(settings.Link)) 7242 { 7243 7244 7245 #line default 7246 #line hidden 7247 7248 #line 1888 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7249 WriteTo(__razor_helper_writer, Render(new Link 7250 { 7251 Href = settings.Link, 7252 CssClass = "media-list-item__name dw-mod", 7253 ButtonLayout = ButtonLayout.None, 7254 Title = settings.Title, 7255 OnClick = !string.IsNullOrEmpty(settings.OnClick) ? settings.OnClick : "" 7256 })); 7257 7258 7259 #line default 7260 #line hidden 7261 7262 #line 1895 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7263 7264 } 7265 else if (!string.IsNullOrEmpty(settings.OnClick)) 7266 { 7267 7268 7269 #line default 7270 #line hidden 7271 WriteLiteralTo(__razor_helper_writer, " <span"); 7272 7273 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__name dw-mod\""); 7274 7275 WriteAttributeTo(__razor_helper_writer, "onclick", Tuple.Create(" onclick=\"", 75456), Tuple.Create("\"", 75485) 7276 7277 #line 1899 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7278 , Tuple.Create(Tuple.Create("", 75466), Tuple.Create<System.Object, System.Int32>(settings.OnClick 7279 7280 #line default 7281 #line hidden 7282 , 75466), false) 7283 ); 7284 7285 WriteLiteralTo(__razor_helper_writer, ">"); 7286 7287 7288 #line 1899 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7289 WriteTo(__razor_helper_writer, settings.Title); 7290 7291 7292 #line default 7293 #line hidden 7294 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 7295 7296 7297 #line 1900 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7298 } 7299 else 7300 { 7301 7302 7303 #line default 7304 #line hidden 7305 WriteLiteralTo(__razor_helper_writer, " <span"); 7306 7307 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__name media-list-item__name--no-link dw-mod\""); 7308 7309 WriteLiteralTo(__razor_helper_writer, ">"); 7310 7311 7312 #line 1903 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7313 WriteTo(__razor_helper_writer, settings.Title); 7314 7315 7316 #line default 7317 #line hidden 7318 WriteLiteralTo(__razor_helper_writer, "</span>\r\n"); 7319 7320 7321 #line 1904 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7322 } 7323 } 7324 7325 7326 #line default 7327 #line hidden 7328 WriteLiteralTo(__razor_helper_writer, "\r\n"); 7329 7330 7331 #line 1907 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7332 7333 7334 #line default 7335 #line hidden 7336 7337 #line 1907 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7338 if (!string.IsNullOrEmpty(settings.Status)) 7339 { 7340 7341 7342 #line default 7343 #line hidden 7344 WriteLiteralTo(__razor_helper_writer, " <div"); 7345 7346 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__state dw-mod\""); 7347 7348 WriteLiteralTo(__razor_helper_writer, ">"); 7349 7350 7351 #line 1909 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7352 WriteTo(__razor_helper_writer, settings.Status); 7353 7354 7355 #line default 7356 #line hidden 7357 WriteLiteralTo(__razor_helper_writer, "</div>\r\n"); 7358 7359 7360 #line 1910 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7361 } 7362 7363 7364 #line default 7365 #line hidden 7366 WriteLiteralTo(__razor_helper_writer, " </div>\r\n"); 7367 7368 7369 #line 1912 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7370 7371 7372 #line default 7373 #line hidden 7374 7375 #line 1912 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7376 7377 settings.InfoTable.CssClass += " media-list-item__parameters-table"; 7378 7379 7380 #line default 7381 #line hidden 7382 WriteLiteralTo(__razor_helper_writer, "\r\n \r\n"); 7383 7384 WriteLiteralTo(__razor_helper_writer, " "); 7385 7386 7387 #line 1916 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7388 WriteTo(__razor_helper_writer, Render(settings.InfoTable)); 7389 7390 7391 #line default 7392 #line hidden 7393 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n <div"); 7394 7395 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__actions dw-mod\""); 7396 7397 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 7398 7399 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__actions-list dw-mod\""); 7400 7401 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7402 7403 7404 #line 1920 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7405 7406 7407 #line default 7408 #line hidden 7409 7410 #line 1920 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7411 7412 var actions = settings.GetActions(); 7413 7414 foreach (ButtonBase action in actions) 7415 { 7416 action.ButtonLayout = ButtonLayout.None; 7417 action.CssClass += " media-list-item__action link"; 7418 7419 7420 7421 #line default 7422 #line hidden 7423 7424 #line 1928 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7425 WriteTo(__razor_helper_writer, Render(action)); 7426 7427 7428 #line default 7429 #line hidden 7430 7431 #line 1928 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7432 7433 } 7434 7435 7436 #line default 7437 #line hidden 7438 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n\r\n"); 7439 7440 7441 #line 1933 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7442 7443 7444 #line default 7445 #line hidden 7446 7447 #line 1933 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7448 if (settings.SelectButton != null && !string.IsNullOrEmpty(settings.SelectButton.Title)) 7449 { 7450 settings.SelectButton.CssClass += " u-no-margin"; 7451 7452 7453 7454 #line default 7455 #line hidden 7456 WriteLiteralTo(__razor_helper_writer, " <div"); 7457 7458 WriteLiteralTo(__razor_helper_writer, " class=\"media-list-item__action-button\""); 7459 7460 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7461 7462 WriteLiteralTo(__razor_helper_writer, " "); 7463 7464 7465 #line 1938 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7466 WriteTo(__razor_helper_writer, Render(settings.SelectButton)); 7467 7468 7469 #line default 7470 #line hidden 7471 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 7472 7473 7474 #line 1940 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7475 } 7476 7477 7478 #line default 7479 #line hidden 7480 WriteLiteralTo(__razor_helper_writer, " </div>\r\n </div>\r\n </div>\r\n"); 7481 7482 7483 #line 1944 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7484 7485 7486 #line default 7487 #line hidden 7488 }); 7489 7490 #line 1944 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7491 } 7492 #line default 7493 #line hidden 7494 7495 7496 #line 1948 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7497 public RazorEngine.Templating.TemplateWriter RenderTable(Table settings) 7498 { 7499 #line default 7500 #line hidden 7501 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7502 7503 #line 1949 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7504 7505 Dictionary<string, string> attributes = new Dictionary<string, string>(); 7506 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 7507 7508 var enumToClasses = new Dictionary<TableDesign, string> 7509 { 7510 { TableDesign.Clean, "table--clean" }, 7511 { TableDesign.Bordered, "table--bordered" }, 7512 { TableDesign.Striped, "table--striped" }, 7513 { TableDesign.Hover, "table--hover" }, 7514 { TableDesign.Compact, "table--compact" }, 7515 { TableDesign.Condensed, "table--condensed" }, 7516 { TableDesign.NoTopBorder, "table--no-top-border" } 7517 }; 7518 string tableDesignClass = ""; 7519 if (settings.Design != TableDesign.None) 7520 { 7521 tableDesignClass = enumToClasses[settings.Design]; 7522 } 7523 7524 if (!string.IsNullOrEmpty(settings.CssClass) || settings.Design != TableDesign.None) { attributes.Add("class", "table " + tableDesignClass + " " + settings.CssClass + " dw-mod"); } 7525 7526 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary(d => d.Key, d => d.Last().Value); 7527 7528 7529 7530 #line default 7531 #line hidden 7532 WriteLiteralTo(__razor_helper_writer, " <table "); 7533 7534 7535 #line 1973 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7536 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 7537 7538 7539 #line default 7540 #line hidden 7541 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7542 7543 7544 #line 1974 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7545 7546 7547 #line default 7548 #line hidden 7549 7550 #line 1974 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7551 if (settings.Header != null) 7552 { 7553 7554 7555 #line default 7556 #line hidden 7557 WriteLiteralTo(__razor_helper_writer, " <thead>\r\n"); 7558 7559 WriteLiteralTo(__razor_helper_writer, " "); 7560 7561 7562 #line 1977 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7563 WriteTo(__razor_helper_writer, Render(settings.Header)); 7564 7565 7566 #line default 7567 #line hidden 7568 WriteLiteralTo(__razor_helper_writer, "\r\n </thead>\r\n"); 7569 7570 7571 #line 1979 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7572 } 7573 7574 7575 #line default 7576 #line hidden 7577 WriteLiteralTo(__razor_helper_writer, " <tbody>\r\n"); 7578 7579 7580 #line 1981 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7581 7582 7583 #line default 7584 #line hidden 7585 7586 #line 1981 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7587 foreach (var row in settings.Rows) 7588 { 7589 7590 7591 #line default 7592 #line hidden 7593 7594 #line 1983 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7595 WriteTo(__razor_helper_writer, Render(row)); 7596 7597 7598 #line default 7599 #line hidden 7600 7601 #line 1983 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7602 7603 } 7604 7605 7606 #line default 7607 #line hidden 7608 WriteLiteralTo(__razor_helper_writer, " </tbody>\r\n"); 7609 7610 7611 #line 1986 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7612 7613 7614 #line default 7615 #line hidden 7616 7617 #line 1986 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7618 if (settings.Footer != null) 7619 { 7620 7621 7622 #line default 7623 #line hidden 7624 WriteLiteralTo(__razor_helper_writer, " <tfoot>\r\n"); 7625 7626 WriteLiteralTo(__razor_helper_writer, " "); 7627 7628 7629 #line 1989 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7630 WriteTo(__razor_helper_writer, Render(settings.Footer)); 7631 7632 7633 #line default 7634 #line hidden 7635 WriteLiteralTo(__razor_helper_writer, "\r\n </tfoot>\r\n"); 7636 7637 7638 #line 1991 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7639 } 7640 7641 7642 #line default 7643 #line hidden 7644 WriteLiteralTo(__razor_helper_writer, " </table>\r\n"); 7645 7646 7647 #line 1993 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7648 7649 7650 #line default 7651 #line hidden 7652 }); 7653 7654 #line 1993 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7655 } 7656 #line default 7657 #line hidden 7658 7659 7660 #line 1997 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7661 public RazorEngine.Templating.TemplateWriter RenderTableRow(TableRow settings) 7662 { 7663 #line default 7664 #line hidden 7665 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7666 7667 #line 1998 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7668 7669 Dictionary<string, string> attributes = new Dictionary<string, string>(); 7670 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 7671 7672 var enumToClasses = new Dictionary<TableRowDesign, string> 7673 { 7674 { TableRowDesign.NoBorder, "table__row--no-border" }, 7675 { TableRowDesign.Border, "table__row--border" }, 7676 { TableRowDesign.TopBorder, "table__row--top-line" }, 7677 { TableRowDesign.BottomBorder, "table__row--bottom-line" }, 7678 { TableRowDesign.Solid, "table__row--solid" } 7679 }; 7680 7681 string tableRowDesignClass = ""; 7682 if (settings.Design != TableRowDesign.None) 7683 { 7684 tableRowDesignClass = enumToClasses[settings.Design]; 7685 } 7686 7687 if (!string.IsNullOrEmpty(settings.CssClass) || settings.Design != TableRowDesign.None) { attributes.Add("class", "table__row " + tableRowDesignClass + " " + settings.CssClass + " dw-mod"); } 7688 7689 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary(d => d.Key, d => d.Last().Value); 7690 7691 7692 7693 #line default 7694 #line hidden 7695 WriteLiteralTo(__razor_helper_writer, " <tr "); 7696 7697 7698 #line 2021 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7699 WriteTo(__razor_helper_writer, ComponentMethods.AddAttributes(resultAttributes)); 7700 7701 7702 #line default 7703 #line hidden 7704 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7705 7706 7707 #line 2022 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7708 7709 7710 #line default 7711 #line hidden 7712 7713 #line 2022 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7714 foreach (var cell in settings.Cells) 7715 { 7716 if (settings.IsHeaderRow) 7717 { 7718 cell.IsHeader = true; 7719 } 7720 7721 7722 #line default 7723 #line hidden 7724 7725 #line 2028 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7726 WriteTo(__razor_helper_writer, Render(cell)); 7727 7728 7729 #line default 7730 #line hidden 7731 7732 #line 2028 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7733 7734 } 7735 7736 7737 #line default 7738 #line hidden 7739 WriteLiteralTo(__razor_helper_writer, " </tr>\r\n"); 7740 7741 7742 #line 2031 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7743 7744 7745 #line default 7746 #line hidden 7747 }); 7748 7749 #line 2031 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7750 } 7751 #line default 7752 #line hidden 7753 7754 7755 #line 2036 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7756 public RazorEngine.Templating.TemplateWriter RenderTableCell(TableCell settings) 7757 { 7758 #line default 7759 #line hidden 7760 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7761 7762 #line 2037 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7763 7764 Dictionary<string, string> attributes = new Dictionary<string, string>(); 7765 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 7766 if (settings.Colspan != 0) { attributes.Add("colspan", Converter.ToString(settings.Colspan)); } 7767 if (settings.Rowspan != 0) { attributes.Add("rowspan", Converter.ToString(settings.Rowspan)); } 7768 if (!string.IsNullOrEmpty(settings.CssClass)) { attributes.Add("class", settings.CssClass + " dw-mod"); } 7769 7770 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary(d => d.Key, d => d.Last().Value); 7771 7772 string tagName = settings.IsHeader ? "th" : "td"; 7773 7774 7775 7776 #line default 7777 #line hidden 7778 7779 #line 2048 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7780 WriteTo(__razor_helper_writer, "<" + tagName + " " + ComponentMethods.AddAttributes(resultAttributes) + ">"); 7781 7782 7783 #line default 7784 #line hidden 7785 7786 #line 2048 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7787 7788 7789 7790 #line default 7791 #line hidden 7792 7793 #line 2049 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7794 WriteTo(__razor_helper_writer, settings.Content); 7795 7796 7797 #line default 7798 #line hidden 7799 7800 #line 2049 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7801 7802 7803 7804 #line default 7805 #line hidden 7806 7807 #line 2050 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7808 WriteTo(__razor_helper_writer, "</" + tagName + ">"); 7809 7810 7811 #line default 7812 #line hidden 7813 7814 #line 2050 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7815 ; 7816 7817 7818 #line default 7819 #line hidden 7820 }); 7821 7822 #line 2051 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7823 } 7824 #line default 7825 #line hidden 7826 7827 7828 #line 2057 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7829 public RazorEngine.Templating.TemplateWriter RenderPagination(Dynamicweb.Rapido.Blocks.Components.General.Pagination settings) 7830 { 7831 #line default 7832 #line hidden 7833 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 7834 7835 #line 2058 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7836 7837 var pageNumberQueryStringName = Dynamicweb.Rapido.Services.Pagination.GetPageNumberQueryStringName(settings); // Get the proper 'page number' query string parameter 7838 var queryParameters = Dynamicweb.Rapido.Services.Url.GetQueryParameters(pageNumberQueryStringName); // Get the NameValueCollection from the querystring 7839 7840 if (settings.NumberOfPages > 1) 7841 { 7842 string url = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority) + "/Default.aspx"; 7843 string ariaLabel = !string.IsNullOrWhiteSpace(settings.AriaLabel) ? settings.AriaLabel : Translate("Page navigation"); 7844 Dictionary<string, int> startAndEndPageNumber = Dynamicweb.Rapido.Services.Pagination.GetStartAndEndPageNumber(settings); 7845 7846 7847 7848 #line default 7849 #line hidden 7850 WriteLiteralTo(__razor_helper_writer, " <div"); 7851 7852 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 82404), Tuple.Create("\"", 82456) 7853 , Tuple.Create(Tuple.Create("", 82412), Tuple.Create("pager", 82412), true) 7854 , Tuple.Create(Tuple.Create(" ", 82417), Tuple.Create("u-margin-top", 82418), true) 7855 , Tuple.Create(Tuple.Create(" ", 82430), Tuple.Create("dw-mod", 82431), true) 7856 7857 #line 2068 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7858 , Tuple.Create(Tuple.Create(" ", 82437), Tuple.Create<System.Object, System.Int32>(settings.CssClass 7859 7860 #line default 7861 #line hidden 7862 , 82438), false) 7863 ); 7864 7865 WriteAttributeTo(__razor_helper_writer, "aria-label", Tuple.Create(" aria-label=\"", 82457), Tuple.Create("\"", 82480) 7866 7867 #line 2068 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7868 , Tuple.Create(Tuple.Create("", 82470), Tuple.Create<System.Object, System.Int32>(ariaLabel 7869 7870 #line default 7871 #line hidden 7872 , 82470), false) 7873 ); 7874 7875 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7876 7877 7878 #line 2069 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7879 7880 7881 #line default 7882 #line hidden 7883 7884 #line 2069 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7885 if (settings.ShowPagingInfo) 7886 { 7887 7888 7889 #line default 7890 #line hidden 7891 WriteLiteralTo(__razor_helper_writer, " <div"); 7892 7893 WriteLiteralTo(__razor_helper_writer, " class=\"pager__info dw-mod\""); 7894 7895 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7896 7897 WriteLiteralTo(__razor_helper_writer, " "); 7898 7899 7900 #line 2072 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7901 WriteTo(__razor_helper_writer, Translate("Page")); 7902 7903 7904 #line default 7905 #line hidden 7906 WriteLiteralTo(__razor_helper_writer, " "); 7907 7908 7909 #line 2072 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7910 WriteTo(__razor_helper_writer, settings.CurrentPageNumber); 7911 7912 7913 #line default 7914 #line hidden 7915 WriteLiteralTo(__razor_helper_writer, " "); 7916 7917 7918 #line 2072 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7919 WriteTo(__razor_helper_writer, Translate("of")); 7920 7921 7922 #line default 7923 #line hidden 7924 WriteLiteralTo(__razor_helper_writer, " "); 7925 7926 7927 #line 2072 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7928 WriteTo(__razor_helper_writer, settings.NumberOfPages); 7929 7930 7931 #line default 7932 #line hidden 7933 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 7934 7935 7936 #line 2074 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7937 } 7938 7939 7940 #line default 7941 #line hidden 7942 WriteLiteralTo(__razor_helper_writer, " <ul"); 7943 7944 WriteLiteralTo(__razor_helper_writer, " class=\"pager__list dw-mod\""); 7945 7946 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 7947 7948 7949 #line 2076 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7950 7951 7952 #line default 7953 #line hidden 7954 7955 #line 2076 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7956 if (!string.IsNullOrWhiteSpace(settings.FirstPageUrl) && settings.ShowFirstAndLastControls) 7957 { 7958 7959 7960 #line default 7961 #line hidden 7962 7963 #line 2078 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7964 WriteTo(__razor_helper_writer, Render(new PaginationItem { Link = settings.FirstPageUrl, Icon = settings.FirstIcon })); 7965 7966 7967 #line default 7968 #line hidden 7969 7970 #line 2078 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7971 7972 } 7973 7974 7975 #line default 7976 #line hidden 7977 WriteLiteralTo(__razor_helper_writer, " "); 7978 7979 7980 #line 2080 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7981 if (!string.IsNullOrWhiteSpace(settings.PreviousPageUrl) && settings.ShowNextAndPrevControls) 7982 { 7983 7984 7985 #line default 7986 #line hidden 7987 7988 #line 2082 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7989 WriteTo(__razor_helper_writer, Render(new PaginationItem { Link = settings.PreviousPageUrl, Icon = settings.PrevIcon })); 7990 7991 7992 #line default 7993 #line hidden 7994 7995 #line 2082 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 7996 7997 } 7998 7999 8000 #line default 8001 #line hidden 8002 WriteLiteralTo(__razor_helper_writer, " "); 8003 8004 8005 #line 2084 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8006 if (settings.GetPages().Any()) 8007 { 8008 foreach (var page in settings.GetPages()) 8009 { 8010 8011 8012 #line default 8013 #line hidden 8014 8015 #line 2088 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8016 WriteTo(__razor_helper_writer, Render(page)); 8017 8018 8019 #line default 8020 #line hidden 8021 8022 #line 2088 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8023 8024 } 8025 } 8026 else 8027 { 8028 for (var page = startAndEndPageNumber["StartPage"]; page <= startAndEndPageNumber["EndPage"]; page++) 8029 { 8030 queryParameters = Dynamicweb.Rapido.Services.Url.UpdateQueryStringParameter(queryParameters, pageNumberQueryStringName, page.ToString()); 8031 8032 8033 #line default 8034 #line hidden 8035 8036 #line 2096 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8037 WriteTo(__razor_helper_writer, Render(new PaginationItem { Label = page.ToString(), Link = Dynamicweb.Rapido.Services.Url.BuildUri(url, queryParameters).PathAndQuery, IsActive = (settings.CurrentPageNumber == page) })); 8038 8039 8040 #line default 8041 #line hidden 8042 8043 #line 2096 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8044 ; 8045 } 8046 } 8047 8048 8049 #line default 8050 #line hidden 8051 WriteLiteralTo(__razor_helper_writer, " "); 8052 8053 8054 #line 2099 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8055 if (!string.IsNullOrWhiteSpace(settings.NextPageUrl) && settings.ShowNextAndPrevControls) 8056 { 8057 8058 8059 #line default 8060 #line hidden 8061 8062 #line 2101 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8063 WriteTo(__razor_helper_writer, Render(new PaginationItem { Link = settings.NextPageUrl, Icon = settings.NextIcon })); 8064 8065 8066 #line default 8067 #line hidden 8068 8069 #line 2101 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8070 8071 } 8072 8073 8074 #line default 8075 #line hidden 8076 WriteLiteralTo(__razor_helper_writer, " "); 8077 8078 8079 #line 2103 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8080 if (!string.IsNullOrWhiteSpace(settings.LastPageUrl) && settings.ShowFirstAndLastControls) 8081 { 8082 8083 8084 #line default 8085 #line hidden 8086 8087 #line 2105 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8088 WriteTo(__razor_helper_writer, Render(new PaginationItem { Link = settings.LastPageUrl, Icon = settings.LastIcon })); 8089 8090 8091 #line default 8092 #line hidden 8093 8094 #line 2105 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8095 8096 } 8097 8098 8099 #line default 8100 #line hidden 8101 WriteLiteralTo(__razor_helper_writer, " </ul>\r\n </div>\r\n"); 8102 8103 8104 #line 2109 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8105 } 8106 8107 8108 #line default 8109 #line hidden 8110 }); 8111 8112 #line 2110 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8113 } 8114 #line default 8115 #line hidden 8116 8117 8118 #line 2112 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8119 public RazorEngine.Templating.TemplateWriter RenderPaginationItem(PaginationItem settings) 8120 { 8121 #line default 8122 #line hidden 8123 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 8124 8125 #line 2113 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8126 8127 if (settings.Icon == null) 8128 { 8129 settings.Icon = new Icon(); 8130 } 8131 8132 settings.Icon.Label = settings.Label; 8133 8134 8135 #line default 8136 #line hidden 8137 WriteLiteralTo(__razor_helper_writer, " <li"); 8138 8139 WriteLiteralTo(__razor_helper_writer, " class=\"pager__btn dw-mod\""); 8140 8141 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8142 8143 8144 #line 2121 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8145 8146 8147 #line default 8148 #line hidden 8149 8150 #line 2121 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8151 if (settings.IsActive) 8152 { 8153 8154 8155 #line default 8156 #line hidden 8157 WriteLiteralTo(__razor_helper_writer, " <span"); 8158 8159 WriteLiteralTo(__razor_helper_writer, " class=\"pager__num pager__num--current dw-mod\""); 8160 8161 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8162 8163 WriteLiteralTo(__razor_helper_writer, " "); 8164 8165 8166 #line 2124 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8167 WriteTo(__razor_helper_writer, Render(settings.Icon)); 8168 8169 8170 #line default 8171 #line hidden 8172 WriteLiteralTo(__razor_helper_writer, "\r\n </span>\r\n"); 8173 8174 8175 #line 2126 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8176 } 8177 else 8178 { 8179 8180 8181 #line default 8182 #line hidden 8183 WriteLiteralTo(__razor_helper_writer, " <a"); 8184 8185 WriteAttributeTo(__razor_helper_writer, "href", Tuple.Create(" href=\"", 85141), Tuple.Create("\"", 85162) 8186 8187 #line 2129 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8188 , Tuple.Create(Tuple.Create("", 85148), Tuple.Create<System.Object, System.Int32>(settings.Link 8189 8190 #line default 8191 #line hidden 8192 , 85148), false) 8193 ); 8194 8195 WriteLiteralTo(__razor_helper_writer, " class=\"pager__num dw-mod text-decoration-none\""); 8196 8197 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 8198 8199 WriteLiteralTo(__razor_helper_writer, " "); 8200 8201 8202 #line 2130 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8203 WriteTo(__razor_helper_writer, Render(settings.Icon)); 8204 8205 8206 #line default 8207 #line hidden 8208 WriteLiteralTo(__razor_helper_writer, "\r\n </a>\r\n"); 8209 8210 8211 #line 2132 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8212 } 8213 8214 8215 #line default 8216 #line hidden 8217 WriteLiteralTo(__razor_helper_writer, " </li>\r\n"); 8218 8219 8220 #line 2134 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8221 8222 8223 #line default 8224 #line hidden 8225 }); 8226 8227 #line 2134 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8228 } 8229 #line default 8230 #line hidden 8231 8232 8233 #line 2139 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8234 8235 public string GenerateRgba(string color, string opacity) 8236 { 8237 color = color.Replace("#", ""); 8238 if (color.Length == 6) { 8239 return "rgba(" + Convert.ToInt32(color.Substring(0, 2), 16) + ", " + Convert.ToInt32(color.Substring(2, 2), 16) + ", " + Convert.ToInt32(color.Substring(4, 2), 16) + ", " + opacity + ");"; 8240 } else { 8241 return Convert.ToInt16(color).ToString(); 8242 } 8243 } 8244 8245 #line default 8246 #line hidden 8247 8248 8249 public RazorEngine_f9dcba9fbdbe4c65a7d8cdc3d8ee0751() { 8250 } 8251 8252 public override void Execute() { 8253 WriteLiteral("\r\n\r\n"); 8254 8255 WriteLiteral("\r\n"); 8256 8257 WriteLiteral("\r\n"); 8258 8259 WriteLiteral("\r\n\r\n"); 8260 8261 WriteLiteral("\r\n"); 8262 8263 WriteLiteral("\r\n\r\n"); 8264 8265 WriteLiteral("\r\n\r\n"); 8266 8267 WriteLiteral("\r\n"); 8268 8269 WriteLiteral("\r\n"); 8270 8271 WriteLiteral("\r\n\r\n"); 8272 8273 WriteLiteral("\r\n"); 8274 8275 WriteLiteral("\r\n"); 8276 8277 WriteLiteral("\r\n\r\n"); 8278 8279 WriteLiteral("\r\n"); 8280 8281 WriteLiteral("\r\n"); 8282 8283 WriteLiteral("\r\n\r\n"); 8284 8285 WriteLiteral("\r\n\r\n"); 8286 8287 WriteLiteral("\r\n"); 8288 8289 WriteLiteral("\r\n\r\n"); 8290 8291 WriteLiteral("\r\n"); 8292 8293 WriteLiteral("\r\n"); 8294 8295 WriteLiteral("\r\n"); 8296 8297 WriteLiteral("\r\n"); 8298 8299 WriteLiteral("\r\n"); 8300 8301 WriteLiteral("\r\n\r\n"); 8302 8303 WriteLiteral("\r\n\r\n"); 8304 8305 WriteLiteral("\r\n\r\n"); 8306 8307 WriteLiteral("\r\n\r\n"); 8308 8309 WriteLiteral("\r\n\r\n"); 8310 8311 WriteLiteral("\r\n\r\n"); 8312 8313 WriteLiteral("\r\n\r\n"); 8314 8315 WriteLiteral("\r\n\r\n"); 8316 8317 WriteLiteral("\r\n\r\n"); 8318 8319 WriteLiteral("\r\n\r\n"); 8320 8321 WriteLiteral("\r\n\r\n"); 8322 8323 WriteLiteral("\r\n"); 8324 8325 WriteLiteral("\r\n\r\n"); 8326 8327 WriteLiteral("\r\n\r\n"); 8328 8329 WriteLiteral("\r\n\r\n"); 8330 8331 WriteLiteral("\r\n"); 8332 8333 WriteLiteral("\r\n"); 8334 8335 WriteLiteral("\r\n\r\n"); 8336 8337 WriteLiteral("\r\n"); 8338 8339 WriteLiteral("\r\n\r\n"); 8340 8341 WriteLiteral("\r\n"); 8342 8343 WriteLiteral("\r\n\r\n"); 8344 8345 WriteLiteral("\r\n"); 8346 8347 WriteLiteral("\r\n\r\n"); 8348 8349 WriteLiteral("\r\n\r\n"); 8350 8351 WriteLiteral("\r\n\r\n"); 8352 8353 WriteLiteral("\r\n\r\n"); 8354 8355 WriteLiteral("\r\n\r\n"); 8356 8357 WriteLiteral("\r\n"); 8358 8359 WriteLiteral("\r\n\r\n"); 8360 8361 WriteLiteral("\r\n\r\n"); 8362 8363 WriteLiteral("\r\n\r\n"); 8364 8365 WriteLiteral("\r\n"); 8366 8367 WriteLiteral("\r\n\r\n"); 8368 8369 WriteLiteral("\r\n\r\n"); 8370 8371 WriteLiteral("\r\n\r\n"); 8372 8373 WriteLiteral("\r\n"); 8374 8375 WriteLiteral("\r\n"); 8376 8377 WriteLiteral("\r\n\r\n"); 8378 8379 WriteLiteral("\r\n\r\n"); 8380 8381 WriteLiteral("\r\n\r\n"); 8382 8383 WriteLiteral("\r\n\r\n"); 8384 8385 WriteLiteral("\r\n\r\n"); 8386 8387 WriteLiteral("\r\n\r\n"); 8388 8389 WriteLiteral("\r\n\r\n"); 8390 8391 WriteLiteral("\r\n"); 8392 8393 WriteLiteral("\r\n\r\n"); 8394 8395 WriteLiteral("\r\n\r\n"); 8396 8397 WriteLiteral("\r\n"); 8398 8399 WriteLiteral("\r\n\r\n"); 8400 8401 WriteLiteral("\r\n\r\n"); 8402 8403 WriteLiteral("\r\n\r\n"); 8404 8405 WriteLiteral("\r\n\r\n"); 8406 8407 WriteLiteral("\r\n\r\n"); 8408 8409 WriteLiteral("\r\n\r\n"); 8410 8411 WriteLiteral("\r\n\r\n"); 8412 8413 WriteLiteral("\r\n\r\n"); 8414 8415 WriteLiteral("\r\n"); 8416 8417 WriteLiteral("\r\n\r\n"); 8418 8419 WriteLiteral("\r\n"); 8420 8421 WriteLiteral("\r\n"); 8422 8423 WriteLiteral("\r\n"); 8424 8425 WriteLiteral("\r\n"); 8426 8427 WriteLiteral("\r\n\r\n"); 8428 8429 WriteLiteral("\r\n"); 8430 8431 WriteLiteral("\r\n\r\n"); 8432 8433 WriteLiteral(" \r\n\r\n"); 8434 8435 WriteLiteral("\r\n"); 8436 8437 8438 #line 2151 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8439 8440 var colorService = new ColorSwatchService(); 8441 string rowWidth = Model.Item.GetList("Width") != null ? "content-row--" + Model.Item.GetList("Width").SelectedValue : ""; 8442 string rowHeight = Model.Item.GetList("Height") != null ? "content-row--height-" + Model.Item.GetList("Height").SelectedValue : ""; 8443 string spacing = Model.Item.GetList("Spacing") != null ? "content-row--spacing-" + Model.Item.GetList("Spacing").SelectedValue : ""; 8444 string spacingPosition = Model.Item.GetList("SpacingPosition") != null ? "content-row--spacing-position-" + Model.Item.GetList("SpacingPosition").SelectedValue : ""; 8445 int spacingRefactored = Model.Item.GetList("Spacing") != null ? Model.Item.GetList("Spacing").SelectedValue == "sm" ? 2 : Model.Item.GetList("Spacing").SelectedValue == "md" ? 3 : Model.Item.GetList("Spacing").SelectedValue == "lg" ? 4 : Model.Item.GetList("Spacing").SelectedValue == "xl" ? 5 : 0 : 0; 8446 string spacingPositionRefactored = Model.Item.GetList("SpacingPosition") != null ? Model.Item.GetList("SpacingPosition").SelectedValue == "bottom" ? "pb-" : Model.Item.GetList("SpacingPosition").SelectedValue == "top" ? "pt-" : "py-" : ""; 8447 string spacingCSSClassRefactored = spacingPositionRefactored + spacingRefactored; 8448 string columnGap = Model.Item.GetList("ColumnGap") != null ? "gap-" + Model.Item.GetList("ColumnGap").SelectedValue : "gap-0"; 8449 string backgroundColor = Model.Item.GetString("BackgroundColor") != null ? Model.Item.GetString("BackgroundColor") : ""; 8450 backgroundColor = !backgroundColor.Contains("#") ? "background-color: " + colorService.GetHexColor(Pageview.AreaID, backgroundColor) : "background-color: " + backgroundColor; 8451 8452 //from commergent logic 8453 // bool hasContainer = rowWidth == "stretch" ? false : true; 8454 //string containerType = Model.Item.GetList("Container_Type").SelectedValue; 8455 string containerClass = rowWidth == "content-row--stretch" ? "container--wide" : rowWidth == "content-row--container" ? "container" : "container--narrow"; 8456 8457 Image image = new Image(); 8458 8459 if (!string.IsNullOrEmpty(Model.Item.GetString("Image"))) 8460 { 8461 int cropMode = !string.IsNullOrEmpty(Convert.ToString(Model.Item.GetList("ImageCrop"))) ? Convert.ToInt32(Model.Item.GetList("ImageCrop").SelectedValue) : 0; 8462 8463 image = new Image 8464 { 8465 Path = Model.Item.GetFile("Image") != null ? Model.Item.GetFile("Image").Path : "", 8466 CssClass = "background-image__cover", 8467 ImageDefault = new ImageSettings 8468 { 8469 Crop = cropMode, 8470 Height = 845, 8471 Width = 1920 8472 }, 8473 ImageMedium = new ImageSettings 8474 { 8475 Crop = cropMode, 8476 Height = 450, 8477 Width = 1024 8478 }, 8479 ImageSmall = new ImageSettings 8480 { 8481 Crop = cropMode, 8482 Height = 544, 8483 Width = 640 8484 } 8485 }; 8486 8487 image.FilterPrimary = !string.IsNullOrEmpty(Model.Item.GetList("ImageFilterPrimary").SelectedValue) ? (ImageFilter)Enum.Parse(typeof(ImageFilter), Model.Item.GetList("ImageFilterPrimary").SelectedValue.Replace("-", ""), true) : ImageFilter.None; 8488 image.FilterSecondary = !string.IsNullOrEmpty(Model.Item.GetList("ImageFilterSecondary").SelectedValue) ? (ImageFilter)Enum.Parse(typeof(ImageFilter), Model.Item.GetList("ImageFilterSecondary").SelectedValue.Replace("-", ""), true) : ImageFilter.None; 8489 8490 if (string.IsNullOrEmpty(Model.Item.GetString("ColorForTheFilter"))) 8491 { 8492 image.FilterColor = Model.Item.GetString("ColorForTheFilter").StartsWith("#") ? GenerateRgba(Model.Item.GetString("ColorForTheFilter"), "0.3") : ""; 8493 } 8494 } 8495 8496 8497 #line default 8498 #line hidden 8499 WriteLiteral("\r\n\r\n\r\n<div"); 8500 8501 WriteAttribute("class", Tuple.Create(" class=\"", 89641), Tuple.Create("\"", 89729) 8502 , Tuple.Create(Tuple.Create("", 89649), Tuple.Create("section__container", 89649), true) 8503 8504 #line 2210 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8505 , Tuple.Create(Tuple.Create(" ", 89667), Tuple.Create<System.Object, System.Int32>(containerClass 8506 8507 #line default 8508 #line hidden 8509 , 89668), false) 8510 8511 #line 2210 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8512 , Tuple.Create(Tuple.Create(" ", 89683), Tuple.Create<System.Object, System.Int32>(spacingCSSClassRefactored 8513 8514 #line default 8515 #line hidden 8516 , 89684), false) 8517 , Tuple.Create(Tuple.Create(" ", 89710), Tuple.Create("content-container", 89711), true) 8518 , Tuple.Create(Tuple.Create(" ", 89728), Tuple.Create("", 89728), true) 8519 ); 8520 8521 WriteAttribute("style", Tuple.Create(" style=\"", 89730), Tuple.Create("\"", 89754) 8522 8523 #line 2210 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8524 , Tuple.Create(Tuple.Create("", 89738), Tuple.Create<System.Object, System.Int32>(backgroundColor 8525 8526 #line default 8527 #line hidden 8528 , 89738), false) 8529 ); 8530 8531 WriteLiteral(">\r\n"); 8532 8533 8534 #line 2211 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8535 8536 8537 #line default 8538 #line hidden 8539 8540 #line 2211 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8541 if (!string.IsNullOrEmpty(Model.Item.GetString("Image"))) 8542 { 8543 8544 8545 #line default 8546 #line hidden 8547 WriteLiteral(" <div"); 8548 8549 WriteLiteral(" class=\"background-image\""); 8550 8551 WriteLiteral(">\r\n <div"); 8552 8553 WriteLiteral(" class=\"background-image__wrapper\""); 8554 8555 WriteLiteral(">\r\n"); 8556 8557 WriteLiteral(" "); 8558 8559 8560 #line 2215 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8561 Write(Render(image)); 8562 8563 8564 #line default 8565 #line hidden 8566 WriteLiteral("\r\n </div> \r\n </div>\r\n"); 8567 8568 8569 #line 2218 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8570 } 8571 8572 8573 #line default 8574 #line hidden 8575 WriteLiteral("\r\n <div"); 8576 8577 WriteAttribute("class", Tuple.Create(" class=\"", 90008), Tuple.Create("\"", 90111) 8578 , Tuple.Create(Tuple.Create("", 90016), Tuple.Create("section__content", 90016), true) 8579 , Tuple.Create(Tuple.Create(" ", 90032), Tuple.Create("content-row", 90033), true) 8580 , Tuple.Create(Tuple.Create(" ", 90044), Tuple.Create("grid-1-2", 90045), true) 8581 8582 #line 2220 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8583 , Tuple.Create(Tuple.Create(" ", 90053), Tuple.Create<System.Object, System.Int32>(columnGap 8584 8585 #line default 8586 #line hidden 8587 , 90054), false) 8588 8589 #line 2220 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8590 , Tuple.Create(Tuple.Create(" ", 90064), Tuple.Create<System.Object, System.Int32>(rowWidth 8591 8592 #line default 8593 #line hidden 8594 , 90065), false) 8595 8596 #line 2220 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8597 , Tuple.Create(Tuple.Create(" ", 90074), Tuple.Create<System.Object, System.Int32>(rowHeight 8598 8599 #line default 8600 #line hidden 8601 , 90075), false) 8602 8603 #line 2220 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8604 , Tuple.Create(Tuple.Create(" ", 90085), Tuple.Create<System.Object, System.Int32>(spacing 8605 8606 #line default 8607 #line hidden 8608 , 90086), false) 8609 8610 #line 2220 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8611 , Tuple.Create(Tuple.Create(" ", 90094), Tuple.Create<System.Object, System.Int32>(spacingPosition 8612 8613 #line default 8614 #line hidden 8615 , 90095), false) 8616 ); 8617 8618 WriteLiteral(">\r\n"); 8619 8620 8621 #line 2221 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8622 8623 8624 #line default 8625 #line hidden 8626 8627 #line 2221 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8628 8629 foreach (var column in Model.Columns) 8630 { 8631 8632 8633 #line default 8634 #line hidden 8635 8636 #line 2224 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8637 Write(RenderColumn(column)); 8638 8639 8640 #line default 8641 #line hidden 8642 8643 #line 2224 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 8644 8645 } 8646 8647 8648 #line default 8649 #line hidden 8650 WriteLiteral("\r\n </div>\r\n</div>\r\n"); 8651 8652 } 8653 } 8654 } 8655

1 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.GridRowViewModel> 2 @using Dynamicweb.Frontend 3 @using Dynamicweb.Content 4 @using Dynamicweb.Content.Items 5 6 7 @inherits Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.GridRowViewModel> 8 @using Dynamicweb.Frontend 9 @using Dynamicweb.Content 10 @using Dynamicweb.Content.Items 11 @using Dynamicweb 12 13 @helper RenderColumn(GridColumnViewModel column) { 14 Paragraph paragraph = column.ParagraphId > 0 ? Services.Paragraphs.GetParagraph(column.ParagraphId) : null; 15 var colorService = new ColorSwatchService(); 16 17 //All paragraph settings may come from e.g. column.Item.GetITem("Common").GetItem("BackgroundColor") instead 18 19 if (paragraph != null) { 20 if (paragraph.Item != null) { 21 string backgroundColor = paragraph.Item["BackgroundColor"] != null ? paragraph.Item["BackgroundColor"].ToString() : ""; 22 string customCSSClass = paragraph.Item["Custom_Class"] != null ? paragraph.Item["Custom_Class"].ToString() : ""; 23 backgroundColor = !backgroundColor.Contains("#") ? colorService.GetHexColor(Pageview.AreaID, backgroundColor) : backgroundColor; 24 string textColor = paragraph.Item["TextColor"] != null ? paragraph.Item["TextColor"].ToString() : ""; 25 textColor = !textColor.Contains("#") ? colorService.GetHexColor(Pageview.AreaID, textColor) : textColor; 26 string styles = "background-color: " + backgroundColor + "; color: " + textColor; 27 28 string horizontalAlign = paragraph.Item["HorizontalAlignment"] != null ? "u-align-" + paragraph.Item["HorizontalAlignment"].ToString().ToLower() : ""; 29 string horizontalAlignContent = paragraph.Item["HorizontalAlignmentContent"] != null ? "u-align-content-" + paragraph.Item["HorizontalAlignmentContent"].ToString().ToLower() : ""; 30 string verticalAlign = paragraph.Item["VerticalAlignment"] != null ? "u-align-self-" + paragraph.Item["VerticalAlignment"].ToString().ToLower() : ""; 31 string alignmentCssClasses = horizontalAlign + " " + horizontalAlignContent + " " + verticalAlign; 32 33 string itemBodyCssClass = paragraph.Item["MoveBodyInside"] != null ? "u-full-width" : "content-row__item__body"; 34 itemBodyCssClass += paragraph.Item["MoveBodyInside"] == null && paragraph.Item["Padding"] != null ? " padding-size-" + paragraph.Item["Padding"].ToString().ToLower() : ""; 35 itemBodyCssClass += paragraph.Item["MoveBodyInside"] == null && paragraph.Item["PaddingPosition"] != null ? " padding-position-" + paragraph.Item["PaddingPosition"].ToString().ToLower() : ""; 36 37 <div class="content-row__item rowItemContent-@column.ParagraphId h-100 dw-mod @customCSSClass" style="@styles"> 38 @if (!string.IsNullOrEmpty(textColor)) { 39 <style> 40 .rowItemContent-@column.ParagraphId p, .rowItemContent-@column.ParagraphId h1, .rowItemContent-@column.ParagraphId h2, .rowItemContent-@column.ParagraphId h3 { 41 color: @textColor; 42 } 43 </style> 44 } 45 <div class="@itemBodyCssClass @alignmentCssClasses dw-mod h-100 flex-wrap"> 46 @column.Output() 47 </div> 48 </div> 49 } else { 50 51 } 52 } else { 53 @RenderPlaceholderForTheContentBuilder(column) 54 } 55 } 56 57 @helper RenderPlaceholderForTheContentBuilder(GridColumnViewModel column) { 58 //For the content builder - Empty columns 59 60 <div class="content-row__item dw-mod"> 61 <div class="content-row__item__body dw-mod"> 62 @column.Output() 63 </div> 64 </div> 65 } 66 67 68 @* Include the components *@ 69 @using System.Text.RegularExpressions 70 @using System.Collections.Generic 71 @using System.Reflection 72 @using System.Web 73 @using System.Web.UI.HtmlControls 74 @using Dynamicweb.Rapido.Blocks.Components 75 @using Dynamicweb.Rapido.Blocks.Components.Articles 76 @using Dynamicweb.Rapido.Blocks.Components.Documentation 77 @using Dynamicweb.Rapido.Blocks 78 79 80 @*--- START: Base block renderers ---*@ 81 82 @helper RenderBlockList(List<Block> blocks) 83 { 84 bool debug = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("debug")) ? Convert.ToBoolean(HttpContext.Current.Request.QueryString.Get("debug")) : false; 85 blocks = blocks.OrderBy(item => item.SortId).ToList(); 86 87 foreach (Block item in blocks) 88 { 89 if (debug) { 90 <!-- Block START: @item.Id --> 91 } 92 93 if (item.Design == null) 94 { 95 @RenderBlock(item) 96 } 97 else if (item.Design.RenderType == RenderType.None) { 98 string cssClass = item.Design.CssClass != null ? item.Design.CssClass : ""; 99 100 <div class="@cssClass dw-mod"> 101 @RenderBlock(item) 102 </div> 103 } 104 else if (item.Design.RenderType != RenderType.Hide) 105 { 106 string cssClass = item.Design.CssClass != null ? item.Design.CssClass : ""; 107 108 if (!item.SkipRenderBlocksList) { 109 if (item.Design.RenderType == RenderType.Row) 110 { 111 <div class="grid grid--align-content-start @cssClass dw-mod" id="Block__@item.Id"> 112 @RenderBlock(item) 113 </div> 114 } 115 116 if (item.Design.RenderType == RenderType.Column) 117 { 118 string hidePadding = item.Design.HidePadding ? "u-no-padding" : ""; 119 string size = item.Design.Size ?? "12"; 120 size = Regex.IsMatch(size, @"\d") ? "md-" + item.Design.Size : item.Design.Size; 121 122 <div class="col-@item.Design.Size grid__col-md-@item.Design.Size grid__col-sm-12 grid__col-xs-12 @hidePadding @cssClass dw-mod" id="Block__@item.Id"> 123 @RenderBlock(item) 124 </div> 125 } 126 127 if (item.Design.RenderType == RenderType.Table) 128 { 129 <table class="table @cssClass dw-mod" id="Block__@item.Id"> 130 @RenderBlock(item) 131 </table> 132 } 133 134 if (item.Design.RenderType == RenderType.TableRow) 135 { 136 <tr class="@cssClass dw-mod" id="Block__@item.Id"> 137 @RenderBlock(item) 138 </tr> 139 } 140 141 if (item.Design.RenderType == RenderType.TableColumn) 142 { 143 <td class="@cssClass dw-mod" id="Block__@item.Id"> 144 @RenderBlock(item) 145 </td> 146 } 147 148 if (item.Design.RenderType == RenderType.CardHeader) 149 { 150 <div class="card-header @cssClass dw-mod"> 151 @RenderBlock(item) 152 </div> 153 } 154 155 if (item.Design.RenderType == RenderType.CardBody) 156 { 157 <div class="card @cssClass dw-mod"> 158 @RenderBlock(item) 159 </div> 160 } 161 162 if (item.Design.RenderType == RenderType.CardFooter) 163 { 164 <div class="card-footer @cssClass dw-mod"> 165 @RenderBlock(item) 166 </div> 167 } 168 } 169 else 170 { 171 @RenderBlock(item) 172 } 173 } 174 175 if (debug) { 176 <!-- Block END: @item.Id --> 177 } 178 } 179 } 180 181 @helper RenderBlock(Block item) 182 { 183 bool debug = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("debug")) ? Convert.ToBoolean(HttpContext.Current.Request.QueryString.Get("debug")) : false; 184 185 if (item.Template != null) 186 { 187 @BlocksPage.RenderTemplate(item.Template) 188 } 189 190 if (item.Component != null) 191 { 192 string customSufix = "Custom"; 193 string methodName = item.Component.HelperName; 194 195 ComponentBase[] methodParameters = new ComponentBase[1]; 196 methodParameters[0] = item.Component; 197 Type methodType = this.GetType(); 198 199 MethodInfo customMethod = methodType.GetMethod(methodName + customSufix); 200 MethodInfo generalMethod = methodType.GetMethod(methodName); 201 202 try { 203 if (debug) { 204 <!-- Component: @methodName.Replace("Render", "") --> 205 } 206 @customMethod.Invoke(this, methodParameters).ToString(); 207 } catch { 208 try { 209 @generalMethod.Invoke(this, methodParameters).ToString(); 210 } catch(Exception ex) { 211 throw new Exception(item.Component.GetType().Name + " method '" + methodName +"' could not be invoked", ex); 212 } 213 } 214 } 215 216 if (item.BlocksList.Count > 0 && !item.SkipRenderBlocksList) 217 { 218 @RenderBlockList(item.BlocksList) 219 } 220 } 221 222 @*--- END: Base block renderers ---*@ 223 224 @using Dynamicweb.Rapido.Blocks.Components 225 @using Dynamicweb.Rapido.Blocks.Components.General 226 @using Dynamicweb.Rapido.Blocks 227 @using System.IO 228 229 @* Required *@ 230 @using Dynamicweb.Rapido.Blocks.Components 231 @using Dynamicweb.Rapido.Blocks.Components.General 232 @using Dynamicweb.Rapido.Blocks 233 234 235 @helper Render(ComponentBase component) 236 { 237 if (component != null) 238 { 239 @component.Render(this) 240 } 241 } 242 243 @* Components *@ 244 @using System.Reflection 245 @using Dynamicweb.Rapido.Blocks.Components.General 246 247 248 @* Component *@ 249 250 @helper RenderIcon(Icon settings) 251 { 252 if (settings != null) 253 { 254 string color = settings.Color != null ? "style=\"color: " + settings.Color + "\"" : ""; 255 256 if (settings.Name != null) 257 { 258 if (string.IsNullOrEmpty(settings.Label)) 259 { 260 <i class="@settings.Prefix @settings.Name @settings.CssClass" @color></i> 261 } 262 else 263 { 264 if (settings.LabelPosition == IconLabelPosition.Before) 265 { 266 <div class="u-flex u-flex--align-items-center @settings.CssClass">@settings.Label <i class="@settings.Prefix @settings.Name u-margin-left" @color></i></div> 267 } 268 else 269 { 270 <div class="u-flex u-flex--align-items-center @settings.CssClass"><i class="@settings.Prefix @settings.Name u-margin-right--lg u-w20px" @color></i>@settings.Label</div> 271 } 272 } 273 } 274 else if (!string.IsNullOrEmpty(settings.Label)) 275 { 276 @settings.Label 277 } 278 } 279 } 280 @using System.Reflection 281 @using Dynamicweb.Rapido.Blocks.Components.General 282 @using Dynamicweb.Rapido.Blocks.Components 283 @using Dynamicweb.Core 284 285 @* Component *@ 286 287 @helper RenderButton(Button settings) 288 { 289 if (settings != null && (!string.IsNullOrEmpty(settings.Title) || settings.Icon != null)) 290 { 291 Dictionary<string, string> attributes = new Dictionary<string, string>(); 292 List<string> classList = settings.CssClass != null ? settings.CssClass.Split(' ').ToList() : new List<string>(); 293 if (settings.Disabled) { 294 attributes.Add("disabled", "true"); 295 classList.Add("disabled"); 296 } 297 298 if (!string.IsNullOrEmpty(settings.ConfirmText) || !string.IsNullOrEmpty(settings.ConfirmTitle)) 299 { 300 settings.Id = !string.IsNullOrEmpty(settings.Id) ? settings.Id : Guid.NewGuid().ToString("N"); 301 @RenderConfirmDialog(settings); 302 settings.OnClick = "document.getElementById('" + settings.Id + "ModalTrigger').checked = true"; 303 } 304 305 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 306 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 307 if (!string.IsNullOrEmpty(settings.AltText)) 308 { 309 attributes.Add("title", settings.AltText); 310 } 311 else if (!string.IsNullOrEmpty(settings.Title)) 312 { 313 attributes.Add("title", settings.Title); 314 } 315 316 var onClickEvents = new List<string>(); 317 if (!string.IsNullOrEmpty(settings.OnClick)) 318 { 319 onClickEvents.Add(settings.OnClick); 320 } 321 if (!string.IsNullOrEmpty(settings.Href)) 322 { 323 onClickEvents.Add("location.href='" + settings.Href + "'"); 324 } 325 if (onClickEvents.Count > 0) 326 { 327 attributes.Add("onClick", string.Join(";", onClickEvents)); 328 } 329 330 if (settings.ButtonLayout != ButtonLayout.None) 331 { 332 classList.Add("btn"); 333 string btnLayout = Enum.GetName(typeof(ButtonLayout), settings.ButtonLayout).ToLower(); 334 if (btnLayout == "linkclean") 335 { 336 btnLayout = "link-clean"; //fix 337 } 338 classList.Add("btn-fill--" + btnLayout); 339 } 340 341 if (settings.Icon == null) 342 { 343 settings.Icon = new Icon(); 344 } 345 346 settings.Icon.CssClass += Enum.GetName(typeof(ButtonLayout), settings.ButtonLayout).ToLower() != "linkclean" ? " u-flex--align-center" : ""; 347 settings.Icon.Label = settings.Title; 348 349 attributes.Add("type", Enum.GetName(typeof(ButtonType), settings.ButtonType).ToLower()); 350 351 <button class="@string.Join(" ", classList) dw-mod" @ComponentMethods.AddAttributes(attributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes)>@Render(settings.Icon)</button> 352 } 353 } 354 355 @helper RenderConfirmDialog(Button settings) 356 { 357 Modal confirmDialog = new Modal { 358 Id = settings.Id, 359 Width = ModalWidth.Sm, 360 Heading = new Heading 361 { 362 Level = 2, 363 Title = settings.ConfirmTitle 364 }, 365 BodyText = settings.ConfirmText 366 }; 367 368 confirmDialog.AddAction(new Button { Title = Translate("Cancel"), ButtonLayout = ButtonLayout.Secondary, OnClick = "document.getElementById('" + settings.Id + "ModalTrigger').checked = false"}); 369 confirmDialog.AddAction(new Button { Title = Translate("OK"), ButtonLayout = ButtonLayout.Primary, OnClick = "document.getElementById('" + settings.Id + "ModalTrigger').checked = false;" + settings.OnClick }); 370 371 @Render(confirmDialog) 372 } 373 @using Dynamicweb.Rapido.Blocks.Components.General 374 @using Dynamicweb.Rapido.Blocks.Components 375 @using Dynamicweb.Core 376 377 @helper RenderDashboard(Dashboard settings) 378 { 379 var widgets = settings.GetWidgets(); 380 381 if (!string.IsNullOrEmpty(settings.WidgetsBaseBackgroundColor)) 382 { 383 //set bg color for them 384 385 System.Drawing.Color color = System.Drawing.ColorTranslator.FromHtml(settings.WidgetsBaseBackgroundColor); 386 int r = Convert.ToInt16(color.R); 387 int g = Convert.ToInt16(color.G); 388 int b = Convert.ToInt16(color.B); 389 390 var count = widgets.Length; 391 var max = Math.Max(r, Math.Max(g, b)); 392 double step = 255.0 / (max * count); 393 var i = 0; 394 foreach (var widget in widgets) 395 { 396 i++; 397 398 var shade = "rgb(" + Converter.ToString(r * step * i).Replace(",", ".") + ", " + Converter.ToString(g * step * i).Replace(",", ".") + ", " + Converter.ToString(b * step * i).Replace(",", ".") + ")"; 399 widget.BackgroundColor = shade; 400 } 401 } 402 403 <div class="dashboard @settings.CssClass dw-mod" @ComponentMethods.AddAttributes(settings.ExtraAttributes)> 404 @foreach (var widget in widgets) 405 { 406 <div class="dashboard__widget"> 407 @Render(widget) 408 </div> 409 } 410 </div> 411 } 412 @using Dynamicweb.Rapido.Blocks.Components.General 413 @using Dynamicweb.Rapido.Blocks.Components 414 415 @helper RenderDashboardWidgetLink(DashboardWidgetLink settings) 416 { 417 if (!string.IsNullOrEmpty(settings.Link)) 418 { 419 var backgroundStyles = ""; 420 if (!string.IsNullOrEmpty(settings.BackgroundColor)) 421 { 422 backgroundStyles = "style=\"background-color:" + settings.BackgroundColor + "\""; 423 } 424 425 <a href="@settings.Link" class="widget widget--link @settings.CssClass dw-mod" @backgroundStyles title="@settings.Title" @ComponentMethods.AddAttributes(settings.ExtraAttributes)> 426 <div class="u-center-middle u-color-light"> 427 @if (settings.Icon != null) 428 { 429 settings.Icon.CssClass += "widget__icon"; 430 @Render(settings.Icon) 431 } 432 <div class="widget__title">@settings.Title</div> 433 </div> 434 </a> 435 } 436 } 437 @using Dynamicweb.Rapido.Blocks.Components.General 438 @using Dynamicweb.Rapido.Blocks.Components 439 440 @helper RenderDashboardWidgetCounter(DashboardWidgetCounter settings) 441 { 442 var backgroundStyles = ""; 443 if (!string.IsNullOrEmpty(settings.BackgroundColor)) 444 { 445 backgroundStyles = "style='background-color:" + settings.BackgroundColor + "'"; 446 } 447 448 <div class="widget @settings.CssClass dw-mod" @backgroundStyles @ComponentMethods.AddAttributes(settings.ExtraAttributes)> 449 <div class="u-center-middle u-color-light"> 450 @if (settings.Icon != null) 451 { 452 settings.Icon.CssClass += "widget__icon"; 453 @Render(settings.Icon) 454 } 455 <div class="widget__counter">@settings.Count</div> 456 <div class="widget__title">@settings.Title</div> 457 </div> 458 </div> 459 } 460 @using System.Reflection 461 @using Dynamicweb.Rapido.Blocks.Components.General 462 @using Dynamicweb.Rapido.Blocks.Components 463 @using Dynamicweb.Core 464 465 @* Component *@ 466 467 @helper RenderLink(Link settings) 468 { 469 if (settings != null && !string.IsNullOrEmpty(settings.Href) && (!string.IsNullOrEmpty(settings.Title) || settings.Icon != null)) 470 { 471 Dictionary<string, string> attributes = new Dictionary<string, string>(); 472 List<string> classList = settings.CssClass != null ? settings.CssClass.Split(' ').ToList() : new List<string>(); 473 if (settings.Disabled) 474 { 475 attributes.Add("disabled", "true"); 476 classList.Add("disabled"); 477 } 478 479 if (!string.IsNullOrEmpty(settings.AltText)) 480 { 481 attributes.Add("title", settings.AltText); 482 } 483 else if (!string.IsNullOrEmpty(settings.Title)) 484 { 485 attributes.Add("title", settings.Title); 486 } 487 488 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 489 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 490 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onClick", settings.OnClick); } 491 attributes.Add("href", settings.Href); 492 493 if (settings.ButtonLayout != ButtonLayout.None) 494 { 495 classList.Add("btn"); 496 string btnLayout = Enum.GetName(typeof(ButtonLayout), settings.ButtonLayout).ToLower(); 497 if (btnLayout == "linkclean") 498 { 499 btnLayout = "link-clean"; //fix 500 } 501 classList.Add("btn--" + btnLayout); 502 } 503 504 if (settings.Icon == null) 505 { 506 settings.Icon = new Icon(); 507 } 508 settings.Icon.Label = settings.Title; 509 510 if (settings.Target == LinkTargetType.Blank && settings.Rel == LinkRelType.None) 511 { 512 settings.Rel = LinkRelType.Noopener; 513 } 514 if (settings.Target != LinkTargetType.None) 515 { 516 attributes.Add("target", "_" + Enum.GetName(typeof(LinkTargetType), settings.Target).ToLower()); 517 } 518 if (settings.Download) 519 { 520 attributes.Add("download", "true"); 521 } 522 if (settings.Rel != LinkRelType.None) 523 { 524 attributes.Add("rel", Enum.GetName(typeof(LinkRelType), settings.Rel).ToLower()); 525 } 526 527 <a class="@string.Join(" ", classList) dw-mod" @ComponentMethods.AddAttributes(attributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes)>@Render(settings.Icon)</a> 528 } 529 } 530 @using System.Reflection 531 @using Dynamicweb.Rapido.Blocks.Components 532 @using Dynamicweb.Rapido.Blocks.Components.General 533 @using Dynamicweb.Rapido.Blocks 534 535 536 @* Component *@ 537 538 @helper RenderRating(Rating settings) 539 { 540 if (settings.Score > 0) 541 { 542 int rating = settings.Score; 543 string iconType = "fa-star"; 544 545 switch (settings.Type.ToString()) { 546 case "Stars": 547 iconType = "fa-star"; 548 break; 549 case "Hearts": 550 iconType = "fa-heart"; 551 break; 552 case "Lemons": 553 iconType = "fa-lemon"; 554 break; 555 case "Bombs": 556 iconType = "fa-bomb"; 557 break; 558 } 559 560 <div class="u-ta-right"> 561 @for (int i = 0; i < settings.OutOf; i++) 562 { 563 <i class="@(rating > i ? "fas" : "far") @iconType"></i> 564 } 565 </div> 566 } 567 } 568 @using System.Reflection 569 @using Dynamicweb.Rapido.Blocks.Components.General 570 @using Dynamicweb.Rapido.Blocks.Components 571 572 573 @* Component *@ 574 575 @helper RenderSelectFieldOption(SelectFieldOption settings) 576 { 577 Dictionary<string, string> attributes = new Dictionary<string, string>(); 578 if (settings.Checked) { attributes.Add("selected", "true"); } 579 if (settings.Disabled) { attributes.Add("disabled", "true"); } 580 if (settings.Value != null) { attributes.Add("value", settings.Value); } 581 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 582 583 <option @ComponentMethods.AddAttributes(attributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes)>@settings.Label</option> 584 } 585 @using System.Reflection 586 @using Dynamicweb.Rapido.Blocks.Components.General 587 @using Dynamicweb.Rapido.Blocks.Components 588 589 590 @* Component *@ 591 592 @helper RenderNavigation(Navigation settings) { 593 @RenderNavigation(new 594 { 595 id = settings.Id, 596 cssclass = settings.CssClass, 597 startLevel = settings.StartLevel, 598 endlevel = settings.EndLevel, 599 expandmode = settings.Expandmode, 600 sitemapmode = settings.SitemapMode, 601 template = settings.Template 602 }) 603 } 604 @using Dynamicweb.Rapido.Blocks.Components.General 605 @using Dynamicweb.Rapido.Blocks.Components 606 607 608 @* Component *@ 609 610 @helper RenderBreadcrumbNavigation(BreadcrumbNavigation settings) { 611 settings.Id = String.IsNullOrEmpty(settings.Id) ? "breadcrumb" : settings.Id; 612 settings.Template = String.IsNullOrEmpty(settings.Template) ? "Breadcrumb.xslt" : settings.Template; 613 settings.StartLevel = settings.StartLevel == 0 ? 1 : settings.StartLevel; 614 settings.EndLevel = settings.EndLevel == 10 ? 1 : settings.EndLevel; 615 settings.Expandmode = String.IsNullOrEmpty(settings.Expandmode) ? "all" : settings.Expandmode; 616 settings.SitemapMode = false; 617 618 @RenderNavigation(settings) 619 } 620 @using Dynamicweb.Rapido.Blocks.Components.General 621 @using Dynamicweb.Rapido.Blocks.Components 622 623 624 @* Component *@ 625 626 @helper RenderLeftNavigation(LeftNavigation settings) { 627 settings.Id = String.IsNullOrEmpty(settings.Id) ? "breadcrumb" : settings.Id; 628 settings.Template = String.IsNullOrEmpty(settings.Template) ? "Breadcrumb.xslt" : settings.Template; 629 settings.StartLevel = settings.StartLevel == 0 ? 1 : settings.StartLevel; 630 settings.EndLevel = settings.EndLevel == 10 ? 1 : settings.EndLevel; 631 settings.Expandmode = String.IsNullOrEmpty(settings.Expandmode) ? "all" : settings.Expandmode; 632 633 <div class="grid__cell"> 634 @RenderNavigation(settings) 635 </div> 636 } 637 @using System.Reflection 638 @using Dynamicweb.Rapido.Blocks.Components.General 639 @using Dynamicweb.Core 640 641 @* Component *@ 642 643 @helper RenderHeading(Heading settings) 644 { 645 if (settings != null && !string.IsNullOrEmpty(settings.Title)) 646 { 647 string color = settings.Color != null ? "style=\"color: " + settings.Color + "\"" : ""; 648 string tagName = settings.Level != 0 ? "h" + settings.Level.ToString() : "div"; 649 650 @("<" + tagName + " class=\"" + settings.CssClass + " dw-mod\" " + color + ">") 651 if (!string.IsNullOrEmpty(settings.Link)) 652 { 653 @Render(new Link { Href = settings.Link, Icon = settings.Icon, Title = settings.Title, ButtonLayout = ButtonLayout.None }) 654 } 655 else 656 { 657 if (settings.Icon == null) 658 { 659 settings.Icon = new Icon(); 660 } 661 settings.Icon.Label = settings.Title; 662 @Render(settings.Icon) 663 } 664 @("</" + tagName + ">"); 665 } 666 } 667 @using Dynamicweb.Rapido.Blocks.Components 668 @using Dynamicweb.Rapido.Blocks.Components.General 669 @using Dynamicweb.Rapido.Blocks 670 671 672 @* Component *@ 673 674 @helper RenderImage(Image settings) 675 { 676 if (settings.FilterPrimary != ImageFilter.None || settings.FilterSecondary != ImageFilter.None) 677 { 678 Dictionary<string, string> optionalAttributes = new Dictionary<string, string>(); 679 if (!string.IsNullOrEmpty(settings.FilterColor)) { optionalAttributes.Add("style", "background-color: " + settings.FilterColor); } 680 681 if (settings.Caption != null) 682 { 683 @:<div> 684 } 685 686 var primaryFilterClass = settings.FilterPrimary.ToString().ToLower(); 687 var secondaryFilterClass = settings.FilterSecondary.ToString().ToLower(); 688 689 <div class="image-filter image-filter--@primaryFilterClass u-position-relative dw-mod" @ComponentMethods.AddAttributes(optionalAttributes)> 690 <div class="image-filter image-filter--@secondaryFilterClass dw-mod"> 691 @if (settings.Link != null) 692 { 693 <a href="@settings.Link"> 694 @RenderTheImage(settings) 695 </a> 696 } 697 else 698 { 699 @RenderTheImage(settings) 700 } 701 </div> 702 </div> 703 704 if (settings.Caption != null) 705 { 706 <span class="image-caption dw-mod">@settings.Caption</span> 707 @:</div> 708 } 709 } 710 else 711 { 712 if (settings.Caption != null) 713 { 714 @:<div> 715 } 716 if (!string.IsNullOrEmpty(settings.Link)) 717 { 718 <a href="@settings.Link"> 719 @RenderTheImage(settings) 720 </a> 721 } 722 else 723 { 724 @RenderTheImage(settings) 725 } 726 727 if (settings.Caption != null) 728 { 729 <span class="image-caption dw-mod">@settings.Caption</span> 730 @:</div> 731 } 732 } 733 } 734 735 @helper RenderTheImage(Image settings) 736 { 737 if (settings != null) 738 { 739 string alternativeImage = !string.IsNullOrEmpty(Pageview.AreaSettings.GetItem("Settings").GetString("AlternativeImage")) ? Pageview.AreaSettings.GetItem("Settings").GetFile("AlternativeImage").PathUrlEncoded : "/Images/missing_image.jpg"; 740 string placeholderImage = "/Files/Images/placeholder.gif"; 741 string imageEngine = "/Admin/Public/GetImage.ashx?"; 742 743 string imageStyle = ""; 744 745 switch (settings.Style) 746 { 747 case ImageStyle.Ball: 748 imageStyle = "grid__cell-img--ball"; 749 break; 750 751 case ImageStyle.Triangle: 752 imageStyle = "grid__cell-img--triangle"; 753 break; 754 } 755 756 if (settings.Style == ImageStyle.Ball || settings.Style == ImageStyle.Circle || settings.Style == ImageStyle.Triangle) 757 { 758 settings.ImageDefault.Crop = settings.ImageDefault.Crop == 5 ? settings.ImageDefault.Crop = 0 : settings.ImageDefault.Crop; 759 760 if (settings.ImageDefault != null) 761 { 762 settings.ImageDefault.Height = settings.ImageDefault.Width; 763 } 764 if (settings.ImageMedium != null) 765 { 766 settings.ImageMedium.Height = settings.ImageMedium.Width; 767 } 768 if (settings.ImageSmall != null) 769 { 770 settings.ImageSmall.Height = settings.ImageSmall.Width; 771 } 772 } 773 774 string defaultImage = imageEngine; 775 string imageSmall = ""; 776 string imageMedium = ""; 777 778 if (settings.DisableImageEngine) 779 { 780 defaultImage = settings.Path; 781 } 782 else 783 { 784 if (settings.ImageDefault != null) 785 { 786 defaultImage += Dynamicweb.Rapido.Services.Images.GetImagePathFromSettings(settings.ImageDefault); 787 788 if (settings.Path.GetType() != typeof(string)) 789 { 790 defaultImage += settings.Path != null ? "Image=" + settings.Path.PathUrlEncoded : ""; 791 defaultImage += settings.Path != null ? "&" + settings.Path.GetFocalPointParameters() : ""; 792 } 793 else 794 { 795 defaultImage += settings.Path != null ? "Image=" + settings.Path : ""; 796 } 797 798 defaultImage += "&AlternativeImage=" + alternativeImage; 799 } 800 801 if (settings.ImageSmall != null) 802 { 803 imageSmall = "data-src-small=\"" + imageEngine; 804 imageSmall += Dynamicweb.Rapido.Services.Images.GetImagePathFromSettings(settings.ImageSmall); 805 806 if (settings.Path.GetType() != typeof(string)) 807 { 808 imageSmall += settings.Path != null ? "Image=" + settings.Path.PathUrlEncoded : ""; 809 imageSmall += settings.Path != null ? "&" + settings.Path.GetFocalPointParameters() : ""; 810 } 811 else 812 { 813 imageSmall += settings.Path != null ? "Image=" + settings.Path : ""; 814 } 815 816 imageSmall += "&alternativeImage=" + alternativeImage; 817 818 imageSmall += "\""; 819 } 820 821 if (settings.ImageMedium != null) 822 { 823 imageMedium = "data-src-medium=\"" + imageEngine; 824 imageMedium += Dynamicweb.Rapido.Services.Images.GetImagePathFromSettings(settings.ImageMedium); 825 826 if (settings.Path.GetType() != typeof(string)) 827 { 828 imageMedium += settings.Path != null ? "Image=" + settings.Path.PathUrlEncoded : ""; 829 imageMedium += settings.Path != null ? "&" + settings.Path.GetFocalPointParameters() : ""; 830 } 831 else 832 { 833 imageMedium += settings.Path != null ? "Image=" + settings.Path : ""; 834 } 835 836 imageMedium += "&alternativeImage=" + alternativeImage; 837 838 imageMedium += "\""; 839 } 840 } 841 842 Dictionary<string, string> optionalAttributes = new Dictionary<string, string>(); 843 if (!string.IsNullOrEmpty(settings.OnClick)) { optionalAttributes.Add("onclick", settings.OnClick); } 844 if (!string.IsNullOrEmpty(settings.Title)) 845 { 846 optionalAttributes.Add("alt", settings.Title); 847 optionalAttributes.Add("title", settings.Title); 848 } 849 850 if (settings.DisableLazyLoad) 851 { 852 <img id="@settings.Id" class="@imageStyle @settings.CssClass dw-mod" src="@defaultImage" @ComponentMethods.AddAttributes(optionalAttributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes) /> 853 } 854 else 855 { 856 <img id="@settings.Id" class="lazyload @imageStyle @settings.CssClass dw-mod" src="@placeholderImage" data-src="@defaultImage" @imageSmall @imageMedium @ComponentMethods.AddAttributes(optionalAttributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes) /> 857 } 858 } 859 } 860 @using System.Reflection 861 @using Dynamicweb.Rapido.Blocks.Components.General 862 @using Dynamicweb.Rapido.Blocks.Components 863 864 @* Component *@ 865 866 @helper RenderFileField(FileField settings) 867 { 868 var attributes = new Dictionary<string, string>(); 869 if (string.IsNullOrEmpty(settings.Id)) 870 { 871 settings.Id = Guid.NewGuid().ToString("N"); 872 } 873 874 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 875 if (settings.Disabled) { attributes.Add("disabled", "true"); } 876 if (settings.Required) { attributes.Add("required", "true"); } 877 if (settings.Multiple) { attributes.Add("multiple", "true"); } 878 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 879 if (string.IsNullOrEmpty(settings.ChooseFileText)) 880 { 881 settings.ChooseFileText = Translate("Choose file"); 882 } 883 if (string.IsNullOrEmpty(settings.NoFilesChosenText)) 884 { 885 settings.NoFilesChosenText = Translate("No files chosen..."); 886 } 887 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 888 889 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 890 891 string setValueToFakeInput = "FileUpload.setValueToFakeInput(this)"; 892 attributes.Add("onchange", setValueToFakeInput + (!string.IsNullOrEmpty(settings.OnChange) ? settings.OnChange : "")); 893 894 attributes.Add("type", "file"); 895 if (settings.Value != null) { attributes.Add("value", settings.Value); } 896 settings.CssClass = "u-full-width " + settings.CssClass; 897 898 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 899 900 <div class="form__field-group u-full-width @settings.WrapperCssClass dw-mod"> 901 @if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 902 { 903 <div class="u-full-width"> 904 @if (!string.IsNullOrEmpty(settings.Label)) { <label for="@settings.Id" class="u-pull--left">@settings.Label</label> } 905 @if (settings.Link != null) { 906 <div class="u-pull--right"> 907 @{ settings.Link.ButtonLayout = ButtonLayout.LinkClean; } 908 @RenderLink(settings.Link) 909 </div> 910 } 911 </div> 912 913 } 914 915 @if (!string.IsNullOrEmpty(settings.HelpText)) 916 { 917 <small class="form__help-text">@settings.HelpText</small> 918 } 919 920 <div class="form__field-combi file-input u-no-margin dw-mod"> 921 <input @ComponentMethods.AddAttributes(resultAttributes) class="file-input__real-input" data-no-files-text="@settings.NoFilesChosenText" data-many-files-text="@Translate("files")" /> 922 <label for="@settings.Id" class="file-input__btn btn--secondary btn dw-mod">@settings.ChooseFileText</label> 923 <label for="@settings.Id" class="@settings.CssClass file-input__fake-input js-fake-input dw-mod">@settings.NoFilesChosenText</label> 924 @if (settings.UploadButton != null) 925 { 926 settings.UploadButton.CssClass += " btn--condensed u-no-margin"; 927 @RenderButton(settings.UploadButton) 928 } 929 </div> 930 @RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage }) 931 </div> 932 } 933 @using System.Reflection 934 @using Dynamicweb.Rapido.Blocks.Components.General 935 @using Dynamicweb.Rapido.Blocks.Components 936 @using Dynamicweb.Core 937 @using System.Linq 938 939 @* Component *@ 940 941 @helper RenderDateTimeField(DateTimeField settings) 942 { 943 if (string.IsNullOrEmpty(settings.Id)) 944 { 945 settings.Id = Guid.NewGuid().ToString("N"); 946 } 947 948 var textField = new TextField { 949 Name = settings.Name, 950 Id = settings.Id, 951 Label = settings.Label, 952 HelpText = settings.HelpText, 953 Value = settings.Value, 954 Disabled = settings.Disabled, 955 Required = settings.Required, 956 ErrorMessage = settings.ErrorMessage, 957 CssClass = settings.CssClass, 958 WrapperCssClass = settings.WrapperCssClass, 959 OnChange = settings.OnChange, 960 OnClick = settings.OnClick, 961 Link = settings.Link, 962 ExtraAttributes = settings.ExtraAttributes, 963 // 964 Placeholder = settings.Placeholder 965 }; 966 967 @Render(textField) 968 969 List<string> jsAttributes = new List<string>(); 970 971 jsAttributes.Add("mode: '" + Enum.GetName(typeof(DateTimeFieldMode), settings.Mode).ToLower() + "'"); 972 973 if (!string.IsNullOrEmpty(settings.DateFormat)) 974 { 975 jsAttributes.Add("dateFormat: '" + settings.DateFormat + "'"); 976 } 977 if (!string.IsNullOrEmpty(settings.MinDate)) 978 { 979 jsAttributes.Add("minDate: '" + settings.MinDate + "'"); 980 } 981 if (!string.IsNullOrEmpty(settings.MaxDate)) 982 { 983 jsAttributes.Add("maxDate: '" + settings.MaxDate + "'"); 984 } 985 if (settings.IsInline) 986 { 987 jsAttributes.Add("inline: " + Converter.ToString(settings.IsInline).ToLower()); 988 } 989 if (settings.EnableTime) 990 { 991 jsAttributes.Add("enableTime: " + Converter.ToString(settings.EnableTime).ToLower()); 992 } 993 if (settings.EnableWeekNumbers) 994 { 995 jsAttributes.Add("weekNumbers: " + Converter.ToString(settings.EnableWeekNumbers).ToLower()); 996 } 997 998 jsAttributes.AddRange(settings.GetFlatPickrOptions().Select(x => x.Key + ": " + x.Value)); 999 1000 <script> 1001 document.addEventListener("DOMContentLoaded", function () { 1002 flatpickr("#@textField.Id", { 1003 @string.Join(",", jsAttributes) 1004 }); 1005 }); 1006 </script> 1007 } 1008 @using System.Reflection 1009 @using Dynamicweb.Rapido.Blocks.Components.General 1010 @using Dynamicweb.Rapido.Blocks.Components 1011 1012 @* Component *@ 1013 1014 @helper RenderTextField(TextField settings) 1015 { 1016 var attributes = new Dictionary<string, string>(); 1017 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 1018 { 1019 settings.Id = Guid.NewGuid().ToString("N"); 1020 } 1021 1022 /*base settings*/ 1023 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 1024 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 1025 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 1026 if (settings.Disabled) { attributes.Add("disabled", "true"); } 1027 if (settings.Required) { attributes.Add("required", "true"); } 1028 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 1029 /*end*/ 1030 1031 if (!string.IsNullOrEmpty(settings.OnKeyUp)) { attributes.Add("onkeyup", settings.OnKeyUp); } 1032 if (!string.IsNullOrEmpty(settings.OnInput)) { attributes.Add("oninput", settings.OnInput); } 1033 if (!string.IsNullOrEmpty(settings.OnFocus)) { attributes.Add("onfocus", settings.OnFocus); } 1034 if (settings.ReadOnly) { attributes.Add("readonly", "true"); } 1035 if (settings.MaxLength != 0) { attributes.Add("maxlength", settings.MaxLength.ToString()); } 1036 if (!string.IsNullOrEmpty(settings.Placeholder)) { attributes.Add("placeholder", settings.Placeholder); } 1037 attributes.Add("type", Enum.GetName(typeof(TextFieldType), settings.Type).ToLower()); 1038 if (settings.Type == TextFieldType.Password) { attributes.Add("autocomplete", "off"); }; 1039 if (settings.Value != null) { attributes.Add("value", settings.Value); } 1040 1041 settings.CssClass = "u-full-width " + settings.CssClass; 1042 1043 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 1044 1045 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 1046 1047 string noMargin = "u-no-margin"; 1048 if (!settings.ReadOnly) { 1049 noMargin = ""; 1050 } 1051 1052 <div class="form__field-group u-full-width @noMargin @settings.WrapperCssClass dw-mod"> 1053 @if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 1054 { 1055 <div class="u-full-width"> 1056 @if (!string.IsNullOrEmpty(settings.Label)) { <label for="@settings.Id" class="u-pull--left">@settings.Label</label> } 1057 @if (settings.Link != null) { 1058 settings.Link.ButtonLayout = ButtonLayout.LinkClean; 1059 1060 <div class="u-pull--right"> 1061 @Render(settings.Link) 1062 </div> 1063 } 1064 </div> 1065 1066 } 1067 1068 @if (!string.IsNullOrEmpty(settings.HelpText)) 1069 { 1070 <small class="form__help-text">@settings.HelpText</small> 1071 } 1072 1073 @if (settings.ActionButton != null) 1074 { 1075 settings.ActionButton.CssClass += " btn--condensed u-no-margin"; 1076 <div class="form__field-combi u-no-margin dw-mod"> 1077 <input @ComponentMethods.AddAttributes(resultAttributes) class="@settings.CssClass dw-mod" /> 1078 @Render(settings.ActionButton) 1079 </div> 1080 } 1081 else 1082 { 1083 <input @ComponentMethods.AddAttributes(resultAttributes) class="@settings.CssClass dw-mod" /> 1084 } 1085 1086 @Render(new NotificationMessage { Message = settings.ErrorMessage }) 1087 </div> 1088 } 1089 @using System.Reflection 1090 @using Dynamicweb.Rapido.Blocks.Components.General 1091 @using Dynamicweb.Rapido.Blocks.Components 1092 1093 @* Component *@ 1094 1095 @helper RenderNumberField(NumberField settings) 1096 { 1097 var attributes = new Dictionary<string, string>(); 1098 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 1099 { 1100 settings.Id = Guid.NewGuid().ToString("N"); 1101 } 1102 1103 /*base settings*/ 1104 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 1105 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 1106 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 1107 if (settings.Disabled) { attributes.Add("disabled", "true"); } 1108 if (settings.Required) { attributes.Add("required", "true"); } 1109 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 1110 /*end*/ 1111 1112 if (!string.IsNullOrEmpty(settings.OnKeyUp)) { attributes.Add("onkeyup", settings.OnKeyUp); } 1113 if (!string.IsNullOrEmpty(settings.OnInput)) { attributes.Add("oninput", settings.OnInput); } 1114 if (!string.IsNullOrEmpty(settings.OnFocus)) { attributes.Add("onfocus", settings.OnFocus); } 1115 if (settings.ReadOnly) { attributes.Add("readonly", "true"); } 1116 if (settings.Max != null) { attributes.Add("max", settings.Max.ToString()); } 1117 if (settings.Min != null) { attributes.Add("min", settings.Min.ToString()); } 1118 if (settings.Step != 0) { attributes.Add("step", settings.Step.ToString()); } 1119 if (settings.Value != null && !string.IsNullOrEmpty(settings.Value.ToString())) { attributes.Add("value", settings.Value.ToString()); } 1120 attributes.Add("type", "number"); 1121 1122 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 1123 1124 <div class="form__field-group u-full-width @settings.WrapperCssClass dw-mod"> 1125 @if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 1126 { 1127 <div class="u-full-width"> 1128 @if (!string.IsNullOrEmpty(settings.Label)) { <label for="@settings.Id" class="u-pull--left">@settings.Label</label> } 1129 @if (settings.Link != null) { 1130 <div class="u-pull--right"> 1131 @{ settings.Link.ButtonLayout = ButtonLayout.LinkClean; } 1132 @RenderLink(settings.Link) 1133 </div> 1134 } 1135 </div> 1136 1137 } 1138 1139 @if (!string.IsNullOrEmpty(settings.HelpText)) 1140 { 1141 <small class="form__help-text">@settings.HelpText</small> 1142 } 1143 1144 @if (settings.ActionButton != null) 1145 { 1146 settings.ActionButton.CssClass += " btn--condensed u-no-margin"; 1147 <div class="form__field-combi u-no-margin dw-mod"> 1148 <input @ComponentMethods.AddAttributes(resultAttributes) class="@settings.CssClass dw-mod" /> 1149 @RenderButton(settings.ActionButton) 1150 </div> 1151 } 1152 else 1153 { 1154 <div class="form__field-combi u-no-margin dw-mod"> 1155 <input @ComponentMethods.AddAttributes(resultAttributes) class="@settings.CssClass dw-mod" /> 1156 </div> 1157 } 1158 1159 @RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage }) 1160 </div> 1161 } 1162 @using System.Reflection 1163 @using Dynamicweb.Rapido.Blocks.Components.General 1164 @using Dynamicweb.Rapido.Blocks.Components 1165 1166 1167 @* Component *@ 1168 1169 @helper RenderTextareaField(TextareaField settings) 1170 { 1171 Dictionary<string, string> attributes = new Dictionary<string, string>(); 1172 string id = settings.Id; 1173 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(id)) 1174 { 1175 id = Guid.NewGuid().ToString("N"); 1176 } 1177 1178 if (!string.IsNullOrEmpty(id)) { attributes.Add("id", id); } 1179 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 1180 if (!string.IsNullOrEmpty(settings.OnKeyUp)) { attributes.Add("onkeyup", settings.OnKeyUp); } 1181 if (!string.IsNullOrEmpty(settings.OnInput)) { attributes.Add("oninput", settings.OnInput); } 1182 if (!string.IsNullOrEmpty(settings.OnFocus)) { attributes.Add("onfocus", settings.OnFocus); } 1183 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 1184 if (!string.IsNullOrEmpty(settings.Placeholder)) { attributes.Add("placeholder", settings.Placeholder); } 1185 if (settings.Disabled) { attributes.Add("disabled", "true"); } 1186 if (settings.Required) { attributes.Add("required", "true"); } 1187 if (settings.ReadOnly) { attributes.Add("readonly", "true"); } 1188 if (settings.MaxLength != 0) { attributes.Add("maxlength", settings.MaxLength.ToString()); } 1189 if (settings.Rows != 0) { attributes.Add("rows", settings.Rows.ToString()); } 1190 attributes.Add("name", settings.Name); 1191 1192 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 1193 1194 <div class="form__field-group @settings.WrapperCssClass dw-mod"> 1195 @if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 1196 { 1197 <div class="u-full-width"> 1198 @if (!string.IsNullOrEmpty(settings.Label)) { <label for="@settings.Id" class="u-pull--left">@settings.Label</label> } 1199 @if (settings.Link != null) { 1200 <div class="u-pull--right"> 1201 @{ settings.Link.ButtonLayout = ButtonLayout.LinkClean; } 1202 @Render(settings.Link) 1203 </div> 1204 } 1205 </div> 1206 } 1207 1208 @if (!string.IsNullOrEmpty(settings.HelpText)) 1209 { 1210 <small class="form__help-text">@settings.HelpText</small> 1211 } 1212 1213 <textarea class="u-full-width @settings.CssClass dw-mod" @ComponentMethods.AddAttributes(attributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes)>@settings.Value</textarea> 1214 1215 @Render(new NotificationMessage { Message = settings.ErrorMessage }) 1216 </div> 1217 } 1218 @using System.Reflection 1219 @using Dynamicweb.Rapido.Blocks.Components.General 1220 @using Dynamicweb.Rapido.Blocks.Components 1221 1222 1223 @* Component *@ 1224 1225 @helper RenderHiddenField(HiddenField settings) { 1226 var attributes = new Dictionary<string, string>(); 1227 attributes.Add("type", "hidden"); 1228 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 1229 if (settings.Value != null) { attributes.Add("value", settings.Value); } 1230 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 1231 1232 <input @ComponentMethods.AddAttributes(attributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes)/> 1233 } 1234 @using System.Reflection 1235 @using Dynamicweb.Rapido.Blocks.Components.General 1236 @using Dynamicweb.Rapido.Blocks.Components 1237 1238 @* Component *@ 1239 1240 @helper RenderCheckboxField(CheckboxField settings) 1241 { 1242 var attributes = new Dictionary<string, string>(); 1243 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 1244 { 1245 settings.Id = Guid.NewGuid().ToString("N"); 1246 } 1247 1248 /*base settings*/ 1249 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 1250 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 1251 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 1252 if (settings.Disabled) { attributes.Add("disabled", "true"); } 1253 if (settings.Required) { attributes.Add("required", "true"); } 1254 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 1255 /*end*/ 1256 1257 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 1258 1259 attributes.Add("type", "checkbox"); 1260 if (settings.Checked) { attributes.Add("checked", "true"); } 1261 settings.CssClass = "form__control " + settings.CssClass; 1262 if (settings.Value != null) { attributes.Add("value", settings.Value); } 1263 1264 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 1265 1266 <div class="form__field-group @settings.WrapperCssClass dw-mod"> 1267 <input @ComponentMethods.AddAttributes(resultAttributes) class="@settings.CssClass dw-mod" /> 1268 @if (!string.IsNullOrEmpty(settings.Label)) 1269 { 1270 <label for="@settings.Id" class="dw-mod">@settings.Label</label> 1271 } 1272 1273 @if (settings.Link != null) { 1274 <span> 1275 @{ settings.Link.ButtonLayout = ButtonLayout.LinkClean; } 1276 @RenderLink(settings.Link) 1277 </span> 1278 } 1279 1280 @if (!string.IsNullOrEmpty(settings.HelpText)) 1281 { 1282 <small class="form__help-text checkbox-help dw-mod">@settings.HelpText</small> 1283 } 1284 @RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage }) 1285 </div> 1286 } 1287 @using System.Reflection 1288 @using Dynamicweb.Rapido.Blocks.Components.General 1289 @using Dynamicweb.Rapido.Blocks.Components 1290 1291 1292 @* Component *@ 1293 1294 @helper RenderCheckboxListField(CheckboxListField settings) 1295 { 1296 <div class="form__field-group @settings.WrapperCssClass u-margin-bottom dw-mod" @ComponentMethods.AddAttributes(settings.ExtraAttributes)> 1297 @if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 1298 { 1299 <div class="u-full-width"> 1300 @if (!string.IsNullOrEmpty(settings.Label)) { <label for="@settings.Id" class="u-pull--left">@settings.Label</label> } 1301 @if (settings.Link != null) { 1302 <div class="u-pull--right"> 1303 @{ settings.Link.ButtonLayout = ButtonLayout.LinkClean; } 1304 @RenderLink(settings.Link) 1305 </div> 1306 } 1307 </div> 1308 1309 } 1310 1311 <div class="u-pull--left"> 1312 @if (!string.IsNullOrEmpty(settings.HelpText)) 1313 { 1314 <small class="form__help-text">@settings.HelpText</small> 1315 } 1316 1317 @foreach (var item in settings.Options) 1318 { 1319 if (settings.Required) 1320 { 1321 item.Required = true; 1322 } 1323 if (settings.Disabled) 1324 { 1325 item.Disabled = true; 1326 } 1327 if (!string.IsNullOrEmpty(settings.Name)) 1328 { 1329 item.Name = settings.Name; 1330 } 1331 if (!string.IsNullOrEmpty(settings.CssClass)) 1332 { 1333 item.CssClass += settings.CssClass; 1334 } 1335 1336 /* value is not supported */ 1337 1338 if (!string.IsNullOrEmpty(settings.OnClick)) 1339 { 1340 item.OnClick += settings.OnClick; 1341 } 1342 if (!string.IsNullOrEmpty(settings.OnChange)) 1343 { 1344 item.OnChange += settings.OnChange; 1345 } 1346 @Render(item) 1347 } 1348 1349 @RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage }) 1350 </div> 1351 1352 </div> 1353 } 1354 @using Dynamicweb.Rapido.Blocks.Components.General 1355 1356 @* Component *@ 1357 1358 @helper RenderSearch(Search settings) 1359 { 1360 var searchValue = HttpContext.Current.Request.QueryString.Get(settings.SearchParameter) ?? ""; 1361 var groupValue = HttpContext.Current.Request.QueryString.Get(settings.GroupsParameter) ?? ""; 1362 1363 if (string.IsNullOrEmpty(settings.Id)) 1364 { 1365 settings.Id = Guid.NewGuid().ToString("N"); 1366 } 1367 1368 var resultAttributes = new Dictionary<string, string>(); 1369 1370 if (settings.PageSize != 0) 1371 { 1372 resultAttributes.Add("data-page-size", settings.PageSize.ToString()); 1373 } 1374 if (!string.IsNullOrEmpty(settings.GroupItemsFeedUrl)) 1375 { 1376 resultAttributes.Add("data-groups-feed-url", settings.GroupItemsFeedUrl); 1377 if (!string.IsNullOrEmpty(groupValue)) 1378 { 1379 resultAttributes.Add("data-selected-group", groupValue); 1380 } 1381 if (!string.IsNullOrEmpty(settings.GroupsParameter)) 1382 { 1383 resultAttributes.Add("data-groups-parameter", settings.GroupsParameter); 1384 } 1385 } 1386 resultAttributes.Add("data-force-init", "true"); 1387 if (settings.GoToFirstSearchResultOnEnter) 1388 { 1389 resultAttributes.Add("data-go-to-first-search-result-on-enter", settings.GoToFirstSearchResultOnEnter.ToString().ToLower()); 1390 } 1391 if (!string.IsNullOrEmpty(settings.SearchParameter)) 1392 { 1393 resultAttributes.Add("data-search-parameter", settings.SearchParameter); 1394 } 1395 resultAttributes.Add("data-search-feed-url", settings.SearchData.SearchFeedUrl); 1396 resultAttributes.Add("data-results-template-id", settings.SearchData.ResultsTemplateId); 1397 1398 if (settings.SecondSearchData != null) 1399 { 1400 resultAttributes.Add("data-second-search-feed-url", settings.SecondSearchData.SearchFeedUrl); 1401 resultAttributes.Add("data-second-results-template-id", settings.SecondSearchData.ResultsTemplateId); 1402 } 1403 if (!string.IsNullOrEmpty(settings.ResultsPageUrl)) 1404 { 1405 resultAttributes.Add("data-results-page-url", settings.ResultsPageUrl); 1406 } 1407 1408 resultAttributes = resultAttributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 1409 1410 string searchFieldCss = (settings.SearchButton == null) ? "search--with-icon" : ""; 1411 1412 <div class="search @settings.CssClass @searchFieldCss js-search-data-source dw-mod" id="@settings.Id" @ComponentMethods.AddAttributes(resultAttributes)> 1413 @if (!string.IsNullOrEmpty(settings.GroupItemsFeedUrl)) 1414 { 1415 <button type="button" class="search__groups-btn dw-mod js-search-groups-btn">@Translate("All")</button> 1416 <ul class="dropdown dropdown--absolute-position dw-mod search__groups-results js-search-groups-list"></ul> 1417 } 1418 1419 <input type="text" class="search__field dw-mod js-search-field" placeholder="@settings.Placeholder" value="@searchValue"> 1420 1421 <div class="dropdown dropdown--absolute-position search__results dw-mod js-search-results @(settings.SecondSearchData != null ? "search__results--combined" : "")"> 1422 @if (settings.SecondSearchData != null) 1423 { 1424 <div class="search__column search__column--products dw-mod"> 1425 <div class="search__column-header dw-mod">@Translate("Products")</div> 1426 <ul class="search__results-list dw-mod js-search-results-list" id="@(settings.Id)_ResultsList"></ul> 1427 @if (!string.IsNullOrEmpty(settings.SearchData.ResultsPageUrl)) 1428 { 1429 @Render(new Link { 1430 Title = Translate("View all"), 1431 CssClass = "js-view-all-button u-margin", 1432 Href = settings.SearchData.ResultsPageUrl 1433 }); 1434 } 1435 </div> 1436 <div class="search__column search__column--pages dw-mod"> 1437 <div class="search__column-header">@Translate("Pages")</div> 1438 <ul class="search__results-list dw-mod js-search-results-second-list" id="@(settings.Id)_SecondResultsList"></ul> 1439 @if (!string.IsNullOrEmpty(settings.SecondSearchData.ResultsPageUrl)) 1440 { 1441 @Render(new Link 1442 { 1443 Title = Translate("View all"), 1444 CssClass = "js-view-all-button u-margin", 1445 Href = settings.SecondSearchData.ResultsPageUrl 1446 }); 1447 } 1448 </div> 1449 } 1450 else 1451 { 1452 <div class="search__column search__column--only dw-mod"> 1453 <ul class="search__results-list dw-mod js-search-results-list" id="@(settings.Id)_ResultsList"></ul> 1454 @if (!string.IsNullOrEmpty(settings.SearchData.ResultsPageUrl)) 1455 { 1456 @Render(new Link { 1457 Title = Translate("View all"), 1458 CssClass = "js-view-all-button u-margin", 1459 Href = settings.SearchData.ResultsPageUrl 1460 }); 1461 } 1462 </div> 1463 } 1464 </div> 1465 1466 @if (settings.SearchButton != null) 1467 { 1468 settings.SearchButton.CssClass += " search__btn js-search-btn"; 1469 if (settings.RenderDefaultSearchIcon) 1470 { 1471 settings.SearchButton.Icon = new Icon { Name = Pageview.AreaSettings.GetItem("Layout").GetItem("Icons").GetList("SearchIcon").SelectedValue }; 1472 } 1473 @Render(settings.SearchButton); 1474 } 1475 </div> 1476 } 1477 @using System.Reflection 1478 @using Dynamicweb.Rapido.Blocks.Components.General 1479 @using Dynamicweb.Rapido.Blocks.Components 1480 1481 1482 @* Component *@ 1483 1484 @helper RenderSelectField(SelectField settings) 1485 { 1486 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 1487 { 1488 settings.Id = Guid.NewGuid().ToString("N"); 1489 } 1490 1491 <div class="form__field-group u-full-width @settings.WrapperCssClass dw-mod"> 1492 @if (!string.IsNullOrEmpty(settings.Label) || settings.Link != null ) 1493 { 1494 <div class="u-full-width"> 1495 @if (!string.IsNullOrEmpty(settings.Label)) { <label for="@settings.Id" class="u-pull--left">@settings.Label</label> } 1496 @if (settings.Link != null) { 1497 <div class="u-pull--right"> 1498 @{ settings.Link.ButtonLayout = ButtonLayout.LinkClean; } 1499 @Render(settings.Link) 1500 </div> 1501 } 1502 </div> 1503 } 1504 1505 @if (!string.IsNullOrEmpty(settings.HelpText)) 1506 { 1507 <small class="form__help-text">@settings.HelpText</small> 1508 } 1509 1510 @if (settings.ActionButton != null) 1511 { 1512 settings.ActionButton.CssClass += " btn--condensed u-no-margin"; 1513 <div class="form__field-combi u-no-margin dw-mod"> 1514 @RenderSelectBase(settings) 1515 @Render(settings.ActionButton) 1516 </div> 1517 } 1518 else 1519 { 1520 @RenderSelectBase(settings) 1521 } 1522 1523 @Render(new NotificationMessage { Message = settings.ErrorMessage }) 1524 </div> 1525 } 1526 1527 @helper RenderSelectBase(SelectField settings) 1528 { 1529 var attributes = new Dictionary<string, string>(); 1530 1531 /*base settings*/ 1532 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 1533 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 1534 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 1535 if (settings.Disabled) { attributes.Add("disabled", "true"); } 1536 if (settings.Required) { attributes.Add("required", "true"); } 1537 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 1538 /*end*/ 1539 1540 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 1541 1542 <select @ComponentMethods.AddAttributes(resultAttributes) class="u-full-width @settings.CssClass dw-mod"> 1543 @if (settings.Default != null) 1544 { 1545 @Render(settings.Default) 1546 } 1547 1548 @foreach (var item in settings.Options) 1549 { 1550 if (settings.Value != null) { 1551 item.Checked = item.Value == settings.Value; 1552 } 1553 @Render(item) 1554 } 1555 </select> 1556 } 1557 @using System.Reflection 1558 @using Dynamicweb.Rapido.Blocks.Components.General 1559 @using Dynamicweb.Rapido.Blocks.Components 1560 1561 @* Component *@ 1562 1563 @helper RenderRadioButtonField(RadioButtonField settings) 1564 { 1565 var attributes = new Dictionary<string, string>(); 1566 if (!string.IsNullOrEmpty(settings.Label) && string.IsNullOrEmpty(settings.Id)) 1567 { 1568 settings.Id = Guid.NewGuid().ToString("N"); 1569 } 1570 1571 /*base settings*/ 1572 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 1573 if (!string.IsNullOrEmpty(settings.OnClick)) { attributes.Add("onclick", settings.OnClick); } 1574 if (!string.IsNullOrEmpty(settings.OnChange)) { attributes.Add("onchange", settings.OnChange); } 1575 if (settings.Disabled) { attributes.Add("disabled", "true"); } 1576 if (settings.Required) { attributes.Add("required", "true"); } 1577 if (!string.IsNullOrEmpty(settings.Name)) { attributes.Add("name", settings.Name); } 1578 /*end*/ 1579 1580 attributes.Add("type", "radio"); 1581 if (settings.Checked) { attributes.Add("checked", "true"); } 1582 settings.CssClass = "form__control " + settings.CssClass; 1583 if (settings.Value != null) { attributes.Add("value", settings.Value); } 1584 1585 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary (d => d.Key, d => d.Last().Value); 1586 1587 <div class="form__field-group @settings.WrapperCssClass dw-mod"> 1588 <input @ComponentMethods.AddAttributes(resultAttributes) class="@settings.CssClass dw-mod" /> 1589 @if (!string.IsNullOrEmpty(settings.Label)) 1590 { 1591 <label for="@settings.Id" class="dw-mod">@settings.Label</label> 1592 } 1593 @if (!string.IsNullOrEmpty(settings.HelpText)) 1594 { 1595 <small class="form__help-text">@settings.HelpText</small> 1596 } 1597 @RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage }) 1598 </div> 1599 } 1600 @using System.Reflection 1601 @using Dynamicweb.Rapido.Blocks.Components.General 1602 @using Dynamicweb.Rapido.Blocks.Components 1603 1604 1605 @* Component *@ 1606 1607 @helper RenderRadioButtonListField(RadioButtonListField settings) 1608 { 1609 if (settings.Required && !String.IsNullOrEmpty(settings.Label)) { settings.Label += " <span class=\"required dw-mod\">*</span>"; } 1610 1611 <div class="form__field-group @settings.WrapperCssClass u-margin-bottom dw-mod" @ComponentMethods.AddAttributes(settings.ExtraAttributes)> 1612 @if (!string.IsNullOrEmpty(settings.Label)) 1613 { 1614 <label>@settings.Label</label> 1615 } 1616 @if (!string.IsNullOrEmpty(settings.HelpText)) 1617 { 1618 <small class="form__help-text">@settings.HelpText</small> 1619 } 1620 1621 @foreach (var item in settings.Options) 1622 { 1623 if (settings.Required) 1624 { 1625 item.Required = true; 1626 } 1627 if (settings.Disabled) 1628 { 1629 item.Disabled = true; 1630 } 1631 if (!string.IsNullOrEmpty(settings.Name)) 1632 { 1633 item.Name = settings.Name; 1634 } 1635 if (settings.Value != null && settings.Value == item.Value) 1636 { 1637 item.Checked = true; 1638 } 1639 if (!string.IsNullOrEmpty(settings.OnClick)) 1640 { 1641 item.OnClick += settings.OnClick; 1642 } 1643 if (!string.IsNullOrEmpty(settings.OnChange)) 1644 { 1645 item.OnChange += settings.OnChange; 1646 } 1647 if (!string.IsNullOrEmpty(settings.CssClass)) 1648 { 1649 item.CssClass += settings.CssClass; 1650 } 1651 @Render(item) 1652 } 1653 1654 @RenderNotificationMessage(new NotificationMessage { Message = settings.ErrorMessage }) 1655 </div> 1656 } 1657 @using System.Reflection 1658 @using Dynamicweb.Rapido.Blocks.Components.General 1659 @using Dynamicweb.Rapido.Blocks.Components 1660 1661 1662 @* Component *@ 1663 1664 @helper RenderNotificationMessage(NotificationMessage settings) 1665 { 1666 if (!string.IsNullOrEmpty(settings.Message)) 1667 { 1668 var attributes = new Dictionary<string, string>(); 1669 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 1670 1671 string messageTypeClass = Enum.GetName(typeof(NotificationMessageType), settings.MessageType).ToLower(); 1672 string messageLayoutClass = Enum.GetName(typeof(NotificationMessageLayout), settings.MessageLayout).ToLower(); 1673 string minHeightClass = settings.Icon != null ? "u-min-h70px" : ""; 1674 1675 <div class="notification-message-@messageTypeClass notification-message-@messageLayoutClass @messageLayoutClass @minHeightClass @settings.CssClass u-full-width dw-mod" @ComponentMethods.AddAttributes(attributes)> 1676 @if (settings.Icon != null) { 1677 settings.Icon.Label = !string.IsNullOrEmpty(settings.Icon.Label) ? settings.Message + settings.Icon.Label : settings.Message; 1678 @Render(settings.Icon) 1679 } else { 1680 @settings.Message 1681 } 1682 </div> 1683 } 1684 } 1685 @using Dynamicweb.Rapido.Blocks.Components.General 1686 1687 1688 @* Component *@ 1689 1690 @helper RenderHandlebarsRoot(HandlebarsRoot settings) { 1691 string preRender = !String.IsNullOrEmpty(settings.PreRenderScriptTemplate) ? "data-pre-render-template=\"" + settings.PreRenderScriptTemplate + "\"" : ""; 1692 1693 <div class="@settings.CssClass dw-mod js-handlebars-root" id="@settings.Id" data-template="@settings.ScriptTemplate" data-json-feed="@settings.FeedUrl" data-init-onload="@settings.InitOnLoad.ToString()" data-preloader="@settings.Preloader" @preRender> 1694 @if (settings.SubBlocks != null) { 1695 @RenderBlockList(settings.SubBlocks) 1696 } 1697 </div> 1698 } 1699 @*Include("General/Sticker.cshtml")*@ 1700 @using System.Reflection 1701 @using Dynamicweb.Rapido.Blocks.Components.General 1702 @using Dynamicweb.Rapido.Blocks.Components 1703 1704 1705 @* Component *@ 1706 1707 @helper RenderStickersCollection(StickersCollection settings) 1708 { 1709 @*if (settings.Stickers.Count > 0) 1710 { 1711 string position = "stickers-container--" + Regex.Replace(settings.Position.ToString(), "([a-z])([A-Z])", "$1-$2").ToLower(); 1712 1713 <div class="stickers-container @position @settings.CssClass dw-mod" @ComponentMethods.AddAttributes(settings.ExtraAttributes)> 1714 @foreach (Sticker sticker in settings.Stickers) 1715 { 1716 @Render(sticker) 1717 } 1718 </div> 1719 }*@ 1720 } 1721 1722 @using Dynamicweb.Rapido.Blocks.Components.General 1723 1724 1725 @* Component *@ 1726 1727 @helper RenderForm(Form settings) { 1728 if (settings != null) 1729 { 1730 Dictionary<string, string> optionalAttributes = new Dictionary<string, string>(); 1731 if (!string.IsNullOrEmpty(settings.Action)) { optionalAttributes.Add("action", settings.Action); }; 1732 if (!string.IsNullOrEmpty(settings.Name)) { optionalAttributes.Add("name", settings.Name); }; 1733 if (!string.IsNullOrEmpty(settings.OnSubmit)) { optionalAttributes.Add("onsubmit", settings.OnSubmit); }; 1734 var enctypes = new Dictionary<string, string> 1735 { 1736 { "multipart", "multipart/form-data" }, 1737 { "text", "text/plain" }, 1738 { "application", "application/x-www-form-urlencoded" } 1739 }; 1740 if (settings.Enctype != FormEnctype.none) { optionalAttributes.Add("enctype", enctypes[Enum.GetName(typeof(FormEnctype), settings.Enctype).ToLower()]); }; 1741 optionalAttributes.Add("method", settings.Method.ToString()); 1742 1743 if (!string.IsNullOrEmpty(settings.FormStartMarkup)) 1744 { 1745 @settings.FormStartMarkup 1746 } 1747 else 1748 { 1749 @:<form class="@settings.CssClass u-no-margin dw-mod" @ComponentMethods.AddAttributes(optionalAttributes) @ComponentMethods.AddAttributes(settings.ExtraAttributes)> 1750 } 1751 1752 foreach (var field in settings.GetFields()) 1753 { 1754 @Render(field) 1755 } 1756 1757 @:</form> 1758 } 1759 } 1760 @using System.Reflection 1761 @using Dynamicweb.Rapido.Blocks.Components.General 1762 @using Dynamicweb.Rapido.Blocks.Components 1763 1764 1765 @* Component *@ 1766 1767 @helper RenderText(Text settings) 1768 { 1769 @settings.Content 1770 } 1771 @using System.Reflection 1772 @using Dynamicweb.Rapido.Blocks.Components.General 1773 @using Dynamicweb.Rapido.Blocks.Components 1774 1775 1776 @* Component *@ 1777 1778 @helper RenderContentModule(ContentModule settings) { 1779 if (!string.IsNullOrEmpty(settings.Content)) 1780 { 1781 @settings.Content 1782 } 1783 } 1784 @using System.Reflection 1785 @using Dynamicweb.Rapido.Blocks.Components.General 1786 @using Dynamicweb.Rapido.Blocks.Components 1787 1788 1789 @* Component *@ 1790 1791 @helper RenderModal(Modal settings) { 1792 if (settings != null) 1793 { 1794 string modalId = !string.IsNullOrEmpty(settings.Id) ? settings.Id : Guid.NewGuid().ToString("N"); 1795 1796 string onchange = !string.IsNullOrEmpty(settings.OnClose) ? "onchange=\"if(!this.checked){" + settings.OnClose + "}\"" : ""; 1797 1798 <input type="checkbox" id="@(modalId)ModalTrigger" class="modal-trigger" @onchange /> 1799 1800 <div class="modal-container"> 1801 @if (!settings.DisableDarkOverlay) 1802 { 1803 <label for="@(modalId)ModalTrigger" id="@(modalId)ModalOverlay" class="modal-overlay"></label> 1804 } 1805 <div class="modal modal--@settings.Width.ToString().ToLower() modal-height--@settings.Height.ToString().ToLower()" id="@(modalId)Modal"> 1806 @if (settings.Heading != null) 1807 { 1808 if (!string.IsNullOrEmpty(settings.Heading.Title)) 1809 { 1810 <div class="modal__header"> 1811 @Render(settings.Heading) 1812 </div> 1813 } 1814 } 1815 <div class="modal__body @(settings.Width.ToString().ToLower() == "full" ? "modal__body--full" : "")"> 1816 @if (!string.IsNullOrEmpty(settings.BodyText)) 1817 { 1818 @settings.BodyText 1819 } 1820 @if (settings.BodyTemplate != null) 1821 { 1822 @settings.BodyTemplate 1823 } 1824 @{ 1825 var actions = settings.GetActions(); 1826 } 1827 </div> 1828 @if (actions.Length > 0) 1829 { 1830 <div class="modal__footer"> 1831 @foreach (var action in actions) 1832 { 1833 if (Pageview.Device.ToString() != "Mobile") { 1834 action.CssClass += " u-no-margin"; 1835 } else { 1836 action.CssClass += " u-full-width u-margin-bottom"; 1837 } 1838 1839 @Render(action) 1840 } 1841 </div> 1842 } 1843 <label class="modal__close-btn" for="@(modalId)ModalTrigger"></label> 1844 </div> 1845 </div> 1846 } 1847 } 1848 @using Dynamicweb.Rapido.Blocks.Components.General 1849 1850 @* Component *@ 1851 1852 @helper RenderMediaListItem(MediaListItem settings) 1853 { 1854 <div class="media-list-item @settings.CssClass dw-mod" @(!string.IsNullOrEmpty(settings.Id) ? "id=\"" + settings.Id + "\"" : "")> 1855 @if (!string.IsNullOrEmpty(settings.Label)) 1856 { 1857 if (!string.IsNullOrEmpty(settings.Link)) 1858 { 1859 @Render(new Link 1860 { 1861 Href = settings.Link, 1862 CssClass = "media-list-item__sticker dw-mod", 1863 ButtonLayout = ButtonLayout.None, 1864 Title = settings.Label, 1865 OnClick = !string.IsNullOrEmpty(settings.OnClick) ? settings.OnClick : "" 1866 }) 1867 } 1868 else if (!string.IsNullOrEmpty(settings.OnClick)) 1869 { 1870 <span class="media-list-item__sticker dw-mod" onclick="@(settings.OnClick)"> 1871 <span class="u-uppercase">@settings.Label</span> 1872 </span> 1873 } 1874 else 1875 { 1876 <span class="media-list-item__sticker media-list-item__sticker--no-link dw-mod"> 1877 <span class="u-uppercase">@settings.Label</span> 1878 </span> 1879 } 1880 } 1881 <div class="media-list-item__wrap"> 1882 <div class="media-list-item__info dw-mod"> 1883 <div class="media-list-item__header dw-mod"> 1884 @if (!string.IsNullOrEmpty(settings.Title)) 1885 { 1886 if (!string.IsNullOrEmpty(settings.Link)) 1887 { 1888 @Render(new Link 1889 { 1890 Href = settings.Link, 1891 CssClass = "media-list-item__name dw-mod", 1892 ButtonLayout = ButtonLayout.None, 1893 Title = settings.Title, 1894 OnClick = !string.IsNullOrEmpty(settings.OnClick) ? settings.OnClick : "" 1895 }) 1896 } 1897 else if (!string.IsNullOrEmpty(settings.OnClick)) 1898 { 1899 <span class="media-list-item__name dw-mod" onclick="@(settings.OnClick)">@settings.Title</span> 1900 } 1901 else 1902 { 1903 <span class="media-list-item__name media-list-item__name--no-link dw-mod">@settings.Title</span> 1904 } 1905 } 1906 1907 @if (!string.IsNullOrEmpty(settings.Status)) 1908 { 1909 <div class="media-list-item__state dw-mod">@settings.Status</div> 1910 } 1911 </div> 1912 @{ 1913 settings.InfoTable.CssClass += " media-list-item__parameters-table"; 1914 } 1915 1916 @Render(settings.InfoTable) 1917 </div> 1918 <div class="media-list-item__actions dw-mod"> 1919 <div class="media-list-item__actions-list dw-mod"> 1920 @{ 1921 var actions = settings.GetActions(); 1922 1923 foreach (ButtonBase action in actions) 1924 { 1925 action.ButtonLayout = ButtonLayout.None; 1926 action.CssClass += " media-list-item__action link"; 1927 1928 @Render(action) 1929 } 1930 } 1931 </div> 1932 1933 @if (settings.SelectButton != null && !string.IsNullOrEmpty(settings.SelectButton.Title)) 1934 { 1935 settings.SelectButton.CssClass += " u-no-margin"; 1936 1937 <div class="media-list-item__action-button"> 1938 @Render(settings.SelectButton) 1939 </div> 1940 } 1941 </div> 1942 </div> 1943 </div> 1944 } 1945 @using Dynamicweb.Rapido.Blocks.Components.General 1946 @using Dynamicweb.Rapido.Blocks.Components 1947 1948 @helper RenderTable(Table settings) 1949 { 1950 Dictionary<string, string> attributes = new Dictionary<string, string>(); 1951 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 1952 1953 var enumToClasses = new Dictionary<TableDesign, string> 1954 { 1955 { TableDesign.Clean, "table--clean" }, 1956 { TableDesign.Bordered, "table--bordered" }, 1957 { TableDesign.Striped, "table--striped" }, 1958 { TableDesign.Hover, "table--hover" }, 1959 { TableDesign.Compact, "table--compact" }, 1960 { TableDesign.Condensed, "table--condensed" }, 1961 { TableDesign.NoTopBorder, "table--no-top-border" } 1962 }; 1963 string tableDesignClass = ""; 1964 if (settings.Design != TableDesign.None) 1965 { 1966 tableDesignClass = enumToClasses[settings.Design]; 1967 } 1968 1969 if (!string.IsNullOrEmpty(settings.CssClass) || settings.Design != TableDesign.None) { attributes.Add("class", "table " + tableDesignClass + " " + settings.CssClass + " dw-mod"); } 1970 1971 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary(d => d.Key, d => d.Last().Value); 1972 1973 <table @ComponentMethods.AddAttributes(resultAttributes)> 1974 @if (settings.Header != null) 1975 { 1976 <thead> 1977 @Render(settings.Header) 1978 </thead> 1979 } 1980 <tbody> 1981 @foreach (var row in settings.Rows) 1982 { 1983 @Render(row) 1984 } 1985 </tbody> 1986 @if (settings.Footer != null) 1987 { 1988 <tfoot> 1989 @Render(settings.Footer) 1990 </tfoot> 1991 } 1992 </table> 1993 } 1994 @using Dynamicweb.Rapido.Blocks.Components.General 1995 @using Dynamicweb.Rapido.Blocks.Components 1996 1997 @helper RenderTableRow(TableRow settings) 1998 { 1999 Dictionary<string, string> attributes = new Dictionary<string, string>(); 2000 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 2001 2002 var enumToClasses = new Dictionary<TableRowDesign, string> 2003 { 2004 { TableRowDesign.NoBorder, "table__row--no-border" }, 2005 { TableRowDesign.Border, "table__row--border" }, 2006 { TableRowDesign.TopBorder, "table__row--top-line" }, 2007 { TableRowDesign.BottomBorder, "table__row--bottom-line" }, 2008 { TableRowDesign.Solid, "table__row--solid" } 2009 }; 2010 2011 string tableRowDesignClass = ""; 2012 if (settings.Design != TableRowDesign.None) 2013 { 2014 tableRowDesignClass = enumToClasses[settings.Design]; 2015 } 2016 2017 if (!string.IsNullOrEmpty(settings.CssClass) || settings.Design != TableRowDesign.None) { attributes.Add("class", "table__row " + tableRowDesignClass + " " + settings.CssClass + " dw-mod"); } 2018 2019 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary(d => d.Key, d => d.Last().Value); 2020 2021 <tr @ComponentMethods.AddAttributes(resultAttributes)> 2022 @foreach (var cell in settings.Cells) 2023 { 2024 if (settings.IsHeaderRow) 2025 { 2026 cell.IsHeader = true; 2027 } 2028 @Render(cell) 2029 } 2030 </tr> 2031 } 2032 @using Dynamicweb.Rapido.Blocks.Components.General 2033 @using Dynamicweb.Rapido.Blocks.Components 2034 @using Dynamicweb.Core 2035 2036 @helper RenderTableCell(TableCell settings) 2037 { 2038 Dictionary<string, string> attributes = new Dictionary<string, string>(); 2039 if (!string.IsNullOrEmpty(settings.Id)) { attributes.Add("id", settings.Id); } 2040 if (settings.Colspan != 0) { attributes.Add("colspan", Converter.ToString(settings.Colspan)); } 2041 if (settings.Rowspan != 0) { attributes.Add("rowspan", Converter.ToString(settings.Rowspan)); } 2042 if (!string.IsNullOrEmpty(settings.CssClass)) { attributes.Add("class", settings.CssClass + " dw-mod"); } 2043 2044 var resultAttributes = attributes.Concat(settings.ExtraAttributes).GroupBy(d => d.Key).ToDictionary(d => d.Key, d => d.Last().Value); 2045 2046 string tagName = settings.IsHeader ? "th" : "td"; 2047 2048 @("<" + tagName + " " + ComponentMethods.AddAttributes(resultAttributes) + ">") 2049 @settings.Content 2050 @("</" + tagName + ">"); 2051 } 2052 @using System.Linq 2053 @using Dynamicweb.Rapido.Blocks.Components.General 2054 2055 @* Component *@ 2056 2057 @helper RenderPagination(Dynamicweb.Rapido.Blocks.Components.General.Pagination settings) 2058 { 2059 var pageNumberQueryStringName = Dynamicweb.Rapido.Services.Pagination.GetPageNumberQueryStringName(settings); // Get the proper 'page number' query string parameter 2060 var queryParameters = Dynamicweb.Rapido.Services.Url.GetQueryParameters(pageNumberQueryStringName); // Get the NameValueCollection from the querystring 2061 2062 if (settings.NumberOfPages > 1) 2063 { 2064 string url = HttpContext.Current.Request.Url.GetLeftPart(UriPartial.Authority) + "/Default.aspx"; 2065 string ariaLabel = !string.IsNullOrWhiteSpace(settings.AriaLabel) ? settings.AriaLabel : Translate("Page navigation"); 2066 Dictionary<string, int> startAndEndPageNumber = Dynamicweb.Rapido.Services.Pagination.GetStartAndEndPageNumber(settings); 2067 2068 <div class="pager u-margin-top dw-mod @settings.CssClass" aria-label="@ariaLabel"> 2069 @if (settings.ShowPagingInfo) 2070 { 2071 <div class="pager__info dw-mod"> 2072 @Translate("Page") @settings.CurrentPageNumber @Translate("of") @settings.NumberOfPages 2073 </div> 2074 } 2075 <ul class="pager__list dw-mod"> 2076 @if (!string.IsNullOrWhiteSpace(settings.FirstPageUrl) && settings.ShowFirstAndLastControls) 2077 { 2078 @Render(new PaginationItem { Link = settings.FirstPageUrl, Icon = settings.FirstIcon }) 2079 } 2080 @if (!string.IsNullOrWhiteSpace(settings.PreviousPageUrl) && settings.ShowNextAndPrevControls) 2081 { 2082 @Render(new PaginationItem { Link = settings.PreviousPageUrl, Icon = settings.PrevIcon }) 2083 } 2084 @if (settings.GetPages().Any()) 2085 { 2086 foreach (var page in settings.GetPages()) 2087 { 2088 @Render(page) 2089 } 2090 } 2091 else 2092 { 2093 for (var page = startAndEndPageNumber["StartPage"]; page <= startAndEndPageNumber["EndPage"]; page++) 2094 { 2095 queryParameters = Dynamicweb.Rapido.Services.Url.UpdateQueryStringParameter(queryParameters, pageNumberQueryStringName, page.ToString()); 2096 @Render(new PaginationItem { Label = page.ToString(), Link = Dynamicweb.Rapido.Services.Url.BuildUri(url, queryParameters).PathAndQuery, IsActive = (settings.CurrentPageNumber == page) }); 2097 } 2098 } 2099 @if (!string.IsNullOrWhiteSpace(settings.NextPageUrl) && settings.ShowNextAndPrevControls) 2100 { 2101 @Render(new PaginationItem { Link = settings.NextPageUrl, Icon = settings.NextIcon }) 2102 } 2103 @if (!string.IsNullOrWhiteSpace(settings.LastPageUrl) && settings.ShowFirstAndLastControls) 2104 { 2105 @Render(new PaginationItem { Link = settings.LastPageUrl, Icon = settings.LastIcon }) 2106 } 2107 </ul> 2108 </div> 2109 } 2110 } 2111 2112 @helper RenderPaginationItem(PaginationItem settings) 2113 { 2114 if (settings.Icon == null) 2115 { 2116 settings.Icon = new Icon(); 2117 } 2118 2119 settings.Icon.Label = settings.Label; 2120 <li class="pager__btn dw-mod"> 2121 @if (settings.IsActive) 2122 { 2123 <span class="pager__num pager__num--current dw-mod"> 2124 @Render(settings.Icon) 2125 </span> 2126 } 2127 else 2128 { 2129 <a href="@settings.Link" class="pager__num dw-mod text-decoration-none"> 2130 @Render(settings.Icon) 2131 </a> 2132 } 2133 </li> 2134 } 2135 2136 2137 @*Include("Custom/Custom__Components.cshtml")*@ 2138 2139 @functions { 2140 public string GenerateRgba(string color, string opacity) 2141 { 2142 color = color.Replace("#", ""); 2143 if (color.Length == 6) { 2144 return "rgba(" + Convert.ToInt32(color.Substring(0, 2), 16) + ", " + Convert.ToInt32(color.Substring(2, 2), 16) + ", " + Convert.ToInt32(color.Substring(4, 2), 16) + ", " + opacity + ");"; 2145 } else { 2146 return Convert.ToInt16(color).ToString(); 2147 } 2148 } 2149 } 2150 2151 @{ 2152 var colorService = new ColorSwatchService(); 2153 string rowWidth = Model.Item.GetList("Width") != null ? "content-row--" + Model.Item.GetList("Width").SelectedValue : ""; 2154 string rowHeight = Model.Item.GetList("Height") != null ? "content-row--height-" + Model.Item.GetList("Height").SelectedValue : ""; 2155 string spacing = Model.Item.GetList("Spacing") != null ? "content-row--spacing-" + Model.Item.GetList("Spacing").SelectedValue : ""; 2156 string spacingPosition = Model.Item.GetList("SpacingPosition") != null ? "content-row--spacing-position-" + Model.Item.GetList("SpacingPosition").SelectedValue : ""; 2157 int spacingRefactored = Model.Item.GetList("Spacing") != null ? Model.Item.GetList("Spacing").SelectedValue == "sm" ? 2 : Model.Item.GetList("Spacing").SelectedValue == "md" ? 3 : Model.Item.GetList("Spacing").SelectedValue == "lg" ? 4 : Model.Item.GetList("Spacing").SelectedValue == "xl" ? 5 : 0 : 0; 2158 string spacingPositionRefactored = Model.Item.GetList("SpacingPosition") != null ? Model.Item.GetList("SpacingPosition").SelectedValue == "bottom" ? "pb-" : Model.Item.GetList("SpacingPosition").SelectedValue == "top" ? "pt-" : "py-" : ""; 2159 string spacingCSSClassRefactored = spacingPositionRefactored + spacingRefactored; 2160 string columnGap = Model.Item.GetList("ColumnGap") != null ? "gap-" + Model.Item.GetList("ColumnGap").SelectedValue : "gap-0"; 2161 string backgroundColor = Model.Item.GetString("BackgroundColor") != null ? Model.Item.GetString("BackgroundColor") : ""; 2162 backgroundColor = !backgroundColor.Contains("#") ? "background-color: " + colorService.GetHexColor(Pageview.AreaID, backgroundColor) : "background-color: " + backgroundColor; 2163 2164 //from commergent logic 2165 // bool hasContainer = rowWidth == "stretch" ? false : true; 2166 //string containerType = Model.Item.GetList("Container_Type").SelectedValue; 2167 string containerClass = rowWidth == "content-row--stretch" ? "container--wide" : rowWidth == "content-row--container" ? "container" : "container--narrow"; 2168 2169 Image image = new Image(); 2170 2171 if (!string.IsNullOrEmpty(Model.Item.GetString("Image"))) 2172 { 2173 int cropMode = !string.IsNullOrEmpty(Convert.ToString(Model.Item.GetList("ImageCrop"))) ? Convert.ToInt32(Model.Item.GetList("ImageCrop").SelectedValue) : 0; 2174 2175 image = new Image 2176 { 2177 Path = Model.Item.GetFile("Image") != null ? Model.Item.GetFile("Image").Path : "", 2178 CssClass = "background-image__cover", 2179 ImageDefault = new ImageSettings 2180 { 2181 Crop = cropMode, 2182 Height = 845, 2183 Width = 1920 2184 }, 2185 ImageMedium = new ImageSettings 2186 { 2187 Crop = cropMode, 2188 Height = 450, 2189 Width = 1024 2190 }, 2191 ImageSmall = new ImageSettings 2192 { 2193 Crop = cropMode, 2194 Height = 544, 2195 Width = 640 2196 } 2197 }; 2198 2199 image.FilterPrimary = !string.IsNullOrEmpty(Model.Item.GetList("ImageFilterPrimary").SelectedValue) ? (ImageFilter)Enum.Parse(typeof(ImageFilter), Model.Item.GetList("ImageFilterPrimary").SelectedValue.Replace("-", ""), true) : ImageFilter.None; 2200 image.FilterSecondary = !string.IsNullOrEmpty(Model.Item.GetList("ImageFilterSecondary").SelectedValue) ? (ImageFilter)Enum.Parse(typeof(ImageFilter), Model.Item.GetList("ImageFilterSecondary").SelectedValue.Replace("-", ""), true) : ImageFilter.None; 2201 2202 if (string.IsNullOrEmpty(Model.Item.GetString("ColorForTheFilter"))) 2203 { 2204 image.FilterColor = Model.Item.GetString("ColorForTheFilter").StartsWith("#") ? GenerateRgba(Model.Item.GetString("ColorForTheFilter"), "0.3") : ""; 2205 } 2206 } 2207 } 2208 2209 2210 <div class="section__container @containerClass @spacingCSSClassRefactored content-container " style="@backgroundColor"> 2211 @if (!string.IsNullOrEmpty(Model.Item.GetString("Image"))) 2212 { 2213 <div class="background-image"> 2214 <div class="background-image__wrapper"> 2215 @Render(image) 2216 </div> 2217 </div> 2218 } 2219 2220 <div class="section__content content-row grid-1-2 @columnGap @rowWidth @rowHeight @spacing @spacingPosition"> 2221 @{ 2222 foreach (var column in Model.Columns) 2223 { 2224 @RenderColumn(column) 2225 } 2226 } 2227 </div> 2228 </div> 2229
Error compiling template "/Designs/Wizaris/Grid/Pages/RowTemplates/1-2SplitRow.cshtml"
Line 129: 'GridColumnViewModel.ParagraphId' is obsolete: 'Please use Paragraph instead'
Line 129: 'Services' is an ambiguous reference between 'Dynamicweb.Content.Services' and 'Dynamicweb.Services'
Line 129: 'GridColumnViewModel.ParagraphId' is obsolete: 'Please use Paragraph instead'
Line 163: 'GridColumnViewModel.ParagraphId' is obsolete: 'Please use Paragraph instead'
Line 208: 'GridColumnViewModel.ParagraphId' is obsolete: 'Please use Paragraph instead'
Line 217: 'GridColumnViewModel.ParagraphId' is obsolete: 'Please use Paragraph instead'
Line 226: 'GridColumnViewModel.ParagraphId' is obsolete: 'Please use Paragraph instead'
Line 235: 'GridColumnViewModel.ParagraphId' is obsolete: 'Please use Paragraph instead'

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 using System; 13 14 #line 70 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 15 using System.Collections.Generic; 16 17 #line default 18 #line hidden 19 20 #line 2052 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 21 using System.Linq; 22 23 #line default 24 #line hidden 25 26 #line 8 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 27 using Dynamicweb.Frontend; 28 29 #line default 30 #line hidden 31 32 #line 9 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 33 using Dynamicweb.Content; 34 35 #line default 36 #line hidden 37 38 #line 10 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 39 using Dynamicweb.Content.Items; 40 41 #line default 42 #line hidden 43 44 #line 11 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 45 using Dynamicweb; 46 47 #line default 48 #line hidden 49 50 #line 69 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 51 using System.Text.RegularExpressions; 52 53 #line default 54 #line hidden 55 56 #line 1784 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 57 using System.Reflection; 58 59 #line default 60 #line hidden 61 62 #line 72 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 63 using System.Web; 64 65 #line default 66 #line hidden 67 68 #line 73 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 69 using System.Web.UI.HtmlControls; 70 71 #line default 72 #line hidden 73 74 #line 2033 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 75 using Dynamicweb.Rapido.Blocks.Components; 76 77 #line default 78 #line hidden 79 80 #line 75 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 81 using Dynamicweb.Rapido.Blocks.Components.Articles; 82 83 #line default 84 #line hidden 85 86 #line 76 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 87 using Dynamicweb.Rapido.Blocks.Components.Documentation; 88 89 #line default 90 #line hidden 91 92 #line 669 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 93 using Dynamicweb.Rapido.Blocks; 94 95 #line default 96 #line hidden 97 98 #line 2053 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 99 using Dynamicweb.Rapido.Blocks.Components.General; 100 101 #line default 102 #line hidden 103 104 #line 227 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 105 using System.IO; 106 107 #line default 108 #line hidden 109 110 #line 2034 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 111 using Dynamicweb.Core; 112 113 #line default 114 #line hidden 115 116 117 public class RazorEngine_a8dcd61935c54860b82e830f45d4003a : Dynamicweb.Rendering.ViewModelTemplate<Dynamicweb.Frontend.GridRowViewModel> { 118 119 #line hidden 120 121 #line 13 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 122 public RazorEngine.Templating.TemplateWriter RenderColumn(GridColumnViewModel column) { 123 #line default 124 #line hidden 125 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 126 127 #line 13 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 128 129 Paragraph paragraph = column.ParagraphId > 0 ? Services.Paragraphs.GetParagraph(column.ParagraphId) : null; 130 var colorService = new ColorSwatchService(); 131 132 //All paragraph settings may come from e.g. column.Item.GetITem("Common").GetItem("BackgroundColor") instead 133 134 if (paragraph != null) { 135 if (paragraph.Item != null) { 136 string backgroundColor = paragraph.Item["BackgroundColor"] != null ? paragraph.Item["BackgroundColor"].ToString() : ""; 137 string customCSSClass = paragraph.Item["Custom_Class"] != null ? paragraph.Item["Custom_Class"].ToString() : ""; 138 backgroundColor = !backgroundColor.Contains("#") ? colorService.GetHexColor(Pageview.AreaID, backgroundColor) : backgroundColor; 139 string textColor = paragraph.Item["TextColor"] != null ? paragraph.Item["TextColor"].ToString() : ""; 140 textColor = !textColor.Contains("#") ? colorService.GetHexColor(Pageview.AreaID, textColor) : textColor; 141 string styles = "background-color: " + backgroundColor + "; color: " + textColor; 142 143 string horizontalAlign = paragraph.Item["HorizontalAlignment"] != null ? "u-align-" + paragraph.Item["HorizontalAlignment"].ToString().ToLower() : ""; 144 string horizontalAlignContent = paragraph.Item["HorizontalAlignmentContent"] != null ? "u-align-content-" + paragraph.Item["HorizontalAlignmentContent"].ToString().ToLower() : ""; 145 string verticalAlign = paragraph.Item["VerticalAlignment"] != null ? "u-align-self-" + paragraph.Item["VerticalAlignment"].ToString().ToLower() : ""; 146 string alignmentCssClasses = horizontalAlign + " " + horizontalAlignContent + " " + verticalAlign; 147 148 string itemBodyCssClass = paragraph.Item["MoveBodyInside"] != null ? "u-full-width" : "content-row__item__body"; 149 itemBodyCssClass += paragraph.Item["MoveBodyInside"] == null && paragraph.Item["Padding"] != null ? " padding-size-" + paragraph.Item["Padding"].ToString().ToLower() : ""; 150 itemBodyCssClass += paragraph.Item["MoveBodyInside"] == null && paragraph.Item["PaddingPosition"] != null ? " padding-position-" + paragraph.Item["PaddingPosition"].ToString().ToLower() : ""; 151 152 153 154 #line default 155 #line hidden 156 WriteLiteralTo(__razor_helper_writer, " <div"); 157 158 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 2679), Tuple.Create("\"", 2768) 159 , Tuple.Create(Tuple.Create("", 2687), Tuple.Create("content-row__item", 2687), true) 160 , Tuple.Create(Tuple.Create(" ", 2704), Tuple.Create("rowItemContent-", 2705), true) 161 162 #line 37 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 163 , Tuple.Create(Tuple.Create("", 2720), Tuple.Create<System.Object, System.Int32>(column.ParagraphId 164 165 #line default 166 #line hidden 167 , 2720), false) 168 , Tuple.Create(Tuple.Create(" ", 2739), Tuple.Create("h-100", 2740), true) 169 , Tuple.Create(Tuple.Create(" ", 2745), Tuple.Create("dw-mod", 2746), true) 170 171 #line 37 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 172 , Tuple.Create(Tuple.Create(" ", 2752), Tuple.Create<System.Object, System.Int32>(customCSSClass 173 174 #line default 175 #line hidden 176 , 2753), false) 177 ); 178 179 WriteAttributeTo(__razor_helper_writer, "style", Tuple.Create(" style=\"", 2769), Tuple.Create("\"", 2784) 180 181 #line 37 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 182 , Tuple.Create(Tuple.Create("", 2777), Tuple.Create<System.Object, System.Int32>(styles 183 184 #line default 185 #line hidden 186 , 2777), false) 187 ); 188 189 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 190 191 192 #line 38 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 193 194 195 #line default 196 #line hidden 197 198 #line 38 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 199 if (!string.IsNullOrEmpty(textColor)) { 200 201 202 #line default 203 #line hidden 204 WriteLiteralTo(__razor_helper_writer, " <style>\r\n .rowItemContent-"); 205 206 207 #line 40 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 208 WriteTo(__razor_helper_writer, column.ParagraphId); 209 210 211 #line default 212 #line hidden 213 WriteLiteralTo(__razor_helper_writer, " p, .rowItemContent-"); 214 215 216 #line 40 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 217 WriteTo(__razor_helper_writer, column.ParagraphId); 218 219 220 #line default 221 #line hidden 222 WriteLiteralTo(__razor_helper_writer, " h1, .rowItemContent-"); 223 224 225 #line 40 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 226 WriteTo(__razor_helper_writer, column.ParagraphId); 227 228 229 #line default 230 #line hidden 231 WriteLiteralTo(__razor_helper_writer, " h2, .rowItemContent-"); 232 233 234 #line 40 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 235 WriteTo(__razor_helper_writer, column.ParagraphId); 236 237 238 #line default 239 #line hidden 240 WriteLiteralTo(__razor_helper_writer, " h3 {\r\n color: "); 241 242 243 #line 41 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 244 WriteTo(__razor_helper_writer, textColor); 245 246 247 #line default 248 #line hidden 249 WriteLiteralTo(__razor_helper_writer, ";\r\n }\r\n </style>\r\n"); 250 251 252 #line 44 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 253 } 254 255 256 #line default 257 #line hidden 258 WriteLiteralTo(__razor_helper_writer, " <div"); 259 260 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 3206), Tuple.Create("\"", 3275) 261 262 #line 45 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 263 , Tuple.Create(Tuple.Create("", 3214), Tuple.Create<System.Object, System.Int32>(itemBodyCssClass 264 265 #line default 266 #line hidden 267 , 3214), false) 268 269 #line 45 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 270 , Tuple.Create(Tuple.Create(" ", 3231), Tuple.Create<System.Object, System.Int32>(alignmentCssClasses 271 272 #line default 273 #line hidden 274 , 3232), false) 275 , Tuple.Create(Tuple.Create(" ", 3252), Tuple.Create("dw-mod", 3253), true) 276 , Tuple.Create(Tuple.Create(" ", 3259), Tuple.Create("h-100", 3260), true) 277 , Tuple.Create(Tuple.Create(" ", 3265), Tuple.Create("flex-wrap", 3266), true) 278 ); 279 280 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 281 282 WriteLiteralTo(__razor_helper_writer, " "); 283 284 285 #line 46 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 286 WriteTo(__razor_helper_writer, column.Output()); 287 288 289 #line default 290 #line hidden 291 WriteLiteralTo(__razor_helper_writer, " \r\n </div>\r\n </div> \r\n"); 292 293 294 #line 49 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 295 } else { 296 297 } 298 } else { 299 300 301 #line default 302 #line hidden 303 304 #line 53 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 305 WriteTo(__razor_helper_writer, RenderPlaceholderForTheContentBuilder(column)); 306 307 308 #line default 309 #line hidden 310 311 #line 53 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 312 313 } 314 315 316 #line default 317 #line hidden 318 }); 319 320 #line 55 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 321 } 322 #line default 323 #line hidden 324 325 326 #line 57 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 327 public RazorEngine.Templating.TemplateWriter RenderPlaceholderForTheContentBuilder(GridColumnViewModel column) { 328 #line default 329 #line hidden 330 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 331 332 #line 57 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 333 334 //For the content builder - Empty columns 335 336 337 338 #line default 339 #line hidden 340 WriteLiteralTo(__razor_helper_writer, " <div"); 341 342 WriteLiteralTo(__razor_helper_writer, " class=\"content-row__item dw-mod\""); 343 344 WriteLiteralTo(__razor_helper_writer, ">\r\n <div"); 345 346 WriteLiteralTo(__razor_helper_writer, " class=\"content-row__item__body dw-mod\""); 347 348 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 349 350 WriteLiteralTo(__razor_helper_writer, " "); 351 352 353 #line 62 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 354 WriteTo(__razor_helper_writer, column.Output()); 355 356 357 #line default 358 #line hidden 359 WriteLiteralTo(__razor_helper_writer, " \r\n </div>\r\n </div> \r\n"); 360 361 362 #line 65 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 363 364 365 #line default 366 #line hidden 367 }); 368 369 #line 65 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 370 } 371 #line default 372 #line hidden 373 374 375 #line 82 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 376 public RazorEngine.Templating.TemplateWriter RenderBlockList(List<Block> blocks) 377 { 378 #line default 379 #line hidden 380 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 381 382 #line 83 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 383 384 bool debug = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("debug")) ? Convert.ToBoolean(HttpContext.Current.Request.QueryString.Get("debug")) : false; 385 blocks = blocks.OrderBy(item => item.SortId).ToList(); 386 387 foreach (Block item in blocks) 388 { 389 if (debug) { 390 391 392 #line default 393 #line hidden 394 WriteLiteralTo(__razor_helper_writer, " <!-- Block START: "); 395 396 397 #line 90 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 398 WriteTo(__razor_helper_writer, item.Id); 399 400 401 #line default 402 #line hidden 403 WriteLiteralTo(__razor_helper_writer, " -->\r\n"); 404 405 406 #line 91 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 407 } 408 409 if (item.Design == null) 410 { 411 412 413 #line default 414 #line hidden 415 416 #line 95 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 417 WriteTo(__razor_helper_writer, RenderBlock(item)); 418 419 420 #line default 421 #line hidden 422 423 #line 95 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 424 425 } 426 else if (item.Design.RenderType == RenderType.None) { 427 string cssClass = item.Design.CssClass != null ? item.Design.CssClass : ""; 428 429 430 431 #line default 432 #line hidden 433 WriteLiteralTo(__razor_helper_writer, " <div"); 434 435 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 4863), Tuple.Create("\"", 4887) 436 437 #line 100 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 438 , Tuple.Create(Tuple.Create("", 4871), Tuple.Create<System.Object, System.Int32>(cssClass 439 440 #line default 441 #line hidden 442 , 4871), false) 443 , Tuple.Create(Tuple.Create(" ", 4880), Tuple.Create("dw-mod", 4881), true) 444 ); 445 446 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 447 448 WriteLiteralTo(__razor_helper_writer, " "); 449 450 451 #line 101 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 452 WriteTo(__razor_helper_writer, RenderBlock(item)); 453 454 455 #line default 456 #line hidden 457 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 458 459 460 #line 103 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 461 } 462 else if (item.Design.RenderType != RenderType.Hide) 463 { 464 string cssClass = item.Design.CssClass != null ? item.Design.CssClass : ""; 465 466 if (!item.SkipRenderBlocksList) { 467 if (item.Design.RenderType == RenderType.Row) 468 { 469 470 471 #line default 472 #line hidden 473 WriteLiteralTo(__razor_helper_writer, " <div"); 474 475 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 5273), Tuple.Create("\"", 5328) 476 , Tuple.Create(Tuple.Create("", 5281), Tuple.Create("grid", 5281), true) 477 , Tuple.Create(Tuple.Create(" ", 5285), Tuple.Create("grid--align-content-start", 5286), true) 478 479 #line 111 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 480 , Tuple.Create(Tuple.Create(" ", 5311), Tuple.Create<System.Object, System.Int32>(cssClass 481 482 #line default 483 #line hidden 484 , 5312), false) 485 , Tuple.Create(Tuple.Create(" ", 5321), Tuple.Create("dw-mod", 5322), true) 486 ); 487 488 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 5329), Tuple.Create("\"", 5349) 489 , Tuple.Create(Tuple.Create("", 5334), Tuple.Create("Block__", 5334), true) 490 491 #line 111 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 492 , Tuple.Create(Tuple.Create("", 5341), Tuple.Create<System.Object, System.Int32>(item.Id 493 494 #line default 495 #line hidden 496 , 5341), false) 497 ); 498 499 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 500 501 WriteLiteralTo(__razor_helper_writer, " "); 502 503 504 #line 112 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 505 WriteTo(__razor_helper_writer, RenderBlock(item)); 506 507 508 #line default 509 #line hidden 510 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 511 512 513 #line 114 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 514 } 515 516 if (item.Design.RenderType == RenderType.Column) 517 { 518 string hidePadding = item.Design.HidePadding ? "u-no-padding" : ""; 519 string size = item.Design.Size ?? "12"; 520 size = Regex.IsMatch(size, @"\d") ? "md-" + item.Design.Size : item.Design.Size; 521 522 523 524 #line default 525 #line hidden 526 WriteLiteralTo(__razor_helper_writer, " <div"); 527 528 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 5809), Tuple.Create("\"", 5931) 529 , Tuple.Create(Tuple.Create("", 5817), Tuple.Create("col-", 5817), true) 530 531 #line 122 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 532 , Tuple.Create(Tuple.Create("", 5821), Tuple.Create<System.Object, System.Int32>(item.Design.Size 533 534 #line default 535 #line hidden 536 , 5821), false) 537 , Tuple.Create(Tuple.Create(" ", 5838), Tuple.Create("grid__col-md-", 5839), true) 538 539 #line 122 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 540 , Tuple.Create(Tuple.Create("", 5852), Tuple.Create<System.Object, System.Int32>(item.Design.Size 541 542 #line default 543 #line hidden 544 , 5852), false) 545 , Tuple.Create(Tuple.Create(" ", 5869), Tuple.Create("grid__col-sm-12", 5870), true) 546 , Tuple.Create(Tuple.Create(" ", 5885), Tuple.Create("grid__col-xs-12", 5886), true) 547 548 #line 122 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 549 , Tuple.Create(Tuple.Create(" ", 5901), Tuple.Create<System.Object, System.Int32>(hidePadding 550 551 #line default 552 #line hidden 553 , 5902), false) 554 555 #line 122 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 556 , Tuple.Create(Tuple.Create(" ", 5914), Tuple.Create<System.Object, System.Int32>(cssClass 557 558 #line default 559 #line hidden 560 , 5915), false) 561 , Tuple.Create(Tuple.Create(" ", 5924), Tuple.Create("dw-mod", 5925), true) 562 ); 563 564 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 5932), Tuple.Create("\"", 5952) 565 , Tuple.Create(Tuple.Create("", 5937), Tuple.Create("Block__", 5937), true) 566 567 #line 122 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 568 , Tuple.Create(Tuple.Create("", 5944), Tuple.Create<System.Object, System.Int32>(item.Id 569 570 #line default 571 #line hidden 572 , 5944), false) 573 ); 574 575 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 576 577 WriteLiteralTo(__razor_helper_writer, " "); 578 579 580 #line 123 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 581 WriteTo(__razor_helper_writer, RenderBlock(item)); 582 583 584 #line default 585 #line hidden 586 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 587 588 589 #line 125 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 590 } 591 592 if (item.Design.RenderType == RenderType.Table) 593 { 594 595 596 #line default 597 #line hidden 598 WriteLiteralTo(__razor_helper_writer, " <table"); 599 600 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 6159), Tuple.Create("\"", 6189) 601 , Tuple.Create(Tuple.Create("", 6167), Tuple.Create("table", 6167), true) 602 603 #line 129 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 604 , Tuple.Create(Tuple.Create(" ", 6172), Tuple.Create<System.Object, System.Int32>(cssClass 605 606 #line default 607 #line hidden 608 , 6173), false) 609 , Tuple.Create(Tuple.Create(" ", 6182), Tuple.Create("dw-mod", 6183), true) 610 ); 611 612 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 6190), Tuple.Create("\"", 6210) 613 , Tuple.Create(Tuple.Create("", 6195), Tuple.Create("Block__", 6195), true) 614 615 #line 129 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 616 , Tuple.Create(Tuple.Create("", 6202), Tuple.Create<System.Object, System.Int32>(item.Id 617 618 #line default 619 #line hidden 620 , 6202), false) 621 ); 622 623 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 624 625 WriteLiteralTo(__razor_helper_writer, " "); 626 627 628 #line 130 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 629 WriteTo(__razor_helper_writer, RenderBlock(item)); 630 631 632 #line default 633 #line hidden 634 WriteLiteralTo(__razor_helper_writer, "\r\n </table>\r\n"); 635 636 637 #line 132 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 638 } 639 640 if (item.Design.RenderType == RenderType.TableRow) 641 { 642 643 644 #line default 645 #line hidden 646 WriteLiteralTo(__razor_helper_writer, " <tr"); 647 648 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 6419), Tuple.Create("\"", 6443) 649 650 #line 136 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 651 , Tuple.Create(Tuple.Create("", 6427), Tuple.Create<System.Object, System.Int32>(cssClass 652 653 #line default 654 #line hidden 655 , 6427), false) 656 , Tuple.Create(Tuple.Create(" ", 6436), Tuple.Create("dw-mod", 6437), true) 657 ); 658 659 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 6444), Tuple.Create("\"", 6464) 660 , Tuple.Create(Tuple.Create("", 6449), Tuple.Create("Block__", 6449), true) 661 662 #line 136 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 663 , Tuple.Create(Tuple.Create("", 6456), Tuple.Create<System.Object, System.Int32>(item.Id 664 665 #line default 666 #line hidden 667 , 6456), false) 668 ); 669 670 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 671 672 WriteLiteralTo(__razor_helper_writer, " "); 673 674 675 #line 137 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 676 WriteTo(__razor_helper_writer, RenderBlock(item)); 677 678 679 #line default 680 #line hidden 681 WriteLiteralTo(__razor_helper_writer, "\r\n </tr>\r\n"); 682 683 684 #line 139 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 685 } 686 687 if (item.Design.RenderType == RenderType.TableColumn) 688 { 689 690 691 #line default 692 #line hidden 693 WriteLiteralTo(__razor_helper_writer, " <td"); 694 695 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 6673), Tuple.Create("\"", 6697) 696 697 #line 143 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 698 , Tuple.Create(Tuple.Create("", 6681), Tuple.Create<System.Object, System.Int32>(cssClass 699 700 #line default 701 #line hidden 702 , 6681), false) 703 , Tuple.Create(Tuple.Create(" ", 6690), Tuple.Create("dw-mod", 6691), true) 704 ); 705 706 WriteAttributeTo(__razor_helper_writer, "id", Tuple.Create(" id=\"", 6698), Tuple.Create("\"", 6718) 707 , Tuple.Create(Tuple.Create("", 6703), Tuple.Create("Block__", 6703), true) 708 709 #line 143 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 710 , Tuple.Create(Tuple.Create("", 6710), Tuple.Create<System.Object, System.Int32>(item.Id 711 712 #line default 713 #line hidden 714 , 6710), false) 715 ); 716 717 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 718 719 WriteLiteralTo(__razor_helper_writer, " "); 720 721 722 #line 144 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 723 WriteTo(__razor_helper_writer, RenderBlock(item)); 724 725 726 #line default 727 #line hidden 728 WriteLiteralTo(__razor_helper_writer, "\r\n </td>\r\n"); 729 730 731 #line 146 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 732 } 733 734 if (item.Design.RenderType == RenderType.CardHeader) 735 { 736 737 738 #line default 739 #line hidden 740 WriteLiteralTo(__razor_helper_writer, " <div"); 741 742 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 6927), Tuple.Create("\"", 6963) 743 , Tuple.Create(Tuple.Create("", 6935), Tuple.Create("card-header", 6935), true) 744 745 #line 150 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 746 , Tuple.Create(Tuple.Create(" ", 6946), Tuple.Create<System.Object, System.Int32>(cssClass 747 748 #line default 749 #line hidden 750 , 6947), false) 751 , Tuple.Create(Tuple.Create(" ", 6956), Tuple.Create("dw-mod", 6957), true) 752 ); 753 754 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 755 756 WriteLiteralTo(__razor_helper_writer, " "); 757 758 759 #line 151 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 760 WriteTo(__razor_helper_writer, RenderBlock(item)); 761 762 763 #line default 764 #line hidden 765 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 766 767 768 #line 153 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 769 } 770 771 if (item.Design.RenderType == RenderType.CardBody) 772 { 773 774 775 #line default 776 #line hidden 777 WriteLiteralTo(__razor_helper_writer, " <div"); 778 779 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 7171), Tuple.Create("\"", 7200) 780 , Tuple.Create(Tuple.Create("", 7179), Tuple.Create("card", 7179), true) 781 782 #line 157 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 783 , Tuple.Create(Tuple.Create(" ", 7183), Tuple.Create<System.Object, System.Int32>(cssClass 784 785 #line default 786 #line hidden 787 , 7184), false) 788 , Tuple.Create(Tuple.Create(" ", 7193), Tuple.Create("dw-mod", 7194), true) 789 ); 790 791 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 792 793 WriteLiteralTo(__razor_helper_writer, " "); 794 795 796 #line 158 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 797 WriteTo(__razor_helper_writer, RenderBlock(item)); 798 799 800 #line default 801 #line hidden 802 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 803 804 805 #line 160 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 806 } 807 808 if (item.Design.RenderType == RenderType.CardFooter) 809 { 810 811 812 #line default 813 #line hidden 814 WriteLiteralTo(__razor_helper_writer, " <div"); 815 816 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 7410), Tuple.Create("\"", 7446) 817 , Tuple.Create(Tuple.Create("", 7418), Tuple.Create("card-footer", 7418), true) 818 819 #line 164 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 820 , Tuple.Create(Tuple.Create(" ", 7429), Tuple.Create<System.Object, System.Int32>(cssClass 821 822 #line default 823 #line hidden 824 , 7430), false) 825 , Tuple.Create(Tuple.Create(" ", 7439), Tuple.Create("dw-mod", 7440), true) 826 ); 827 828 WriteLiteralTo(__razor_helper_writer, ">\r\n"); 829 830 WriteLiteralTo(__razor_helper_writer, " "); 831 832 833 #line 165 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 834 WriteTo(__razor_helper_writer, RenderBlock(item)); 835 836 837 #line default 838 #line hidden 839 WriteLiteralTo(__razor_helper_writer, "\r\n </div>\r\n"); 840 841 842 #line 167 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 843 } 844 } 845 else 846 { 847 848 849 #line default 850 #line hidden 851 852 #line 171 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 853 WriteTo(__razor_helper_writer, RenderBlock(item)); 854 855 856 #line default 857 #line hidden 858 859 #line 171 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 860 861 } 862 } 863 864 if (debug) { 865 866 867 #line default 868 #line hidden 869 WriteLiteralTo(__razor_helper_writer, " <!-- Block END: "); 870 871 872 #line 176 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 873 WriteTo(__razor_helper_writer, item.Id); 874 875 876 #line default 877 #line hidden 878 WriteLiteralTo(__razor_helper_writer, " -->\r\n"); 879 880 881 #line 177 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 882 } 883 } 884 885 886 #line default 887 #line hidden 888 }); 889 890 #line 179 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 891 } 892 #line default 893 #line hidden 894 895 896 #line 181 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 897 public RazorEngine.Templating.TemplateWriter RenderBlock(Block item) 898 { 899 #line default 900 #line hidden 901 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 902 903 #line 182 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 904 905 bool debug = !String.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("debug")) ? Convert.ToBoolean(HttpContext.Current.Request.QueryString.Get("debug")) : false; 906 907 if (item.Template != null) 908 { 909 910 911 #line default 912 #line hidden 913 914 #line 187 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 915 WriteTo(__razor_helper_writer, BlocksPage.RenderTemplate(item.Template)); 916 917 918 #line default 919 #line hidden 920 921 #line 187 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 922 923 } 924 925 if (item.Component != null) 926 { 927 string customSufix = "Custom"; 928 string methodName = item.Component.HelperName; 929 930 ComponentBase[] methodParameters = new ComponentBase[1]; 931 methodParameters[0] = item.Component; 932 Type methodType = this.GetType(); 933 934 MethodInfo customMethod = methodType.GetMethod(methodName + customSufix); 935 MethodInfo generalMethod = methodType.GetMethod(methodName); 936 937 try { 938 if (debug) { 939 940 941 #line default 942 #line hidden 943 WriteLiteralTo(__razor_helper_writer, " <!-- Component: "); 944 945 946 #line 204 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 947 WriteTo(__razor_helper_writer, methodName.Replace("Render", "")); 948 949 950 #line default 951 #line hidden 952 WriteLiteralTo(__razor_helper_writer, " -->\r\n"); 953 954 955 #line 205 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 956 } 957 958 959 #line default 960 #line hidden 961 962 #line 206 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 963 WriteTo(__razor_helper_writer, customMethod.Invoke(this, methodParameters).ToString()); 964 965 966 #line default 967 #line hidden 968 969 #line 206 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 970 ; 971 } catch { 972 try { 973 974 975 #line default 976 #line hidden 977 978 #line 209 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 979 WriteTo(__razor_helper_writer, generalMethod.Invoke(this, methodParameters).ToString()); 980 981 982 #line default 983 #line hidden 984 985 #line 209 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 986 ; 987 } catch(Exception ex) { 988 throw new Exception(item.Component.GetType().Name + " method '" + methodName +"' could not be invoked", ex); 989 } 990 } 991 } 992 993 if (item.BlocksList.Count > 0 && !item.SkipRenderBlocksList) 994 { 995 996 997 #line default 998 #line hidden 999 1000 #line 218 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1001 WriteTo(__razor_helper_writer, RenderBlockList(item.BlocksList)); 1002 1003 1004 #line default 1005 #line hidden 1006 1007 #line 218 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1008 1009 } 1010 1011 1012 #line default 1013 #line hidden 1014 }); 1015 1016 #line 220 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1017 } 1018 #line default 1019 #line hidden 1020 1021 1022 #line 235 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1023 public RazorEngine.Templating.TemplateWriter Render(ComponentBase component) 1024 { 1025 #line default 1026 #line hidden 1027 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1028 1029 #line 236 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1030 1031 if (component != null) 1032 { 1033 1034 1035 #line default 1036 #line hidden 1037 1038 #line 239 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1039 WriteTo(__razor_helper_writer, component.Render(this)); 1040 1041 1042 #line default 1043 #line hidden 1044 1045 #line 239 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1046 1047 } 1048 1049 1050 #line default 1051 #line hidden 1052 }); 1053 1054 #line 241 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1055 } 1056 #line default 1057 #line hidden 1058 1059 1060 #line 250 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1061 public RazorEngine.Templating.TemplateWriter RenderIcon(Icon settings) 1062 { 1063 #line default 1064 #line hidden 1065 return new RazorEngine.Templating.TemplateWriter(__razor_helper_writer => { 1066 1067 #line 251 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1068 1069 if (settings != null) 1070 { 1071 string color = settings.Color != null ? "style=\"color: " + settings.Color + "\"" : ""; 1072 1073 if (settings.Name != null) 1074 { 1075 if (string.IsNullOrEmpty(settings.Label)) 1076 { 1077 1078 1079 #line default 1080 #line hidden 1081 WriteLiteralTo(__razor_helper_writer, " <i"); 1082 1083 WriteAttributeTo(__razor_helper_writer, "class", Tuple.Create(" class=\"", 10024), Tuple.Create("\"", 10082) 1084 1085 #line 260 "C:\inetpub\wwwroot\DecoCenter\Staging\Files\Templates\Designs\Wizaris\Grid\Pages\RowTemplates\1-2SplitRow.cshtml" 1086 , Tuple.Create(Tuple.Create("", 10032), Tuple.Create<System.Object, System.Int32>(settings.Prefix 1087 1088 #line default 1089 #line hidden 1090 , 10032), false) 1091