@inherits UmbracoTemplatePage
@{
Layout = "Master.cshtml";
var leafInputBackload = GetBoolProperty(Model.Content.Properties, "leafInputBackload");
}
@CurrentPage.GetGridHtml("content", "fanoe")
@section Scripts
{
@if (leafInputBackload)
{
@Scripts.Render("~/backload/blueimp/bootstrap/BasicPlusUI")
}
}
@functions {
private static bool GetBoolProperty(ICollection props, string propertyTypeAlias)
{
var backload =
props.FirstOrDefault(p => p.PropertyTypeAlias.Equals(propertyTypeAlias)) != null
? (bool)props.FirstOrDefault(p => p.PropertyTypeAlias.Equals(propertyTypeAlias)).Value
: false;
return backload;
}
}