@* Generator: WebPagesHelper *@
@using Disco.BI.Extensions;
@using Disco.Web;
@using Disco.Services.Web;
@helper AjaxLoader(string id = null)
{
    Html.GetPageHelper().BundleDeferred("~/ClientScripts/Modules/Disco-AjaxHelperIcons");
    <i @(id != null ? new HtmlString(string.Format("id=\"{0}_loading\"", id)) : new HtmlString(string.Empty)) class="ajaxLoading" title="Loading..."></i><i @(id != null ? new HtmlString(string.Format("id=\"{0}_ok\"", id)) : null) class="fa fa-check fa-lg hidden ajaxOk" title="Ok"></i>
}
@helper AjaxSave()
{
    <i class="fa fa-check-square fa-lg hidden ajaxSave" title="Save Changes"></i>
}
@helper AjaxRemove()
{
    <i class="fa fa-times-circle fa-lg hidden ajaxRemove" title="Remove"></i>
}
@helper JsonDate(DateTime? date)
{
    if (date.HasValue)
    {
        var d = date.Value;
    @(new HtmlString(string.Format("new Date({0}, {1}, {2}, {3}, {4}, {5})", d.Year, d.Month - 1, d.Day, d.Hour, d.Minute, d.Second)))
    }
    else
    { 
    @(new HtmlString("null"))
    }
}