diff --git a/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3-fluid.cshtml b/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3-fluid.cshtml index 904e446052..84004929bd 100644 --- a/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3-fluid.cshtml +++ b/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3-fluid.cshtml @@ -14,7 +14,8 @@
@if (oneColumn) { - foreach (var section in Model.sections) { + foreach (var section in Model.sections) + {
@foreach (var row in section.rows) { @@ -22,12 +23,15 @@ }
} - }else { + } + else + {
- @foreach (var s in Model.sections) { + @foreach (var sec in Model.sections) + {
-
- @foreach (var row in s.rows) +
+ @foreach (var row in sec.rows) { renderRow(row); } diff --git a/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3.cshtml b/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3.cshtml index bc4b3cd6dd..ebe1cf725f 100644 --- a/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3.cshtml +++ b/src/Umbraco.Web.UI.NetCore/Views/Partials/grid/bootstrap3.cshtml @@ -10,7 +10,8 @@
@if (oneColumn) { - foreach (var section in Model.sections) { + foreach (var section in Model.sections) + {
@foreach (var row in section.rows) { @@ -18,10 +19,13 @@ }
} - }else { + } + else + {
- @foreach (var sec in Model.sections) { + @foreach (var sec in Model.sections) + {
@foreach (var row in sec.rows)