2014-10-07 14:01:48 +02:00
|
|
|
@inherits UmbracoViewPage<dynamic>
|
|
|
|
|
@using Umbraco.Web.Templates
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@if (Model != null && !string.IsNullOrEmpty(Model.ToString()))
|
|
|
|
|
{
|
|
|
|
|
var onlyOneColumn = Model.sections != null ? ((System.Collections.ICollection)Model.sections).Count : 0;
|
|
|
|
|
|
|
|
|
|
<div class="uSky-grid @(onlyOneColumn > 1 ? "container" : "")">
|
|
|
|
|
<div class="row clearfix">
|
|
|
|
|
@foreach (var s in Model.sections)
|
|
|
|
|
{
|
|
|
|
|
<div class="col-md-@s.grid column">
|
|
|
|
|
@foreach (var row in s.rows)
|
|
|
|
|
{
|
|
|
|
|
<div class="gridrow_@row.uniqueId" >
|
|
|
|
|
<div class="container">
|
|
|
|
|
<div class="row clearfix">
|
|
|
|
|
|
|
|
|
|
@foreach (var area in row.areas)
|
|
|
|
|
{
|
|
|
|
|
<div class="col-md-@area.grid column">
|
|
|
|
|
|
|
|
|
|
@foreach (var control in area.controls)
|
|
|
|
|
{
|
|
|
|
|
if (control != null && control.editor != null && control.editor.view != null)
|
|
|
|
|
{
|
|
|
|
|
|
2014-10-07 14:40:34 +02:00
|
|
|
string editor = "grid/editors/" + control.editor.view.ToString();
|
2014-10-07 14:01:48 +02:00
|
|
|
<text>
|
|
|
|
|
@Html.Partial(editor, (object)control)
|
|
|
|
|
</text>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2014-10-08 09:32:16 +11:00
|
|
|
}
|