[CLOSED] Multiple partial views on single page
I've got several partial views that I need to include on the same page - they all work individually but the layout breaks when they are all included... the code is as follows:
Code:
@(Html.X().Panel()
.Collapsible(true)
.ID("pnlEditServiceDetails")
.Layout(LayoutType.Container)
.Title("SERVICE DETAILS")
.AutoHeight(true)
.Items(sections =>
{
sections.Add(Html.X().Container()
.ID("BasicServiceDetails")
.Layout(LayoutType.Column)
.Padding(10)
.AutoHeight(true)
.Margins("0 0 0 10")
.Items(containers =>
{
containers.Add(Html.X().Container()
.Layout(LayoutType.Anchor)
.Cls("droppable")
.Items(items =>
{
items.Add(Html.X().Panel()
.ID("pnlBasicServiceDetails")
.ContentFromPage(this, "/Views/Shared/_BasicServiceDetailsPanel.cshtml"));
}));
containers.Add(Html.X().Container()
.Layout(LayoutType.Anchor)
.Cls("droppable")
.Items(items =>
{
items.Add(Html.X().Panel()
.ID("pnlPlaceDetails")
.ContentFromPage(this, "/Views/Shared/_PlaceDetailsPanel.cshtml"));
}));
containers.Add(Html.X().Container()
.Layout(LayoutType.Anchor)
.Cls("droppable")
.Items(items =>
{
items.Add(Html.X().Panel()
.ID("pnlRecurringCharges")
.ContentFromPage(this, "/Views/Shared/_RecurringChargesPanel.cshtml"));
}));
containers.Add(Html.X().Container()
.Layout(LayoutType.Anchor)
.Cls("droppable")
.Items(items =>
{
items.Add(Html.X().Panel()
.ID("pnlContractDetails")
.ContentFromPage(this, "/Views/Shared/_ContractDetailsPanel.cshtml"));
}));
}));
})
)